
Performing Measurement Tasks - Programming Examples
R&S
®
NRPxxS(N)
148
User Manual 1177.5079.02 ─ 10
// All 17 physical measurement have been executed.
// That means, buffer is full and can be read
SENSOR.query( "FETCH?", szBuf, sizeof( szBuf ) );
printf( szBuf );
}
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
Performing Trace Measurements