Performing measurement tasks - programming examples
R&S
®
NRPxxA(N)
124
User Manual 1177.6017.02 ─ 08
10
Performing measurement tasks - program-
ming examples
If you install the optional software development kit (SDK) of the R&S
NRP Toolkit, pro-
gramming examples are provided. See
Under Windows, these examples are installed under:
C:\ProgramData\Rohde-Schwarz\NRP-Toolkit-SDK\examples
This chapter gives programming examples for measurement tasks performed with the
series power sensors.
10.1
Performing the simplest measurement
The simplest way to obtain a result is to use the following sequence of commands:
*RST
INITiate
FETCh?
The
*RST
sets the continuous average mode.
INITiate
initiates the measurement.
After
, the trigger system is set to
IMMediate
. That means
the power sensor starts measuring when the measurement is started without waiting
for a trigger condition.
After the measurement has been completed,
delivers the result to the output queue from which it can be fetched.
10.2
Performing the fastest measurement in continuous
average mode
The fastest way to obtain results for different continuous average measurements is
described here.
10.2.1
Untriggered fast unchopped continuous average measurement
This example, written in pseudo code, shows how to set up and execute an untrig-
gered, fast unchopped continuous average measurement.
See also
[SENSe<Sensor>:][POWer:][AVG:]FAST
write( 'INIT:CONT OFF' )
write( 'ABORT' )
Performing the fastest measurement in continuous average mode