mpylab.device.pm_gt_8540c moduleΒΆ
Driver for the Gigatronics 8540C power meter family.
- class mpylab.device.pm_gt_8540c.POWERMETER(**kw)
Bases:
POWERMETERDriver for the Gigatronics 854X powermeter
- GetData()
Read one power sample and return it as quantity with mismatch uncertainty.
- GetDataNB(retrigger=False)
Return data and optionally retrigger for the next read.
- GetDescription()
Return instrument identification string.
- Init(ini=None, channel=None, ignore_bus=None)
Initialize the selected meter channel and apply presets.
- Quit()
Close the driver and return status.
- SetFreq(freq)
Set measurement frequency in Hz.
- Trigger()
Trigger measurement acquisition (no-op for this backend).
- Zero(state='on')
Run zeroing sequence and return status.
- 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>}}
- update_internal_unit()
Read meter output mode and update internal unit/averaging behavior.
- mpylab.device.pm_gt_8540c.linav_dB(dbvals)
Input: sequence of dB-scaled values Output: dB-scaled lin-average of the input sequence
Example: linav_dB([0,-10]) -> -0.301
- mpylab.device.pm_gt_8540c.linav_lin(linvals)
Input: sequence of lin-scaled values Output: lin-scaled lin-average of the input sequence
Example: linav_lin([0,-10]) -> -5
- mpylab.device.pm_gt_8540c.main()
Start the standalone Qt test UI for this power meter driver.
- mpylab.device.pm_gt_8540c.test_init(cha)
Create and initialize a test instance for one channel.