stoner_measurement.instruments.lakeshore.ls625.Lakeshore625¶
- class stoner_measurement.instruments.lakeshore.ls625.Lakeshore625(transport: BaseTransport, protocol: BaseProtocol | None = None)[source]¶
Bases:
MagnetController,MagnetSupplyDriver for a Lakeshore 625 superconducting magnet power supply.
The driver composes
BaseInstrumentcommunication behaviour with theMagnetSupplyinterface for magnet supplies.- Variables:
transport (BaseTransport) – Transport used for instrument I/O.
protocol (BaseProtocol) – Protocol used to format and parse instrument messages.
Examples
>>> from stoner_measurement.instruments.lakeshore import Lakeshore625 >>> from stoner_measurement.instruments.transport import NullTransport >>> t = NullTransport(responses=[b"LAKESHORE,MODEL625,SN001,1.0\r\n"]) >>> mps = Lakeshore625(transport=t) >>> mps.connect() >>> mps.identify() 'LAKESHORE,MODEL625,SN001,1.0' >>> mps.disconnect()
- abort_ramp() None[source]¶
Stop ramping immediately.
The Model 625 command set does not provide a dedicated abort command, so this maps to the supported
STOPaction.
- property current: float¶
Return output current in amps.
- Returns:
Measured magnet supply current in amps.
- Return type:
(float)
- property field: float¶
Return output field in tesla.
- Returns:
Measured magnetic field in tesla.
- Return type:
(float)
- get_firmware_version() str[source]¶
Return the firmware version from the identification string.
- Returns:
Firmware version token when available, otherwise an empty string.
- Return type:
(str)
- get_model() str[source]¶
Return the model name from the identification string.
- Returns:
Instrument model token when available, otherwise an empty string.
- Return type:
(str)
- property heater: bool¶
Return persistent switch heater state.
- Returns:
Truewhen the heater is stably on.- Return type:
(bool)
- property limits: MagnetLimits¶
Return output limits read from the instrument.
- Returns:
Current, derived field, and current-ramp limits. The Model 625 reports ramp-rate limits in A/s, which are converted to T/min.
- Return type:
- property magnet_constant: float¶
Return the cached instrument field constant in tesla per amp.
- Returns:
Magnet constant in tesla per amp.
- Return type:
(float)
- property ramp_rate_current: float | None¶
Return the programmed current ramp rate in amps per minute.
- ramp_to_current(current: float, *, wait: bool = False) None[source]¶
Program current target and ramp.
- Parameters:
current (float) – Target current in amps.
- Keyword Parameters:
wait (bool) – When
True, block until ramp completes.
- ramp_to_field(field: float, *, wait: bool = False) None[source]¶
Program field target and ramp.
- Parameters:
field (float) – Target field in tesla.
- Keyword Parameters:
wait (bool) – When
True, block until ramp completes.
- refresh_magnet_constant() float[source]¶
Query and cache the instrument field constant in tesla per amp.
- return_to_local() None[source]¶
No-op for the Lakeshore 625, which has no Oxford-style local handoff command.
- set_limits(limits: MagnetLimits) None[source]¶
Set software limits used by higher-level sequence logic.
- Parameters:
limits (MagnetLimits) – Limit configuration to cache for runtime checks.
- set_magnet_constant(tesla_per_amp: float) None[source]¶
Set the software magnet constant used for conversion.
- Parameters:
tesla_per_amp (float) – Magnet constant in tesla per amp.
- set_ramp_rate_current(rate: float) None[source]¶
Set the current ramp rate in amps per minute.
- Parameters:
rate (float) – Ramp rate in amps per minute.
- set_ramp_rate_field(rate: float) None[source]¶
Set the field ramp rate in tesla per minute.
- Parameters:
rate (float) – Ramp rate in tesla per minute.
- set_target_current(current: float) None[source]¶
Set the target current in amps.
- Parameters:
current (float) – Target current in amps.
- set_target_field(field: float) None[source]¶
Set the target field in tesla.
- Parameters:
field (float) – Target magnetic field in tesla.
- property status: MagnetStatus¶
Return consolidated magnet status.
Queries
OPST?which returns a numeric bit-coded operating status.- Returns:
Snapshot of controller state and key readings.
- Return type: