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");
37 Console.WriteLine(
"<<PR ?,? with no trim: " + gclib.GCommand(
"PR ?,?",
false) +
">>");
38 Console.WriteLine(
"<<PR ?,? with trim: " + gclib.GCommand(
"PR ?,?",
true) +
">>");
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.");
48 Console.WriteLine(
"MG _LMS with GCmdI(): " + gclib.GCmdI(
"MG _LMS"));
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");
57 Console.WriteLine(
"MG @AN[1] with GCmdD(): " + gclib.GCmdD(
"MG @AN[1]"));
const int GALIL_EXAMPLE_OK
Examples success code.
Provides a class of shared constants and methods for gclib's example projects.
static int Commands(gclib gclib)
Demonstrates various uses of GCommand() and basic controller queries.