18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix: Built-in Scripting Language<br />

Multimedia functions<br />

These functions are used to play external audio and video files.<br />

Play<br />

Plays a specified WAV audio file.<br />

Function Group Execution Windows Embedded Thin Client<br />

Play Multimedia Asynchronous Supported Supported Supported<br />

Note: For this function to work on a Thin Client, the target WAV file must be located in the same<br />

file path on the remote station.<br />

Description<br />

Plays a specified WAV audio file.<br />

Syntax<br />

Play(strFileName{ | ,optNumSynchronous })<br />

strFileName<br />

The file path and name of the WAV file to play.<br />

optNumSynchronous<br />

A numeric flag specifying whether the function executes synchronously or asynchronously:<br />

Value<br />

Description<br />

0 Asynchronous (i.e., the project continues without waiting for the<br />

function to return)<br />

1 Synchronous (i.e., the project pauses while it waits for the function to<br />

return)<br />

This is an optional paramter; if no value is specified, then the default is 0.<br />

Returned value<br />

This function does not return any value.<br />

Examples<br />

Tag Name<br />

Expression<br />

Play( "C:\Sounds\Wav\alarm.wav" )<br />

Page 656<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!