38 if (
args.Count() != 1)
40 Console.WriteLine(
"Incorrect number of arguments provided");
41 Console.WriteLine(
"Usage: jog_example.exe <ADDRESS>");
43 Console.Write(
"\nPress any key to close the example");
65 Console.Write(
"\nPress any key to close the example");
const int GALIL_EXAMPLE_OK
Examples success code.
const int GALIL_EXAMPLE_ERROR
Examples error code.
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.
static int Main(string[] args)
Main function for the jog example.
Accepts user-input at the command line to control the speed of the controller in Jog mode.
void GOpen(string address)
Used to open a connection to Galil hardware.
void GClose()
Used to close a connection to Galil hardware.
Provides a class that binds to gclib's unmanaged dll. Wraps each call and provides a more user-friend...
GReturn vector(GCon g, char *file)
Puts controller into Vector Mode and accepts a file defining vector points.
static int Jog(gclib gclib)
Puts controller into Jog Mode and accepts user input to adjust the speed.