Performing Measurement Tasks - Programming Examples
R&S
®
NRPxxA(N)
129
User Manual 1177.6017.02 ─ 05
//Disable auto averaging
SENSe:AVERage:COUNt:AUTO OFF
//Enable the fast unchopped continuous average measurement
SENSe:POWer:AVG:FAST ON
//Set the buffer size and enable the buffer
SENSe:BUFFer:SIZE 8192
SENSe:BUFFer:STATe ON
//Set the data format to real
FORMat:DATA REAL
//Initiate a continuous measurement
INITiate:CONTinuous ON
//Set a suitable sleep time.
//In order to achieve the maximum measurement speed,
//the buffer level should never reach the buffer size.
//But, the results should also not be fetched too fast.
//Therefore a sleep time between two consecutive
//SENS:POW:AVG:BUFF:DATA? queries is meaningful.
//Since the sensor reaches approximately 50000 measurements per second
//in this setup, 50...80 ms is a suitable sleep time.
//Then you'll get 2500...4000 measurements per SENS:POW:AVG:BUFF:DATA? query
// (--sleep 60 ms--).
//Fetch available results
SENS:POW:AVG:BUFF:DATA?
Stop the continuous measurement.
INITiate:CONTinuous OFF
Fastest Measurement for Counting Pulses
*RST
//Select the internal trigger source and set the trigger level
TRIG:SOUR INT
TRIG:LEV 0.0001
//Disable auto averaging
SENSe:AVERage:COUNt:AUTO OFF
//Enable the fast unchopped continuous average measurement
SENSe:POWer:AVG:FAST ON
//Set the aperture time
Performing the Fastest Measurement in Continuous Average Mode