Advertisement
maukkae

TestController Rigol DP811A setup file

Apr 1st, 2020
503
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.98 KB | None | 0 0
  1. #idString RIGOL TECHNOLOGIES,DP811A,
  2. #name Rigol DP811A
  3. #handle DP811A
  4. #port 5555
  5. #author maukka
  6.  
  7. ; A list of possible column name with unit and formatter (SI, Time, Int, D0..D6)
  8. #value Voltage V D3
  9. #value Current A D3
  10. #value Power W D3
  11. #value VoltageSet V D3
  12. #value CurrentSet A D3
  13.  
  14. ; How to poll for data, this is used for table and #values?
  15. ; a #askMode, #cmdMode and #prepareSample is used before this is string is used.
  16. ; This is a single line command
  17. #askValues :MEASURE:VOLTAGE?;:MEASURE:CURRENT?;:MEASURE:POWER?;:VOLT?;CURRENT?
  18.  
  19. ; Format of answer: f=float, u=remove trailing letters, x=skip
  20. #askValuesReadFormat
  21.  
  22. ; Accept this delay when reading values (seconds)
  23. ;#readingDelay 2
  24.  
  25. ; Mode change have a longer delay on reading values (seconds)
  26. ;#modeChangeDelay 10
  27.  
  28. ; Switch meter to this mode during start, leave empty to avoid any switching
  29. #initialMode
  30.  
  31. ; String to ask about actual meter mode,
  32. ; This is a single line command
  33. #askMode
  34.  
  35. ; When one of these commands are used through the command interface a new configuration will be done before using #askMode
  36. ; Only one word for each #mayModifyMode
  37. ; Specify command without initial colon and in the shortest possible form
  38. ;#mayModifyMode
  39.  
  40.  
  41.  
  42. ; Prepare the meter to response to #askValues
  43. #prepareSample
  44.  
  45.  
  46. ; Initial commands to meter when establishing connection
  47. #initCmd
  48.  
  49.  
  50. ; Final command to meter before breaking connection
  51. #finalCmd :SYSTEM:LOCAL
  52. ; :OUTP OFF;:VOLT 1;:CURRENT 0;
  53.  
  54. #outputOff :OUTP OFF
  55.  
  56.  
  57. #interfaceType PS
  58. #interface setVoltage :VOLT (value)
  59. #interface setCurrent :CURRENT (value)
  60. interface setOn :OUTPUT (value)
  61. #interface getVoltage :VOLT?
  62. :readFormat: f
  63. #interface getCurrent :CURRENT?
  64. :readFormat: f
  65. #interface getOn :OUTPUT:STAT?
  66. #interface readVoltage 0
  67. #interface readCurrent 1
  68.  
  69.  
  70.  
  71. ; Strings to configure device in different modes
  72. ; First parameter must match a #value (4 parameter) and second parameter must match what #askMode returns
  73. ; First parameter is also used in shortcut menu
  74. ;#cmdMode
  75.  
  76. ; Setup menu functions
  77. ; The parameters on the first line is: type name page
  78. ; Settings on the following lines are:
  79. ; read: SCPI to read value from device, is used to synchronize when opening setup page or setting equal named fields. Not always used
  80. ; readformat: Parse read value.
  81. ; write: Send the value to device, this field is used in combination with data fields in the details to send updates to device.
  82. ; tip: Add this tip to all components for this input field.
  83.  
  84. #cmdSetup radio Range Main
  85. :write: :OUTPUT:RANGE
  86. :read: :OUTPUT:RANGE?
  87. :readFormat:
  88. :readmath: getElement("LOW HIGH",listIndex(value,"20V/10A 40V/5A"," ")," ")
  89. :string:
  90. :update: Output
  91. :updatedelayed: 0.3
  92. 20V_10A LOW
  93. 40V_5A HIGH
  94.  
  95.  
  96. #cmdSetup buttonsOn Output Main
  97. :read: :OUTPUT?
  98. :write: :OUTPUT
  99. :readmath: getElement("OFF ON",listIndex(value,"OFF ON"," ")," ")
  100. :string:
  101. :tip: Turn output on or off
  102. :updatealloff:
  103. :update: Output
  104. :updatedelayed: 0.3
  105. Off OFF
  106. On ON
  107.  
  108.  
  109. #cmdSetup radio Voltage Main
  110. :read: :VOLT?;
  111. :readFormat:
  112. :write: :VOLT #
  113. :tip: Setup this voltage
  114. 4.2V 4.2
  115. 5V 5.0
  116. 12V 12.0
  117. 24V 24.0
  118.  
  119.  
  120. #cmdSetup radio Current Main
  121. :read: :CURRENT?
  122. :readFormat:
  123. :write: :CURRENT
  124. :tip: Output will current limit at this current
  125. 100mA 0.1
  126. 300mA 0.3
  127. 1A 1.0
  128. 3A 3.0
  129. 5A 5.0
  130.  
  131.  
  132. #cmdSetup radio RemoteSense Main
  133. :read: :OUTPUT:SENSE?
  134. :write: :OUTPUT:SENSE
  135. :readmath: getElement("OFF ON",listIndex(value,"OFF ON"," ")," ")
  136. :string:
  137. :tip: Use sense wires to get exact voltage at target
  138. Off OFF
  139. On ON
  140.  
  141.  
  142. #cmdSetup number Voltage Main
  143. :read: :VOLT?
  144. :readformat: f
  145. :write: :VOLT
  146. :tip: Setup this voltage, do not turn output on/off
  147. Volt 0 40
  148.  
  149.  
  150. #cmdSetup number Current Main
  151. :read: :CURRENT?
  152. :readformat: f
  153. :write: :CURRENT
  154. :tip: Setup this current, do not turn output on/off
  155. Amps 0.0001 10
  156.  
  157.  
  158. #cmdSetup number OVP Limits
  159. :read: :VOLT:PROT?
  160. :readformat: f
  161. :write: :VOLT:PROT #;:VOLT:PROT:STAT ON
  162. :tip: Output will turn off if it is above this voltage
  163. Volt 1 40
  164.  
  165. #cmdSetup radio OVP Limits
  166. :read: :VOLT:PROT:STAT?
  167. :string:
  168. :write: :VOLT:PROT:STAT
  169. :tip: Turn over voltage protection (OVP) on or off
  170. Off OFF
  171. On ON
  172.  
  173. #cmdSetup number OCP Limits
  174. :read: :CURRENT:PROT?
  175. :readformat: f
  176. :write: :CURRENT:PROT #;:CURRENT:PROT:STAT ON
  177. :tip: Output will turn off if it is above this current
  178. Amps 0.01 10
  179.  
  180. #cmdSetup radio OCP Limits
  181. :read: :CURRENT:PROT:STAT?
  182. :string:
  183. :write: :CURRENT:PROT:STAT
  184. :tip: Turn over current protection (OCP) on or off
  185. Off OFF
  186. On ON
  187.  
  188.  
  189.  
  190. #cmdSetup radio Display Display
  191. :read: :DISPLAY?
  192. :string:
  193. :write: :DISPLAY
  194. :tip: Turn the front panel off and on
  195. Off OFF
  196. On ON
  197.  
  198.  
  199. #cmdSetup radio Display_brightness Display
  200. :read: :SYSTEM:BRIGHTNESS?
  201. :write: :SYSTEM:BRIGHTNESS
  202. :tip: Adjust the front panel brightness
  203. Min 1
  204. 25% 25
  205. 50% 50
  206. Max 100
  207.  
  208.  
  209. #cmdSetup radio Display_mode Display
  210. :read: :DISPLAY:MODE?
  211. :string:
  212. :write: :DISPLAY:MODE
  213. :tip: Set the front panel display mode
  214. Normal NORMAL
  215. Waveform WAVE
  216. Dials DIAL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement