Facility Control

 View Only
  • 1.  Universal Custom Panel to connect with all equipement

    Posted 01-28-2021 11:04

    Hi,

    I want to create a universal custom panel for all mixer.

    In the first time, I just want to entry adresse Ip and port of the mixer on this custom panel and after push a connection button they connect automaticaly to this device. In second time, that would be perfect if button of universal custom panel can follow up device connction in the first step. I tryed the drag and drop but the button stay attached at her mixer panel.

    Please help me thank you.

     



  • 2.  RE: Universal Custom Panel to connect with all equipement

    Posted 02-01-2021 23:32

    I'm not quite sure if this is what you need but I hope it helps. What follows should help you set a param once and have it persist for every time you use the panel.  Just set the IP and port. 

    1. Create a param with the OID Device_IP with Wiidget Hint: Text Entry(3)
    2. Create a param with the OID Device_Port with Wiidget Hint: Text Entry(3)
    3. Draw 2 default params on your panel one for each Device_IP and Device_Port (might be good to include the param name here if you'd like)
    4. Whenever you send a rosstalk message (usually constructed {IP, Port, Message}) use - where message is your message
    rosstalk.sendMessage(params.getValue('Device_IP', 0) ,params.getValue('Device_Port', 0), '[message]');

    You can also create an API and put some global variables in there like 

    var DeviceIP = params.getValue('Device_IP', 0); 

    and simplify it all quite a bit.  


    #DashBoard