![background image](http://html1.mh-extra.com/html/rands/nrpm/nrpm_user-manual_3219371169.webp)
Programming examples
R&S
®
NRPM
169
User Manual 1425.8663.02 ─ 07
Example: SCPI sequence for measuring the power of three antenna mod-
ules
The command sequence measures the continuous average power of the three
channels of an R&S
NRPM.
// 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
// Select measurement mode and set the time interval to 10 μs
SENSe:FUNCtion "POWer:AVG"
SENSe:POWer:AVG:APERture 10e-6
//Set the averaging filter length to 1
SENSe:AVERage:COUNt 1
// Select the trigger source
TRIGger:SOURce IMMediate
// Activate a measurement
INITiate:IMMediate
// Query the measurement results
FETCh:ALL?
// Response:
// 6.118910E-10,1.185138E-10,4.612524E-10
// Read out all errors / Clear error queue
SYSTem:ERRor?
SYSTem:SERRor?
Performing measurements in continuous average mode