Configurable TurnTable

From RadiWiki
Revision as of 19:40, 30 January 2023 by Joro (talk | contribs) (→‎Order of executed commands)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


The Configurable TurnTable 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]

Configurable Turn Table Configuration Window.png


ScreenElementDescription.svg Reset The reset code that needs to be send to device. When left blank, no command will be send.
ScreenElementDescription.svg Init The command that is send to initialize the configured device. When left blank no command will be send.
ScreenElementDescription.svg 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.
ScreenElementDescription.svg 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.
ScreenElementDescription.svg 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.
ScreenElementDescription.svg 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.


ScreenElementDescription.svg 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.
ScreenElementDescription.svg Current Angle This is the command to request the current angle of the device.
ScreenElementDescription.svg Current 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.
ScreenElementDescription.svg 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.
ScreenElementDescription.svg Movement ready response This should be the response from the device when the turntable is not moving/rotating anymore.
ScreenElementDescription.svg Stop This is the command to abort/stop any rotation.


Order of executed commands[edit]

This section describes which commands from the Configurable TurnTable 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:

  1. A connection to the device is opened.
  2. If no Returned ID is specified, no actual check is performed, and it is assumed that the device is connected. Otherwise:
    1. The command specified at Get ID is transmitted (if specified), and the response is read.
    2. 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.
  3. 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:

  1. A connection to the device is opened.
  2. The command specified at Reset is transmitted (if specified).
  3. The command specified at Init is transmitted (if specified).

Device is deinitialised[edit]

When a device is deinitialised, the following actions are performed:

  1. The command specified at Deinit is transmitted (if specified).
  2. The connection to the device is closed.

Retrieve the current angle from the turntable[edit]

When RadiMation® wants to determine the actual angle from the turntable, the following actions are performed:

  1. The command specified at Current Angle is transmitted (if specified), and the response is read.
  2. The response is interpreted using the regular expression specified at Current angle format. The result of the regular expression lookup is converted to a number, and reported back as the actual angle (in degrees) of the turntable to RadiMation®.

Turn the turntable to an angle[edit]

When a turntable in RadiMation is being turned to another angle, the following actions are performed:

  1. The command specified at Goto angle is parsed, and a temporary string replacement is done on the command:
    • Every occurrence of __angle__ is replaced by the numeric value of the destination angle in degrees.
    • Every occurrence of __degree__ is replaced by the numeric value of the destination angle in degrees.
    • Every occurrence of __radian__ is replaced by the numeric value of the destination angle in radians.
  2. The temporarily modified command specified at Goto angle is transmitted.
  3. To determine if the turntable has reached the destination angle or has stopped turning, the following actions are repeated multiple times:
    1. The current angle is retrieved as described at 'Retrieve the current angle from the turntable'
    2. The command specified at Movement ready is transmitted (if specified), and the response is read.
    3. The response is compared to the value specified in Movement ready response, if the response (partially or as a regular expression) matches, the device is assumed to be ready with the movement.
  4. The command specified at Stop is transmitted (if specified).

Regular expression examples[edit]

The Configurable TurnTable uses regular expression on some commands to interpret and parse the response of the actual device.

Some examples are:

Received information Regular expression 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 ";".