Specifications

SCPI Command Operation SG Series Programming
6-48 M550129-03 Rev G
EXAMPLE 2
Issue *RST to establish a known state.
PROG:NAME “SEQ2”
PROG:MALL DEFAULT
PROG:DEF 1, VIMODE,10,4,11,5 //go to 10 volts, 4 amps, 11 volts ovp, for 5
seconds
PROG:DEF 2, RAMPTOV,10,2,4,11,9 //ramp from 10 volts down to 2 volts in 10 seconds
PROG:DEF 3,RETURN
PROG:STAT COMPLETE
PROG:SAVE:SEL
PROG:STAT?
Response: Ram[22]=“STOPPED”,Slave[22]=”STOPPED”
(Notice in this example the sequence is being ended with a RETURN rather than a STOP.
A RETURN is more flexible because it automatically acts like a stop when SEQ2 is run
directly; and yet, if SEQ2 is run as a sub-sequence, then the RETURN shall act as a
statement to return to the calling sequence.)
To run SEQ2 directly, issue the command as before:
OUTP:STAT ON
PROG:STAT RUN
For the running sequence, the power supply output for Example 2 should look like the
following:
Figure 6-2. Power Supply Output for Example 2
Once the ramp goes down to 2 volts, the sequence stops and the unit remains at the state
of the last command within the sequence.
10 volts for 5 sec
Ramp down to 2
volts in 9 sec
Notice that after the RETURN
statement is encountered in this run
of SEQ2, since SEQ2 is being used
as a primary sequence, the RETURN
acts like a STOP statement and stops
running the sequence.