Keithley SourceMeter SMU

v0.1.2
io.github.K-Dense-AI/labmcp-keithley-smu Checked 1 day ago Published 2 months ago

MCP server for Keithley SourceMeter SMUs (2400 series SCPI, 2450 family SCPI, 2600B TSP).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_connection_info Get Connection Info

Report which instrument is connected (identity, address, simulated or real), whether the server is read-only, and the active safety limits. Call this first.

get_command_log Get Command Log

Return the most recent raw commands sent to / replies received from the instrument (newest last). Useful for debugging and for recording what was done.

ParameterTypeDescription
limitinteger

reconnect Reconnect

Close and re-open the connection to the instrument (e.g. after it was power cycled or a cable was re-plugged).

get_device_info Get Device Info

Identify the SMU: manufacturer, model, serial, firmware, command dialect (2400 / 2450 / 2600), channel (2600B) and the model's maximum source voltage and current.

get_status Get Status

Report whether the output is on, the source function (voltage/current), programmed level, compliance limit, whether the source is in compliance, terminals and 2/4-wire sense.

configure_source Configure Source

Set up the source (function, level, compliance, range, measurement speed) while the output is OFF. Measures V and I with auto-ranging. Refused if the output is on; turn it off first or use `set_source_level`. Limits are checked before anything is sent.

ParameterTypeDescription
compliance *numberLimit: current limit in A (voltage source) or voltage limit in V (current source)
level *numberSource level: volts for a voltage source, amps for a current source
source *stringSource voltage or current
nplcnumberMeasurement integration time in power-line cycles (1 = 16.7/20 ms)
source_rangeFixed source range (V or A); omit for auto-range

set_source_level Set Source Level

Change the level of the configured source. If the output is ON the new voltage/current is applied to the DUT immediately. The level and the present compliance are checked against the safety limits first.

ParameterTypeDescription
level *numberNew level for the configured source: V or A

output_on Output On

Switch the SMU output ON: the configured voltage or current is applied to the DUT. The programmed level and compliance are read back from the instrument and checked against the safety limits first. Confirm with the user that the DUT is connected and safe to energise.

output_off Output Off

Switch the SMU output OFF immediately (and abort any IV sweep in progress). Always available, including in read-only mode.

measure Measure

Take one source-measure reading (voltage, current, V/I, power, compliance flag) of the energised DUT. Does not change any setting; refused if the output is off.

set_4wire Set 4Wire

Select 4-wire (remote sense, Kelvin) or 2-wire measurement. 4-wire removes lead resistance for low-resistance DUTs but needs the SENSE leads connected. Refused while the output is on.

ParameterTypeDescription
enabled *booleanTrue = 4-wire remote sense, False = 2-wire local sense

run_iv_sweep Run Iv Sweep

Run a stepped IV sweep: configure the source, switch the output ON, step through the levels measuring V and I at each, then ALWAYS switch the output OFF (also on errors or when `output_off` is called). Returns the curve (downsampled), compliance flags, a linear fit and optional full CSV (a new file; an existing file is never overwritten). The output must be off beforehand. Limits are checked first.

ParameterTypeDescription
compliance *numberCurrent limit in A (voltage sweep) or voltage limit in V (current sweep)
points *integerLevels from start to stop (inclusive)
start *numberFirst level: V (voltage sweep) or A (current sweep)
stop *numberLast level: V or A
delay_snumberSettling delay at each point, s
dualbooleanSweep back from stop to start afterwards (hysteresis)
max_pointsintegerMaximum points returned in the reply
nplcnumberIntegration time per measurement, PLC
save_pathOptional CSV path for every point
sourcestringSweep voltage or current
spacingstringLevel spacing
stop_on_compliancebooleanEnd the sweep at the first compliance point