siglent-sdg-mcp

v2.1.0
siglent-sdg-mcp Checked 1 hour ago Published 15 days ago

MCP 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.

ParameterTypeDescription
hoststringIP address of the waveform generator (defaults to SIGLENT_SDG_IP or SIGLENT_IP env var)
portnumberTCP 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.

ParameterTypeDescription
channel *stringChannel to query

configure_output

Configure the output of a channel. Can turn output on/off, set load impedance, and set polarity.

ParameterTypeDescription
channel *stringChannel to configure
loadstringLoad impedance in ohms (50-100000) or 'HZ' for high impedance
polaritystringOutput polarity: NOR (normal) or INVT (inverted)
statestringOutput 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.

ParameterTypeDescription
channel *stringChannel 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.

ParameterTypeDescription
channel *stringChannel to configure
amplitudenumberAmplitude in Vpp (not valid for NOISE or DC)
amplitude_vrmsnumberAmplitude in Vrms
delaynumberWaveform delay in seconds
dutynumberDuty cycle in % (only for SQUARE or PULSE)
fallnumberFall time in seconds (only for PULSE)
frequencynumberFrequency in Hz (not valid for NOISE or DC)
high_levelnumberHigh level in volts
low_levelnumberLow level in volts
meannumberMean in volts (only for NOISE)
offsetnumberDC offset in volts (not valid for NOISE)
periodnumberPeriod in seconds (alternative to frequency)
phasenumberPhase in degrees (0-360, not valid for NOISE, PULSE, or DC)
risenumberRise time in seconds (only for PULSE)
stdevnumberStandard deviation in volts (only for NOISE)
symmetrynumberSymmetry in % (0-100, only for RAMP)
waveform_typestringWaveform type
widthnumberPulse 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.

ParameterTypeDescription
channel *stringChannel 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.

ParameterTypeDescription
channel *stringChannel to configure
carrier_amplitudenumberCarrier amplitude in Vpp
carrier_frequencynumberCarrier frequency in Hz
carrier_offsetnumberCarrier DC offset in volts
carrier_phasenumberCarrier phase in degrees (0-360)
carrier_waveformstringCarrier waveform type
depthnumberAM modulation depth in % (0-120)
deviationnumberFM frequency deviation in Hz, or PM phase deviation in degrees (0-360), or PWM duty deviation in %
frequencynumberModulation frequency in Hz (AM/FM/PM/PWM) or key frequency (ASK/FSK/PSK)
hop_frequencynumberFSK hop frequency in Hz
mod_wavestringModulating waveform shape (only when source is INT)
polaritystringPSK polarity
sourcestringModulation source (availability depends on type)
statestringModulation state. Must be ON before setting other params.
typestringModulation 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.

ParameterTypeDescription
channel *stringChannel 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.

ParameterTypeDescription
channel *stringChannel to configure
carrier_amplitudenumberCarrier amplitude in Vpp
carrier_frequencynumberCarrier frequency in Hz
carrier_offsetnumberCarrier DC offset in volts
carrier_phasenumberCarrier phase in degrees (0-360)
carrier_waveformstringCarrier waveform type
centernumberCenter frequency in Hz
directionstringSweep direction
end_hold_timenumberEnd hold time in seconds (0-300)
manual_triggerbooleanSend a manual trigger (only when trigger source is MAN)
marker_frequencynumberMarker frequency in Hz
marker_statestringFrequency marker state
return_timenumberReturn time in seconds (0-300)
spannumberFrequency span in Hz
startnumberStart frequency in Hz
start_hold_timenumberStart hold time in seconds (0-300)
statestringSweep state. Must be ON before setting other params.
stopnumberStop frequency in Hz
sweep_modestringSweep mode: LINE (linear), LOG (logarithmic), or STEP
symmetrynumberSymmetry in % (0-100) when direction is UP_DOWN
timenumberSweep time in seconds
trigger_edgestringTrigger edge (only for EXT or MAN trigger source)
trigger_outstringTrigger output state
trigger_sourcestringTrigger 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.

ParameterTypeDescription
channel *stringChannel 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.

ParameterTypeDescription
channel *stringChannel to configure
burst_modestringBurst mode: GATE or NCYC (N-cycle)
carrier_amplitudenumberCarrier amplitude in Vpp
carrier_dutynumberCarrier duty cycle in % (for SQUARE or PULSE)
carrier_frequencynumberCarrier frequency in Hz
carrier_offsetnumberCarrier DC offset in volts
carrier_phasenumberCarrier phase in degrees (0-360)
carrier_symmetrynumberCarrier symmetry in % (for RAMP)
carrier_waveformstringCarrier waveform type
cyclesstringNumber of burst cycles (integer, or 'INF' for infinite)
delaynumberTrigger delay in seconds (when NCYC mode)
gate_polaritystringGate polarity (when GATE mode)
manual_triggerbooleanSend a manual trigger (only when trigger source is MAN)
periodnumberBurst period in seconds
start_phasenumberStart phase in degrees (0-360)
statestringBurst state. Must be ON before setting other params.
trigger_edgestringTrigger edge (when EXT or MAN)
trigger_outstringTrigger output mode (when NCYC and INT/MAN)
trigger_sourcestringTrigger source

get_arbitrary_wave

Get the current arbitrary waveform selection for a channel. Returns the waveform index and name.

ParameterTypeDescription
channel *stringChannel 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.

ParameterTypeDescription
channel *stringChannel to configure
indexnumberIndex of the built-in arbitrary waveform (0-198). Examples: 0=Sine, 2=StairUp, 10=ExpFal, 18=Sinc, 19=Gaussian, 26=Cardiac
namestringName 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.

ParameterTypeDescription
destination *stringDestination channel to copy to
source *stringSource channel to copy from

configure_sync

Configure the sync output signal for a channel.

ParameterTypeDescription
channel *stringChannel to configure
state *stringSync output state
typestringSync 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).

ParameterTypeDescription
command *stringSCPI query command to send (e.g. '*IDN?', 'C1:BSWV?', 'C1:OUTP?')
timeout_msnumberTimeout in milliseconds (default 5000)