# AMI 430 Power Supply

class `pymeasure.instruments.ami.``AMI430`(resourceName, **kwargs)

  Bases: `pymeasure.instruments.instrument.Instrument`

  Represents the AMI 430 Power supply and provides a high-level for interacting with the instrument.

      magnet = AMI430("TCPIP::web.address.com::7180::SOCKET")

      magnet.coilconst = 1.182                 # kGauss/A
      magnet.voltage_limit = 2.2               # Sets the voltage limit in V

      magnet.target_current = 10               # Sets the target current to 10 A
      magnet.target_field = 1                  # Sets target field to 1 kGauss

      magnet.ramp_rate_current = 0.0357       # Sets the ramp rate in A/s
      magnet.ramp_rate_field = 0.0422         # Sets the ramp rate in kGauss/s
      magnet.ramp                             # Initiates the ramping
      magnet.pause                            # Pauses the ramping
      magnet.status                           # Returns the status of the magnet

      magnet.ramp_to_current(5)             # Ramps the current to 5 A

      magnet.shutdown()                     # Ramps the current to zero and disables output

  property `coilconst`

    A floating point property that sets the coil contant in kGauss/A.

  `disable_persistent_switch`()

    Disables the persistent switch.

  `enable_persistent_switch`()

    Enables the persistent switch.

  property `field`

    Reads the field in kGauss of the magnet.

  `has_persistent_switch_enabled`()

    Returns a boolean if the persistent switch is enabled.

  property `magnet_current`

    Reads the current in Amps of the magnet.

  `pause`()

    Pauses the ramping of the magnetic field.

  `ramp`()

    Initiates the ramping of the magnetic field to set current/field with ramping rate previously set.

  property `ramp_rate_current`

    A floating point property that sets the current ramping rate in A/s.

  property `ramp_rate_field`

    A floating point property that sets the field ramping rate in kGauss/s.

  `ramp_to_current`(current, rate)

    Heats up the persistent switch and ramps the current with set ramp rate.

  `ramp_to_field`(field, rate)

    Heats up the persistent switch and ramps the current with set ramp rate.

  `shutdown`(ramp_rate=0.0357)

    Turns on the persistent switch, ramps down the current to zero, and turns off the persistent switch.

  property `state`

    Reads the field in kGauss of the magnet.

  property `supply_current`

    Reads the current in Amps of the power supply.

  property `target_current`

    A floating point property that sets the target current in A for the magnet.

  property `target_field`

    A floating point property that sets the target field in kGauss for the magnet.

  property `voltage_limit`

    A floating point property that sets the voltage limit for charging/discharging the magnet.

  `wait_for_holding`(should_stop=<function AMI430.<lambda>>, timeout=800, interval=0.1)
  `zero`()

    Initiates the ramping of the magnetic field to zero current/field with ramping rate previously set.