# R&S HMP4040 Power Supply

class pymeasure.instruments.rohdeschwarz.hmp.HMP4040(adapter, **kwargs)

  Bases: `SCPIMixin`, `Instrument`

  Represents a Rohde&Schwarz HMP4040 power supply.

  beep()

    Emit a single beep from the instrument.

  clear_sequence(channel)

    Clear the sequence of the selected channel.

  property control_method

    Control manual front panel (‘LOC’), remote (‘REM’) or manual/remote control(‘MIX’) control or locks the front panel control (‘RWL’).

  property current

    Control output current in A. Range depends on instrument type.

  property current_step

    Control current step in A.

  current_to_max()

    Set current of the selected channel to its maximum value.

  current_to_min()

    Set current of the selected channel to its minimum value.

  load_sequence(slot)

    Load a saved waveform from internal memory (slot 1, 2 or 3).

  property max_current

    Get maximum current in A.

  property max_voltage

    Get maximum voltage in V.

  property measured_current

    Get current in A.

  property measured_voltage

    Get voltage in V.

  property min_current

    Get minimum current in A.

  property min_voltage

    Get minimum voltage in V.

  property output_enabled

    Control the output on or off or check the output status.

  property repetitions

    Control umber of repetitions (0…255). If 0 is entered, the sequence isrepeated indefinitely.

  save_sequence(slot)

    Save the sequence defined in the sequence property to internal memory (slot 1, 2 or 3).

  property selected_channel

    Control the selected channel.

  property selected_channel_active

    Control the selected channel to active or inactive or check its status.

  property sequence

    Set sequence of triplets of voltage (V), current (A) and dwell time (s).

  set_channel_state(channel, state)

    Set the state of the channel to active or inactive.

    Parameters:

      - channel (int) – Channel number to set the state of.

      - state (bool) – State of the channel, i.e. True for active, False for inactive.

  start_sequence(channel)

    Start the sequence of the selected channel.

  step_current_down()

    Decreases current by one step.

  step_current_up()

    Increase current by one step.

  step_voltage_down()

    Decrease voltage by one step.

  step_voltage_up()

    Increase voltage by one step.

  stop_sequence(channel)

    Stop the sequence defined in the sequence property of the selected channel.

  transfer_sequence(channel)

    Transfer the sequence defined in the sequence property to the selected channel.

  property version

    Get the SCPI version the instrument’s command set complies with.

  property voltage

    Control output voltage in V. Increment 0.001 V.

  property voltage_and_current

    Control output voltage (V) and current (A).

  property voltage_step

    Control voltage step in V. Default 1 V.

  voltage_to_max()

    Set voltage of the selected channel to its maximum value.

  voltage_to_min()

    Set voltage of the selected channel to its minimum value.