Facility Control

 View Only
  • 1.  Incorporating parameter of IP address into an og script to take a scene

    Posted 09-04-2018 20:42
    We are getting an upgrade in hardware to run our LED ribbons. I am building the dashboards for the operators. Here is what I want to do: "IP setup page (Remote machine IP address are entered here). (1st Quarter setup-Button titles and take ID's entered here) (1st Quarter Playout-combine the IP address with the take ID to take a certain scene on a certain machine to air). How do I combine an IP address with a TakeID to take a scene to air on a remote machine via a single button push in a dashboard?


  • 2.  RE: Incorporating parameter of IP address into an og script to take a scene

    Posted 09-04-2018 20:49

    So you want a button that simply does a "Take" in XPression but you want the IP and Take ID to come from parameters?

    Here is an example panel that uses Visual Logic to do this:

    <abs contexttype="opengear">
       <meta>
          <lookup id="hosts">
             <entry key="MyXPression.scriptport">false</entry>
             <entry key="MyXPression.color">-1145302</entry>
             <entry key="MyXPression.port">7788</entry>
             <entry key="MyXPression.host">params.getValue('IP_Address', 0)</entry>
             <entry key="MyXPression.scripthost">true</entry>
             <entry key="MyXPression.devicetype">XPression</entry>
          </lookup>
          <params>
             <param access="1" maxlength="0" name="IP Address" oid="IP_Address" type="STRING" value="IP Address" widget="text"/>
             <param access="1" constraint="0.0;100000.0;0.0;100000.0;1" constrainttype="INT_STEP_RANGE" name="Take ID" oid="Take_ID" precision="0" type="INT32" value="0" widget="spinner"/>
          </params>
       </meta>
       <param expand="true" height="37" left="21" oid="IP_Address" top="20" width="267"/>
       <label height="33" left="20" name="Take ID: " style="txt-align:east" top="78" width="125"/>
       <param expand="true" height="44" left="150" oid="Take_ID" top="71" width="137"/>
       <button buttontype="push" height="64" left="17" name="Go!" top="138" width="271">
          <task tasktype="ogscript">
    
    
    /*! block id=1002,1003 !*/
    rosstalk.sendMessage(params.getValue('IP_Address', 0), parseInt(ogscript.getPrivateString('hosts', 'MyXPression.port')), "TAKE " + params.getValue('Take_ID', 0) + ":" + (1 -1) + ":" + 1);
    /*!!
     &lt;block id="1002" type="MyXPression_xpression_take" x="348" y="89" w="243" color="#ee862a" TAKEID="ID:1003" BUFFER="1" LAYER="1" /&gt;
    &lt;block id="1003" type="param__top&amp;amp;Take ID (Take_ID)[0]" x="66" y="99" w="243" SET="" /&gt;
    !!*/
    /*!!&lt;checksum&gt;eee5f5ab1af27a22695193d415f901af&lt;/checksum&gt;!!*/</task>
       </button>
    </abs>

     


    #DashBoard


  • 3.  RE: Incorporating parameter of IP address into an og script to take a scene

    Posted 09-04-2018 21:31
    I want to be able to trigger a remote xpression machine in our facility using that machines IP address. In other words, I want to type in the IP of the remote machine at the beginning of my session and trigger TakeID's on that system as well as the localhost. So it would be "TakeID 1001 on IP 10.21.113.4
    #DashBoard


  • 4.  RE: Incorporating parameter of IP address into an og script to take a scene

    Posted 09-05-2018 13:49
    So, in that case, we'd have 2 "Take" commands getting sent to 2 XPressions in your panel. One would be hard-coded to "localhost" the other would use the value of the IP_Address parameter.
    #DashBoard


  • 5.  RE: Incorporating parameter of IP address into an og script to take a scene

    Posted 09-05-2018 15:54
    I get that, but how and where do I take the IP_Address parameter and apply it to the Take? Thanks for your patience
    #DashBoard


  • 6.  RE: Incorporating parameter of IP address into an og script to take a scene

    Posted 09-05-2018 16:10

    That's being done for you automatically. When we added the XPression to Visual Logic, we associated the IP address of the XPression with the "IP_Address" parameter. This means that when Visual Logic generates the code, it will always get the the current value of the IP_Address parameter.


    #DashBoard


  • 7.  RE: Incorporating parameter of IP address into an og script to take a scene

    Posted 09-05-2018 16:56
    I see that now, thanks james
    #DashBoard