30 Console.WriteLine(
"*****************************************************************************");
31 Console.WriteLine(
"*********************** GCommand Trimmed example ***********************");
32 Console.WriteLine(
"*****************************************************************************");
34 Console.WriteLine(
"GCommand(\"PR ?,? \", true) will return a trimmed response of GCommand()");
35 Console.WriteLine(
"The command 'PR ?,?' will return the relative " +
36 "position of the A and B axes");
40 Console.WriteLine(
"*****************************************************************************");
41 Console.WriteLine(
"************************* GCommand Int example *************************");
42 Console.WriteLine(
"*****************************************************************************");
44 Console.WriteLine(
"Use GCmdI() to retrieve the value of GCommand as an int.");
45 Console.WriteLine(
"The command 'MG _LMS' will return the available " +
46 "space in the vector buffer of the S plane.");
50 Console.WriteLine(
"*****************************************************************************");
51 Console.WriteLine(
"*********************** GCommand Double example ************************");
52 Console.WriteLine(
"*****************************************************************************");
54 Console.WriteLine(
"Use GCmdD() to retrieve the value of GCommand as a double.");
55 Console.WriteLine(
"The command 'MG @AN[1]' will return the value of Analog Input 1");
const int GALIL_EXAMPLE_OK
Examples success code.
Provides a class of shared constants and methods for gclib's example projects.
string GCommand(string Command, bool Trim=true)
Used for command-and-response transactions.
double GCmdD(string Command)
Used for command-and-response transactions.
Int16 GCmdI(string Command)
Used for command-and-response transactions.
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 Commands(gclib gclib)
Demonstrates various uses of GCommand() and basic controller queries.