Facility Control

 View Only
  • 1.  mouse click to control sequentially XPression sequencer

    Posted 08-02-2021 10:39
    Hi All

    I want to create a button in dashboard to control sequentially my XPression sequencer by pressing the mousebutton on the button again and again.
    Means, I press the button and SeEQ 101 and 102 is started.
    After that dashboard waits for the next click on the butten and starts SEQ 103 and 104,
    again waiting for the next button click starting SEQ 105 and 106
    etc.

    Is there a possibility to realize that?

    Thx
    Markus


    <button buttontype="push" height="230" left="224" top="237" width="422">

    <task tasktype="rosstalk">rosstalk.sendMessage('localhost', 7788, 'SEQI 101');</task>
    <task tasktype="rosstalk">rosstalk.sendMessage('localhost', 7788, 'SEQI 102');</task>

    WAIT FOR MOUSEBUTTONPRESSED

    <task tasktype="rosstalk">rosstalk.sendMessage('localhost', 7788, 'SEQI 103');</task>
    <task tasktype="rosstalk">rosstalk.sendMessage('localhost', 7788, 'SEQI 104');</task>

    WAIT FOR MOUSEBUTTONPRESSED

    <task tasktype="rosstalk">rosstalk.sendMessage('localhost', 7788, 'SEQI 105');</task>
    <task tasktype="rosstalk">rosstalk.sendMessage('localhost', 7788, 'SEQI 106');</task>

    WAIT FOR MOUSEBUTTONPRESSED

    <task tasktype="rosstalk">rosstalk.sendMessage('localhost', 7788, 'SEQI 107');</task>
    <task tasktype="rosstalk">rosstalk.sendMessage('localhost', 7788, 'SEQI 108');</task>

    WAIT FOR MOUSEBUTTONPRESSED

    <task tasktype="rosstalk">rosstalk.sendMessage('localhost', 7788, 'SEQI 109');</task>
    <task tasktype="rosstalk">rosstalk.sendMessage('localhost', 7788, 'SEQI 110');</task>

    </button>

    ------------------------------
    Markus Stoerk
    ------------------------------


  • 2.  RE: mouse click to control sequentially XPression sequencer

    Posted 08-04-2021 16:03
    Hi Markus,

    You can keep the most recent take ID in a parameter and increment the parameter value after each 'take' call. Below is the source to a custom panel that does this.

    This panel is just printing the RossTalk messages using ogscript.debug() to the debug console. You can open the debug console from Views > openGear Debug Information.

    <abs contexttype="opengear" gridsize="20" id="_top" keepalive="false" style="">
       <meta>
          <params>
             <param access="1" constrainttype="INT_NULL" name="num" oid="num_oid" precision="0" stateless="true" type="INT32" value="101" widget="default"/>
          </params>
       </meta>
       <param expand="true" height="60" left="60" oid="num_oid" showlabel="false" top="40" width="180"/>
       <button buttontype="push" height="60" left="60" name="Send RossTalk Messages" top="120" width="180">
          <task tasktype="ogscript">var num = params.getValue("num_oid", 0);
    ogscript.debug("rosstalk.sendMessage('localhost', 7788, 'SEQI "+num+"');");
    num = num+1;
    ogscript.debug("rosstalk.sendMessage('localhost', 7788, 'SEQI "+num+"');");
    num = num+1;
    params.setValue("num_oid", 0, num);</task>
       </button>
    </abs>
    ​


    Please let me know if you have any questions.


    ------------------------------
    Dave Sampson
    Ross Video
    ------------------------------



  • 3.  RE: mouse click to control sequentially XPression sequencer

    Posted 08-05-2021 10:54
    Hi Dave
    Absolutely great, thank you very much!!!
    On sunday it will be in use!
    Thx
    Markus

    ------------------------------
    Markus Stoerk
    ------------------------------