Configurable Turn Table: Difference between revisions
Line 31: | Line 31: | ||
== Order of executed commands == | == Order of executed commands == | ||
This section describes which commands from the {{PAGENAME}} are transmitted to the device, when a specific operation in {{RadiMation}} is performed. | This section describes which commands from the {{PAGENAME}} are transmitted to the actual device, when a specific operation in {{RadiMation}} is performed. | ||
=== Check device === | === Check device === | ||
When a check for the connection to the device is performed, the following actions are performed: | When a check for the connection to the device is performed, the following actions are performed: |
Revision as of 08:16, 5 April 2022
The Configurable Turn Table device driver is a Turn Table which is supported by RadiMation®. It can be used to control other measurement equipment, for which no RadiMation device driver is available yet. The Configurable Turn Table allows to manual create a device driver to control a Turn Table. The configured device driver can then be used in RadiMation, and the Turn Table can thus be used in immunity and emission tests.
Configurable commands[edit]
Reset | The reset code that needs to be send to device. When left blank, no command will be send. |
Init | The command that is send to initialize the configured device. When left blank no command will be send. |
Get Id | The command that is send to retrieve the ID of the device. This is used to check if the device is connected. A commonly used SCPI command is: *IDN?. When left blank, no command will be send. |
Returned ID | The identifier is used to check if the correct device driver is selected and the device is connected. Leaving this blank, will skip the device check. |
Deinit | Specifies the command that is send when the device is no longer controlled. This can for example be used to put the measurement device is an intrinsic safe state. Leaving this blank, will keep the device in its last state after controlling it. |
Wait for Completion after sending command | The checkmark can be enabled so RadiMation® will wait for all the commands to complete, before it continues. This is done by sending SCPI command *OPC? to the device. |
Goto angle | The command that should be send to turn the turn table. The command must include the keyword __angle__, __degree__ or __radian__, which will be replaced by the desired destination angle for the turntable. |
Current Angle | This is the command to request the current angle of the device. |
Goto angle format | This is a regular expression to obtain the current angle from the response of the Current angle command. See regular expression examples below. |
Movement ready | This is the command to request the current status of the turn table. This command is used to determine if the turntable is ready with the movement to the destination angle. |
Movement ready response | This should be the response from the device when the turntable is not moving/rotating anymore. |
Stop | This is the command to abort/stop any rotation. |
Order of executed commands[edit]
This section describes which commands from the Configurable Turn Table are transmitted to the actual device, when a specific operation in RadiMation® is performed.
Check device[edit]
When a check for the connection to the device is performed, the following actions are performed:
- A connection to the device is opened.
- If no Returned ID is specified, no actual check is performed, and it is assumed that the device is connected. Otherwise:
- The command specified at Get ID is transmitted (if specified), and the response is read.
- The response is compared to the value specified in Returned ID, if the response (partially or as a regular expression) matches, the device is assumed to be connected.
- The connection to the device is closed.
Device is initialised[edit]
When a device is initialised to be controlled from RadiMation®, the following actions are performed:
- A connection to the device is opened.
- The command specified at Reset is transmitted (if specified).
- The command specified at Init is transmitted (if specified).
Device is deinitialised[edit]
When a device is deinitialised, the following actions are performed:
- The command specified at Deinit is transmitted (if specified).
- The connection to the device is closed.
Regular expression examples[edit]
Received information | Regex | RadiMation Readout | Note |
---|---|---|---|
U_L_N 325 | (-?[0-9.,Ee-]+) | 325 | Takes the first number. |
I_L1;12.34 | ;(-?[0-9.,Ee-]+) | 12.34 | Takes the first number after ";". |
THD_U_L1;;14,5 | ;;(-?[0-9.,Ee-]+) | 14.5 | Takes the first number after ";;". |
AC_FREQ;Channel1;1.23E3 | ;.*;(-?[0-9.,Ee-]+) | 1230 | Takes the first number after the appearance of a second ";". |