EasyManua.ls Logo

R&S NRP P Series - Performing Trace Measurements

R&S NRP P Series
152 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
®
NRPxxP
122User Manual 1179.5760.02 ─ 02
// Trigger a single physical measurement; either by '*TRG'
// command or by an externally supplied pulse on the SMB-type connector
if ( bUseBUSTrigger )
SENSOR.write( "*TRG" );
// Wait until the measurement is done
int iMeasEvent = 0;
while ( iMeasEvent != 2 )
{
SENSOR.query( "STAT:OPER:MEAS:EVEN?", &iMeasEvent );
iMeasEvent &= 2;
}
printf( "Triggered!\n" );
}
// All 17 physical measurement have been executed.
// That means, buffer is full and can be read
SENSOR.query( "FETCH?", szBuf, sizeof( szBuf ) );
printf( szBuf );
}
9.3 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
Performing trace measurements

Table of Contents

Related product manuals