Play
Plays a specified WAV audio file.
Function | Group | Execution | Windows | Embedded | Thin Client | Mobile Access |
---|---|---|---|---|---|---|
Play | Multimedia | Asynchronous | Supported | Supported | Supported | Not supported |
Note: For this function to work on a Thin Client, the target WAV file must be located in the same file path on the remote station.
Description
Plays a specified WAV audio file.
Syntax
- strFileName
- The file path and name of the WAV file to play.
- optNumSynchronous
- A numeric flag specifying whether the function executes synchronously or asynchronously:
Value Description 0 Asynchronous (i.e., the project continues without waiting for the function to return) 1 Synchronous (i.e., the project pauses while it waits for the function to return) This is an optional paramter; if no value is specified, then the default is 0.
Returned value
This function does not return any value.
Examples
Tag Name | Expression |
---|---|
Play( “C:SoundsWavalarm.wav” ) |