gclib 2.0.9
Communications API for Galil controllers and PLCs
 
Loading...
Searching...
No Matches

◆ x_nonblocking()

int x_nonblocking ( GCon  g)

Examples of using non-blocking operation of GRecord(), GInterrupt(), and GMessage().

Typical usage of the asynchronous data streams is to call the function with a given timeout. The function will then block until the desired data is received of the timeout occurs. However, to check for available messages, ascynchronous records, or interrupts, the user can set a timeout of zero and the functions will return waiting data. See the source of this example for more detail.

Definition at line 22 of file x_nonblocking.cpp.

References G_DR, G_GCLIB_NON_BLOCKING_READ_EMPTY, GCmd(), GInterrupt(), GMessage(), GProgramDownload(), GRecord(), GRecordRate(), GTimeout(), vector(), and x_e().