gclib 2.0.9
Communications API for Galil controllers and PLCs
 
Loading...
Searching...
No Matches
Position_Tracking_Example.vb
Go to the documentation of this file.
1Module Position_Tracking_Example
3 Dim rc As Integer = Examples.GALIL_EXAMPLE_OK
4 Dim gclib As Gclib = New Gclib()
7 Try
8 If args.Count = 2 Then
9 speed = 5000
11
13
17 Console.WriteLine("Usage: position_tracking_example.exe <ADDRESS> <SPEED=5000>")
18
19 Console.Write(vbCrLf + "Press any key to close the example.")
21 Return Examples.GALIL_EXAMPLE_ERROR
22 End If
23
24 Else
26 Console.WriteLine("Usage: position_tracking_example.exe <ADDRESS> <SPEED=5000>")
27
28 Console.Write(vbCrLf + "Press any key to close the example.")
30 Return Examples.GALIL_EXAMPLE_ERROR
31 End If
32
33
36
37 rc = Examples.Position_Tracking(gclib, speed) 'Begin position tracking mode
38 Catch ex As Exception
39 Examples.PrintError(gclib, ex)
40 rc = Examples.GALIL_EXAMPLE_ERROR
43 End Try
44
45 Console.Write(vbCrLf + "Press any key to close the example.")
47
Provides a class that binds to gclib's unmanaged dll. Wraps each call and provides a more user-friend...
Definition gclib.cs:68
GCLIB_DLL_EXPORTED GReturn GCALL GClose(GCon g)
Closes a connection to a Galil Controller.
GCLIB_DLL_EXPORTED GReturn GCALL GOpen(GCStringIn address, GCon *g)
Open a connection to a Galil Controller.
GReturn vector(GCon g, char *file)
Puts controller into Vector Mode and accepts a file defining vector points.
Definition vector.cpp:36
int Main()
Main function for the commands example.