11 Polarization Navigator AutomationThe polarizationNAVIGATORTM can be remotely controlled by sendinghuman-readable commands and receiving a response from the software.There are virtual devices you can communicate with, so-called ”Targets”.As an example, you can send the following command to the target Global:Get VersionThe response will look like:Version 2.53 (1315), Built on Feb 22 2006 16:14:01You can use the test program PolNavClientTest.exe (you can find it inUse PolNavClientTest.exe totest the automationinterface.the Start-Menu) to communicate with the polarizationNAVIGATORTM.Please note that the polarizationNAVIGATORTM has to be started beforeyou can communicate.You can minimize the polarizationNAVIGATORTM to the system-Minimize thepolarizationNAVIGATORTMto the system-tray.tray on the lower-right side of the desktop: Right-click on the taskbar entry and select ”Minimize To Tray”. You can also move thepolarizationNAVIGATORTM to your Autostart folder. In that case, thepolarizationNAVIGATORTM will be started automatically when you lo-gin. If you select ”Minimize to system-tray on startup” from the Optionsmenu, the polarizationNAVIGATORTM will be minimized automaticallyto the tray.11.1 Polarization Navigator Automation: Command Line ToolYou can use the command line tool PolNavSendCommand.exe for sendingcommands to the polarizationNAVIGATORTM. During the installationprocess, this file is placed into the system directory, so you don’t have toset a path to access it.For example, start the polarizationNAVIGATORTM and type the follow-ing command at the command line:polnavsendcommand Global "Get Version"The response will look like:Version 2.53 (1315), Built on Feb 22 2006 16:14:01You can print the result code on the command line using the standardvariable ERRORLEVEL:echo %ERRORLEVEL%The communication is implemented using a DLL which can be calledfrom any software which supports DLL calls such as LabView, MATLAB,Visual C++ or Visual Basic.In the directory Examples/PolNavSendCommand VisualC++7.0 SourceCodein the program folder, you can find the source code to the command linetool and see how the DLL-calls can be implemented.86 A1XXX/A2XXX/A3XXX User Guide