R&S NRP18S Series User Manual page 122

High-power three-path diode power sensors
Hide thumbs Also See for NRP18S Series:
Table of Contents

Advertisement

®
R&S
NRP18S-xx
9.2.2 Triggered Fast Unchopped Continuous Average Measurement
This example, written in pseudo code, shows how to set up and execute a fast unchop-
ped continuous average measurement. The measurement is triggered on each pulse
of a periodic input signal with 10 μs period.
See also
write( 'INIT:CONT OFF' )
write( 'ABORT' )
write( '*RST' )
# Enable fast unchopped continuous average measurement
write( 'SENS:POW:AVG:FAST ON' )
# Define output format (float)
write( 'FORM:DATA REAL,32' )
# Trigger on signal (here 0 dBm pulses with 100 kHz pulse freq.)
write( 'TRIG:SOUR INT' )
write( 'TRIG:LEV -15 DBM' )
write( 'TRIG:HYST 1' )
# Select the maximum possible buffer size
BUFFER_SIZE_MAX = query( 'BUFF:SIZE? MAX' )
write( 'BUFF:SIZE ' + BUFFER_SIZE_MAX )
write( 'BUFF:STAT ON' )
# In this setting, trigger count needs to be the same as buffer size
write( 'TRIG:COUN ' + BUFFER_SIZE_MAX )
# Smallest aperture window of the sensor is 10 us. However, for
# the fast measurement, you can set the aperture as low as 8 us in order
# to reliably detect each rising edge of a pulsed signal.
# In fact in triggered measurement, the aperture time should be 1 us less than the
# pulse period.
# With a 10 us periodic pulse input, this results in
# continuously acquiring 100000 meas/sec
write( 'SENS:POW:AVG:APER 8.5e-6' )
# Any errors occurred?
query( 'SYST:ERR:ALL?' )
# Start the configured (= triggered) continuous measurement
write( 'INIT:CONT ON' )
# Let the sensor measure for 10 seconds
timeEnd = time.now() + 10.0
numData = 0
while (time.now() < timeEnd )
User Manual 1178.3686.02 ─ 05
Performing Measurement Tasks - Programming Examples
Performing the Fastest Measurement in Continuous Average Mode
[SENSe<Sensor>:][POWer:][AVG:]FAST
on page 72.
122

Advertisement

Table of Contents
loading

Table of Contents