How to make a deltaV window/faceplace pop up on the operator screen by an internal trigger? For example i have a critical alarm and I want a face plate or window to automatically open when the alarm trigger? Thanks in advance
The way I have done this before is as follows:
1. In User.fxg ( because it is an Operate object that is always processed at run time) create a variable in the Operate configure environment . Create an animation tied to the CurrentValue of the variable that represents the "trigger" that you are interested in, which would be the path to the alarm parameter, like DVSYS.MODULE.ALARMPARAM.NALM (NALM is the new alarm state which will become true when an active/unacknowledged alarm is annunciated)
2. In the user.fxg, create a _ONChange event for the variable in the vba interface. The easiest way is to right click the variable and select "edit script". The subroutine automatically created may be parameter_OnClick, but you can easily change that to paramer_OnChange.
3. Within this subroutine, specify one of the functions for opening a faceplate or other pop-up when the .CurrentValue of the variable invoking the subroutine <> "0". You will have to specify the module tagname for the faceplate, or the filename of the pop-up if it is not related directly to a module.
The animation on the variable in user.fxg will fire the ONChange event subroutine when it's value changes. The routine will fire the openfaceplate/pop-up function when the NALM has changed to something other than 0. Note, this will occur on all workstations unless you have put in additional logic to restrict it to one.
In reply to Youssef.El-Bahtimy:
Research into creating a custom scheduler in operate and trigger off the parameter change. BOL goes into the scheduler pretty extensively and usually what I've seen as the way to do these types of things. I'd definitely create your own custom scheduler though and not try to edit the built in scheduler in operate as this causes problems when upgrading, etc.