
#idString FLUKE,8845A,
#name Fluke 8845A
#handle F8845
#port 3490

; A list of possible column name with unit and formatter (SI, Time, Int, D0..D6)
#value VoltageDC V d5 VDC,VDCfast,d
#value CurrentDC A si ADC,ADC10A
#value VoltageAC V d4 VAC
#value CurrentAC A si AAC,AAC10A
#value Resistance ohm si ohm,ohm4
#value Frequency Hz si hz
#value Period s si Period

; 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 FETCH3?

; Switch meter to this mode during start, leave empty to avoid any switching
#initialMode 

; String to ask about actual meter mode, 
; This is a single line command
#askMode func?

; When one of these commands are used through the command interface a new configuration will be done before using #askMode
; Only one word for each #mayModifyMode
; Specify command without initial colon and in the shortest possible form
#mayModifyMode conf
#mayModifyMode meas
#mayModifyMode abor
#mayModifyMode trig

#interfaceType DMM BMM
#interface readValue 1

; Strings to configure device in different modes
; First parameter must match a #value (4 parameter) and second parameter must match what #askMode returns
; First parameter is also used in shortcut menu

#cmdMode VDC VOLT
*cls;
CONF:VOLT:DC
sense:voltage:dc:nplc 10;

#cmdMode VDCfast VOLT
*cls;
CONF:VOLT:DC
sense:voltage:dc:nplc 0.1;


#cmdMode VAC VOLT:AC
*cls;
conf:volt:ac

#cmdMode ohm RES
*cls;
conf:res
sense:res:nplc 10;


#cmdMode ohm4 FRES
*cls;
conf:fres
sense:fres:nplc 10;

#cmdMode d diod
*cls;
conf:diod

#cmdMode hz FREQ
*cls;
conf:freq

#cmdMode ADC CURR
*cls;
conf:curr:dc def
sense:curr:dc:nplc 10;

#cmdMode AAC CURR:AC
*cls;
conf:curr:ac def

#cmdMode ADC10A CURR
*cls;
conf:curr:dc 10
sense:curr:dc:nplc 10;


#cmdMode AAC10A CURR:AC
*cls;
conf:curr:ac 10

#cmdMode Period PER
*cls;
conf:period

; Prepare the meter to response to #askValues
#prepareSample init

; Initial commands to meter when establishing connection
#initCmd 


; Final command to meter before breaking connection
#finalCmd *cls;*rst;
