Range: Name of a media file with extension ( filename.wav, filename1.mid, filename2.mp3, etc.)
Field Type: text
Specifies if this tag will play a Media File ( .wav, .mid, .mp3, etc.) as a message on the SCADA Node and Clients when the Tag alarms.
A pre-recorded message is required using .wav, .mid, .mp3, or other media format. You can record the message yourself or copy them from the Internet. A sound card and speaker is required on the SCADA node and Clients. Software to play the media file is also required on the SCADA Node and Clients (e.g. windows media, real player, etc.).
The media files should be copied to drive:\WebAccess\config\Node\project_node on the Project Node. They will be downloaded to the SCADA nodes and from SCADA nodes to Clients by WebAccess network service.
You can specify a separate Media file for each alarm.
The Media File is played only once when the Alarm occurs. It does not repeat if the Alarm remains unacknowledged.
Hint - Use a Global Script to play a Wave or MIDI or other MCI file to repeat Alarm Annunciation if Alarms remain Unacknowledged. See 12.10.20 Play a Wave File if UNACK Alarm (Global Script).
Alarms must be enabled for the Tag. A Media File must be specified for the Analog Tag Alarm Properties.
The top line (in Pink) will enable playing a Media File for all enabled Alarm Types for this tag (e.g. High-High, High, Low, Low-Low, High-Deviation, Low-Deviation and Rate Of Change).
Alternatively, Media File Alarm Annunciation can be enabled for individual Alarm types (e.g. High-High, High, Low, Low-Low, High-Deviation, Low-Deviation and Rate Of Change).
See section 7.16 Play Media File (wav, mid, mp3) for Alarm Annunciation for more information.
To define script files to be run once when tags in alarm state, the script file name is added to Media File field of in the Alarm section of the Tag property page. Please use the pipe symbol “|” (Shift-\) to separate media files and/or script files. If there is no media file or a single script, then just enter the script file name (include the file extension, .scr, .js, .vbs, .jse, .vbe). Script files in TCL, JScript, VBScript, JScript encoded, or VBScript encoded formats are all supported.
To run a script as a local screen script, pre-append the file name with local!. For example, local! mediascript.vbs
The local script file, mediascript.vbs, will also be run once as a local script inside the first available ViewDAQ, if any, on the SCADA node and inside the first available View client on each computer connecting to the SCADA node. If the local! option is not specified , the script file will be run once as a global script inside the global script engine on the SCADA node when tag is in the alarm state the script is associated with.
Please note that the script will block execution flow of ViewDAQ/View client or global script engine. Therefore, please make sure the scripts exit as soon as possible. For more information see 7.17 Alarm Triggered Scripts and 12. Scripts.