This Python example shows how to deal with command completion using an R&S NRPxx power sensor or the R&S NRX. Each part of the example performs a zero calibration followed by a single measurement.
#Import the PyVISA library to Python.