Alarm Banner Scripts
The Geo SCADA Expert Global scripting feature enables you to create scripts that provide additional functionality, for example, via the Alarm Banner in ViewX. Using VBScript, you can access the Alarm Banner Functions and Properties to:
- Add menu options to the context-sensitive menu (that is displayed whenever you select an alarm from the Alarm Banner in ViewX).
- Set the added menu options to run a script
- Create scripts that extract information from the Alarm Banner in ViewX. The information can then be used within Geo SCADA Expert or sent to external applications such as work management systems.
- Create scripts that provide extra functionality for interaction with the alarms and the database items associated with the alarms. For example, you can create an Alarm Banner script that calls a method on a database item that is associated with a selected alarm.
To write the code for an Alarm Banner script, you will need an in-depth understanding of the VBScript language and an appreciation of the Alarm Banner functions and properties. You can write the code in the Global Script Editor.
For more information, see the topics that are listed in the gray footer section at the bottom of this topic. Select the relevant entry to display the topic that you require.
We also provide some examples of how Alarm Banner scripts can be used, Common Uses for Alarm Banner Scripts.
You can only access the Global Script Editor on the server that is set as the default system (the one that is assigned the highest Default System Priority, see Use System Priority for Global Scripts and Homepages in the Geo SCADA Expert Guide to Client Administration). If that server is unavailable, you will be unable to access the Global Script Editor until the connection to that server is reestablished. Additionally, the client will run the Global script of whichever system has the highest Default System Priority of the systems that are available to that client. The Global script runs, for example, when selecting entries in the Alarm Banner and Alarms Lists. If you want to edit the Global script of a system of lower priority, you have to temporarily disable other higher priority systems in order to access the Global Script Editor of that lower priority system. (For information about disabling a connection, see Display the Geo SCADA Expert Client Applet.)