2 Public Function Jog(
gclib As Gclib) As Integer
4 gclib.GMotionComplete("A") ' Wait For motion To complete
6 gclib.GCommand("DPA=0") ' Start position at absolute zero
8 gclib.GCommand("BGA") ' Begin motion On A Axis
10 Dim isJogging As Boolean = True
11 Dim speed As Integer = 0
13 Console.WriteLine(
"Enter a character on the keyboard to change the" +
14 " motor's speed:" + Environment.NewLine +
15 "<q> Quit" + Environment.NewLine +
16 "<a> -2000 counts/s" + Environment.NewLine +
17 "<s> -500 counts/s" + Environment.NewLine +
18 "<d> +500 counts/s" + Environment.NewLine +
19 "<f> +2000 counts/s" + Environment.NewLine +
20 "<r> Direction Reversal" + Environment.NewLine)
24 Console.WriteLine(
"Jog Speed: " + speed.ToString())
26 Select Case Console.ReadKey(True).Key
45 Return GALIL_EXAMPLE_OK
string GCommand(string Command, bool Trim=true)
Used for command-and-response transactions.
void GMotionComplete(string axes)
Blocking call that returns once all axes specified have completed their motion.
Provides a class that binds to gclib's unmanaged dll. Wraps each call and provides a more user-friend...