Difference between revisions of "Configurable Turn Table"

From RadiWiki
Jump to: navigation, search
(Configurable commands)
(Order of executed commands)
Line 36: Line 36:
 
# A connection to the device is opened.
 
# A connection to the device is opened.
 
# If no {{ScreenElement|Returned ID}} is specified, no actual check is performed, and it is assumed that the device is connected. Otherwise:
 
# If no {{ScreenElement|Returned ID}} is specified, no actual check is performed, and it is assumed that the device is connected. Otherwise:
## The {{ScreenElement|Get ID}} is transmitted (if specified), and the response is read.
+
## The command specified at {{ScreenElement|Get ID}} is transmitted (if specified), and the response is read.
 
## The response is compared to the value specified in {{ScreenElement|Returned ID}}, if the response (partially or as a regular expression) matches, the device is assumed to be connected.
 
## The response is compared to the value specified in {{ScreenElement|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.
 
# The connection to the device is closed.
Line 43: Line 43:
 
When a device is initialised to be controlled from {{RadiMation}}, the following actions are performed:
 
When a device is initialised to be controlled from {{RadiMation}}, the following actions are performed:
 
# A connection to the device is opened.
 
# A connection to the device is opened.
# The {{ScreenElement|Reset}} is transmitted (if specified).
+
# The command specified at {{ScreenElement|Reset}} is transmitted (if specified).
# The {{ScreenElement|Init}} is transmitted (if specified).
+
# The command specified at {{ScreenElement|Init}} is transmitted (if specified).
  
 
=== Device is deinitialised ===
 
=== Device is deinitialised ===
 
When a device is deinitialised, the following actions are performed:
 
When a device is deinitialised, the following actions are performed:
# The {{ScreenElement|Deinit}} is transmitted (if specified).
+
# The command specified at {{ScreenElement|Deinit}} is transmitted (if specified).
 
# The connection to the device is closed.
 
# The connection to the device is closed.
  

Revision as of 08:15, 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

Configurable Turn Table Configuration Window.png


ScreenElementDescription.png Reset The reset code that needs to be send to device. When left blank, no command will be send.
ScreenElementDescription.png Init The command that is send to initialize the configured device. When left blank no command will be send.
ScreenElementDescription.png 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.png 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.png 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.png 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.png 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.png Current Angle This is the command to request the current angle of the device.
ScreenElementDescription.png 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.
ScreenElementDescription.png 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.png Movement ready response This should be the response from the device when the turntable is not moving/rotating anymore.
ScreenElementDescription.png Stop This is the command to abort/stop any rotation.


Order of executed commands

This section describes which commands from the Configurable Turn Table are transmitted to the device, when a specific operation in RadiMation® is performed.

Check device

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

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

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.

Regular expression examples

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 ";".