stoner_measurement.instruments.magnet_controller.KepcoBOPGL

class stoner_measurement.instruments.magnet_controller.KepcoBOPGL(transport: BaseTransport, protocol: BaseProtocol | None = None)[source]

Bases: MagnetController, MagnetSupply

Magnet-supply driver for the Kepco BOP-GL 1 kW family.

The BOP-GL regulates current while voltage protection provides the magnet compliance voltage. Because the supply has no field calibration or ramp command, this driver keeps the magnet constant locally and implements ramps as temporary current LISTs. It never enables the output implicitly.

DISPLAY_NAME = 'Kepco BOP-GL'
abort_ramp() → None[source]

Stop the LIST immediately and hold the measured current.

property compliance_voltage: float

Return the largest active positive/negative voltage clamp magnitude.

property current: float

Return measured output current in amps.

property field: float

Return field derived from measured current and the local constant.

get_firmware_version() → str[source]

Return the firmware token from *IDN?.

get_model() → str[source]

Return the model token from *IDN?.

go_to_zero() → None[source]

Ramp to zero using the configured LIST ramp rate.

property heater: bool

Return False because the BOP-GL has no persistent-switch heater.

heater_off() → None[source]

Raise because the BOP-GL does not support a switch heater.

heater_on() → None[source]

Raise because the BOP-GL does not support a switch heater.

hold() → None[source]

Stop LIST execution and make the measured current the new target.

property limits: MagnetLimits

Read the BOP current limits and derive the corresponding field limit.

property magnet_constant: float

Return the locally stored field conversion in tesla per amp.

output_enabled() → bool[source]

Return whether the power-supply output is enabled.

output_off() → None[source]

Disable the output without claiming electrical isolation.

output_on() → None[source]

Enable software output control without changing load-off behaviour.

pause_ramp() → None[source]

Stop LIST execution immediately while retaining the final target.

property ramp_rate_current: float | None

Return the locally stored ramp rate in amps per minute.

property ramp_rate_field: float | None

Return the locally stored ramp rate converted to tesla per minute.

ramp_to_current(current: float, *, wait: bool = False) → None[source]

Set a current target and start a LIST ramp.

ramp_to_field(field: float, *, wait: bool = False) → None[source]

Set a field target and start a LIST ramp.

ramp_to_target() → None[source]

Build and execute a one-shot current LIST to the cached target.

return_to_local() → None[source]

Return an RS-232 controlled BOP-GL to local operation.

set_compliance_voltage(voltage: float) → None[source]

Set a symmetric fixed voltage-protection clamp in volts.

set_limits(limits: MagnetLimits) → None[source]

Program a symmetric current limit and cache field/ramp limits.

set_load_mode(mode: str) → None[source]

Select ACTIVE, RESISTIVE, or BATTERY output-off behaviour.

set_magnet_constant(tesla_per_amp: float) → None[source]

Store the field conversion locally; the BOP-GL has no field setting.

set_ramp_rate_current(rate: float) → None[source]

Store the current ramp rate used to construct LIST setpoints.

set_ramp_rate_field(rate: float) → None[source]

Store a field ramp rate after conversion to amps per minute.

set_target_current(current: float) → None[source]

Cache a final current target without changing the output.

set_target_field(field: float) → None[source]

Cache a field target after converting it with the local constant.

property status: MagnetStatus

Return a status snapshot derived from SCPI condition registers.

property target_current: float | None

Return the driver-side final ramp target, or the fixed setpoint.

property target_field: float | None

Return the driver-side target converted to tesla.

property voltage: float

Return measured output voltage in volts.