Front panel operation 9
Programming examples: outputting and reading back V and I
The following command sequences demonstrate how to output voltage and current, and read
back (measure) the actual voltage and current:
Battery channel (#1)
Charger channel (#2)
Command
Description
VOLT 5
‘ Set output voltage to 5V.
SENS:CURR:RANG:AUTO ON
‘ Enable auto range for current.
CURR 750e-3
‘ Set current limit to 750mA.
CURR:TYPE TRIP
‘ Select Trip mode for current limit.
SENS:FUNC ‘VOLT’
‘ Select the voltage measurement function.
SENS:NPLC 2
‘ Set integration rate to 2 PLC.
SENS:AVER 5
‘ Set average reading count to 5.
OUTP ON
‘ Turn on the power supply output.
READ?
‘ Trigger 5 voltage measurement conversions and
return the average of those 5 conversions. The average
reading is displayed on the front panel.
SENS:FUNC ‘CURR’
‘ Select current measurement function.
READ?
‘ Trigger 5 current measurement conversions and return
the average of those 5 conversions. The average of the
5 readings is displayed on the front panel.
Command
Description
SOUR2:VOLT 5
‘ Set output voltage to 5V.
SENS2:CURR:RANG:AUTO ON
‘ Enable auto range for current.
SOUR2:CURR 750e-3
‘ Set current limit to 750mA.
SOUR2:CURR:TYPE LIM
‘ Select LIM mode for current limit.
SENS2:FUNC ‘VOLT’
‘ Select the voltage measurement function.
SENS2:NPLC 4
‘ Set integration rate to 4 PLC.
SENS2:AVER 4
‘ Set average reading count to 4.
OUTP2 ON
‘ Turn on the power supply output.
READ2?
‘ Trigger 4 voltage measurement conversion and return
the average of those 4 conversions.
SENS2:FUNC ‘CURR’
‘ Select current measurement function.
READ2:ARR?
‘ Trigger 4 current measurement conversions and
return all 4 conversions. The average of the 4 readings
is displayed on the front panel.