stoner_measurement.plugins.trace.keithley_2400.Keithley2400SweepPlugin¶
- class stoner_measurement.plugins.trace.keithley_2400.Keithley2400SweepPlugin(parent=None)[source]¶
Bases:
TracePluginRun buffered source sweeps on a Keithley 2400 source-meter.
Use this plugin when one Keithley 2400-series SMU should generate a sweep and measure the response at each point. The active scan generator defines the source values. During configuration the plugin programs those values into the instrument as a LIST sweep, sets up the trigger model and trace buffer, and enables the output ready for repeated measurements. Each subsequent measurement starts the programmed sweep and reads the buffered results back as one multicolumn trace after the sweep completes. The output remains on until
disconnect().The plugin returns one trace channel named
IVcontaining programmed source values on the x-axis together with measured current, measured voltage, derived resistance, derived power, and timestamps.The Scan tab defines the source-value sequence and can optionally expose channel-average and standard-deviation outputs. The Settings tab contains nested Basic and Advanced pages. The Basic page contains the model (2400, 2410 or 2450), GPIB resource, source mode, compliance mode, fixed or resistance-derived compliance limit, integration time, source and trigger delays, output enable during the sweep, and source/measurement range options. The Advanced page contains terminal selection, 2-wire or 4-wire wiring, trigger routing and trigger I/O options, and digital or median filtering.
The Electrometer page adds an independent optional Keithley 6485, 6514 or 6517 alongside the Secondary nanovoltmeter. Its setting/value table selects the model, GPIB resource, column prefix and measurement function, autorange or a fixed input range in the selected function’s SI unit, NPLC, averaging filter and count, zero check, trigger delay, trigger and arm counts, buffer size, transfer format and completion line. Numeric expressions are evaluated when configuring each sweep. The 6485 measures current; the 6514 and 6517 can instead measure voltage, resistance or charge. Only one function is measured per meter per sweep.
The electrometer’s Trigger Link source and immediate arm source preserve one reading per physical source point. Zero trigger count and buffer size mean the sweep length; explicit trigger count times arm count must equal that length, and the buffer must fit it exactly. At least two points are needed. Transfer formats are ASCII or single precision, with double precision also available for the 6517. A reading-only buffer is configured and retrieved after the sweep, adding a prefixed Current, Voltage, Resistance or Charge channel (A, V, Ω or C) to the IV trace. These raw measurements are retained at the physical points in differential mode.
Trigger Link cabling must complete the acquisition chain. Without the nanovoltmeter, the SMU source-event line triggers the electrometer. With both meters, the SMU triggers the nanovoltmeter, whose completion pulse triggers the electrometer. The electrometer completion line releases the next SMU source point. Defaults use SMU source events on line 2, nanovoltmeter completion on line 1, and electrometer completion on line 3. These lines must be distinct. The source holds its value across both measurements; the two meters measure in sequence within each point. Both secondary connections are owned and closed by this plugin.
The default setup is aimed at common transport-style measurements: current sweep mode, fixed 10 V compliance, front terminals, 4-wire remote sense, and trigger output enabled on trigger-link line 2.
Basic also offers Differential mode, Delta current and a resistance/conductance choice. In current-source mode, differential acquisition alternates positive and negative delta-current offsets about the nominal scan values. It requires at least three points and a positive delta current. The returned x values remain nominal; voltage is reduced from neighbouring readings, the response is differential resistance or conductance, and power is delta current times the reduced voltage change.
Secondary nanovoltmeter enables a separate 182 or 2182A, selects its GPIB resource and column prefix, and configures supported integration, range and filtering options. It uses a trigger-link handshake with the 2400 and adds prefixed voltage, response and power columns to IV.
Plot and transform selectors offer all configured IV columns before acquisition, including enabled nanovoltmeter and electrometer quantities.
configured_trace_data()returns the empty schema keyed by trace identifier, with source-mode roles and the selected resistance/conductance.- Variables:
_electrometer (ElectrometerAcquisition) – Optional buffered-meter helper. Edit its
settingsattributes:enabled(bool),driver(str:keithley_6485,keithley_6514orkeithley_6517),resourceandprefix(str),function(str:CURR,VOLT,RESorCHAR),autorangeandfilter_enabled(bool),input_range,nplcandtrigger_delay(float or runtime expression str),filter_count,trigger_count,arm_count,buffer_sizeandcompletion_line(int),zero_check(bool), anddata_format(str:ASC,SREorDRE). Runtimemeterandreadingsare not saved in sequence files._differential_mode (bool) – Enable alternating delta-current acquisition; defaults to False.
_delta_current (float | str) – Positive modulation current in amperes or runtime expression.
_differential_conductance (bool) – Report differential conductance instead of resistance.
_secondary_enabled (bool) – Enable the independently connected secondary nanovoltmeter.
_secondary_driver (str) – Secondary driver identifier: keithley_182 or keithley_2182a.
_secondary_resource (str) – Secondary meter VISA/GPIB resource.
_secondary_prefix (str) – Prefix applied to secondary result columns.
_model (str) – SourceMeter model:
"2400"(default),"2410"or"2450"._resource (str) – VISA/GPIB resource string identifying the selected SourceMeter.
_smu (Keithley2400 | None) – Connected driver for the selected SourceMeter, if any.
_source_mode (SweepSourceMode) – Whether the sweep sources voltage or current.
_compliance (float) – Fixed current or voltage compliance limit, depending on source mode.
_compliance_mode (ComplianceMode) – Whether compliance is set directly or derived from resistance.
_compliance_resistance (float) – Resistance threshold used when resistance-derived compliance is selected.
_nplc (float) – Integration time in power-line cycles.
_source_delay (float) – Delay after each source update.
_trigger_delay (float) – Delay between trigger reception and measurement.
_enable_output_during_measurement (bool) – Whether the SMU output is enabled while the sweep runs.
_trigger_routing (TriggerRouting) – Selected sweep-trigger routing mode.
_trigger_count_override (int) – Optional manual trigger count override.
_arm_count (int) – Arm-layer count passed to the instrument trigger model.
_timer_interval (float) – Timer interval used in timer-trigger mode.
_enable_trigger_out (bool) – Whether trigger output signalling is enabled.
_trigger_out_line (int) – Trigger-link output line number.
_trigger_in_line (int) – Trigger-link input line number.
_source_range_mode (RangeMode) – Whether the source range is automatic or fixed.
_source_range (float) – Fixed source range value when enabled.
_sense_range_mode (RangeMode) – Whether the sense range is automatic or fixed.
_sense_range (float) – Fixed sense range value when enabled.
_connection_mode (ConnectionMode) – Whether measurements use 2-wire or 4-wire wiring.
_terminal_mode (TerminalMode) – Whether the front or rear terminals are used.
_filter_enabled (bool) – Whether the digital filter is enabled.
_filter_count (int) – Number of readings used by the digital filter.
_filter_type (FilterType) – Digital filter mode used by the instrument.
_median_filter_enabled (bool) – Whether the median filter is enabled.
_sweep_values (tuple[float, ...] | None) – Most recently generated source values programmed into the sweep.
instance_name (str) – Inherited Python identifier for this instance in the Script tab and QtConsole.
comment (str) – Inherited optional note displayed beside this step.
sequence_engine (SequenceEngine | None) – Inherited owning engine and its live namespace; None while detached.
scan_generator (BaseScanGenerator) – Inherited generator defining acquisition source values.
data (dict[str, TraceData]) – Inherited latest trace tables, keyed by trace name; inspect each table through its df attribute.
status (TraceStatus) – Inherited acquisition status, including data availability and errors.
- Keyword Parameters:
parent (QObject | None) – Optional Qt parent object.
Examples
With an instance named
k2400_dc_ivin the sequence, use the QtConsole to inspect or edit it before running. Substitute your instance name if different; result data reflects completed steps:k2400_dc_iv._compliance = 5.0 k2400_dc_iv._model = "2450" k2400_dc_iv._source_delay = 0.01 k2400_dc_iv._electrometer.settings.enabled = True k2400_dc_iv._electrometer.settings.driver = "keithley_6514" k2400_dc_iv._electrometer.settings.prefix = "gate" k2400_dc_iv.data
- configure() None[source]¶
Program source mode, sweep list, buffer, and trigger model.
- Raises:
RuntimeError – If the plugin is not connected to an instrument.
ValueError – If the scan generator produces no points or the selected compliance mode cannot be resolved for the generated sweep.
- connect() None[source]¶
Open the SMU connection and verify its identity.
- Raises:
Exception – Propagates connection or identity-verification failures after attempting to close any partially opened transport.
- declared_outputs() PluginOutputs[source]¶
Declare IV channels, schemas and optional column statistics together.
- property name: str¶
Unique identifier for this plugin.
- Returns:
Always
"Keithley2400Sweep".- Return type:
(str)
- property x_label: str¶
Label for the programmed source axis.
- Returns:
"Voltage"in voltage-source mode, otherwise"Current".- Return type:
(str)
- property x_units: str¶
Units of the programmed source axis.
- Returns:
"V"in voltage-source mode, otherwise"A".- Return type:
(str)