# Ametek 7270 DSP Lockin Amplifier

class pymeasure.instruments.ametek.Ametek7270(adapter, name='Ametek DSP 7270', read_termination='\x00', write_termination='\x00', **kwargs)

  Bases: `SCPIUnknownMixin`, `Instrument`

  This is the class for the Ametek DSP 7270 lockin amplifier

  In this instrument, some measurements are defined only for specific modes, called Reference modes, see `set_reference_mode()` and will raise errors if called incorrectly

  property adc1

    Reads the input value of ADC1 in Volts

  property adc2

    Reads the input value of ADC2 in Volts

  property adc3

    Reads the input value of ADC3 in Volts

  property adc4

    Reads the input value of ADC4 in Volts

  ask(command, query_delay=None)

    Send a command and read the response, stripping white spaces.

    Usually the properties use the `values()` method that adds a strip call, however several methods use directly the result from ask to be cast into some other types. It should therefore also add the strip here, as all responses end with a newline character.

  check_set_errors()

    mandatory to be used for property setter

    The Ametek protocol expect the default null character to be read to check the property has been correctly set. With default termination character set as Null character, this turns out as an empty string to be read.

  property dac1

    A floating point property that represents the output value on DAC1 in Volts. This property can be set.

  property dac2

    A floating point property that represents the output value on DAC2 in Volts. This property can be set.

  property dac3

    A floating point property that represents the output value on DAC3 in Volts. This property can be set.

  property dac4

    A floating point property that represents the output value on DAC4 in Volts. This property can be set.

  property frequency

    A floating point property that represents the lock-in frequency in Hz. This property can be set.

  property harmonic

    An integer property that represents the reference harmonic mode control, taking values from 1 to 127. This property can be set.

  property id

    Get the instrument ID and firmware version

  property mag

    Reads the magnitude in Volts

  property phase

    A floating point property that represents the reference harmonic phase in degrees. This property can be set.

  property sensitivity

    A floating point property that controls the sensitivity range in Volts, which can take discrete values from 2 nV to 1 V. This property can be set. (dynamic)

  set_channel_A_mode()

    Sets instrument to channel A mode – assuming it is in voltage mode

  set_current_mode(low_noise=False)

    Sets instrument to current control mode with either low noise or high bandwidth

  set_differential_mode(lineFiltering=True)

    Sets instrument to differential mode – assuming it is in voltage mode

  set_reference_mode(mode: int = 0)

    Set the instrument in Single, Dual or harmonic mode.

    Parameters:

      mode – the integer specifying the mode: 0 for Single, 1 for Dual harmonic, and 2 for Dual reference.

  set_voltage_mode()

    Sets instrument to voltage control mode

  shutdown()

    Ensures the instrument in a safe state

  property slope

    A integer property that controls the filter slope in dB/octave, which can take the values 6, 12, 18, or 24 dB/octave. This property can be set.

  property theta

    Reads the signal phase in degrees

  property time_constant

    A floating point property that controls the time constant in seconds, which takes values from 10 microseconds to 100,000 seconds. This property can be set.

  property voltage

    A floating point property that represents the voltage in Volts. This property can be set.

  property x

    Reads the X value in Volts

  property x1

    Reads the first harmonic X value in Volts

  property x2

    Reads the second harmonic X value in Volts

  property xy

    Reads both the X and Y values in Volts

  property y

    Reads the Y value in Volts

  property y1

    Reads the first harmonic Y value in Volts

  property y2

    Reads the second harmonic Y value in Volts