EasyManuals Logo

R&S NRP Series User Manual

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
Page #147 background imageLoading...
Page #147 background image
Performing measurement tasks - programming examples
R&S
®
NRPxxS(N)
147User Manual 1177.5079.02 ─ 15
// Buffer size is randomly selected to 17
SENSOR.write( "SENS:BUFF:SIZE 17" );
SENSOR.write( "SENS:BUFF:STAT ON" );
SENSOR.write( "TRIG:COUN 17" );
// Read out all errors / Clear error queue
SENSOR.query( "SYST:ERR:ALL?", szBuf, sizeof( szBuf ) );
printf( szBuf );
// Start a 'single' buffered measurement
// Since 17 trigger-counts have been configured,
// the 'single' buffered measurement, which becomes
// initiated by INIT:IMM, is not over until
// 17 physical measurements have been triggered
SENSOR.write( "INIT:IMM" );
// The end of a physical measurement can be recognized
// by a transistion to 'NOT MEASURING' which is a
// negative transistion on bit 1
SENSOR.write( "STAT:OPER:MEAS:NTR 2" );
SENSOR.write( "STAT:OPER:MEAS:PTR 0" );
// Collect 17 physical measurements
for ( int i = 0; i < 17; i++ )
{
// As a pre-condition: clear the event register by reading it
int iDummy;
SENSOR.query( "STAT:OPER:MEAS:EVEN?", &iDummy );
// 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 );
Performing a buffered continuous average measurement

Table of Contents

Other manuals for R&S NRP Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the R&S NRP Series and is the answer not in the manual?

R&S NRP Series Specifications

General IconGeneral
Product TypePower Sensor
Connector TypeSMA, 3.5 mm, 2.4 mm
InterfaceUSB, LAN
Storage Temperature-40°C to +70 °C
DimensionsDependent on model
WeightDependent on model
CompatibilityR&S Instruments
TypeDiode

Related product manuals