The Siglent SDG1032X function generator is controlled remotely with SCPI commands. TestFlow's instrument library holds 74 commands for it, 9 of them queries that read values or state, grouped below by subsystem with their arguments. It is the same library TestFlow's AI agent uses to drive the SDG1032X on a real bench.
With PyVISA, any VISA backend, and the instrument on USB, LAN or GPIB, this opens a session, identifies the instrument, sends one setting, and reads one value. Every command in it comes from the reference below. For a full walkthrough, see the PyVISA tutorial and the SCPI command cheat sheet.
import pyvisa
rm = pyvisa.ResourceManager()
print(rm.list_resources()) # find the Siglent SDG1032X's VISA address
# Paste the address of your Siglent SDG1032X (USB, LAN or GPIB).
inst = rm.open_resource("PASTE_VISA_ADDRESS_HERE")
inst.timeout = 5000 # ms
print(inst.query("*IDN?")) # identify the instrument
inst.write("C1:OUTP ON") # Turn On Output
print(inst.query("*TST?")) # Self Test
inst.close()Describe the test in a sentence, for example “turn on output on the SDG1032X, then self test and log it against a limit”. TestFlow's agent builds the steps from this command library, runs them on your bench through the TestFlow desktop app, and writes the report from the measured values. See AI test automation for lab instruments for how that works and where it stops.
74 commands in 9 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.
| Command | What it does | Arguments |
|---|---|---|
| C<Channel>:OUTP ON | Turn On Output. Enables the selected channel output. | Number: 1,2 |
| C<Channel>:OUTP OFF | Turn Off Output. Disables the selected channel output. | Number: 1,2 |
| C<Channel>:OUTP? | Read Output State. Reads the selected channel output state and settings. | Number: 1,2 |
| C<Channel>:OUTP LOAD,<Ohm> | Set Output Load. Sets the selected channel output load in ohms (50 to 100000) or HZ for high-Z. | Number: 1,2; Number |
| C<Channel>:OUTP LOAD,HZ | Set Output Load HighZ. Sets the selected channel output load to high-impedance. | Number: 1,2 |
| C<Channel>:OUTP PLRT,NOR | Set Output Polarity Normal. Sets the selected channel output polarity to normal. | Number: 1,2 |
| C<Channel>:OUTP PLRT,INVT | Set Output Polarity Inverted. Sets the selected channel output polarity to inverted. | Number: 1,2 |
| C<Channel>:BSWV WVTP,<Shape> | Set Function. Sets the basic waveform type for the selected channel. | Number: 1,2; Text: SINE,SQUARE,RAMP,PULSE,NOISE,ARB,DC,PRBS,IQ |
| C<Channel>:BSWV? | Read Basic Waveform. Reads all basic-waveform parameters for the selected channel. | Number: 1,2 |
| C<Channel>:BSWV FRQ,<Freq> | Set Frequency. Sets the output frequency in Hz for the selected channel. | Number: 1,2; Number |
| C<Channel>:BSWV PERI,<Sec> | Set Period. Sets the output period in seconds for the selected channel. | Number: 1,2; Number |
| C<Channel>:BSWV AMP,<Amp> | Set Amplitude. Sets the output amplitude (Vpp) for the selected channel. | Number: 1,2; Number |
| C<Channel>:BSWV AMPVRMS,<Vrms> | Set Amplitude RMS. Sets the output amplitude in Vrms for the selected channel. | Number: 1,2; Number |
| C<Channel>:BSWV OFST,<Volt> | Set Voltage Offset. Sets the DC offset voltage for the selected channel. | Number: 1,2; Number |
| C<Channel>:BSWV HLEV,<Volt> | Set Voltage High. Sets the high voltage level for the selected channel. | Number: 1,2; Number |
| C<Channel>:BSWV LLEV,<Volt> | Set Voltage Low. Sets the low voltage level for the selected channel. | Number: 1,2; Number |
| C<Channel>:BSWV PHSE,<Deg> | Set Phase. Sets the output phase in degrees for the selected channel. | Number: 1,2; Number |
| C<Channel>:BSWV SYM,<Pct> | Set Ramp Symmetry. Sets the ramp symmetry percentage for the selected channel. | Number: 1,2; Number |
| C<Channel>:BSWV DUTY,<Pct> | Set Square Duty Cycle. Sets the square/pulse duty cycle percentage for the selected channel. | Number: 1,2; Number |
| C<Channel>:BSWV WIDTH,<Sec> | Set Pulse Width. Sets the pulse width in seconds for the selected channel. | Number: 1,2; Number |
| C<Channel>:BSWV RISE,<Sec> | Set Pulse Rise. Sets the pulse rise time for the selected channel. | Number: 1,2; Number |
| C<Channel>:BSWV FALL,<Sec> | Set Pulse Fall. Sets the pulse fall time for the selected channel. | Number: 1,2; Number |
| C<Channel>:BSWV DLY,<Sec> | Set Pulse Delay. Sets the pulse delay for the selected channel. | Number: 1,2; Number |
| C<Channel>:ARWV NAME,<Name> | Set Arb Waveform. Selects the arbitrary waveform by name for the selected channel. | Number: 1,2; Text |
| C<Channel>:ARWV INDEX,<Index> | Set Arb Index. Selects the arbitrary waveform by index for the selected channel. | Number: 1,2; Number |
| C<Channel>:MDWV STATE,ON | Enable Modulation. Enables modulation on the selected channel. | Number: 1,2 |
| C<Channel>:MDWV STATE,OFF | Disable Modulation. Disables modulation on the selected channel. | Number: 1,2 |
| C<Channel>:MDWV? | Read Modulation. Reads all modulation parameters for the selected channel. | Number: 1,2 |
| C<Channel>:MDWV AM,DEPTH,<Pct> | Set AM Depth. Sets the AM depth percentage for the selected channel. | Number: 1,2; Number |
| C<Channel>:MDWV AM,FRQ,<Freq> | Set AM Freq. Sets the AM modulating frequency for the selected channel. | Number: 1,2; Number |
| C<Channel>:MDWV FM,DEVI,<Freq> | Set FM Deviation. Sets the FM frequency deviation for the selected channel. | Number: 1,2; Number |
| C<Channel>:MDWV FM,FRQ,<Freq> | Set FM Freq. Sets the FM modulating frequency for the selected channel. | Number: 1,2; Number |
| C<Channel>:MDWV PM,DEVI,<Deg> | Set PM Deviation. Sets the PM phase deviation for the selected channel. | Number: 1,2; Number |
| C<Channel>:MDWV FSK,HFRQ,<Freq> | Set FSK Hop Freq. Sets the FSK hop frequency for the selected channel. | Number: 1,2; Number |
| C<Channel>:MDWV PWM,DEVI,<Pct> | Set PWM Duty Deviation. Sets the PWM duty-cycle deviation for the selected channel. | Number: 1,2; Number |
| C<Channel>:MDWV <Type> | Set Modulation Type. Sets the modulation carrier type for the selected channel. | Number: 1,2; Text: AM,DSBAM,FM,PM,PWM,ASK,FSK,PSK |
| C<Channel>:SWWV STATE,ON | Enable Sweep. Enables the frequency sweep on the selected channel. | Number: 1,2 |
| C<Channel>:SWWV STATE,OFF | Disable Sweep. Disables the frequency sweep on the selected channel. | Number: 1,2 |
| C<Channel>:SWWV? | Read Sweep. Reads all sweep parameters for the selected channel. | Number: 1,2 |
| C<Channel>:SWWV TIME,<Sec> | Set Sweep Time. Sets the sweep time in seconds for the selected channel. | Number: 1,2; Number |
| C<Channel>:SWWV START,<Freq> | Set Sweep Start Freq. Sets the sweep start frequency for the selected channel. | Number: 1,2; Number |
| C<Channel>:SWWV STOP,<Freq> | Set Sweep Stop Freq. Sets the sweep stop frequency for the selected channel. | Number: 1,2; Number |
| C<Channel>:SWWV SWMD,<Type> | Set Sweep Spacing. Sets the sweep spacing (linear/log) for the selected channel. | Number: 1,2; Text: LINE,LOG |
| C<Channel>:SWWV TRSR,<Src> | Set Sweep Trigger Source. Sets the sweep trigger source for the selected channel. | Number: 1,2; Text: INT,EXT,MAN |
| C<Channel>:BTWV STATE,ON | Enable Burst. Enables burst mode on the selected channel. | Number: 1,2 |
| C<Channel>:BTWV STATE,OFF | Disable Burst. Disables burst mode on the selected channel. | Number: 1,2 |
| C<Channel>:BTWV? | Read Burst. Reads all burst parameters for the selected channel. | Number: 1,2 |
| C<Channel>:BTWV GATE_NCYC,<Mode> | Set Burst Mode. Sets the burst mode (gate/N-cycle) for the selected channel. | Number: 1,2; Text: GATE,NCYC |
| C<Channel>:BTWV TIME,<N> | Set Burst Cycles. Sets the number of cycles per burst for the selected channel. | Number: 1,2; Number |
| C<Channel>:BTWV PRD,<Sec> | Set Burst Period. Sets the burst period for the selected channel. | Number: 1,2; Number |
| C<Channel>:BTWV STPS,<Deg> | Set Burst Phase. Sets the burst start phase for the selected channel. | Number: 1,2; Number |
| C<Channel>:BTWV DLAY,<Sec> | Set Burst Delay. Sets the burst delay for the selected channel. | Number: 1,2; Number |
| C<Channel>:BTWV TRSR,<Src> | Set Burst Trigger Source. Sets the burst trigger source for the selected channel. | Number: 1,2; Text: INT,EXT,MAN |
| Command | What it does | Arguments |
|---|---|---|
| COUP TRACE,ON | Enable Channel Coupling. Enables channel tracking/coupling. | None |
| COUP TRACE,OFF | Disable Channel Coupling. Disables channel tracking/coupling. | None |
| Command | What it does | Arguments |
|---|---|---|
| ROSC INT | Set Clock Internal. Uses the internal reference clock. | None |
| ROSC EXT | Set Clock External. Uses the external reference clock. | None |
| Command | What it does | Arguments |
|---|---|---|
| BUZZ ON | Buzzer On. Enables the buzzer. | None |
| BUZZ OFF | Buzzer Off. Disables the buzzer. | None |
| Command | What it does | Arguments |
|---|---|---|
| SCSV <Minutes> | Screen Save On. Enables the screen saver. | Number: 1,5,15,30,60,120,300 |
| SCSV OFF | Screen Save Off. Disables the screen saver. | None |
| Command | What it does | Arguments |
|---|---|---|
| <Output Variable>=<Equation> | Math. Variable equals an equation like (${Var_name}= ${Var_name}/2) | Number; Text |
| Command | What it does | Arguments |
|---|---|---|
| wait(<ms>) | Wait. Waits for number of milliseconds | Number |
| Command | What it does | Arguments |
|---|---|---|
| save2var <Variable_name> | Save2Variable. Saves last measurement to a variable | Text |
| Command | What it does | Arguments |
|---|---|---|
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). | None |
| *RST | Reset. Resets the instrument to its default state. | None |
| *CLS | Clear Status. Clears all event registers and the error queue. | None |
| *TST? | Self Test. Runs the self-test and returns 0 for pass. | None |
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. | None |
| *WAI | Wait To Continue. Waits until all pending operations are complete. | None |
| *TRG | Trigger Bus. Generates a bus trigger. | None |
| *SAV <Slot> | Save State Slot. Stores the current state to a memory slot. | Number |
| *RCL <Slot> | Recall State Slot. Recalls a state from a memory slot. | Number |
| *OPT? | Read Options. Queries the installed options. | None |
This reference is generated from TestFlow's instrument library, which is drafted from Siglent's programming documentation for the SDG1032X and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Siglent's programming manual: check it before you rely on an edge case. Last updated November 17, 2026.
Yes. The Siglent SDG1032X accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 74 SCPI commands for it: 9 queries that read values or state, and 65 settings and actions.
Install PyVISA and a VISA backend, find the instrument's address with ResourceManager().list_resources(), open it, then send commands with write() and read values with query(). The example on this page sends *IDN?, C1:OUTP ON and *TST?.
*TST? (self test). Runs the self-test and returns 0 for pass. The full list of queries is in the command reference on this page, grouped by subsystem.
Yes. TestFlow is an AI agent for electronics testing: you describe the test, and it builds the automation from this command library, runs it on the Siglent SDG1032X through the TestFlow desktop app, and writes the report from the measured results.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.