Bench DC Power Supply

v0.1.3
io.github.K-Dense-AI/labmcp-bench-psu Checked 1 day ago Published 2 months ago

MCP server for programmable DC bench power supplies from Rigol, Siglent and Aim-TTi.

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_outputs Get Outputs

Report each channel: voltage and current-limit setpoints, measured voltage/current/power, output on/off, CV/CC mode, and OVP/OCP levels and trip state where the model supports them.

ParameterTypeDescription
channelOne channel, or omit for all

set_voltage Set Voltage

Set a channel's voltage setpoint. Refused above `max_voltage_v` (checked even with the output off) or above the channel's range. If the output is on, the load sees the new voltage at once.

ParameterTypeDescription
channel *integerOutput channel number (1 = CH1 / output 1)
voltage_v *numberVoltage setpoint in V (negative only on negative channels)

set_current_limit Set Current Limit

Set a channel's current limit (the constant-current setpoint). Refused above `max_current_a` (checked even with the output off) or above the channel's range.

ParameterTypeDescription
channel *integerOutput channel number (1 = CH1 / output 1)
current_a *numberCurrent-limit setpoint in A

output_on Output On

Switch a channel's output ON, energising the connected load at the present setpoints. The setpoints are read back first and the output is refused if they exceed the safety limits (e.g. after someone changed them on the front panel).

ParameterTypeDescription
channel *integerOutput channel number (1 = CH1 / output 1)

output_off Output Off

Switch a channel's output OFF. Safe to call at any time.

ParameterTypeDescription
channel *integerOutput channel number (1 = CH1 / output 1)

all_outputs_off All Outputs Off

Switch every output OFF (emergency stop for the whole supply). Each channel is switched individually and read back where the instrument supports it.

set_protection Set Protection

Set over-voltage (OVP) and/or over-current (OCP) protection for a channel. When exceeded, the supply switches the output off. Rigol: levels + on/off; Aim-TTi CPX/QL/PL-P: levels (always armed), MX: levels + on/off; Siglent SPD1000X: levels only; SPD3303X: not available.

ParameterTypeDescription
channel *integerOutput channel number (1 = CH1 / output 1)
enabledSwitch OVP/OCP on or off (models that allow it)
ocp_aOver-current trip level in A
ovp_vOver-voltage trip level in V

clear_protection_trip Clear Protection Trip

Clear an OVP/OCP trip after fixing its cause. The output stays OFF; use `output_on` to re-energise. On Aim-TTi supplies this clears trips on all outputs.

ParameterTypeDescription
channel *integerOutput channel number (1 = CH1 / output 1)

get_errors Get Errors

Read (and clear) the instrument's error queue / error registers. Empty list = no errors.