Difference between revisions of "Configurable Turn Table"

From RadiWiki
Jump to: navigation, search
(Regular expression examples)
Line 32: Line 32:
  
 
== Regular expression examples ==
 
== Regular expression examples ==
{| class="Regex example table"
+
{|  
 
|-
 
|-
! <div style="text-align: left; direction: ltr; margin-left: 0em;">Received information</div>
+
! Received information
! <div style="text-align: left; direction: ltr; margin-left: 1em;">Regex</div>
+
! Regex
! <div style="text-align: left; direction: ltr; margin-left: 1em;">RadiMation Readout</div>
+
! RadiMation Readout
! <div style="text-align: left; direction: ltr; margin-left: 1em;">Note</div>
+
! Note
 
|-
 
|-
 
| U_L_N 325
 
| U_L_N 325
| <div style="text-align: right; direction: ltr; margin-left: 1em;">(-?[0-9.,Ee-]+)</div>
+
| (-?[0-9.,Ee-]+)
| <div style="text-align: right; direction: ltr; margin-left: 1em;">325
+
| 325
| <div style="text-align: left; direction: ltr; margin-left: 1em;">Takes the first number.</div>
+
| Takes the first number.
 
|-
 
|-
 
| I_L1;12.34  
 
| I_L1;12.34  
| <div style="text-align: right; direction: ltr; margin-left: 1em;">;(-?[0-9.,Ee-]+)</div>
+
| ;(-?[0-9.,Ee-]+)
| <div style="text-align: right; direction: ltr; margin-left: 1em;">12.34
+
| 12.34
| <div style="text-align: left; direction: ltr; margin-left: 1em;">Takes the first number after ";".</div>
+
| Takes the first number after ";".
 
|-
 
|-
 
| THD_U_L1;;14,5
 
| THD_U_L1;;14,5
| <div style="text-align: right; direction: ltr; margin-left: 1em;">;;(-?[0-9.,Ee-]+)</div>
+
| ;;(-?[0-9.,Ee-]+)
| <div style="text-align: right; direction: ltr; margin-left: 1em;">14.5</div>
+
| 14.5
| <div style="text-align: left; direction: ltr; margin-left: 1em;">Takes the first number after ";;".
+
| Takes the first number after ";;".
 
|-
 
|-
 
| AC_FREQ;Channel1;1.23E3
 
| AC_FREQ;Channel1;1.23E3
| <div style="text-align: right; direction: ltr; margin-left: 1em;">;.*;(-?[0-9.,Ee-]+)</div>
+
| ;.*;(-?[0-9.,Ee-]+)
| <div style="text-align: right; direction: ltr; margin-left: 1em;">1230</div>
+
| 1230
| <div style="text-align: left; direction: ltr; margin-left: 1em;">Takes the first number after the appearance of a second ";".
+
| Takes the first number after the appearance of a second ";".
 
|}
 
|}

Revision as of 08:52, 19 April 2018

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 controll a Turn Table. Where the device then can be used in RadiMation. The Turn Table can thus be used for tests.

Initialisation and Check

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.


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