Facility Control

 View Only
  • 1.  Dashboard Carbonite switcher replication panel

    Posted 09-19-2016 16:55
    Is there a panel available that replicates the "bus" layout of the a physical carbonite panel? Much like how the MC-1 comes with a panel that is a very accurate replication of a real console. I looked into trying to replicate the carbonite myself, but I am stuck on the bus transition include buttons (The viewcontrol has those buttons, but I cannot seem to drag them into my own panel).

    I'm currently investigating the "set transition include" object with a 'cut' button using 'perform transition', but the logic doesn't seem to be correct when I try to include different key layers.


  • 2.  RE: Dashboard Carbonite switcher replication panel

    Posted 09-19-2016 19:00
    Hi Mark.
    If you create a new Custom Panel and choose the Carbonite as its data source, you should be able to drag the controls you are looking for out of the Live Assist menu.

    Specifically, you can access the transition type for each ME from the "ME" tab.
    You can access the source bus for each ME from the "Buses" tab.

    Each ME has a different parameter for its transition type. (e.g. ME 1 uses parameter 0x6A4)
    Each layer on each ME (background, key 1, key 2, etc) has a separate parameter for its source (e.g. ME 1 Background uses parameter 0xE06)

    Once you add those parameters you can remove options you don't want to display in your panel.

    A helpful tool you can use in the future is the Parameter Inspector (CTRL+i) - when you are in "inspection mode" you can double-click on any parameter to see what its ID is.

    Best of luck!

    James


    #DashBoard


  • 3.  RE: Dashboard Carbonite switcher replication panel

    Posted 09-19-2016 22:18
    I can't really use the key include buttons in live assist because there is no way to select key1+key2 or background+key3+key4 on the fly. The object I want is in viewcontrol. But they don't look like normal dashboard buttons(they have a blue border) and ctrl+i doesn't work on them so I can't figure out how to include them in my project.
    #DashBoard


  • 4.  RE: Dashboard Carbonite switcher replication panel

    Posted 09-20-2016 13:22

    It still comes down to a parameter in View Control. The UI with the blue borders is just running a piece of ogScript to toggle the real parameter off or on.
    The transition include parameter used by View Control is an array parameter where each element is a toggle button (so 5 elements in the array for background + 4 keys).

    The OID is 0x991

    Here's a snippet you can include in a Custom Panel pointed at a Carbonite (note - I have overridden the constraint on the parameter to make it easier to tell which toggle button is for which layer):

    <param constrainttype="INT_CHOICE" expand="true" height="90" left="84" oid="0x991" precision="0" showlabel="false" style="style:toggleButton;" top="43" width="489">
       <constraint key="0">BKGD</constraint>
       <constraint key="1">BKGD</constraint>
       <constraint key="0">Key 1</constraint>
       <constraint key="1">Key 1</constraint>
       <constraint key="0">Key 2</constraint>
       <constraint key="1">Key 2</constraint>
       <constraint key="0">Key 3</constraint>
       <constraint key="1">Key 3</constraint>
       <constraint key="0">Key 4</constraint>
       <constraint key="1">Key 4</constraint>
    </param>

    #DashBoard


  • 5.  RE: Dashboard Carbonite switcher replication panel

    Posted 09-20-2016 16:58

    I added the snippet in with the include buttons dragged in from viewcontrol, but they still don't render the blue. Amazingly, it's actually working, but I don't understand why since I don't see any link between the above snippet and the code already embedded with the include buttons. The include buttons don't refer to 0x991 at all.

    This is where i'm at:

    <abs contexttype="opengear" style="">
       <meta/>
       <param constrainttype="INT_CHOICE" expand="true" height="90" left="84" oid="0x991" precision="0" showlabel="false" style="style:toggleButton;" top="43" width="489">
          <constraint key="0">BKGD</constraint>
          <constraint key="1">BKGD</constraint>
          <constraint key="0">Key 1</constraint>
          <constraint key="1">Key 1</constraint>
          <constraint key="0">Key 2</constraint>
          <constraint key="1">Key 2</constraint>
          <constraint key="0">Key 3</constraint>
          <constraint key="1">Key 3</constraint>
          <constraint key="0">Key 4</constraint>
          <constraint key="1">Key 4</constraint>
       </param>
       <table baseurl="http://10.0.97.209/tmp/viewcontrol_content.xml" contexttype="opengear" height="70" left="117" objectid="Carbonite 00:0F:9B:02:DE:54&lt;br&gt;Slot 0&lt;br&gt;Carbonite" objecttype="Carbonite" top="80" width="510">
          <tr>
             <label align="center" height="70" id="bkgndIncl" insets="0,0,0,2" name="BKGD" onclick="
                
                   function toggleIncl(num)
                   {
                      var value = params.getValue(2448, num);
                      if (value == 1)
                         params.setValue(2448, num, 0);
                      else
                         params.setValue(2448, num, 1);
                   }
                   function clearIncl()
                   {
                      if (event.getClickCount() == 2)
                         params.setValue(2740, 0, 1);
                   }
                
                 clearIncl();" onmousedown="
                
                   function toggleIncl(num)
                   {
                      var value = params.getValue(2448, num);
                      if (value == 1)
                         params.setValue(2448, num, 0);
                      else
                         params.setValue(2448, num, 1);
                   }
                   function clearIncl()
                   {
                      if (event.getClickCount() == 2)
                         params.setValue(2740, 0, 1);
                   }
                
                 toggleIncl(0);" width="100"/>
             <label align="center" height="70" id="k1Incl" insets="0,0,0,2" name="Key 1" onmousedown="
                
                   function toggleIncl(num)
                   {
                      var value = params.getValue(2448, num);
                      if (value == 1)
                         params.setValue(2448, num, 0);
                      else
                         params.setValue(2448, num, 1);
                   }
                   function clearIncl()
                   {
                      if (event.getClickCount() == 2)
                         params.setValue(2740, 0, 1);
                   }
                
                 toggleIncl(1);" width="100"/>
             <label align="center" height="70" id="k2Incl" insets="0,0,0,2" name="Key 2" onmousedown="
                
                   function toggleIncl(num)
                   {
                      var value = params.getValue(2448, num);
                      if (value == 1)
                         params.setValue(2448, num, 0);
                      else
                         params.setValue(2448, num, 1);
                   }
                   function clearIncl()
                   {
                      if (event.getClickCount() == 2)
                         params.setValue(2740, 0, 1);
                   }
                
                 toggleIncl(2);" width="100"/>
             <label align="center" height="70" id="k3Incl" insets="0,0,0,2" name="Key 3" onmousedown="
                
                   function toggleIncl(num)
                   {
                      var value = params.getValue(2448, num);
                      if (value == 1)
                         params.setValue(2448, num, 0);
                      else
                         params.setValue(2448, num, 1);
                   }
                   function clearIncl()
                   {
                      if (event.getClickCount() == 2)
                         params.setValue(2740, 0, 1);
                   }
                
                 toggleIncl(3);" width="100"/>
             <label align="center" height="70" id="k4Incl" insets="0,0,0,2" name="Key 4" onmousedown="
                
                   function toggleIncl(num)
                   {
                      var value = params.getValue(2448, num);
                      if (value == 1)
                         params.setValue(2448, num, 0);
                      else
                         params.setValue(2448, num, 1);
                   }
                   function clearIncl()
                   {
                      if (event.getClickCount() == 2)
                         params.setValue(2740, 0, 1);
                   }
                
                 toggleIncl(4);" width="100"/>
          </tr>
       </table>
    </abs>


    #DashBoard


  • 6.  RE: Dashboard Carbonite switcher replication panel

    Posted 09-20-2016 17:37

    Okay. It would seem that it is either OID 0x990 or 0x991 depending on which ME you are looking at.
    These corresond to 2448 and 2449 (it's just decimal vs hex).

    The reason the buttons do not appear is because they are outside of the part of the panel you have pointed at the Carbonite. If you point the entire panel at the Carbonite, they will appear.
    Note the top line:

    <abs baseurl="http://10.0.97.209/tmp/viewcontrol_content.xml" contexttype="opengear" objectid="Carbonite 00:0F:9B:02:15:D9&lt;br&gt;Slot 0&lt;br&gt;Carbonite" objecttype="Carbonite">
       <meta/>
       <param constrainttype="INT_CHOICE" expand="true" height="90" left="84" oid="0x990" precision="0" showlabel="false" style="style:toggleButton;" top="43" width="489">
          <constraint key="0">BKGD</constraint>
          <constraint key="1">BKGD</constraint>
          <constraint key="0">Key 1</constraint>
          <constraint key="1">Key 1</constraint>
          <constraint key="0">Key 2</constraint>
          <constraint key="1">Key 2</constraint>
          <constraint key="0">Key 3</constraint>
          <constraint key="1">Key 3</constraint>
          <constraint key="0">Key 4</constraint>
          <constraint key="1">Key 4</constraint>
       </param>
       <param constrainttype="INT_CHOICE" expand="true" height="90" left="84" oid="0x991" precision="0" showlabel="false" style="style:toggleButton;" top="143" width="489">
          <constraint key="0">BKGD</constraint>
          <constraint key="1">BKGD</constraint>
          <constraint key="0">Key 1</constraint>
          <constraint key="1">Key 1</constraint>
          <constraint key="0">Key 2</constraint>
          <constraint key="1">Key 2</constraint>
          <constraint key="0">Key 3</constraint>
          <constraint key="1">Key 3</constraint>
          <constraint key="0">Key 4</constraint>
          <constraint key="1">Key 4</constraint>
       </param>
       <table height="70" left="117" top="280" width="510">
          <tr>
             <label align="center" height="70" id="bkgndIncl" insets="0,0,0,2" name="BKGD" onclick="                             function toggleIncl(num)                {                   var value = params.getValue(2448, num);                   if (value == 1)                      params.setValue(2448, num, 0);                   else                      params.setValue(2448, num, 1);                }                function clearIncl()                {                   if (event.getClickCount() == 2)                      params.setValue(2740, 0, 1);                }                           clearIncl();" onmousedown="                             function toggleIncl(num)                {                   var value = params.getValue(2448, num);                   if (value == 1)                      params.setValue(2448, num, 0);                   else                      params.setValue(2448, num, 1);                }                function clearIncl()                {                   if (event.getClickCount() == 2)                      params.setValue(2740, 0, 1);                }                           toggleIncl(0);" width="100"/>
             <label align="center" height="70" id="k1Incl" insets="0,0,0,2" name="Key 1" onmousedown="                             function toggleIncl(num)                {                   var value = params.getValue(2448, num);                   if (value == 1)                      params.setValue(2448, num, 0);                   else                      params.setValue(2448, num, 1);                }                function clearIncl()                {                   if (event.getClickCount() == 2)                      params.setValue(2740, 0, 1);                }                           toggleIncl(1);" width="100"/>
             <label align="center" height="70" id="k2Incl" insets="0,0,0,2" name="Key 2" onmousedown="                             function toggleIncl(num)                {                   var value = params.getValue(2448, num);                   if (value == 1)                      params.setValue(2448, num, 0);                   else                      params.setValue(2448, num, 1);                }                function clearIncl()                {                   if (event.getClickCount() == 2)                      params.setValue(2740, 0, 1);                }                           toggleIncl(2);" width="100"/>
             <label align="center" height="70" id="k3Incl" insets="0,0,0,2" name="Key 3" onmousedown="                             function toggleIncl(num)                {                   var value = params.getValue(2448, num);                   if (value == 1)                      params.setValue(2448, num, 0);                   else                      params.setValue(2448, num, 1);                }                function clearIncl()                {                   if (event.getClickCount() == 2)                      params.setValue(2740, 0, 1);                }                           toggleIncl(3);" width="100"/>
             <label align="center" height="70" id="k4Incl" insets="0,0,0,2" name="Key 4" onmousedown="                             function toggleIncl(num)                {                   var value = params.getValue(2448, num);                   if (value == 1)                      params.setValue(2448, num, 0);                   else                      params.setValue(2448, num, 1);                }                function clearIncl()                {                   if (event.getClickCount() == 2)                      params.setValue(2740, 0, 1);                }                           toggleIncl(4);" width="100"/>
          </tr>
       </table>
    </abs>

    #DashBoard