Facility Control

 View Only
  • 1.  NK Router one button switching for different games

    Posted 05-15-2018 15:36
    Here is what basically I want to do, 1, We have Game 1,Game 2 and Game 3,. Each of them has unique cross points. 2, in Dashboard, we want to change all crosspoints when select or press different game button. Let's say, when pressing button Game1, input 5 and 6 will be routed to out 50 and 51 respectively. When pressing button Game 2, input 10 and 11 will be routed to out 50 and 51. My problem right now is that I can not have opengear that is for creating parameter list and NK ROUTER that is fot controllig IPS to do switching both working.


  • 2.  RE: NK Router one button switching for different games

    Posted 05-15-2018 17:09

    Hi Grace.
    It is possible to use an openGear/internal/xml data source and an NK data srouce in the same custom panel. The key is to embed the NK data source inside of the openGear one - then you can have access to both:

    <abs contexttype="opengear">
       <meta>
          <params>
             <param access="1" constrainttype="INT_CHOICE" name="Test" oid="Test" precision="0" type="INT32" value="0" widget="22">
                <constraint key="0">One</constraint>
                <constraint key="1">Two</constraint>
                <constraint key="2">Three</constraint>
                <constraint key="3">Four</constraint>
             </param>
          </params>
       </meta>
       <abs bottom="0" contexttype="nk-router" left="0" right="0" style="" top="0">
          <meta>
             <ogscript handles="nkstatchange">var statChangeEvent = event;
    ogscript.debug('CHANGED SOURCE: ' + statChangeEvent.getSrcAddress());
    ogscript.debug('CHANGED DEST: ' + statChangeEvent.getChangedOutput());
    ogscript.debug('LEVEL MASK: ' + statChangeEvent.getChangedLevels());</ogscript>
          </meta>
          <ipslist height="97" left="9" top="7" width="567"/>
          <param expand="true" height="173" left="85" oid="Test" style="style:toggleButton;" top="150" width="554">
             <task tasktype="ogscript">ogscript.debug(this.getValue());</task>
          </param>
          <lvlstatus dst="all" height="314" left="678" scroll="vertical" showlabel="true" style="font:mono;size:small;bg#efffbe;fg#000000;t:bg#c8d5a0;t:fg#000000;" top="28" width="272"/>
       </abs>
    </abs>

    #DashBoard