

#idString AGILENT,U1213A,
#name Keysight U1213A
#handle K1213
#port com
#driver KeysightDMM
#baudrate 9600
#author WS


; A list of possible column name with unit and formatter (SI, Time, Int, D0..D6)
#value VoltageDC V d5 VOLT,DIOD
#value VoltageAC V d4 VOLT:AC
#value VoltageACDC V d4 VOLT:ACDC
#value CurrentDC A si CURR
#value CurrentAC A si CURR:AC
#value CurrentACDC A si CURR:ACDC
#value Resistance ohm si RES,CONT
#value Capacitance F si CAP
#value Temperature °C d1 TEMP:K
#value Frequency Hz si FREQDC,FREQAC
#value Period s si PWIDDC,PWIDAC
#value DutyCycle % D2 DUTYDC,DUTYAC
#value Conductance S SI nS

; How to poll for data, this is used for table and #values?
; a #askMode, #cmdMode and #prepareSample is used before this is string is used.
; This is a single line command
#askValues FETC?

; String to ask about actual meter mode,
; This is a single line command
#askMode CONF?
#askModeMathFormat (value=="\"RES,8\"")?"nS":getElement(unQuote(value),0,",")+getElement(unQuote(value),2,",");

#interfaceType DMM
#interface readValue 0


; Strings to configure device in different modes, using these forces a mode check/change
; When used to select mode first parameter must match a #value (4 parameter) and second parameter must match what #askMode returns
; It can also be used for just checking the mode, then the #value (4 parameter) must match what #askMode returns
; First parameter is also used in shortcut menu
#cmdMode Check_mode _ _



