mpylab.device.pm_gt_8542c_multichannel module

Shared-transport, two-channel driver for the Giga-tronics 8542C.

class mpylab.device.pm_gt_8542c_multichannel.POWERMETER(**kwargs)

Bases: SharedPowerMeterFacade, POWERMETER

Expose both GT 8542C inputs through one shared communication session.

The instrument’s ordinary AP/BP interface provides independent, sequential readings. It does not guarantee simultaneous acquisition. Therefore acquisition=synchronized is rejected explicitly.

GetData()

Read this channel and return a power quantity.

GetDataNB(retrigger=False)

Return the current free-running value without a pending state.

GetFreq()

Return the last correction frequency assigned to this channel.

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

Initialize one strict channel facade and the instrument once.

SetFreq(freq)

Set this sensor input’s correction frequency.

Trigger()

Return success because the 8542C channels run continuously.

Zero(state='on')

Zero this input when state is on.

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': {'acquisition': <class 'str'>, 'fstart': <class 'float'>, 'fstep': <class 'float'>, 'fstop': <class 'float'>, 'gpib': <class 'int'>, 'measurement_timeout': <class 'float'>, 'nr_of_channels': <class 'int'>, 'poll_interval': <class 'float'>, 'virtual': <function strbool>, 'visa': <class 'str'>}}
mpylab.device.pm_gt_8542c_multichannel.main()

Print the embedded virtual two-channel smoke-test result.

mpylab.device.pm_gt_8542c_multichannel.virtual_smoke_test()

Exercise both facades without hardware.