Facility Control

 View Only
Expand all | Collapse all

Dashboard visual logic triggered by keyer on status

  • 1.  Dashboard visual logic triggered by keyer on status

    Posted 10-12-2022 21:10
    Anyone able to help me with this?  What I want is on a custom panel in Dashboard, to have visual logic that is always checking the "tally" status of a keyer on an MC1 switcher, and when it is on-air, to trigger an action and trigger another action if it's off-air.  Ideally, it would fire a GPI when the status changes, and then continue monitoring but only fire the GPI once per change from on to off etc.

    I'm not sure how to set something like this up to run without having a button pushed to trigger it.  Any help would be greatly appreciated!

    ------------------------------
    Aaron Rice
    WTVO/WQRF/My Network TV
    ------------------------------


  • 2.  RE: Dashboard visual logic triggered by keyer on status

    Posted 10-13-2022 04:17
      |   view attached

    Hey Aaron. What you need is the "onchange" attribute. this will monitor a parameter for any change then run a task. I have made a sample panel for you to look at. The panel doesn't have any buttons to trigger an action it is purely looking for any change in the number. So as you change the number the routine runs. The same will happen for any external OID's the system is monitoring. 
    The important line here is in the ogscript at the top <ogscript handles="onchange" oid="Number">

    Hope that Helps

    ------------------------------
    Jack Horry
    Product Manager
    DashBoard, PowerPlay, Quorum
    Ross Video | Living Live
    ------------------------------

    Attachment(s)

    zip
    onchange example.zip   893 B 1 version


  • 3.  RE: Dashboard visual logic triggered by keyer on status

    Posted 10-13-2022 14:44
    Thanks, Jack!  This is great.  Do you know how I would find the OID that indicates if the key is on-air or not for the MC1?  I've looked through and tried replacing "number" with the OID for the button for Key 1, but that doesn't change anything.  Sorry...I'm new to this whole Dashboard thing :)

    ------------------------------
    Aaron Rice
    WTVO/WQRF/My Network TV
    ------------------------------



  • 4.  RE: Dashboard visual logic triggered by keyer on status

    Posted 10-14-2022 03:18

    Sorry Aaron I'm not the MC1 guy. But I would look for the key bus itself. You may get the key on command to trigger something but the commands can take time to action so it may not have completed by the time the key is actually live on the switch. 
    Pushing ctrl+I puts DashBoard into inspector mode where you can click on an element and get the details of its OID's as another useful tip. (ctrl+I again returns dashboard to normal)

    Hope that helps 

    Jack

    ------------------------------
    Jack Horry
    Product Manager
    DashBoard, PowerPlay, Quorum
    Ross Video | Living Live
    ------------------------------



  • 5.  RE: Dashboard visual logic triggered by keyer on status

    Posted 10-14-2022 13:16
    Thanks again for helping me, Jack! I have found the OID for the key, and in your sample panel I changed "number" to the OID for the keyer.  When I turn the keyer on or off, nothing changes, but it did when I clicked to increment the number.  I made a button that puts the value from the OID to a text field when I press it. It will give me a value of 0.0 when the keyer is off, and 1.0 when it's on, so I know the value changes relative to the status of the keyer, but it won't change the canvas color.  Changed the switch values from 0 and 1 to 0.0 and 1.0, but still nothing.  I also tried using Get Paramater Value to feed the switch, and that doesn't work either.  When I added "OnLoad", it would be correct after I apply and close, but won't change after that.  Any ideas?

    ------------------------------
    Aaron Rice
    WTVO/WQRF/My Network TV
    ------------------------------



  • 6.  RE: Dashboard visual logic triggered by keyer on status

    Posted 10-14-2022 13:39

    The panel is monitoring the MC1 i hope. If its not it wont find the OID

    ------------------------------
    Jack Horry
    Product Manager
    DashBoard, PowerPlay, Quorum
    Ross Video | Living Live
    ------------------------------



  • 7.  RE: Dashboard visual logic triggered by keyer on status

    Posted 10-14-2022 13:49
    Yes, it is monitoring the MC1 panel.  I set the canvas to be green if it's off, red if it's on.  With the key off, after I apply changes and close in the editor for the ogscript, the canvas shows green.  When I turn the key on, it doesn't change to red until I go back to the ogscript attributes and click apply and close.  Then it will be red, and won't update again until I go back in to the ogscript and do another apply and close.  So, I know it's seeing the MC1 panel because it somewhat works, but not without me intervening.  That causes it to do the "onload" when I apply and close, but the "onchange" or "attribtechange" doesn't work.

    ------------------------------
    Aaron Rice
    WTVO/WQRF/My Network TV
    ------------------------------



  • 8.  RE: Dashboard visual logic triggered by keyer on status

    Posted 10-14-2022 13:54

    can you send back the panel?

    ------------------------------
    Jack Horry
    Product Manager
    DashBoard, PowerPlay, Quorum
    Ross Video | Living Live
    ------------------------------



  • 9.  RE: Dashboard visual logic triggered by keyer on status

    Posted 10-14-2022 14:03

    Here's what I have

     






  • 10.  RE: Dashboard visual logic triggered by keyer on status

    Posted 10-14-2022 14:05
      |   view attached
    Sorry, it didn't post the .grid file through the email reply.

    ------------------------------
    Aaron Rice
    WTVO/WQRF/My Network TV
    ------------------------------

    Attachment(s)

    zip
    MC1 Key Test.zip   1 KB 1 version


  • 11.  RE: Dashboard visual logic triggered by keyer on status

    Posted 10-14-2022 14:57
      |   view attached

    Try this I think the instruction needs to be a child of the context



    ------------------------------
    Jack Horry
    Product Manager
    DashBoard, PowerPlay, Quorum
    Ross Video | Living Live
    ------------------------------

    Attachment(s)

    zip
    MC1 Key Test.zip   1 KB 1 version


  • 12.  RE: Dashboard visual logic triggered by keyer on status

    Posted 10-14-2022 16:00
    This worked perfectly!!  Thank you again, so very much, for your help!

    ------------------------------
    Aaron Rice
    WTVO/WQRF/My Network TV
    ------------------------------