Facility Control

 View Only
  • 1.  Trigger panel link using GPI

    Posted 04-23-2020 20:40

    Hello
    I guess i will be the first one with that question:

    Is it possible to trigger panel link (<ext> tag task) using GPI, or using OGscript? I saw there is no option to assign GPI to function buttons (tried to add manually gpi="GPI 1" in the tag and send gpi, with no success.. ). Did i miss something?

     

    Thanks 

     

    Alex.



  • 2.  RE: Trigger panel link using GPI

    Posted 04-23-2020 21:03

    Hi Alex

    You did not miss anything - we do not allow you to press an 'ext' tag via script or remote trigger in DashBoard. The issue is that this would cause a new panel to open/go to foreground even if the panel containing the 'ext' tag was not active.

    We try to limit a Custom Panel so that it does not change the active tab without being certain it was triggered by the active user. You can imagine a situation where an operator is looking at a switcher Custom Panel and getting ready to hit "Take" only to have a completely different panel brought to the foreground by someone else's actions.

    Depending on your workflow, you might consider using the keyboard bindings feature to trigger opening the panel of your choosing. This feature is available and documented in the DashBoard User Guide.

    Cheers

    James


    #DashBoard


  • 3.  RE: Trigger panel link using GPI

    Posted 04-23-2020 21:17

    Hello James, thank for the answer, i understand..

    Basically, i want to achieve next: 

    By pressing button on usb game controller, fire gpi AND change tab focus to another tab. So, I thought to create a small custom panel with buttons that do some ogscript + change the focus. 

    Is that possible in some way?

    Thanks!


    #DashBoard


  • 4.  RE: Trigger panel link using GPI

    Posted 04-23-2020 21:32

    I can do tab focus change with selection mapping, and using "set value" action on joystick buttons.

    And i can fire internal GPI using "GPI" action on joystick button. 

    But i can't got them together by single button press..

    UDP: Maybe, i can refer to somehow to "selector" class in device class mapping, and change the focus that way?

     

    UDP2: If for each button of usb controller i could set 2 independ action, that would be pretty good solution, too. 

     

    Just to describe the practical need of this : lets say that you got 4 pivot cams and you control it from the pivot cam dashboard panel. The operator have monitor for that. What if i want that the button selector will also trigger router to route the selected pivot cam to the operator? So in that case, i want to trigger panel focus change in dashboard and some ogscript to trigger some router...


    #DashBoard


  • 5.  RE: Trigger panel link using GPI

    Posted 04-27-2020 17:18

    Hi Alex

    One solution for the workflow you're describing would be to add a listener to the selector.selection value of the "Selector UI Mappings" device and trigger your GPI whenever that value changes.

    <abs contexttype="opengear" keepalive="true">
    <meta>
    <context contexttype="opengear" objectid="selector-service-frame&lt;br&gt;Slot 0&lt;br&gt;Selector UI Mappings" objecttype="Selector UI Mappings">
    <meta>
    <ogscript handles="onchange" oid="selector.selection">ogscript.debug("SELECTOR VALUE IS: " + this.getValue());</ogscript>
    </meta>
    </context>
    </meta>
    </abs>

    #DashBoard


  • 6.  RE: Trigger panel link using GPI

    Posted 04-27-2020 22:36

    Hello James, this is almost there, the only thing the script triggers while while in 'sevice class mapping' the selector is on 'selector ui mapping'. In my case, there are 'game controller on game controllers' selected there.. so the script doesnt triggers..


    #DashBoard


  • 7.  RE: Trigger panel link using GPI

    Posted 04-27-2020 23:08

    James, i added contex of game controller and attached listener to selection buttons, and its work pretty good!

    Thank you for that,

    Alex.


    #DashBoard