beautypg.com

Trigger example – AMETEK SFA Series Ethernet Programming User Manual

Page 116

background image

SCPI Command Operation

SG Series Programming

6-44

M550129-03 Rev K

*CLS

// clear the unit to its power-on default settings.

*RST

// reset the unit.

SOUR:VOLT:PROT 4.0

// program the OVP trip point to 4.0 VDC.

SOUR:VOLT:PROT?

// confirm the OVP trip point setting (response: 4.0).

SOUR:CURR 1.0

// program output current to 1.0 A.

SOUR:VOLT 3.0

// program output voltage to 3.0 VDC.

STAT:PROT:ENABLE 8

// program the unit to report OVP trip.

STAT:PROT:ENABLE?

// confirm that OVP fault is enabled (response: 8).

*SRE 2

// enable the GPIB service request upon a fault.

*SRE?

// confirm the GPIB service request enabled (response 2).

STAT:PROT:EVENT?

// confirm no faults occurred (response: 0).

// confirm that the OVP led and SRQ led is not active.

SOUR:VOLT 7.0

// program output voltage to 7.0 VDC - cause OVP trip!
// confirm that unit issued a GPIB service request (use a serial

poll).

6.14.3

Trigger Example

Program a unit with no load at the output to change its output voltage and
current to 5 VDC @ 1A at the same time.

//

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:TRIG 1.0

// program output current to 1.0 A upon trigger.

SOUR:CURR:TRIG?

// confirm output current set to 1.0 A upon trigger.

SOUR:VOLT:TRIG 5.0

// program output voltage to 5.0 VDC upon trigger

SOUR:VOLT:TRIG?

// confirm output current set to 5.0 VDC upon trigger.

MEAS:CURR?

// measure the actual output current (response: 0.0).

MEAS:VOLT?

// measure the actual output voltage (response: 0.0).

TRIG:TYPE 3

// trigger the unit to implement curr and volt programming.

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

TRIG:ABORT

// turn off trigger mode.