Bench DC Power Supply
v0.1.3MCP 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer |
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.
| Parameter | Type | Description |
|---|---|---|
channel | One 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.
| Parameter | Type | Description |
|---|---|---|
channel * | integer | Output channel number (1 = CH1 / output 1) |
voltage_v * | number | Voltage 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.
| Parameter | Type | Description |
|---|---|---|
channel * | integer | Output channel number (1 = CH1 / output 1) |
current_a * | number | Current-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).
| Parameter | Type | Description |
|---|---|---|
channel * | integer | Output channel number (1 = CH1 / output 1) |
output_off Output Off
Switch a channel's output OFF. Safe to call at any time.
| Parameter | Type | Description |
|---|---|---|
channel * | integer | Output 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.
| Parameter | Type | Description |
|---|---|---|
channel * | integer | Output channel number (1 = CH1 / output 1) |
enabled | Switch OVP/OCP on or off (models that allow it) | |
ocp_a | Over-current trip level in A | |
ovp_v | Over-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.
| Parameter | Type | Description |
|---|---|---|
channel * | integer | Output channel number (1 = CH1 / output 1) |
get_errors Get Errors
Read (and clear) the instrument's error queue / error registers. Empty list = no errors.