stoner_measurement.instruments.lakeshore.current_sources.LakeshoreM81CurrentSource¶
- class stoner_measurement.instruments.lakeshore.current_sources.LakeshoreM81CurrentSource(transport: BaseTransport, protocol: BaseProtocol | None = None)[source]¶
Bases:
CurrentSourceDriver for the Lakeshore M81 balanced current-source outputs.
Models the M81 as a differential current-source backed by two matched output channels. The public source-level API uses channel 1 amplitude and mirrors channel 2 with opposite polarity for balanced drive. Built-in sweeps (linear, logarithmic, custom list) are also supported; the sweep is mirrored across both channels so the differential current follows the programmed profile.
- configure_sweep(config: CurrentSweepConfiguration) None[source]¶
Configure a built-in balanced current sweep.
Channel 1 is programmed with the positive sense of the sweep; channel 2 is programmed with the mirrored (negated) profile so that the differential output follows the intended sweep.
- Parameters:
config (CurrentSweepConfiguration) – Sweep configuration. For
LISTspacing,config.valuesmust be non-empty.- Raises:
ValueError – If
config.spacingisLISTandconfig.valuesis empty orNone.
- get_capabilities() CurrentSourceCapabilities[source]¶
Return static capabilities for Lakeshore M81 current source.
- get_channel_level(channel: int) float[source]¶
Return programmed current for a specific channel in amps.
- get_waveform() CurrentWaveform[source]¶
Return waveform mode.
- set_channel_level(channel: int, value: float) None[source]¶
Set programmed current for a specific channel in amps.
- set_compliance_voltage(value: float) None[source]¶
Set compliance voltage in volts for both channels.
- set_offset_current(value: float) None[source]¶
Set waveform offset current in amps for both channels.
- set_waveform(waveform: CurrentWaveform) None[source]¶
Set waveform mode for both channels.