Performing measurement tasks - programming examples
R&S
®
NRPxxS(N)
148User Manual 1177.5079.02 ─ 15
}
10.4 Performing trace measurements
*RST
//Set the sensor's operation mode to trace
SENSe:FUNCtion "XTIMe:POWer"
//Set the carrier frequency
SENSe:FREQuency 1.8e9
//Set the number of points for the trace measurement
//Using 500 points usually represents a good compromise
//between USB transfer speed and resolution
SENSe:TRACe:POINTs 500
//Set the trace time.It influences the time length of a point since each point
//represents the time period resulting from the trace time divided by the
//number of points
SENSe:TRACe:TIMe 20e-3
//Set the trace offset time to delay the start point
//of the trace measurement for the specified time
SENSe:TRACe:OFFSet:TIME 50e-6
//Configure the trigger
TRIGger:SOURce INTernal
TRIGger:SLOPe POSitive
TRIGger:DTIMe 0.001
TRIGger:HYSTeresis 0.1
TRIGger:LEVel 30e-6
//Enable and configure the averaging filter
SENSe:TRACe:AVERage:COUNt 8
SENSe:TRACe:AVERage:STATe ON
//Select the data output format
FORMat:DATA REAL
//Initiate the measurement
INITiate
//Query the measurement results
FETCh?
Performing trace measurements