Programming examples
R&S
®
NRPM
187
Mannual 1425.8663.02 ─ 08
11
Programming examples
This section provides programming examples for R&S
NRPM OTA power mea-
surement tasks. It includes examples for continuous average and trace power
measurements in the common SCPI syntax.
In addition, Rohde
&
Schwarz provides archives with source code, project and
auxiliary files, and programming examples under C/C++ and Python. The sam-
ples can be integrated into customer-specific applications.
The programming examples are part of the R&S
NRP
Toolkit, see
11.1
Performing a simple measurement
The simplest way to obtain a result is to use the following sequence of SCPI com-
mands:
Example:
*RST // sets the continuous average mode and all parameters to default
INITiate // initiates the measurement
FETCh? // delivers measurement result to the output queue
When the measurement is complete, you can retrieve the result from the output
queue.
11.2
Performing measurements in continuous aver-
age mode
This section describes programming examples for measuring continuous average
power with one R&S
NRPM. The examples demonstrate the sequences in SCPI
syntax, pseudo code, and also show the corresponding source codes for using
VISA protocol.
Performing measurements in continuous average mode