gclib  2.0.8
Communications API for Galil controllers and PLCs
x_examples.h File Reference
#include <iostream>
#include <string>
#include <cstdio>
#include <cstring>
#include "gclib.h"
#include "gclibo.h"

Go to the source code of this file.

Macros

#define _CRT_SECURE_NO_WARNINGS
 
#define GALIL_EXAMPLE_OK   G_NO_ERROR
 
#define GALIL_EXAMPLE_ERROR   -100
 

Functions

void x_e (GReturn rc)
 A trivial, C++ style return code check used in Galil's examples and demos. More...
 
int x_gcommand (GCon g)
 Example GCommand() usage. More...
 
int x_gmotioncomplete (GCon g)
 Example GMotionComplete() usage. More...
 
int x_gread_gwrite (GCon g)
 Example GRead() and GWrite() usage. More...
 
int x_programs (GCon g)
 Example GProgramDownload() and GProgramUpload() usage. More...
 
int x_arrays (GCon g)
 Example GArrayDownload() and GArrayUpload() usage. More...
 
int x_grecord (GCon g)
 Example GRecord() usage. More...
 
int x_dr_motioncomplete (GCon g, GCStringIn axes)
 Example of MotionComplete with data records. More...
 
int x_gmessage (GCon g)
 Example GMessage() usage. More...
 
int x_ginterrupt (GCon g)
 Example GInterrupt() usage. More...
 
int x_ei_motioncomplete (GCon g, GCStringIn axes)
 Example of MotionComplete with interrupts. More...
 
int x_nonblocking (GCon g)
 Examples of using non-blocking operation of GRecord(), GInterrupt(), and GMessage(). More...
 

Detailed Description

Header file for Galil gclib examples. All example functions start with the letter e. Example function calls demonstrating the use of library functions start with x_.

Definition in file x_examples.h.