Advertisement
maukkae

HKJ TestController HP/Agilent 34401A configuration file

Apr 1st, 2020
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1.  
  2. #metadef
  3. #metadef
  4. #name Hewlett-Packard 34401A
  5. #meta
  6.  
  7.  
  8. #idString HEWLETT-PACKARD,34401A,
  9. #name Agilent 34401A
  10. #handle HP34401A
  11. #port com
  12. #baudrate 9600
  13. #author maukka
  14.  
  15. ; A list of possible column name with unit and formatter (SI, Time, Int, D0..D6)
  16. #value VoltageDC V D6 VDC,d
  17. #value CurrentDC A si ADC
  18. #value VoltageAC V D6 VAC
  19. #value CurrentAC A si AAC
  20. #value Resistance ohm si ohm,ohm4
  21. #value Frequency Hz si hz
  22. #value Ratio - d3 Ratio
  23. #value Period s d6 Period
  24.  
  25. ; How to poll for data, this is used for table and #values?
  26. ; a #askMode, #cmdMode and #prepareSample is used before this is string is used.
  27. ; This is a single line command
  28. #askValues READ?
  29.  
  30.  
  31. ; When it gets extra measurements they will be put into the log window.
  32. ; It may be due to a timeout on reading the data or because it receives two lines of data.
  33. ; You can change the timeout with (Default is 1 second)
  34. #readingDelay 5
  35. #modeChangeDelay 10
  36.  
  37.  
  38. ; Switch meter to this mode during start, leave empty to avoid any switching
  39. #initialMode
  40.  
  41.  
  42. ; String to ask about actual meter mode,
  43. ; This is a single line command
  44. #askMode
  45. SENSE:FUNCTION?;[500]
  46.  
  47.  
  48. ; When one of these commands are used through the command interface a new configuration will be done before using #askMode
  49. ; Only one word for each #mayModifyMode
  50. ; Specify command without initial colon and in the shortest possible form
  51. ; #mayModifyMode conf
  52. #mayModifyMode meas
  53. #mayModifyMode abor
  54. #mayModifyMode trig
  55. #mayModifyMode sens
  56. #mayModifyMode func
  57.  
  58.  
  59. #interfaceType DMM
  60. #interface readValue 0
  61.  
  62.  
  63. ; Strings to configure device in different modes
  64. ; First parameter must match a #value (4 parameter) and second parameter must match what #askMode returns
  65. ; First parameter is also used in shortcut menu
  66. #cmdMode VDC VOLT
  67. abort
  68. [500]
  69. *cls
  70. [500];CONF:VOLT:DC;[500]
  71.  
  72.  
  73. #cmdMode VAC VOLT:AC
  74. abort
  75. [500]
  76. *cls
  77. [500];CONF:VOLT:AC;[500]
  78.  
  79.  
  80.  
  81. #cmdMode ohm RES
  82. abort
  83. [500]
  84. *cls
  85. [500];conf:res;[500]
  86.  
  87.  
  88. #cmdMode ohm4 FRES
  89. abort
  90. [500]
  91. *cls
  92. [500];conf:fres;[500]
  93.  
  94.  
  95. #cmdMode d DIOD
  96. abort
  97. [500]
  98. *cls
  99. [500];conf:diod;[500]
  100.  
  101.  
  102. #cmdMode hz FREQ
  103. abort
  104. [500]
  105. *cls
  106. [500];conf:freq;[500]
  107.  
  108.  
  109. #cmdMode Period PER
  110. abort
  111. [500]
  112. *cls
  113. [500];conf:per;[500]
  114.  
  115.  
  116. #cmdMode ADC CURR
  117. abort
  118. [500]
  119. *cls
  120. [500];conf:curr:dc auto;[500]
  121.  
  122.  
  123. #cmdMode AAC CURR:AC
  124. abort
  125. [500]
  126. *cls
  127. [500];conf:curr:ac auto;[500]
  128.  
  129.  
  130. #cmdMode Ratio VOLT:RAT
  131. abort
  132. [500]
  133. *cls
  134. [500];conf:volt:dc:ratio;[500]
  135.  
  136.  
  137. ; Prepare the meter to response to #askValues
  138. #prepareSample
  139. abort
  140. sample:count 1
  141. trig:source imm
  142. trig:count 1
  143. system:remote;[500]
  144.  
  145.  
  146. ; Initial commands to meter when establishing connection
  147. #initCmd
  148. :SYSTEM:REMOTE;[500]
  149.  
  150.  
  151. ; Final command to meter before breaking connection
  152. #finalCmd abort;*cls;*rst;init;system:local
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement