• Not Answered

Control Studio - can it initiate the opening of a Display, such as a popup?

Hello all,

I have a request to cause a popup display (one I am making) to appear when we receive a digital input in a control module.  The module has 4 digital inputs actually that each represent how close a lightning strike has just occurred.  I've seen examples of how to do initiate a popup from DV Operate/Configure and DV Live, but nothing about triggering it from a control module.

Is it possible?

Thanks

Ralph Kitts  

1 Reply

  • The trick would be to have an OnChange (operate) or OnWrite(Live) variable that monitors the module parameter, and when it changes, a script if fired that performs the appropriate action.

    The variable has to be loaded. If you created this in a main display, it would only work when the display is open. Good place to start and once it is working, move this to someplace where it is always active, like the Alarm Banner, or the Layout.

    If you are using one Alarm Banner that is present on every workstation, you have one place to add the variable. If you do this in the Layout, you have to add the variable to every layout. Since you have script associated with it, duplicating the script seems like a bad practice. You might forget to update a layout or if you add a new layout, forget to add the variable all together.

    Note, with the OnWrite selected, the variable monitors the runtime value and when it differs, it triggers the script. At the end of the Script it must return the current value so the Variable in Live will match. This stops the script. If you don't return the value, the mismatch between the module parameter and the variable will cause the script to run again. You can use this feature to increment the variable toward the parameter value and set them equal when it is within range.

    The script also has to handle the parameter change back to the passive value. On this change, the script can simply update the variable without any other action. Both conditions must return a value to update the variable.

    Andre Dicaire