Facility Control

 View Only
  • 1.  Universal Custom Panel for Multiple open gear card controlling

    Posted 12-26-2022 12:42
    Good afternoon,
    I have built a custom panel that controls 88 open gear cards, 9905 mpx. The custom control is the same for each card and limited to a few items like scalar, 3D LUT. Currently I have built 88 grid files with links to each card when a label(button looking on the panel) is clicked.

    I wonder if there is a way to use one generic custom panel with control for each loading when a button is pushed for, ie. loading the node-id into the custom controls when the button is pushed?

    Another option would be to keep the 88 files and have them load for controlling then closing when a key is pressed.

    Thanks


  • 2.  RE: Universal Custom Panel for Multiple open gear card controlling

    Posted 01-18-2023 15:34
    Hi gts0428
    You should be able to use our %value['OID'][INDEX]% string substitutions to get what you are after.  You can put all of your identifiers into a parameter and use a sub-context with this substitution to change which card you are working with dynamically.
    Here is an example:
    <abs contexttype="opengear">
       <meta>
          <params>
             <param access="1" maxlength="0" name="Data Sources" oid="params.datasources" precision="0" type="STRING_ARRAY" widget="text">
                <value>231bf459-000000f9&lt;br&gt;Slot 2&lt;br&gt;MUX-8258-A</value>
                <value>b</value>
                <value>c</value>
                <value>d</value>
                <value>e</value>
                <value>f</value>
                <value>g</value>
             </param>
             <param access="1" constrainttype="STRING_CHOICE" name="Table" oid="table" precision="0" type="INT16" value="0" widget="table">
                <constraint>params.datasources</constraint>
             </param>
          </params>
       </meta>
       <param bottom="6" expand="true" left="2" oid="table" showlabel="false" top="5" width="420">
          <config key="w.rowheight">45</config>
          <config key="w.reorder">true</config>
          <task tasktype="ogscript">ogscript.reload('client-data');</task>
       </param>
       <param expand="true" height="37" left="19" oid="Server_IP" top="18" width="152">
          <task tasktype="ogscript">ogscript.reload('client-data');</task>
       </param>
       <abs bottom="0" contexttype="opengear" id="client-data" left="435" objectid="%value['params.datasources'][%value['table'][0]%]%" right="0" top="0">
          <param expand="true" height="93" left="26" oid="0x105" showlabel="false" top="50" width="257"/>
          <button buttontype="push" height="81" left="304" name="Debug" top="56" width="178">
             <task tasktype="ogscript">ogscript.debug(ogscript.getAttribute('ObjectID'));</task>
          </button>
       </abs>
       <param expand="true" height="38" left="180" oid="OGP_Port" top="17" width="84">
          <task tasktype="ogscript">ogscript.reload('client-data');</task>
       </param>
       <param expand="true" height="38" left="280" oid="Device_Slot" top="17" width="84">
          <task tasktype="ogscript">ogscript.reload('client-data');</task>
       </param>
    </abs>
    ​


    ------------------------------
    James Peltzer
    Ross Video
    ------------------------------