
Performing Measurement Tasks - Programming Examples
R&S
®
NRPxxS(N)
150
User Manual 1177.5079.02 ─ 10
bool bMeasReady = false;
// poll until measurement is ready...
// (this loop could also check for cancel-requests
// from the user or other break conditions)
while ( ! bMeasReady )
{
query( "STAT:OPER:MEAS:EVEN?", &iEvent );
bMeasReady = ((iEvent & 0x02) != 0);
if ( ! bMeasReady )
sleep( 1 );
}
if ( bMeasReady )
{
query( "SENS:TRAC:DATA?", bufResult );
// further process the result in 'bufResult'...
// ::
// ::
}
Trace Measurement with Synchronization to Measurement Complete