mpylab.device.pm_rs_nrp moduleΒΆ
mpylab.device.pm_rs_nrp module.
- class mpylab.device.pm_rs_nrp.POWERMETER(**kw)
Bases:
POWERMETERDriver for the R&S NRP
- GetData()
Read a power measurement from the instrument.
(self.error, obj)is returned whereobjis a instance ofscuq.quantities.Quantity.
- GetDataNB(retrigger=False)
Non-blocking version of
GetData().This function returns
(-1, None)until the answer from the device is available. Then``self.error, obj)``.If retrigger is
Trueor'on', the device is triggered for a new measurment after the measurement has been red.
- Init(ini=None, channel=None, ignore_bus=None)
Init method.
- InitSen(channel=None)
InitSen method.
- MEAS()
it makes only a one measuring
- Reset()
Reset of device. Sets the device to the defined default state
- SelfTestQuery()
It makes a selftest.
- Return: self.error = 0 no error found
self.error = 1 an error has occurred
- Unit(ch, unit)
Unit method.
- conftmpl = {'channel_%d': {'file': <function _file_source>, 'filter': <class 'int'>, 'interpolation': <class 'str'>, 'manrange': <class 'float'>, 'name': <class 'str'>, 'rangemode': <class 'str'>, 'resolution': <class 'int'>, 'sensor': <class 'str'>, 'swr1': <class 'float'>, 'swr2': <class 'float'>, 'unit': <class 'str'>}, 'description': {'description': <class 'str'>, 'deviceid': <class 'str'>, 'driver': <class 'str'>, 'serialnr': <class 'str'>, 'type': <class 'str'>, 'vendor': <class 'str'>}, 'init_value': {'fstart': <class 'float'>, 'fstep': <class 'float'>, 'fstop': <class 'float'>, 'gpib': <class 'int'>, 'nr_of_channels': <class 'int'>, 'virtual': <function strbool>}}
- mpylab.device.pm_rs_nrp.main()
main function.
- mpylab.device.pm_rs_nrp.test_init(ch)
test_init function.