Basic Power Supply Operation 2-15
Programming examples
Outputting and reading back V and I
The following command sequence demonstrates how to output voltage and current, and read
back (measure) the actual voltage and current:
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.
SENS:FUNC ‘CURR’ ‘ Select current measurement function.
READ? ‘ Trigger 5 current measurement conversions and
return the average of those 5 conversions.
DVM measurements
The following command sequence demonstrates how to measure voltage applied to the DVM
input of the power supply:
SENS:FUNC ‘DVM’ ‘ Select the DVM Input function.
SENS:NPLC 5 ‘ Set integration rate to 5 PLC.
SENS:AVER 10 ‘ Set average reading count to 10.
READ:ARR? ‘ Trigger and return 10 readings.