1 Module Vector_Mode_Example
3 Function Main() As Integer
4 Dim rc As Integer = Examples.GALIL_EXAMPLE_OK
5 Dim gclib As Gclib = New Gclib()
6 Dim args() As String = Environment.GetCommandLineArgs()
8 If args.Count() <> 3 Then
9 Console.WriteLine("Incorrect number of arguments provided")
10 Console.WriteLine("Usage: vector_mode_example.exe <ADDRESS> <FILE>")
12 Console.Write(vbCrLf + "Press any key to close the example.")
14 Return Examples.GALIL_EXAMPLE_ERROR
17 Dim address As String = args(1) 'Retrieve address from command line
18 Dim file = args(2) 'Retrieve file from command line
22 rc = Examples.Vector_Mode(gclib, file)
24 Examples.PrintError(gclib, ex)
25 rc = Examples.GALIL_EXAMPLE_ERROR
30 Console.Write(vbCrLf + "Press any key to close the example.")