mpylab.device.pm_rxatt moduleΒΆ

Composite power meter driver with automatic RX attenuation switching.

class mpylab.device.pm_rxatt.POWERMETER(**kw)

Bases: POWERMETER

Power meter wrapper that compensates fixed-path attenuator networks.

GetData()

Acquire one measurement and compensate attenuation path settings.

GetDataNB(retrigger=False)

Return non-blocking data and apply attenuation compensation when available.

GetDescription()

Return combined wrapper and underlying meter description.

Init(ini=None, channel=None, ignore_bus=None)

Initialize underlying power meter and RF switch controller.

Quit()

Shut down all delegated devices and return success.

SetFreq(freq)

Set frequency for meter/switch and update path correction factors.

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'>, 'pmini': <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_rxatt.main()

Run the standalone UI test harness for this wrapper driver.

mpylab.device.pm_rxatt.test_init(ch)

Create and initialize a test instance for one channel.