Crestron SIMPL+ Reference Manual page 276

Language reference guide
Hide thumbs Also See for SIMPL+:
Table of Contents

Advertisement

Software
®
266
SIMPL+
Example:
INTEGER WaitTime;
DIGITAL_INPUT StopVCR;
ANALOG_INPUT SysWait;
STRING_OUTPUT VCR$;
PUSH StopVCR
{
WAIT (SysWait, VCR_Stop)
{
VCR$ = "\x02STOP\x03";
}
}
FUNCTION MyFunc()
{
while ( 1 )
{
// statements (will keep executing during the wait
statement)
Wait( 500 )
{
// statements (execute once for each wait statement
occurence)
}
// statements (will keep executing during the wait
statement)
}
}
In this example, a VCR is triggered to go into STOP, but the STOP command is
delayed based upon a time specified by an analog input to the SIMPL+ program.
Version:
SIMPL+ Version 3.00 - local variables are allowed within WAIT statements.
SIMPL+ Version 1.00
Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

Advertisement

Table of Contents
loading

Table of Contents