EasyManua.ls Logo

R&S NRP Series - Triggered Fast Unchopped Continuous Average Measurement

R&S NRP Series
185 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Performing measurement tasks - programming examples
R&S
®
NRPxxS(N)
145User Manual 1177.5079.02 ─ 15
10.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 [SENSe<Sensor>:][POWer:][AVG:]FAST on page 94.
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 )
Performing the fastest measurement in continuous average mode

Table of Contents

Other manuals for R&S NRP Series

Related product manuals