12 bool load_buffer(GCon g, ifstream& fs,
int capacity);
36 cerr <<
"There was an error with the connection." << endl;
37 return G_CONNECTION_NOT_ESTABLISHED;
45 e(GCmd(g,
"VS 20000"));
46 e(GCmd(g,
"VA 200000"));
47 e(GCmd(g,
"VD 200000"));
54 cout <<
"Unable to open file\n";
60 e(GCmdI(g,
"MG _LMS", &capacity));
70 e(GCmdI(g,
"MG _LMS", &capacity));
76 e(GMotionComplete(g,
"S"));
78 return GALIL_EXAMPLE_OK;
88 for (capacity; capacity > 1; capacity--)
90 if (getline(fs, s_cmd))
93 e(GCmd(g, s_cmd.c_str()));
bool load_buffer(GCon g, ifstream &fs, int capacity)
GReturn vector(GCon g, char *file)
Puts controller into Vector Mode and accepts a file defining vector points.
void e(GReturn rc)
A trivial, C++ style return code check used in Galil's examples and demos.