EasyManua.ls Logo

Crestron SIMPL+ - SIMPL+ User Defined Functions; User Defined Functions Overview; Function Definition in SIMPL+

Crestron SIMPL+
374 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Software Crestron SIMPL+
®
266 z SIMPL+
®
Language Reference Guide - DOC. 5797G
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

Table of Contents