siglent-sdg-mcp
v2.1.0MCP server for Siglent SDG waveform generator control via SCPI over TCP sockets
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
connect
Connect to a Siglent SDG waveform generator over TCP. Returns device identification on success. Only hosts and ports allowed by the server configuration can be used.
| Parameter | Type | Description |
|---|---|---|
host | string | IP address of the waveform generator (defaults to SIGLENT_SDG_IP or SIGLENT_IP env var) |
port | number | TCP port (defaults to 5025) |
disconnect
Disconnect from the waveform generator.
identify
Query the waveform generator identification (*IDN?). Returns manufacturer, model, serial number, and firmware version.
get_output
Get the output state of a channel, including on/off status, load impedance, and polarity.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel to query |
configure_output
Configure the output of a channel. Can turn output on/off, set load impedance, and set polarity.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel to configure |
load | string | Load impedance in ohms (50-100000) or 'HZ' for high impedance |
polarity | string | Output polarity: NOR (normal) or INVT (inverted) |
state | string | Output state: ON or OFF |
get_basic_wave
Get the basic waveform parameters of a channel, including waveform type, frequency, amplitude, offset, phase, duty cycle, etc.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel to query |
configure_basic_wave
Configure the basic waveform parameters of a channel. Multiple parameters can be set in a single call. The command builds a single BSWV command with all specified parameters.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel to configure |
amplitude | number | Amplitude in Vpp (not valid for NOISE or DC) |
amplitude_vrms | number | Amplitude in Vrms |
delay | number | Waveform delay in seconds |
duty | number | Duty cycle in % (only for SQUARE or PULSE) |
fall | number | Fall time in seconds (only for PULSE) |
frequency | number | Frequency in Hz (not valid for NOISE or DC) |
high_level | number | High level in volts |
low_level | number | Low level in volts |
mean | number | Mean in volts (only for NOISE) |
offset | number | DC offset in volts (not valid for NOISE) |
period | number | Period in seconds (alternative to frequency) |
phase | number | Phase in degrees (0-360, not valid for NOISE, PULSE, or DC) |
rise | number | Rise time in seconds (only for PULSE) |
stdev | number | Standard deviation in volts (only for NOISE) |
symmetry | number | Symmetry in % (0-100, only for RAMP) |
waveform_type | string | Waveform type |
width | number | Pulse width in seconds (only for PULSE) |
get_modulation
Get the modulation parameters of a channel. Returns all modulation settings including type, source, frequency, depth/deviation, and carrier parameters.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel to query |
configure_modulation
Configure modulation on a channel. Set state first (ON), then type and parameters. Commands are sent sequentially: state, then type, then type-specific parameters, then carrier parameters.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel to configure |
carrier_amplitude | number | Carrier amplitude in Vpp |
carrier_frequency | number | Carrier frequency in Hz |
carrier_offset | number | Carrier DC offset in volts |
carrier_phase | number | Carrier phase in degrees (0-360) |
carrier_waveform | string | Carrier waveform type |
depth | number | AM modulation depth in % (0-120) |
deviation | number | FM frequency deviation in Hz, or PM phase deviation in degrees (0-360), or PWM duty deviation in % |
frequency | number | Modulation frequency in Hz (AM/FM/PM/PWM) or key frequency (ASK/FSK/PSK) |
hop_frequency | number | FSK hop frequency in Hz |
mod_wave | string | Modulating waveform shape (only when source is INT) |
polarity | string | PSK polarity |
source | string | Modulation source (availability depends on type) |
state | string | Modulation state. Must be ON before setting other params. |
type | string | Modulation type |
get_sweep
Get the sweep parameters of a channel, including state, time, start/stop frequencies, sweep mode, direction, trigger source, carrier settings, and marker.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel to query |
configure_sweep
Configure sweep on a channel. State must be set to ON before other parameters. Builds a single SWWV command with all specified parameters.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel to configure |
carrier_amplitude | number | Carrier amplitude in Vpp |
carrier_frequency | number | Carrier frequency in Hz |
carrier_offset | number | Carrier DC offset in volts |
carrier_phase | number | Carrier phase in degrees (0-360) |
carrier_waveform | string | Carrier waveform type |
center | number | Center frequency in Hz |
direction | string | Sweep direction |
end_hold_time | number | End hold time in seconds (0-300) |
manual_trigger | boolean | Send a manual trigger (only when trigger source is MAN) |
marker_frequency | number | Marker frequency in Hz |
marker_state | string | Frequency marker state |
return_time | number | Return time in seconds (0-300) |
span | number | Frequency span in Hz |
start | number | Start frequency in Hz |
start_hold_time | number | Start hold time in seconds (0-300) |
state | string | Sweep state. Must be ON before setting other params. |
stop | number | Stop frequency in Hz |
sweep_mode | string | Sweep mode: LINE (linear), LOG (logarithmic), or STEP |
symmetry | number | Symmetry in % (0-100) when direction is UP_DOWN |
time | number | Sweep time in seconds |
trigger_edge | string | Trigger edge (only for EXT or MAN trigger source) |
trigger_out | string | Trigger output state |
trigger_source | string | Trigger source: EXT (external), INT (internal), MAN (manual) |
get_burst
Get the burst wave parameters of a channel, including state, period, trigger source, burst mode (gate/ncycle), cycle count, carrier settings, and delay.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel to query |
configure_burst
Configure burst mode on a channel. State must be set to ON before other parameters. Builds a single BTWV command with all specified parameters.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel to configure |
burst_mode | string | Burst mode: GATE or NCYC (N-cycle) |
carrier_amplitude | number | Carrier amplitude in Vpp |
carrier_duty | number | Carrier duty cycle in % (for SQUARE or PULSE) |
carrier_frequency | number | Carrier frequency in Hz |
carrier_offset | number | Carrier DC offset in volts |
carrier_phase | number | Carrier phase in degrees (0-360) |
carrier_symmetry | number | Carrier symmetry in % (for RAMP) |
carrier_waveform | string | Carrier waveform type |
cycles | string | Number of burst cycles (integer, or 'INF' for infinite) |
delay | number | Trigger delay in seconds (when NCYC mode) |
gate_polarity | string | Gate polarity (when GATE mode) |
manual_trigger | boolean | Send a manual trigger (only when trigger source is MAN) |
period | number | Burst period in seconds |
start_phase | number | Start phase in degrees (0-360) |
state | string | Burst state. Must be ON before setting other params. |
trigger_edge | string | Trigger edge (when EXT or MAN) |
trigger_out | string | Trigger output mode (when NCYC and INT/MAN) |
trigger_source | string | Trigger source |
get_arbitrary_wave
Get the current arbitrary waveform selection for a channel. Returns the waveform index and name.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel to query |
set_arbitrary_wave
Set the arbitrary waveform for a channel by index number or by name. Use index for built-in waveforms (e.g. 2=StairUp, 18=Sinc, 26=Cardiac) or name for user-defined waveforms.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel to configure |
index | number | Index of the built-in arbitrary waveform (0-198). Examples: 0=Sine, 2=StairUp, 10=ExpFal, 18=Sinc, 19=Gaussian, 26=Cardiac |
name | string | Name of the waveform for user-defined waves (without quotes). Can also be a path like "Local/wave1.bin" |
reset
Reset the waveform generator to factory default settings (*RST).
copy_channel
Copy all parameters from one channel to another.
| Parameter | Type | Description |
|---|---|---|
destination * | string | Destination channel to copy to |
source * | string | Source channel to copy from |
configure_sync
Configure the sync output signal for a channel.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel to configure |
state * | string | Sync output state |
type | string | Sync source type |
equal_phase
Synchronize the phase of both channels (EQPHASE). Aligns the phase relationship between C1 and C2.
scpi_query
Send a read-only SCPI query to the waveform generator and return the response. Use this as an escape hatch for queries not covered by other tools. The command must be a single SCPI header ending in '?' (e.g. 'C1:BSWV?'); anything that could change instrument state is rejected. Note: CHDR is set to OFF, so responses contain only values (no headers).
| Parameter | Type | Description |
|---|---|---|
command * | string | SCPI query command to send (e.g. '*IDN?', 'C1:BSWV?', 'C1:OUTP?') |
timeout_ms | number | Timeout in milliseconds (default 5000) |