Plays a specified WAV audio file.

Function Group Execution Windows Embedded Thin Client
Play Multimedia Asynchronous Supported Supported 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.


Plays a specified WAV audio file.


Play(strFileName { | ,optNumSynchronous } )
The file path and name of the WAV file to play.
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.


Tag Name Expression
  Play( "C:\Sounds\Wav\alarm.wav" )