2 Function
Main() As Integer
3 Dim rc As Integer =
Examples.GALIL_EXAMPLE_OK
4 Dim
gclib As Gclib = New Gclib()
5 Dim args() As String = Environment.GetCommandLineArgs()
7 If args.Count <> 2 Then
8 Console.WriteLine("Incorrect number of arguments provided")
9 Console.WriteLine("Usage: message_example.exe <ADDRESS>")
11 Console.Write(vbCrLf + "Press any key to close the example.")
16 Dim address As String = args(1) 'Retrieve address from command line
18 ' Opens a connection at the provided address
19 ' The --subscribe MG addition Is needed to subscribe to
31 Console.Write(vbCrLf + "Press any key to close the example.")
Provides a class that binds to gclib's unmanaged dll. Wraps each call and provides a more user-friend...
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.
void PrintError(Gclib gclib, Exception ex)
Prints the exception to the console And queries the controller for the most recent error message.