Programming examples
R&S
®
NRPM
201
Mannual 1425.8663.02 ─ 08
SYSTem:SERRor?
// Stop the continuous measurement.
INITiate:CONTinuous OFF
Example: Pseudo code for measuring the power of two antenna modules
This example, written in pseudo code, shows how to set up and execute a trace
power measurement.
// resource = "NRPM3-100001"
// Open the device
sensor = Open( resource )
// Query the resource identifier and reset the sensor module to default
Query( sensor, "*IDN?" )
Write( sensor, "*RST" )
// Measure only on channels 1 & 3
Write( sensor, "SENS:CHAN1:ENAB ON" )
Write( sensor, "SENS:CHAN2:ENAB OFF" )
Write( sensor, "SENS:CHAN3:ENAB ON" )
Write( sensor, "SENS:FUNC \"XTIM:POW\"" )
Write( sensor, "TRIG:SOUR IMM" )
Query( sensor, "SYST:ERR?" )
Query( sensor, "SYST:SERR?" )
Write( sensor, "INIT:IMM" )
Query( sensor, "FETCH:ALL?" )
Close( sensor )
Performing measurements in trace mode