Specifications

SG Series Programming SCPI Command Operation
M550129-03 Rev G 6-49
EXAMPLE 3
Issue *RST to establish a known state.
In this third example, redefine SEQ1 so that it calls SEQ2 as a
subroutine.
To modify SEQ1 requires that it be deleted, and re-written. Overwriting a completed,
existing sequence is not allowed by the SCPI command interface for code readability
reasons. Even though overwriting is not permitted, re-writing is permitted after a sequence
has been deleted. Delete the SEQ1 sequence as follows:
PROG:NAME “SEQ1”
PROG:DEL:SEL
That deletes SEQ1.
Now create a new SEQ1 that calls SEQ2 as a subsequence.
PROG:NAME “SEQ1”
PROG:MALL DEFAULT
PROG:DEF 1, VIMODE, 3, 4, 11, 10 //go to 3 volts, 4 amps, 11 volts ovp, for 10 sec
PROG:DEF 2, RAMPTOV, 3, 5, 4, 11, 10 //ramp from 3 volts to 5 volts in
10 sec
PROG:DEF 3, VIMODE, 5, 4, 11, 10 //hold 5 volts for 10 sec
PROG:DEF 4, RAMPTOV, 5, 3, 4, 11, 10 //ramp from 5 volts to 3 volts in
10 sec
PROG:DEF 5, VIMODE, 3, 4, 11, 10 //hold 3 volts for 10 sec
PROG:DEF 6, SUBCALL, “SEQ2” //call SEQ2 as a subsequence
PROG:DEF 7, VIMODE, 4, 5, 11, 6 //go to 4 volts, 5 amps, 11 volts ovp, for 6
sec
PROG:DEF 8, STOP //stop running the sequence while
the unit remains at the state of the
last command within the
sequence.
PROG:STAT COMPLETE
PROG:SAVE:SEL
PROG:STAT?
Response: Ram[0]=“STOPPED”,Slave[0]=”STOPPED”