Home AMX User Forum NetLinx Studio

Online and Offline for Remote Masters

Greetings,

Are there and online and offline events for masters in the URL list?

I would like to have a connection indicator on panels.

Thanks.

Comments

  • Online and Offline for Remote Masters

    Yes, provided you have a URL entry for the remote master, you will receive an ONLINE and OFFLINE event for it. In Studio, you can also 'Refresh Network' instead of 'Refresh System' in the online tree and see connected systems.
  • TurnipTruckTurnipTruck Posts: 1,485
    If the remote master only exists as a URL entry having no references in the code, how will the online and offline event be referenced?

    {
    DATA_EVENT[????????]
    ONLINE:
    {
    }
    }

    I could reference one of the hardware devices of the remote master, but that is not quite what I'm looking for.

    Thank you.
  • Online and Offline for Remote Masters

    You are on the right track -- no need however to reference a device on the Master's system since you may in fact not have any devices (a standalone master). The following will work:
    DEFINE_DEVICE
    
    dvRemoteMaster = 0:1:107
    
    DEFINE_EVENT
    
    DATA_EVENT[dvRemoteMaster]
    {
      ONLINE:
      {
        do stuff ...
      }
    
      OFFLINE:
      {
        do different stuff ...
      }
    }
    
  • DHawthorneDHawthorne Posts: 4,584
    For the event table to form and work properly, the device has to be defined on the local master. For devices that actually reside on a different master, a local virtual is created, and linked to the remote device permanently. So you need to define the device on any master that requires the online/offline events.
Sign In or Register to comment.