EasyManua.ls Logo

LI-COR LI-6400 - Events Supported by LPL

LI-COR LI-6400
846 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...
LPL Topics
Event Handling
Using the LI-6400 23-35
ONKBD, for example, is for keyboard events. The handling functions are the
same as before in Figure 23-15. But notice that the entire event loop is now
collapsed into the LPL keyword IDLE.
IDLE is just what it sounds like - the LPL program is idle. The operating sys-
tem, however, is performing the tight loop checking for events. Whenever it
finds one for which we had registered a function, it calls that function for us.
LPL can handle a number of events (Table 23-15) in the manner outlined by
the listing in Figure 23-16.
To illustrate, consider the AutoProgram “Remote Control”, whose listing is
shown in Figure 23-17.
Table 23-15. Events Supported by LPL
Event KeyWord
User presses any key on the keyboard ONKBD
User presses a function key ONSOFT
A certain time and date arrives (alarm clock) ONTIME
1 second intervals ONTIC
User defined intervals ONCYCLE
A/D Readings are ready ONA2D
A certain characterÕs arrival in the Comm port ONCOMM

Table of Contents