beautypg.com

Examples of using the scpi commands, Vi mode example, Ovp setup example – AMETEK SFA Series Ethernet Programming User Manual

Page 115

background image

SG Series Programming

SCPI Command Operation

M550129-03 Rev K

6-43

Command

Description

SCPI

:ARM

Readies the last loaded sequence to run when the external Hardware
Trigger signal is issued.
1 = Ready to run sequence when Hardware trigger is engaged.
0 = Not Armed, Hardware trigger is ignored

NOTE: To arm a different sequence, issue the HTRIG:SEQ
command first.

N

:ARM?

Returns the ready status of the last loaded sequence.
1 = Ready to run sequence when Hardware trigger is engaged.
0 = Not Armed, Hardware trigger is ignored
NOTE: To load a new sequence to be armed you must issue the
HTRIG:SEQ command first.

N

6.14

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).

6.14.1

VI Mode Example

Program a unit with no load at the output to 5 VDC @ 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).

SOUR:VOLT 5.0

// program output voltage to 5.0 VDC.

SOUR:VOLT?

// confirm the output voltage setting (response: 5.0).

MEAS:CURR?

// measure the actual output current (response: ~ 0.0 with no load
on output).

MEAS:VOLT?

// measure the actual output voltage (response: ~ 5.0).

6.14.2

OVP Setup Example

Program a unit with no load at the output to generate a GPIB service
request upon an overvoltage protection trip condition. (Must use GPIB
not RS232.)

// Use

SYST:ERR?

after each command to verify no programming errors.

// assure that PON is not selected on the rear panel switch.

// Turn on the unit.