Facility Control

 View Only
  • 1.  Command to Dim Ultritouch Panel

    Posted 17 days ago

    I have 12 Ultritouch panels. I am starting to experience some burn-in on the displays because they stay on all the time and are only used one day per week. I also have a master panel that runs on a PC that connects to all of the Ultritouches. 

    I would like to have a button on my master panel that dims all of the displays. Is there a built-in command to control the brightness?



    ------------------------------
    Randall Malone
    ------------------------------


  • 2.  RE: Command to Dim Ultritouch Panel

    Posted 8 days ago

    Hi Randal

    The Ultritouch units expose the LCD brightness as a numeric parameter with a range from 12-255 (you can see this by using the param inspector):

    Using this, I can create a custom panel with a 'Master Dim' parameter that, when changed, writes a new value to any number of Ultritouch units.  I'm using a slider  in my example but you can just as easily create buttons for different preset levels of brightness or even set values based on a timer if that type of automation is desirable.

    <abs contexttype="opengear" id="_top" keepalive="false" style="">
       <meta>
          <params>
             <param access="1" constraint="12.0;255.0;12.0;255.0;1" constrainttype="INT_STEP_RANGE" name="Master Dim" oid="Master_Dim" precision="0" type="INT32" value="221" widget="slider-vertical-nolabel"/>
          </params>
          <context contexttype="opengear" id="ut-1" objectid="Ultritouch-00AD2AE7CF&lt;br&gt;Slot 0&lt;br&gt;Ultritouch Device" objecttype="Ultritouch Device" subscriptions="true">
             <meta>
                <subscription oids="deviceoptions.lcdbrightness"/>
             </meta>
          </context>
          <context contexttype="opengear" objectid="Ultritouch-827F4EF5E2&lt;br&gt;Slot 0&lt;br&gt;Ultritouch Device" objecttype="Ultritouch Device" subscriptions="true">
             <meta>
                <subscription oids="deviceoptions.lcdbrightness"/>
             </meta>
          </context>
       </meta>
       <simplegrid cols="6" height="244" left="7" right="6" top="5">
          <param expand="true" oid="Master_Dim" showlabel="false">
             <task tasktype="ogscript">
    
    
    /*! block id=1011,1012 !*/
    params.getParam("ut-1", 'deviceoptions.lcdbrightness', 0).setValue(params.getValue('Master_Dim', 0));
    /*! block id=1013,1014 !*/
    params.getParam("Ultritouch-827F4EF5E2&lt;br&gt;Slot 0&lt;br&gt;Ultritouch Device", 'deviceoptions.lcdbrightness', 0).setValue(params.getValue('Master_Dim', 0));
    /*!!
     &lt;block id="1011" type="param_ut-1&amp;amp;LCD's Brightness (deviceoptions.lcdbrightness)[0]" x="283" y="10" w="243" SET="ID:1012"  next="ID:1013" /&gt;
    &lt;block id="1012" type="param__top&amp;amp;Master Dim (Master_Dim)[0]" x="10" y="10" w="243" SET="" /&gt;
    &lt;block id="1013" type="param_Ultritouch-827F4EF5E2&amp;lt;br&amp;gt;Slot 0&amp;lt;br&amp;gt;Ultritouch Device&amp;amp;LCD's Brightness (deviceoptions.lcdbrightness)[0]" x="283" y="82" w="243" SET="ID:1014" /&gt;
    &lt;block id="1014" type="param__top&amp;amp;Master Dim (Master_Dim)[0]" x="10" y="82" w="243" SET="" /&gt;
    !!*/
    /*!!&lt;checksum&gt;27000fcd0f106f13b439f7c5c4d45699&lt;/checksum&gt;!!*/</task>
          </param>
          <param contextid="ut-1" expand="true" oid="deviceoptions.lcdbrightness" showlabel="false"/>
          <param contextid="Ultritouch-827F4EF5E2&lt;br&gt;Slot 0&lt;br&gt;Ultritouch Device" expand="true" oid="deviceoptions.lcdbrightness" showlabel="false"/>
       </simplegrid>
    </abs>
    

    The relevant pieces:

    I have added each Ultritouch to my custom panel (2 in my case) using the <context/> tag.  Using this tag and giving it a value for "id" makes it easier to reference the parameters in script later.

    The script itself is actually quite simple (it looks more intimidating in the source view since it contains formatting for DashBoard's visual scripting).  Basically, for each Ultritouch I need one line:

    params.getParam("ut-1", 'deviceoptions.lcdbrightness', 0).setValue(params.getValue('Master_Dim', 0));

    Where ut-1 is the "id" of the <context/> for one of the Ultritouch panels and params.getValue('Master_Dim', 0) is the value I want to set the brightness to (can be replaced with a number instead of a parameter value if you just want a preset).

    Hope this helps.

    James



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