beautypg.com

AMETEK SFA Series Ethernet Programming User Manual

Page 129

background image

SG Series Programming

SCPI Command Operation

M550129-03 Rev K

6-57

EXAMPLE 6

This example shows how to make an infinite loop for the creation of a continuous square
wave:

Issue

*RST

to establish a known state.

PROG:NAME “Square Wave”

PROG:MALL DEFAULT

PROG:DEF 1, VIMODE, 0, 5, 15, 0.5

//go to 0 volts, 5 amps, 15 volts ovp, for

0.5 seconds

PROG:DEF 2, VIMODE, 10,5,15,0.5

//go to 10 volts, 5 amps, 15 volts ovp, for

0.5 seconds

PROG:DEF 3,GOTO, “Square Wave”

//go to top of this sequence and loop

indefinitely)

PROG:STAT COMPLETE

PROG:SAVE:SEL

PROG:STAT?

Response: Ram[110]=“STOPPED”,Slave[110]=”STOPPED”

OUTP:STAT ON

PROG:STAT RUN

The output for Example 6 should look something like the following:

Figure 6-6. Power Supply Output for Example 6

etc…