Crestron SIMPL+ Reference Manual page 38

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

Advertisement

Software
®
28
SIMPL+
One more operational difference between the X-Generation and 2-Series control
systems is the event interaction. For example:
DIGITAL_INPUT diEvent1, diEvent2;
PUSH diEvent1
{
PRINT("Starting Event 1\n");
DELAY(500); // 5 sec delay
PRINT ("Event 1 done\n");
}
PUSH diEvent2
{
PRINT ("Starting Event 2\n");
DELAY (1500); // 15 sec delay
PRINT ("Event 2 done\n");
}
The output from the X-Generation system would be:
Starting Event 1
Starting Event 2
Event 2 Done
Event 1 Done
The order dictates that the second delay (15 seconds) will hold off the first delay. As
soon as the second delay has finished, the first delay is checked. Therefore, the two
events complete at approximately the same time (15 seconds).
The output from the 2-Series system would be:
Starting Event 1
Starting Event 2
Event 1 Done
Event 2 Done
The events run independently. When the 5-seconds expires for the first delay, the first
event continues and prints its message. The second delay expires 10 seconds later and
the message is displayed.
Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

Advertisement

Table of Contents
loading

Table of Contents