8 scpi example program fragments – Boonton 4530 Peak Power Meter User Manual User Manual
Page 137

4-63
Boonton Electronics
Chapter 4
4530 Series RF Power Meter
Remote Operation
4.8 SCPI EXAMPLE PROGRAM FRAGMENTS.
4.8.1 Pulse Mode Example
- Signal in: 100 microsecond wide periodic pulse waveform, modulating a 1 GHz
carrier. Peak sensor in use, trigger level is valid and results in synchronized trace when viewed in GRAPH mode.
NOTE
When the trigger source is set to Bus or to Bus in combination with a signal source, the READ
command cannot be used. If it is, a trigger deadlock error code is generated. READ is a macro
command which is equivalent to the sequence
ABORt;INITiate;FETCh[:<function>]?
.
a. Using the GPIB bus trigger to initiate a single measurement:
CALC1:MODE pulse
Set for pulse measurement mode
TRIG:SOURce bus
Set trigger source for bus
ABORT
Measurements STOP and triggers go to idle.
INIT:CONT off
Set for single, triggered measurement
INIT:IMMEDIATE
STOP with blank graph and empty readings
{send GET}
One random trace appears in graph mode
FETCH1:ARRAY:MARKER:POWER?
Returns marker-related power reading array.
{send GET}
No effect; measurement is complete.
b. Using the GPIB bus trigger to initiate successive measurements:
CALC1:MODE pulse
Set for pulse measurement mode
SENS1:AVER 1
Make each measurement display independent.. For > 1, succes-
sive triggered traces will be averaged.
TRIG:SOUR bus
Set trigger source for bus
ABORT
Measurements STOP and triggers go to idle.
INIT:CONT on
Continuous measurements subject to signal trigger conditions.
(INIT:IMMEDIATE)
CAN’T USE since INIT:CONT is ON -- Error condition!
{send GET}
One random trace appears in graph mode.
FETCH1:ARRAY:MARKER:POWER?
Returns marker-related power reading array.
{send GET}
New measurement cycle for each trigger.
c. Use an internal signal trigger to initiate a single measurements:
CALC1:MODE pulse
Set for pulse measurement mode
TRIG:SOUR sensor1
Set trigger source for sensor1 input signal
ABORT
Measurements STOP and triggers go to idle.
INIT:CONT off
Set for single, triggered measurement
INIT:IMMEDIATE
Single measurement trace.
FETCH1:ARRAY:MARKER:POWER?
Returns marker-related power reading array. Repeat
INIT:IMMEDIATE
for each additional measurement cycle.