31 public static int Main(
string[] args)
34 gclib gclib =
new gclib();
40 Console.WriteLine(
"Incorrect number of arguments provided");
41 Console.WriteLine(
"Usage: motion_complete_exmample.exe <ADDRESS>");
43 Console.Write(
"\nPress any key to close the example");
49 string address = args[0];
52 gclib.GOpen(address +
" --subscribe EI");
67 Console.Write(
"\nPress any key to close the example");
static int Motion_Complete(gclib gclib)
Uses interrupts to track when the motion of controller is completed.
const int GALIL_EXAMPLE_OK
Examples success code.
static int Main(string[] args)
Main function for the Motion Complete example.
static void PrintError(gclib gclib, Exception ex)
Prints the exception to the console and queries the controller for the most recent error message.
Provides a class of shared constants and methods for gclib's example projects.
Uses controller interrupts to detect when motion is complete.
const int GALIL_EXAMPLE_ERROR
Examples error code.