mpylab.device.amp_blma_1018_100 module

mpylab.device.amp_blma_1018_100 module.

class mpylab.device.amp_blma_1018_100.AMPLIFIER(**kw)

Bases: AMPLIFIER

Driver for the Bonn BLMA 1018-100 amplifier.

Parameters:

kw (mapping) – Keyword arguments forwarded to the amplifier base class.

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

Initialize the amplifier and place it in standby.

Parameters:
  • ini (path-like or file-like, optional) – INI configuration source.

  • channel (int, optional) – One-based configuration channel number.

  • ignore_bus (bool, optional) – Skip communication-bus initialization.

Returns:

Driver initialization status.

Return type:

int

SetFreq(freq)

Set frequency and select the corresponding amplifier band.

The amplifier is enabled only inside its supported frequency range. Band changes are performed in standby.

Parameters:

freq (float) – Frequency in Hz.

Returns:

Status code and applied frequency in Hz.

Return type:

tuple of (int, float)

Raises:

RuntimeError – If the switch-state response is malformed.

conftmpl = {'channel_%d': {'complex_interpolation': <class 'str'>, 'db_factor': <class 'float'>, 'file': <function _file_source>, 'frequency_interpolation': <class 'str'>, 'interpolation': <class 'str'>, 'max_gap_factor': <class 'float'>, 'max_interpolation_error_factor': <class 'float'>, 'max_phase_step_deg': <class 'float'>, 'name': <class 'str'>, 'unit': <class 'str'>, 'value_interpolation': <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.amp_blma_1018_100.main()

main function.