3 #ifndef I_34E90AC4_EF44_4CB5_AF47_B9D334EE5FB7
4 #define I_34E90AC4_EF44_4CB5_AF47_B9D334EE5FB7
7 #include <unordered_map>
13 #define TRAFFICBUF 4096
22 std::string description;
26 Source(
int byte = 0, std::string type =
"Ux",
int bit = -1, std::string units =
"", std::string description =
"",
double scale = 1,
double offset = 0) :
27 byte(
byte), type(type), bit(bit), units(units), description(description), scale(scale), offset(offset)
36 : q(galil_ptr), g(gclib_handle)
40 char tbuf[TRAFFICBUF];
41 std::unordered_map<std::string, Source> map;
42 void InitializeDataRecord();
48 void Init1806(
int axes);
49 void Init1800(
int axes,
bool dmc1802);
50 void Init4000(
int axes);
51 void Init30010(
bool dmc31010);
52 void Init2103(
int axes);
53 void InitRio(
bool rio3);
56 void InitRioSer(
bool rio3);
59 std::string ax(std::string prefix,
int axis, std::string suffix);
60 void input_bits(
int byte,
int num);
61 void output_bits(
int byte,
int num);
62 void aq_analog(
int byte,
int input_num);
63 void dq_analog(
int byte,
int input_num);
int GReturn
Every function returns a value of type GReturn. See gclib_errors.h for possible values.
void * GCon
Connection handle. Unique for each connection in process. Assigned a non-zero value in GOpen().