Play
- Last UpdatedOct 29, 2026
- 1 minute read
Play plays a specified WAV audio file.
|
Function |
Group |
Execution |
String Exp. |
Windows |
Windows Embedded |
IoT View |
Thin Clients |
Mobile Access |
|---|---|---|---|---|---|---|---|---|
|
Play |
Multimedia |
Asynchronous |
No |
Supported |
Supported |
Not supported |
Supported (see Notes) |
Not supported |
Syntax
Play(strFileName,optNumSynchronous)
strFileName
The file path and name of the WAV file to play.
optNumSynchronous
A numeric flag specifying whether the function executes synchronously or asynchronously. This is an optional parameter; if no value is specified, then the default is 0 (Asynchronous).
|
Value |
Description |
|---|---|
|
0 |
Asynchronous - the project continues without waiting for the function to return |
|
1 |
Synchronous - the project pauses while it waits for the function to return |
Return value
This function returns no value.
Notes
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.
Examples
|
Tag Name |
Expression |
|---|---|
|
Play("C:\Sounds\Wav\alarm.wav") |