Facility Control

 View Only
  • 1.  Detecting when a Carbonite source is in preview or on-air

    Posted 05-28-2020 16:40

    Hi

    I'm using Dashboard with a Carbonite, and want to fire off code in my Dashboard when certain sources are previewed or go to air.

    I have managed to get the list of parameters from the Carbonite, but how do you work out when a source is on a specific bus? I've managed to work out the oid of the button that is the source on the Carbonite Dashboard panel (see code below, it's looking at button 3 on the Tx bus) and that kind of returns what I want, but seems to fire off way more times for a single push than I'd expect!

    What am I doing wrong please?

    Thanks

    Simon

     

    Update: Think I've found the busses OIDs I'm interested in, 0xe06 and 0xe07 seem to give me the source information I need.

    <abs contexttype="opengear" id="_top" keepalive="false" objectid="%const['globalvariables']['CarboniteMAC']%" objecttype="Carbonite">
    <param bottom="-5" left="0" oid="0x2337" right="0" top="0">
    <task tasktype="ogscript">ogscript.debug(this.getValue());</task>
    </param>
    </abs>





  • 2.  RE: Detecting when a Carbonite source is in preview or on-air

    Posted 06-01-2020 15:15

    Those bus OIDs are the correct way of doing it.   

    Note that on the Carbonite panels, you should be able to go into Inspector Mode, by hitting "Ctrl-I".   Then you can double click on a bus, and it should show you which parameter is being used by that bus.


    #DashBoard


  • 3.  RE: Detecting when a Carbonite source is in preview or on-air

    Posted 06-02-2020 16:11

    Thanks Ben

    Good to know I was on the right track! I wish I'd known about the CTRL-I thing, I spent most of the time working out the OIDs!


    #DashBoard


  • 4.  RE: Detecting when a Carbonite source is in preview or on-air

    Posted 08-15-2021 00:29
    I'm a total novice with Dashboard and scripting, but am looking to do the same thing. I understand the basic concepts here (I think), but could use some more step-by-step guidance on retrieving the source information from a Carbonite (Ultra) and using that to fire off discrete scripts depending on which source is on a particular bus.

    Example: when Input 1 is the selected source on the Background/Program bus of ME 2 (P/P), run script "X". If Input 2 is selected, run script "Y", etc.

    I'm unclear how to correctly poll for that information (and mildly concerned what the polling interval is), and then how to pass that information to another action (button, script, etc).

    ------------------------------
    Garrett Strudler
    ------------------------------



  • 5.  RE: Detecting when a Carbonite source is in preview or on-air

    Posted 08-17-2021 10:54
    Hi Garret,

    Yes you can use the param inspector to get OIDs of each bus (in your case its ME2 background 0xE0C).
    You can drag that param to new custom panel.

    This bus takes different constraint choices as shown below picture.


    So basically you can add task to this which is basically visual logic or ogscript code which would trigger as soonas there is change in its value.
    you can do this using visual logic blocks with out even writing code. 

    The custom panel code is below
    <abs contexttype="opengear" id="_top" keepalive="false" style="">
       <simplegrid contexttype="opengear" height="75" left="231" objectid="Carbonite 00:0F:9B:02:16:FE&lt;br&gt;Slot 0&lt;br&gt;Carbonite" objecttype="Carbonite" rows="1" top="362" width="100">
          <param baseurl="http://172.16.9.109/tmp/busestab.xml" expand="true" oid="0xE0C" showlabel="false" widget="label">
             <task tasktype="ogscript">var val=params.getParam('Carbonite 00:0F:9B:02:16:FE&lt;br&gt;Slot 0&lt;br&gt;Carbonite', '0xE0C', 0).getValue();
    
    switch (val)
    {
    	case 1000:
    		ogscript.debug("This is background source "+val);
    		break;
    	case 1004:
    		ogscript.debug("This is background source "+val);
    		break;
       default:
          ogscript.debug("this is something i dont care "+val);
    }</task>
          </param>
       </simplegrid>
    </abs>​


    Thanks
    Anand




    ------------------------------
    Anand Soraganvi
    Ross Video
    ------------------------------



  • 6.  RE: Detecting when a Carbonite source is in preview or on-air

    Posted 08-17-2021 15:13
    Thanks so much!

    Obviously I had to sub out the IP and MAC addresses, and for some reason the OID of Program on my Ultra is 0xE06, but with the Inspector it was fairly easy to find. I'm getting the expected messages back in the debug, so now I'm just working on the integration of ogscripts from another vendor to control their gear (a disguise server).

    Really appreciate the help.

    ------------------------------
    Garrett Strudler
    Freelancer
    OR, United States
    ------------------------------