DG4162

class tam.DG4162(visa_rm, visa_id)[source]

Create an instance of VisaDevice.

Parameters:
  • visa_rm – A reference to a Visa resource manager. As returned (for example) by a call to pyvisa.ResourceManager().

  • visa_id (str) – The ID of the instrument to connect with.

property chan: int

The output channel setting for subsequent instrument operations.

property chan_str: str

Return a string representation of the current output channel setting.

property freq: float

The channel output frequency (in MHz) as a float value.

property impedance: int

The channel output impedance in Ohms. The valid range for the output impedance is 1 to 10,000.

initialize()[source]

Initialize the generator state.

property level: float

The channel output level as a float. The units of the output level will depend on which level unit has been set for the output channel. See level_units.

property level_units: str

The unit used for the channel output level. This is one of: ['DAC', 'MV', 'DBM']

property output: bool

The output channel state. True if the channel is enabled, False otherwise.

set_signal_output(freq: float, level: float) None[source]

Set the channel output frequency and level.

Parameters:
  • freq (float) – The channel output frequency to set (in MHz)

  • level (float) – The channel output level to set (in the current channel level units).