EasyManua.ls Logo

Crestron SIMPL+ - Page 232

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+
®
222 z SIMPL+
®
Language Reference Guide - DOC. 5797G
Example:
BUFFER_INPUT COM$[100];
DIGITAL_INPUT trig;
STRING IN$[100];
CHANGE COM$
{
IN$ = GATHER(“\n”, COM$);
PRINT(“The value of IN$ is %s\n”, IN$);
}
In the 2-Series Control System processors, a GATHER that is waiting for data will
use up the next change of the BUFFER_INPUT until the terminating character is
encountered. That is, any CHANGE event handler for the BUFFER_INPUT will not
be called.
If, in the first event, COM$ contains the string “Hello”, the event will wait in the
GATHER. When the COM$ changes again to contain “World!\n”, the event will
immediately resume after the GATHER. The CHANGE COM$ event will only be
called once in this case. In the X-Generation Control Systems, the CHANGE event
would be called both times.
Version:
SIMPL+ Version 2.00

Table of Contents