Facility Control

 View Only
  • 1.  multiple commands in one button

    Posted 11-02-2017 03:24

    Hi, I am switching inputs on external scalers (foslom ImagePro's) with a dashboard button. I'm using the "Send TCP Message (string)" command from the og script panel. This seems to work fine.
    I need to switch 16 of these scalers simultaneously. each one has it's own IP address. Do I just add more of these "send tcp message" commands? (see attached)
    I've tried this and i get massive latency problems when I add more than 2 of these scripts to the button.
    Is there a better way of doing this?
    cheers



  • 2.  RE: multiple commands in one button

    Posted 11-02-2017 14:07

    Hi James.
    I assume you mean latency in the commands going out to the devices and not latency in the Custom Panel user interface.

    The issue you're experiencing is likely due to all of the TCP messages being sent to through the same thread and only one connection is allowed to be open at a time. It works like this:

    • Send Message adds a new message to the queue and notifies the messaging thread
    • If a connection is already open to the requested IP/Port, write the message
    • Otherwise, close any open connection and create a new connection to the requested IP/Port
    • Write the message

    If any of your servers is slow to accept the connection, you'll have a delay before the next message goes out.

    If you want to find out which one might be slowing you down, I would recommend adding a callback function that writes to the debug console after each message goes out.



    #DashBoard


  • 3.  RE: multiple commands in one button

    Posted 11-03-2017 04:55
    thanks James. I'll give it a try.
    #DashBoard