2 ''' Provides a
class of shared constants And methods for
gclib's example projects.
5 Public Const GALIL_EXAMPLE_OK As Integer = 0
6 Public Const GALIL_EXAMPLE_ERROR = -100
9 ''' Prints the exception to the console And queries the controller
for the most recent
12 ''' <param name=
"gclib">The
gclib object from where the exception originated.</param>
13 ''' <param name=
"ex">The exception
object caught by the example.</param>
14 ''' <remarks>See commands_example.cs
for an example.</remarks>
16 Console.WriteLine(ex.Message)
18 'If exception was Not a GOpen() exception, safe to query
19 'the controller
for a human readable
error string
20 If Not ex.Message.Contains(
"-1101") Then
string GCommand(string Command, bool Trim=true)
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 message(GCon g)
Demonstrates how to receive messages from the controller and detect differences in Trace and crashed ...
void error(GCon g, GReturn rc)
An example of error handling and debugging information.
void PrintError(Gclib gclib, Exception ex)
Prints the exception to the console And queries the controller for the most recent error message.