![background image](http://html1.mh-extra.com/html/rands/nrpm/nrpm_user-manual_3219371181.webp)
Programming examples
R&S
®
NRPM
181
User Manual 1425.8663.02 ─ 07
Example: SCPI sequence for measuring the power of three antenna mod-
ules
The command sequence measures the envelope power over time in the three
channels of the R&S
NRPM antenna module.
// Query the resource identifier and
// reset the sensor module to default
*IDN?
// Response: ROHDE&SCHWARZ,NRPM3,100001,16.09.20.01
*RST
// Enable all channels of the sensor module
SENSe:CHAnnel1:ENABle 1
SENSe:CHAnnel2:ENABle 1
SENSe:CHAnnel3:ENABle 1
// Set the trace measurement mode
SENSe:FUNCtion "XTIME:POWer"
// Set the trace time.It influences the time length of a point
// since each point represents the time period resulting from
// the trace time divided by the number of points
SENSe:TRACe:TIMe 10e-3
// Set the number of points for the trace measurement
// Using 500 points usually represents a good compromise
// between USB transfer speed and resolution
SENSe:TRACe:POINTs 10
// Enable and configure the averaging filter
SENSe:TRACe:AVERage:COUNt 8
SENSe:TRACe:AVERage:STATe ON
// Configure the trigger
TRIGger:SOURce INTernal
TRIGger:SLOPe POSitive
TRIGger:DTIMe 0.001
TRIGger:HYSTeresis 0.1
TRIGger:LEVel 100e-9
// Activate the measurement
INITiate
// Query the measurement results
FETCh:ALL?
// Response (10 points per channel):
// 1.247340E-07,9.701300E-11,1.249202E-07,1.255408E-10,1.248314E-07,
// 9.718711E-11,1.248812E-07,6.739847E-11,1.248604E-07,2.118106E-10,
// 1.644239E-09,4.748356E-11,1.676801E-09,6.181332E-12,1.670082E-09,
// -1.933849E-11,1.719137E-09,-4.777736E-12,1.678197E-09,3.814278E-12,
// -4.753650E-11,-7.962022E-12,-4.782197E-11,-3.001128E-11,-8.387346E-12,
// -5.910127E-11,5.714555E-11,-5.767460E-12,7.732340E-11,-1.816896E-11
// Read out all errors / Clear error queue
SYSTem:ERRor?
Performing measurements in trace mode