stoner_measurement.plugins.command.keithley_set.Keithley6221SetCommand¶
- class stoner_measurement.plugins.command.keithley_set.Keithley6221SetCommand(parent=None)[source]¶
Bases:
_KeithleySetCommandSet 6221 DC current with independently optional voltage measurements.
Enable either, both or neither the primary 2182A and secondary voltmeter. With neither enabled only source_value is published. Measurements and resistance calculation match the 6221 point scan. Output remains active for later steps and is disabled during sequence cleanup.
Use this leaf command to hold a DC bias for later measurements. Source value (A or V) is a current in amperes for this command, optionally an expression evaluated per execution. The nested General page selects 6221 GPIB resource, compliance voltage and settling delay. Primary and Secondary independently enable meters and configure connections, integration, ranges and supported filters. Primary uses an 2182A directly or through the 6221 serial port; secondary uses a separate GPIB 182 or 2182A. Both meters are disabled by default.
Startup connects and configures the instruments. Execution sets current, waits for settling, then reads enabled meters sequentially. Published values are
source_value, primaryvoltage/resistanceand optionalsecondary_voltage/secondary_resistance. Resistance is NaN at zero current. There is no scan generator, child loop or trigger-link requirement. Reconfigure can defer setup. Script settings are available through_point_plugin, documented onKeithley6221PointScanPlugin.- Variables:
_value (float | str) – Source setpoint or expression evaluated on each execution.
_point_plugin (Keithley6221PointScanPlugin) – Owned point-acquisition instance with instrument settings and readings.
has_lifecycle (bool) – True: startup connects/configures; cleanup disconnects.
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.
- Keyword Parameters:
parent (QObject | None) – Optional Qt parent object.
Examples
With an instance named
k6221_setin the sequence, use the QtConsole to inspect or edit it before running. Substitute your instance name if different; result data reflects completed steps:k6221_set._value = "bias_current" k6221_set._point_plugin._primary_enabled = True
- property name¶
Unique human-readable name for this plugin.
- point_class¶
alias of
Keithley6221PointScanPlugin