7 #ifndef I_7B02A40E_869B_4650_A5A8_859F0A6E3325
8 #define I_7B02A40E_869B_4650_A5A8_859F0A6E3325
10 #define _CRT_SECURE_NO_WARNINGS
20 #define GALIL_EXAMPLE_OK G_NO_ERROR
21 #define GALIL_EXAMPLE_ERROR -100
int GReturn
Every function returns a value of type GReturn. See gclib_errors.h for possible values.
#define G_NO_ERROR
Return value if function succeeded.
void * GCon
Connection handle. Unique for each connection in process. Assigned a non-zero value in GOpen().
const char * GCStringIn
C-string input to the library. Implies null-termination.
int x_grecord(GCon g)
Example GRecord() usage.
int x_arrays(GCon g)
Example GArrayDownload() and GArrayUpload() usage.
int x_gcommand(GCon g)
Example GCommand() usage.
int x_gread_gwrite(GCon g)
Example GRead() and GWrite() usage.
int x_ginterrupt(GCon g)
Example GInterrupt() usage.
int x_ei_motioncomplete(GCon g, GCStringIn axes)
Example of MotionComplete with interrupts.
void x_e(GReturn rc)
A trivial, C++ style return code check used in Galil's examples and demos.
int x_nonblocking(GCon g)
Examples of using non-blocking operation of GRecord(), GInterrupt(), and GMessage().
int x_gmotioncomplete(GCon g)
Example GMotionComplete() usage.
int x_programs(GCon g)
Example GProgramDownload() and GProgramUpload() usage.
int x_gmessage(GCon g)
Example GMessage() usage.
int x_dr_motioncomplete(GCon g, GCStringIn axes)
Example of MotionComplete with data records.