0

Retrieve device name and state name

Hi,

 

I would like to write a script that display the name assigned to the device during the setup and the current state that is being played. I checked documentation, forums and knowledge base but it seems it is not possible to get this information.

Is this information available and if it is how is it possible to retrieve it?

 

Juan

2 comments

  • 0
    Avatar
    Shaun

    Hi,

    Assuming you know how to do the rest all you should need is the following, tho find the registry section for something other than local file networking just publish a test setup to a card and see which value is written. For any zone other than 1, or [0], just change the number to that in BA.

    Local File Networking Name:

    registrySection = CreateObject("roRegistrySection", "networking")

    currentname$ = registrysection.read("un")

    For the active state name:

    name$=m.bsp.sign.zoneshsm[0].activestate.name$

    I would suggest writing a plugin that updates a variable on media change and make a zone displaying the variables that you can hide or show as required.

    Shaun

     

  • 0
    Avatar
    Juan Gil

    Hi Shaun,

     

    Thanks for the reply. Just to clarify I was looking to get the name given in  "Device Specification" and not the one assigned as a hostname in the "Unit Configuration" in the "Advance Network Setup" which I believe is what you get if I use the first section of code you provided.

    I am staring with scripting in BS so hopefully I will figure it out.

    I thin the plug-in idea is great this is something I would like to have in all my projects as it will make commissioning on site much easier.

    Juan

Please sign in to leave a comment.