- en
- ru
Table of Contents
Spectrometer control through command language
Each program element is available spectrometer (engine, temperature controller, etc.) with TZ program is a “device” with its own set of commands. These teams form the lowest level of control (above are “library operations spectrometer” and complete “measurement program”). This layer implements the full capabilities of devices, including, for manual operation. For manual operation through command language, there are two possibilities:
- Via PythonWin task (in this case, loading the GUI is not required)
- With the help of the Mds (manual device interface)
Manual control via task PythonWin
PyhonWin is an editor for Windows, adapted to work in Python, who after starting as follows
Before actually entering commands to load the library spectrometer using the “from <name sektrometra> _lib import *”, for example REMUR this team looks like “from remur_lib import *”. Putting all the teams here and later terminated by pressing “Enter”.
Next you need to connect to the database of the spectrometer, for example, “comm_dll.connect ('Test')”.
You can then proceed directly to the management. For example, you need to specify the position of the axis of 1.0 P1_beta. Enter the name of the device and the point. This editor tells what commands are available for this class of devices.
Selects Set (by pressing Tab). Next, type an open parenthesis and editor tells us a list of command options. The first parameter of “self” - feature of the Python language and it should be ignored.
Locator, bury the brackets and press “Enter”, run the command for execution. If successful, the team receives the message (0, <line diagnostics>), otherwise (1 <error>).
Check the current position can be similarly P1_beta using the Get or program Reflector.
Manual operation with the help of the Mds (manual device interface)
Mds panel is part of a universal GUI as a tab page Manual, and may also be called as a separate window.
Differences when using this window from the previous case are as follows. Connection to Varman and import of the instriment library are performed automatically. Left drop-down listof widget contains a list of devices. After selecting a device, the user will get a possibility to select from the right list approptiate command. Then he has to replace the parameter names to desired values and press “Enter”. During the execution Break, Suspend and Continue actions will be available.