Examples of using the scpi commands, Examples of using the scpi commands -22, 12 examples of using the scpi commands – AMETEK SFA Series Programming Manual User Manual
Page 34
IEEE 488.2 and SCPI Command Operation
Sorensen SF Series
Command Description
SCPI
Q?
:POINt <1|2>
Sets the voltage measurement calibration
point (1 or 2). The actual output voltage is
measured with an external meter.
N
:OUTPut
N
:CURRent
N
:CALCulate
Calculates the value of the gain and offset
for output current.
N
:DAC <0+NR1>
Sets the output of the output current D/A
converter.
N
:GAIN
Sets the value of the gain for the output
current.
N Q
:OFFSet
Sets the value of the offset for the output
current.
N Q
:POINt <1|2>
<0+NRf>
Sets the current output calibration point
(1 or 2). The actual output current is
measured with an external meter.
N
:STORe
Stores the calibration constants in non-
volatile memory.
N
:UNLock
Sets the non-volatile memory available to
store calibration constants. The access
string is “6867”.
N
3.12 Examples of Using the SCPI Commands
The following examples demonstrate programming a power supply to control and to readback
the output using the SCPI commands. The maximum voltage and current output is dependent
on the particular model. The examples list only the SCPI commands; the code required to send
the commands is dependent on the type of language you are using (e.g., C or BASIC) and GPIB
hardware (e.g., National Instruments).
EXAMPLE: Program a unit 1A, and verify the output.
// Use SYST:ERR? after each command to verify no programming errors.
// turn on the unit.
*CLS
// clear the unit to its power-on default settings.
*RST
// reset the unit.
SOUR:CURR 1.0
// program output current to 1.0 A.
SOUR:CURR?
// confirm the output current setting (response: 1.0).
MEAS:CURR?
// measure the actual output current (response: ~ 1.0 with appropriate
load on output).
MEAS:VOLT?
// measure the actual output voltage (response: ~ depends on load).
EXAMPLE: Program a unit with the output shorted to ramp its output current from 5A to 25A in
30 seconds.
// Use SYST:ERR? after each command to verify no programming errors.
3-22 M550292-03
(Programming)