![background image](http://html1.mh-extra.com/html/rands/nrpm/nrpm_user-manual_3219371175.webp)
Programming examples
R&S
®
NRPM
175
User Manual 1425.8663.02 ─ 07
Example: Pseudo code for measuring the power in list mode
This example, written in pseudo code, shows how to set up and execute a power
measurement in list mode.
===================================
Description of Receiver List Mode
===================================
The execution of a configured frequency list shall start with an RF pulse
sent by the DUT with a certain minimal length (= calling this 'start burst').
_________________...__________________
| |
|<--- min. length of start burst --->|
_____| |_______...
After the FALLING edge of the start burst, the sensor will apply a
configurable initial delay and then cycles over the configured frequency list,
doing power measurements with pre-configured aperture windows and average
counts. Each new measurement starts after a selectable measurement period.
_________________ ____________ ____________
| | <-initial delay-> | | | | | |
| -start burst- | |<- X ->| | |<- X ->| |
___| (see above) |_______..._________| |___...____| |__...
<-measurement period->
'X' is the time for a single measurement. It is calculated as follows:
X = 2 * Average-Count * (Apertu 100us)
*/
ViSession session;
string strCmd;
string strRead;
unsigned int uiAvgCount = 2; // 2
double dAperture = 100.0e-6; // 100 us
double dTriggerLevel = 100.0e-9; // 100 nW (= -40 dBm)
int iTriggerAntenna = 1; // Trigger-Burst re-
// cognition on Ant 1
double dMinLengthOfStartBurst = 950.0e-6; // 950 us
double dInitialDelayAfterBurst = 1.0e-3; // 1 ms
Performing measurements in list mode