

#idString KEITHLEY INSTRUMENTS,MODEL 2280S-32-6,
#name Keithley 2280S-32-6
#handle K2280
#port 5025 LXI

; A list of possible column name with unit and formatter (SI, Time, Int, D0..D6)
#value Current A SI 
#value Voltage V D5

; 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 fetch?;:output:state?

; Format of answer: f=float, u=remove trailing letters, x=skip, *=Zero upper case values if this value is 0
#askValuesReadFormat UUx*

; Accept this delay when reading values (seconds)
#readingDelay 3

; Mode change have a longer delay on reading values (seconds)
;#modeChangeDelay 10

; 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 




; 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 




; Prepare the meter to response to #askValues
;#prepareSample arm:sour imm;:arm:count 1;:trig:sour imm;:trig:count 1;:trig:samp:count 1;init


; Initial commands to meter when establishing connection
#initCmd  


; Final command to meter before breaking connection
#finalCmd :output:state 0;:syst:local

#outputOff :output:state 0;


#interfaceType PS
#interface setVoltage volt (value)
#interface setCurrent curr (value)
#interface setOVP volt:prot (value)
#interface setOCP curr:prot (value)

#interface setOn :output:state (value)
#interface getVoltage volt?
#interface getCurrent curr?
#interface getOVP volt:prot?
#interface getOCP curr:prot?

#interface getOn :output:state?
#interface readCurrent 0
#interface readVoltage 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 




; Setup menu functions
; The parameters on the first line is: type name page 
; Settings on the following lines are:
; read: SCPI to read value from device, is used to synchronize when opening setup page or setting equal named fields. Not always used
; readformat: Parse read value.
; write: Send the value to device, this field is used in combination with data fields in the details to send updates to device.
; tip: Add this tip to all components for this input field.
#cmdSetup radio Voltage Main
:read: volt?
:readFormat: u
:write: volt
:tip: Setup this voltage, turn output on
3.3V 3.3
5V 5.0
12V 12.0
24V 24.0


#cmdSetup radio Current Main
:read: curr?
:readFormat: f
:write: curr
:tip: Output will current limit at this current
30mA 0.03
100mA 0.1
300mA 0.3
1A 1.0
3A 3.0


#cmdSetup buttonsOn Output Main
:read: :output:state?
:write: :OUTPut:PROTection:CLEar;:output:state
:tip: Turn output on or off
:updatealloff:
Off 0
On 1


#cmdSetup number Voltage Main
:read: volt?
:readFormat: f
:write: volt
:tip: Setup this voltage, do not turn output on/off
Volt 0 30


#cmdSetup number Current Main
:read: curr?
:readFormat: f
:write: curr
:tip: Setup this current, do not turn output on/off
Amps 0.01 6


#cmdSetup number OverVoltage Main
:read: volt:prot?
:readFormat: f
:write: volt:prot
:tip: Output will turn off if it is above this voltage
Volt 1 33

#cmdSetup number OverCurrent Main
:read: curr:prot?
:readFormat: f
:write: curr:prot
:tip: Output will turn off if it is above this current
Amps 0.1 6.1



#cmdSetup radio SlewrateRaising Slewrate
:read: VOLT:SLEW:RIS?
:readFormat: f
:write: VOLT:SLEW:RIS
:tip: How fast the output voltage will increase when turned on
10V/s  10 
100V/s 100
1000V/s 1000

#cmdSetup radio SlewrateFalling Slewrate
:read: VOLT:SLEW:FALL?
:readFormat: f
:write: VOLT:SLEW:FALL
:tip: How fast the output voltage will decrease when output is turned off
10V/s  10 
100V/s 100
1000V/s 1000


#cmdSetup number SlewrateRaising Slewrate
:read: VOLT:SLEW:RIS?
:readFormat: f
:write: VOLT:SLEW:RIS
:tip: How fast the output voltage will increase when turned on
V/s 10 1000

#cmdSetup number SlewrateFalling Slewrate
:read: VOLT:SLEW:FALL?
:readFormat: f
:write: VOLT:SLEW:FALL
:tip: How fast the output voltage will decrease when output is turned off
V/s 10 1000


