EasyManua.ls Logo

Crestron SIMPL+ - EVENT Statement

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...
Crestron SIMPL+
®
Software
Language Reference Guide - DOC. 5797G SIMPL+
®
z 77
EVENT
Name:
EVENT
Syntax:
EVENT
{
[Local Variable Definitions]
<statements>
}
Description:
Executes the defined <statements> anytime one of the inputs to the SIMPL+ symbol
changes. It is similar to having a CHANGE statement listed for every input, and each
change is set up to execute a common block of code. Refer to “Stacked Events” on
page 80.
Example:
ANALOG_INPUT level1, level2, level3;
STRING_INPUT extra$[2][20];
STRING_OUTPUT OUT$;
EVENT
{
OUT$=extra$[0]+extra$[1]+CHR(level1)+CHR(level2)+CHR(level3)
;
}
In this example, when the ANALOG_INPUTs level1, level2, level3, or level4 have
any change or the STRING_INPUT array extra$ has changed, the
STRING_OUTPUT OUT$ will be recomputed and reissued.
Version:
SIMPL+ Version 3.00 - Local variables are allowed within EVENT statements.
SIMPL+ Version 1.00

Table of Contents

Other manuals for Crestron SIMPL+

Related product manuals