HP 11713A Attenuator/Switch Driver
- class pymeasure.instruments.hp.HP11713A(adapter, name='Hewlett-Packard HP11713A', **kwargs)
Bases:
Instrument
Represents the HP 11713A Switch and Attenuator Driver and provides a high-level interface for interacting with the instrument.
Usually an attenuator is hooked to either X or Y or X and Y. To ease the control of the attenuator driver you have the possibility to set an attenuator type via the attribute ‘ATTENUATOR_X’ or ‘ATTENUATOR_Y’. The hp11713a keeps different default attenuator mappings. After setting the attenuator type you are able to use the methods ‘attenuation_x’ and/or ‘attenuation_y’ to set the switch driver to the correct value for the specified attenuation. The attenuation values are rounded.
from pymeasure.instruments.hp import HP11713A from pymeasure.instruments.hp.hp11713a import Attenuator_110dB sd = HP11713A("GPIB::1") sd.ATTENUATOR_Y = Attenuator_110dB sd.attenuation_y(10) sd.ch_0.enabled = True
- channels
- Channels
ch_0
:SwitchDriverChannel
,ch_1
:SwitchDriverChannel
,ch_2
:SwitchDriverChannel
,ch_3
:SwitchDriverChannel
,ch_4
:SwitchDriverChannel
,ch_5
:SwitchDriverChannel
,ch_6
:SwitchDriverChannel
,ch_7
:SwitchDriverChannel
,ch_8
:SwitchDriverChannel
- attenuation_x(attenuation)
Set switches according to the attenuation in dB for X
The set attenuation will be rounded to the next available step. An attenuation mapping has to be set in before e.g.
from pymeasure.instruments.hp.hp11713a import HP11713A, Attenuator_110dB instr.ATTENUATOR_X = Attenuator_110dB instr.attenuation_x(10)
- attenuation_y(attenuation)
Set switches according to the attenuation in dB for Y
The set attenuation will be rounded to the next available step. An attenuation mapping has to be set in before e.g.
from pymeasure.instruments.hp.hp11713a import HP11713A, Attenuator_110dB instr.ATTENUATOR_Y = Attenuator_110dB instr.attenuation_y(10)
- deactivate_all()
Deactivate all switches to polarity ‘B’.
- class pymeasure.instruments.hp.hp11713a.SwitchDriverChannel(parent, id)
Bases:
Channel
- property enabled
Set this channel to the polarity ‘A’ for True and ‘B’ for False.
- pymeasure.instruments.hp.hp11713a.Attenuator_11dB
Mapping of logical values for use with 0 - 11 dB attenuators
- pymeasure.instruments.hp.hp11713a.Attenuator_110dB
Mapping of logical values for use with 0 - 110 dB attenuators
- pymeasure.instruments.hp.hp11713a.Attenuator_70dB_3_Section
Mapping of logical values for use with 0 - 70 dB attenuators with 3 switching sections
- pymeasure.instruments.hp.hp11713a.Attenuator_70dB_4_Section
Mapping of logical values for use with 0 - 70 dB attenuators with 4 switching sections