40 int main(
int argc,
char * argv[])
42 GReturn rc = GALIL_EXAMPLE_OK;
43 char buf[G_SMALL_BUFFER];
51 cerr <<
"Incorrect number of arguments provided\n";
52 cerr <<
"Usage: motion_complete_example.exe <ADDRESS>\n";
53 return GALIL_EXAMPLE_ERROR;
56 char* address = argv[1];
57 sprintf(buf,
"%s --subscribe EI", address);
65 GError(gr, buf, G_SMALL_BUFFER);
69 GSize size =
sizeof(buf);
70 GUtility(g, G_UTIL_ERROR_CONTEXT, buf, &size);
73 return GALIL_EXAMPLE_ERROR;
GReturn motion_complete(GCon g)
Uses interrupts to track when the motion of controller is completed.
void e(GReturn rc)
A trivial, C++ style return code check used in Galil's examples and demos.
int main(int argc, char *argv[])
Main Function for Motion Complete Example.