Facility Control

 View Only
  • 1.  Button Show Key State from Carbonite

    Posted 04-15-2014 04:19
    I almost have Dashboard customized exactly how I want it for hands-on control of a few things while my directors are operating our Carbonite with the control panel. I have a couple buttons set to control the state of a key - triggering an auto fade on/off, and it's working great, but it doesn't follow the state of the actual key in the switcher. What I mean is that I have it set to go red when I toggle a key on, and the default gray when I toggle it off. That works great, but it doesn't turn red when the switcher operator turns the key on, meaning that I can't rely on the state of the button in Dashboard to know whether the key is on or not.

    Is there a way to read the state of the button and reflect that automatically on the button on Dashboard? I know there must be because the Background and Preset buttons follow the sources selected on the switcher, but I can't figure out how to make that happen in a button I've created.

    Thanks for any help anyone can provide.


  • 2.  RE: Button Show Key State from Carbonite

    Posted 04-15-2014 14:58
    Hi Dave,

    It's great that you're using DashBoard with Carbonite.

    There are a couple of ways you can address this requirement.

    The easiest is to just drag/drop the key cut button from Carbonite's live assist UI - the video tutorial panelbuilder 101 shows how to do this. I suspect that you want a bit more than this, so today I've tried & verified this alternative method:

    1) create a blank custom panel

    2) create a smaller blank canvas within it, give it a name and id, and set it's background color to something visible.

    3) drag / drop the key cut button you'd like to keep track of into the new canvas. DashBoard will give you a dialog asking where to put it, the default response is the one you need.

    4) create a label with an id (I called mine KeyStateIndicator)

    5) add a task to the button you copied from carbonite in step 3

    6) for the task body use ogscript code similar to this to change what's displayed on the label created in step 4.

    var keyState = params.getValue(0x992,0);

    var label = keyState ? "on" : "off";

    ogscript.rename('KeyStateIndicator', label);

    note 0x992 is the OID of the key for Key 1 in ME 1. If you're using a different ME or key, you'll need to use a different OID.

    6) now pressing the key button in Carbonite's live assist panel (or the hard panel) will trigger the task and, in this example, rename the label. You can, of course use this as a trigger to make other updates to your panel as you wish.

    7) by using ogscript.hide, you can hide the canvas (or abs) into which you dragged the cut button so that it doesn't appear in your UI.

    Hope this helps,

    John

    #DashBoard


  • 3.  RE: Button Show Key State from Carbonite

    Posted 04-16-2014 15:10
    John,

    Thanks for the tips. I was able to get this working just by dragging the key buttons (cut and auto) from Live Assist. I don't know why I didn't think of that because that's how I got my Background and Preset buttons into the interface. I was able to modify the Cut button so it says the name of the key, and is red when it's active. I have two more keys to modify this way but now I know how to do it. :)

    #DashBoard