Event - Crestron SIMPL+ Reference Manual

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

Advertisement

Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

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
Software
®
SIMPL+
77

Advertisement

Table of Contents
loading

Table of Contents