Function Generator · SCPI command reference

Rigol DG812 and DG822 SCPI commands

The Rigol DG812 and DG822 function generator is controlled remotely with SCPI commands. TestFlow's instrument library holds 213 commands for it, 60 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 DG812 on a real bench.

Commands
213
Queries
60
Subsystems
11
Models covered
2

Control the Rigol DG812 from Python

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 Rigol DG812's VISA address

# Paste the address of your Rigol DG812 (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("OUTPut1:STATe ON")  # Turn On Output
print(inst.query("OUTPut1:STATe?"))  # Read Output State

inst.close()

Run a DG812 test without writing code

Describe the test in a sentence, for example “turn on output on the DG812, then read output state 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.

Get started

SCPI command reference

213 commands in 11 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The DG812 and DG822 share this command set in TestFlow's library.

Source (SOURce) (147)

CommandWhat it doesArguments
SOURce1:FUNCtion <Shape>Set Waveform Shape. Sets the output waveform shape of channel 1.Text: SINusoid,SQUare,RAMP,PULSe,NOISe,DC,USER,HARMonic,DUALTone
SOURce1:FUNCtion?Read Waveform Shape. Reads the current output waveform shape.None
SOURce1:FREQuency:FIXed <Freq>Set Frequency. Sets the output frequency in Hz. Sine 1 uHz to 10 MHz; Square/Pulse/Arb to 5 MHz; Ramp to 200 kHz.Number
SOURce1:FREQuency:FIXed?Read Frequency. Reads the current output frequency in Hz.None
SOURce1:PERiod:FIXed <Sec>Set Period. Sets the output period in seconds.Number
SOURce1:PERiod:FIXed?Read Period. Reads the current output period in seconds.None
SOURce1:VOLTage:LEVel:IMMediate:AMPLitude <Amp>Set Amplitude. Sets the output amplitude (Vpp). Range depends on impedance setting.Number
SOURce1:VOLTage:LEVel:IMMediate:AMPLitude?Read Amplitude. Reads the current output amplitude.None
SOURce1:VOLTage:LEVel:IMMediate:HIGH <Volt>Set Voltage High. Sets the high voltage level of the output waveform.Number
SOURce1:VOLTage:LEVel:IMMediate:HIGH?Read Voltage High. Reads the high voltage level setting.None
SOURce1:VOLTage:LEVel:IMMediate:LOW <Volt>Set Voltage Low. Sets the low voltage level of the output waveform.Number
SOURce1:VOLTage:LEVel:IMMediate:LOW?Read Voltage Low. Reads the low voltage level setting.None
SOURce1:VOLTage:LEVel:IMMediate:OFFSet <Volt>Set Voltage Offset. Sets the DC offset voltage of the output waveform.Number
SOURce1:VOLTage:LEVel:IMMediate:OFFSet?Read Voltage Offset. Reads the current DC offset voltage.None
SOURce1:VOLTage:UNIT <Unit>Set Voltage Unit. Sets the amplitude unit.Text: VPP,VRMS,DBM
SOURce1:VOLTage:UNIT?Read Voltage Unit. Reads the current amplitude unit.None
SOURce1:PHASe:ADJust <Phase>Set Phase. Sets the start phase of the output waveform in degrees (0 to 360).Number
SOURce1:PHASe:ADJust?Read Phase. Reads the current start phase in degrees.None
SOURce1:PHASe:SYNChronizeSync Phase. Aligns/synchronizes the phase reference of the channel.None
SOURce1:APPLy:SINusoid <Freq>,<Amp>,<Offset>Apply Sine. Sets CH1 to Sine with the given frequency, amplitude and offset.Number; Number; Number
SOURce1:APPLy:SQUare <Freq>,<Amp>,<Offset>Apply Square. Sets CH1 to Square with the given frequency, amplitude and offset.Number; Number; Number
SOURce1:APPLy:RAMP <Freq>,<Amp>,<Offset>Apply Ramp. Sets CH1 to Ramp with the given frequency, amplitude and offset.Number; Number; Number
SOURce1:APPLy:PULSe <Freq>,<Amp>,<Offset>Apply Pulse. Sets CH1 to Pulse with the given frequency, amplitude and offset.Number; Number; Number
SOURce1:APPLy:NOISe <Amp>,<Offset>Apply Noise. Sets CH1 to Noise with the given amplitude and offset.Number; Number
SOURce1:APPLy:DC 1,1,<Offset>Apply DC. Sets CH1 to DC with the given offset voltage.Number
SOURce1:APPLy:USER <Freq>,<Amp>,<Offset>Apply Arbitrary. Sets CH1 to the Arbitrary/User waveform with the given frequency, amplitude and offset.Number; Number; Number
SOURce1:APPLy:DUALTone <Freq>,<Amp>,<Offset>Apply Dualtone. Sets CH1 to Dual-tone with the given frequency, amplitude and offset.Number; Number; Number
SOURce1:APPLy?Read Apply. Reads the current waveform type, frequency, amplitude, offset and phase.None
SOURce1:FUNCtion:RAMP:SYMMetry <Pct>Set Ramp Symmetry. Sets the ramp symmetry as a percentage (0 to 100).Number
SOURce1:FUNCtion:RAMP:SYMMetry?Read Ramp Symmetry. Reads the ramp symmetry percentage.None
SOURce1:FUNCtion:SQUare:DCYCle <Pct>Set Square Duty Cycle. Sets the square wave duty cycle as a percentage.Number
SOURce1:FUNCtion:SQUare:DCYCle?Read Square Duty Cycle. Reads the square wave duty cycle.None
SOURce1:FUNCtion:PULSe:PERiod <Sec>Set Pulse Period. Sets the pulse period in seconds (40 ns to 1 Ms).Number
SOURce1:FUNCtion:PULSe:PERiod?Read Pulse Period. Reads the current pulse period.None
SOURce1:FUNCtion:PULSe:WIDTh <Sec>Set Pulse Width. Sets the pulse width in seconds (min 16 ns).Number
SOURce1:FUNCtion:PULSe:WIDTh?Read Pulse Width. Reads the current pulse width.None
SOURce1:FUNCtion:PULSe:DCYCle <Pct>Set Pulse Duty Cycle. Sets the pulse duty cycle as a percentage (0.001 to 99.999).Number
SOURce1:FUNCtion:PULSe:DCYCle?Read Pulse Duty Cycle. Reads the current pulse duty cycle.None
SOURce1:FUNCtion:PULSe:TRANsition:LEADing <Sec>Set Pulse Lead Edge. Sets the pulse leading (rise) edge transition time.Number
SOURce1:FUNCtion:PULSe:TRANsition:LEADing?Read Pulse Lead Edge. Reads the pulse leading edge transition time.None
SOURce1:FUNCtion:PULSe:TRANsition:TRAiling <Sec>Set Pulse Trail Edge. Sets the pulse trailing (fall) edge transition time.Number
SOURce1:FUNCtion:PULSe:TRANsition:TRAiling?Read Pulse Trail Edge. Reads the pulse trailing edge transition time.None
SOURce1:FUNCtion:PULSe:TRANsition:BOTH <Sec>Set Pulse Both Edges. Sets both the rise and fall edge transition times to the same value.Number
SOURce1:FUNCtion:DUALTone:FREQ1 <Freq>Set Dualtone Freq1. Sets frequency 1 of the dual-tone signal.Number
SOURce1:FUNCtion:DUALTone:FREQ1?Read Dualtone Freq1. Reads frequency 1 of the dual-tone signal.None
SOURce1:FUNCtion:DUALTone:FREQ2 <Freq>Set Dualtone Freq2. Sets frequency 2 of the dual-tone signal.Number
SOURce1:FUNCtion:DUALTone:FREQ2?Read Dualtone Freq2. Reads frequency 2 of the dual-tone signal.None
SOURce1:FUNCtion:DUALTone:CENTERFreq <Freq>Set Dualtone Center Freq. Sets the center frequency of the dual-tone signal.Number
SOURce1:FUNCtion:DUALTone:OFFSETFreq <Freq>Set Dualtone Offset Freq. Sets the offset frequency of the dual-tone signal.Number
SOURce1:FUNCtion:PRBS:BRATe <Rate>Set PRBS Bit Rate. Sets the PRBS bit rate (2 kbps to 10 Mbps for DG811).Number
SOURce1:FUNCtion:PRBS:BRATe?Read PRBS Bit Rate. Reads the PRBS bit rate.None
SOURce1:FUNCtion:PRBS:DATA <Type>Set PRBS Data Type. Sets the PRBS data sequence type.Text: PN7,PN9,PN11
SOURce1:FUNCtion:PRBS:DATA?Read PRBS Data Type. Reads the PRBS data sequence type.None
SOURce1:MOD:TYPe <Type>Set Modulation Type. Selects the modulation type.Text: AM,FM,PM,ASK,FSK,PSK,PWM
SOURce1:MOD:TYPe?Read Modulation Type. Reads the current modulation type.None
SOURce1:MOD:STATe ONEnable Modulation. Enables the modulation function.None
SOURce1:MOD:STATe OFFDisable Modulation. Disables the modulation function.None
SOURce1:MOD:STATe?Read Modulation State. Reads whether modulation is enabled.None
SOURce1:MOD:AM:STATe ONEnable AM. Enables AM modulation.None
SOURce1:MOD:AM:STATe OFFDisable AM. Disables AM modulation.None
SOURce1:MOD:AM:STATe?Read AM State. Reads whether AM modulation is enabled.None
SOURce1:MOD:AM:DEPTh <Pct>Set AM Depth. Sets the AM modulation depth as a percentage (0 to 120).Number
SOURce1:MOD:AM:DEPTh?Read AM Depth. Reads the AM modulation depth.None
SOURce1:MOD:AM:SOURce <Src>Set AM Source. Sets the AM modulation source.Text: INTernal,EXTernal
SOURce1:MOD:AM:INTernal:FREQuency <Freq>Set AM Int Frequency. Sets the internal AM modulating frequency in Hz.Number
SOURce1:MOD:AM:INTernal:FUNCtion <Shape>Set AM Int Function. Sets the internal AM modulating waveform shape.Text: SINusoid,SQUare,TRIangle,RAMP,NRAMp,NOISe,USER
SOURce1:MOD:AM:DSSC ONEnable AM DSSC. Enables AM double-sideband suppressed carrier mode.None
SOURce1:MOD:AM:DSSC OFFDisable AM DSSC. Disables AM double-sideband suppressed carrier mode.None
SOURce1:MOD:FM:STATe ONEnable FM. Enables FM modulation.None
SOURce1:MOD:FM:STATe OFFDisable FM. Disables FM modulation.None
SOURce1:MOD:FM:STATe?Read FM State. Reads whether FM modulation is enabled.None
SOURce1:MOD:FM:DEViation <Freq>Set FM Deviation. Sets the FM frequency deviation in Hz.Number
SOURce1:MOD:FM:DEViation?Read FM Deviation. Reads the FM frequency deviation.None
SOURce1:MOD:FM:SOURce <Src>Set FM Source. Sets the FM modulation source.Text: INTernal,EXTernal
SOURce1:MOD:FM:INTernal:FREQuency <Freq>Set FM Int Frequency. Sets the internal FM modulating frequency in Hz.Number
SOURce1:MOD:FM:INTernal:FUNCtion <Shape>Set FM Int Function. Sets the internal FM modulating waveform shape.Text: SINusoid,SQUare,TRIangle,RAMP,NRAMp,NOISe,USER
SOURce1:MOD:PM:STATe ONEnable PM. Enables PM modulation.None
SOURce1:MOD:PM:STATe OFFDisable PM. Disables PM modulation.None
SOURce1:MOD:PM:STATe?Read PM State. Reads whether PM modulation is enabled.None
SOURce1:MOD:PM:DEViation <Deg>Set PM Deviation. Sets the PM phase deviation in degrees.Number
SOURce1:MOD:PM:DEViation?Read PM Deviation. Reads the PM phase deviation.None
SOURce1:MOD:PM:SOURce <Src>Set PM Source. Sets the PM modulation source.Text: INTernal,EXTernal
SOURce1:MOD:PM:INTernal:FREQuency <Freq>Set PM Int Frequency. Sets the internal PM modulating frequency in Hz.Number
SOURce1:MOD:PM:INTernal:FUNCtion <Shape>Set PM Int Function. Sets the internal PM modulating waveform shape.Text: SINusoid,SQUare,TRIangle,RAMP,NRAMp,NOISe,USER
SOURce1:MOD:PWM:STATe ONEnable PWM. Enables PWM modulation (pulse carrier only).None
SOURce1:MOD:PWM:STATe OFFDisable PWM. Disables PWM modulation.None
SOURce1:MOD:PWM:STATe?Read PWM State. Reads whether PWM modulation is enabled.None
SOURce1:MOD:PWM:DEViation:DCYCle <Pct>Set PWM Duty Deviation. Sets the PWM duty cycle deviation as a percentage.Number
SOURce1:MOD:PWM:DEViation:DCYCle?Read PWM Duty Deviation. Reads the PWM duty cycle deviation.None
SOURce1:MOD:PWM:SOURce <Src>Set PWM Source. Sets the PWM modulation source.Text: INTernal,EXTernal
SOURce1:MOD:PWM:INTernal:FREQuency <Freq>Set PWM Int Frequency. Sets the internal PWM modulating frequency in Hz.Number
SOURce1:MOD:PWM:INTernal:FUNCtion <Shape>Set PWM Int Function. Sets the internal PWM modulating waveform shape.Text: SINusoid,SQUare,TRIangle,RAMP,NRAMp,NOISe,USER
SOURce1:MOD:ASKey:STATe ONEnable ASK. Enables ASK (amplitude shift keying) modulation.None
SOURce1:MOD:ASKey:STATe OFFDisable ASK. Disables ASK modulation.None
SOURce1:MOD:ASKey:AMPLitude <Amp>Set ASK Amplitude. Sets the ASK keying amplitude.Number
SOURce1:MOD:ASKey:INTernal:RATE <Rate>Set ASK Rate. Sets the ASK internal keying rate in Hz.Number
SOURce1:MOD:ASKey:SOURce <Src>Set ASK Source. Sets the ASK modulation source.Text: INTernal,EXTernal
SOURce1:MOD:ASKey:POLarity <Pol>Set ASK Polarity. Sets the ASK external keying polarity.Text: POSitive,NEGative
SOURce1:MOD:FSKey:STATe ONEnable FSK. Enables FSK (frequency shift keying) modulation.None
SOURce1:MOD:FSKey:STATe OFFDisable FSK. Disables FSK modulation.None
SOURce1:MOD:FSKey:FREQuency <Freq>Set FSK Hop Frequency. Sets the FSK hop frequency in Hz.Number
SOURce1:MOD:FSKey:FREQuency?Read FSK Hop Frequency. Reads the FSK hop frequency.None
SOURce1:MOD:FSKey:INTernal:RATE <Rate>Set FSK Rate. Sets the FSK internal keying rate in Hz.Number
SOURce1:MOD:FSKey:SOURce <Src>Set FSK Source. Sets the FSK modulation source.Text: INTernal,EXTernal
SOURce1:MOD:FSKey:POLarity <Pol>Set FSK Polarity. Sets the FSK external keying polarity.Text: POSitive,NEGative
SOURce1:MOD:PSKey:STATe ONEnable PSK. Enables PSK (phase shift keying) modulation.None
SOURce1:MOD:PSKey:STATe OFFDisable PSK. Disables PSK modulation.None
SOURce1:MOD:PSKey:PHASe <Deg>Set PSK Phase. Sets the PSK keying phase in degrees.Number
SOURce1:MOD:PSKey:INTernal:RATE <Rate>Set PSK Rate. Sets the PSK internal keying rate in Hz.Number
SOURce1:MOD:PSKey:SOURce <Src>Set PSK Source. Sets the PSK modulation source.Text: INTernal,EXTernal
SOURce1:MOD:PSKey:POLarity <Pol>Set PSK Polarity. Sets the PSK external keying polarity.Text: POSitive,NEGative
SOURce1:SWEep:STATe ONEnable Sweep. Enables the frequency sweep function.None
SOURce1:SWEep:STATe OFFDisable Sweep. Disables the frequency sweep function.None
SOURce1:SWEep:STATe?Read Sweep State. Reads whether the sweep function is enabled.None
SOURce1:SWEep:SPACing <Type>Set Sweep Type. Sets the sweep spacing type.Text: LINear,LOGarithmic,STEp
SOURce1:SWEep:SPACing?Read Sweep Type. Reads the current sweep spacing type.None
SOURce1:SWEep:TIME <Sec>Set Sweep Time. Sets the total sweep time in seconds.Number
SOURce1:SWEep:TIME?Read Sweep Time. Reads the current sweep time.None
SOURce1:SWEep:RTIMe <Sec>Set Sweep Return Time. Sets the sweep return time from stop back to start frequency.Number
SOURce1:SWEep:HTIMe:STARt <Sec>Set Sweep Hold Start. Sets the hold time at the start frequency.Number
SOURce1:SWEep:HTIMe:STOP <Sec>Set Sweep Hold Stop. Sets the hold time at the stop frequency.Number
SOURce1:SWEep:STEP <N>Set Sweep Steps. Sets the number of steps in step sweep mode.Number
SOURce1:FREQuency:STARt <Freq>Set Sweep Start Freq. Sets the sweep start frequency in Hz.Number
SOURce1:FREQuency:STARt?Read Sweep Start Freq. Reads the sweep start frequency.None
SOURce1:FREQuency:STOP <Freq>Set Sweep Stop Freq. Sets the sweep stop frequency in Hz.Number
SOURce1:FREQuency:STOP?Read Sweep Stop Freq. Reads the sweep stop frequency.None
SOURce1:FREQuency:CENTer <Freq>Set Sweep Center Freq. Sets the sweep center frequency in Hz.Number
SOURce1:FREQuency:SPAN <Freq>Set Sweep Span. Sets the sweep frequency span in Hz.Number
SOURce1:SWEep:TRIGger:SOURce <Src>Set Sweep Trigger Source. Sets the sweep trigger source.Text: INTernal,EXTernal,MANual
SOURce1:SWEep:TRIGger:SLOPe <Slope>Set Sweep Trigger Slope. Sets the sweep external trigger edge.Text: POSitive,NEGative
SOURce1:SWEep:TRIGger:IMMediateSweep Trigger Now. Triggers a sweep immediately (manual trigger).None
SOURce1:BURSt:STATe ONEnable Burst. Enables the burst function.None
SOURce1:BURSt:STATe OFFDisable Burst. Disables the burst function.None
SOURce1:BURSt:STATe?Read Burst State. Reads whether the burst function is enabled.None
SOURce1:BURSt:MODE <Mode>Set Burst Mode. Sets the burst type: N-cycle (TRIGgered), Infinite or Gated.Text: TRIGgered,INFinity,GATed
SOURce1:BURSt:MODE?Read Burst Mode. Reads the current burst type.None
SOURce1:BURSt:NCYCles <N>Set Burst Cycles. Sets the number of cycles per burst.Number
SOURce1:BURSt:NCYCles?Read Burst Cycles. Reads the number of burst cycles.None
SOURce1:BURSt:INTernal:PERiod <Sec>Set Burst Period. Sets the internal burst period for N-cycle internal-triggered burst.Number
SOURce1:BURSt:INTernal:PERiod?Read Burst Period. Reads the internal burst period.None
SOURce1:BURSt:PHASe <Deg>Set Burst Phase. Sets the start phase of the burst.Number
SOURce1:BURSt:TDELay <Sec>Set Burst Delay. Sets the burst trigger delay in seconds.Number
SOURce1:BURSt:TDELay?Read Burst Delay. Reads the burst trigger delay.None
SOURce1:BURSt:GATE:POLarity <Pol>Set Burst Gate Polarity. Sets the gate polarity for gated burst.Text: NORMal,INVerted
SOURce1:BURSt:TRIGger:SOURce <Src>Set Burst Trigger Source. Sets the burst trigger source.Text: INTernal,EXTernal,MANual
SOURce1:BURSt:TRIGger:SLOPe <Slope>Set Burst Trigger Slope. Sets the burst external trigger edge.Text: POSitive,NEGative
SOURce1:BURSt:TRIGger:IMMediateBurst Trigger Now. Triggers a burst output immediately (manual trigger).None

Output (OUTPut) (21)

CommandWhat it doesArguments
OUTPut1:STATe ONTurn On Output. Enables the output of channel 1.None
OUTPut1:STATe OFFTurn Off Output. Disables the output of channel 1.None
OUTPut1:STATe?Read Output State. Reads whether channel 1 output is ON or OFF.None
OUTPut1:IMPedance <Ohm>Set Output Impedance. Sets the output load impedance in ohms (1 to 10k) or use INFinity for HighZ.Number
OUTPut1:IMPedance?Read Output Impedance. Reads the current output load impedance setting.None
OUTPut1:POLarity NORMalSet Output Polarity Normal. Sets output polarity to normal (non-inverted).None
OUTPut1:POLarity INVertedSet Output Polarity Inverted. Sets output polarity to inverted.None
OUTPut1:POLarity?Read Output Polarity. Reads the current output polarity setting.None
OUTPut1:SYNC:STATe ONTurn On Sync Output. Enables the sync signal output on the rear-panel connector.None
OUTPut1:SYNC:STATe OFFTurn Off Sync Output. Disables the sync signal output on the rear-panel connector.None
OUTPut1:SYNC:STATe?Read Sync Output State. Reads whether the sync signal output is ON or OFF.None
OUTPut1:SYNC:POLarity POSitiveSet Sync Polarity Positive. Sets the sync signal output polarity to positive (normal).None
OUTPut1:SYNC:POLarity NEGativeSet Sync Polarity Negative. Sets the sync signal output polarity to negative (inverted).None
OUTPut1:SYNC:POLarity?Read Sync Polarity. Reads the sync signal output polarity.None
OUTPut1:VOLLimit:HIGH <Volt>Set Voltage Limit High. Sets the high-level amplitude of the voltage limit.Number
OUTPut1:VOLLimit:HIGH?Read Voltage Limit High. Reads the high-level amplitude of the voltage limit.None
OUTPut1:VOLLimit:LOW <Volt>Set Voltage Limit Low. Sets the low-level amplitude of the voltage limit.Number
OUTPut1:VOLLimit:LOW?Read Voltage Limit Low. Reads the low-level amplitude of the voltage limit.None
OUTPut1:VOLLimit:STATe ONEnable Voltage Limit. Enables the output voltage limit protection.None
OUTPut1:VOLLimit:STATe OFFDisable Voltage Limit. Disables the output voltage limit protection.None
OUTPut1:VOLLimit:STATe?Read Voltage Limit State. Reads whether the voltage limit is enabled.None

COUN subsystem (11)

CommandWhat it doesArguments
COUNter:STATe ONEnable Counter. Enables the frequency counter.None
COUNter:STATe OFFDisable Counter. Disables the frequency counter.None
COUNter:STATe?Read Counter State. Reads the frequency counter status.None
COUNter:MEASure?Read Counter Measure. Reads the counter results: frequency, period, duty cycle, +width, -width.None
COUNter:COUPling <Mode>Set Counter Coupling. Sets the frequency counter input coupling.Text: AC,DC
COUNter:SENSitive <Level>Set Counter Sensitivity. Sets the counter trigger sensitivity.Text: LOW,HIGh
COUNter:LEVEl <Volt>Set Counter Trigger Level. Sets the counter trigger level (-2.5 V to 2.5 V).Number
COUNter:HF ONEnable Counter HF Reject. Enables the counter high-frequency rejection filter.None
COUNter:HF OFFDisable Counter HF Reject. Disables the counter high-frequency rejection filter.None
COUNter:GATEtime <Gate>Set Counter Gate Time. Sets the counter gate time.Text: USER1,USER2,USER3,USER4,USER5,USER6
COUNter:AUTOCounter Auto Gate. Lets the counter select a proper gate time automatically.None

Mass memory (MMEMory) (7)

CommandWhat it doesArguments
MMEMory:STORe:STATe <File>Save State. Stores the current instrument state to a file (.RSF) in the current directory.Text
MMEMory:LOAD:STATe <File>Load State. Loads an instrument state file (.RSF) from the current directory.Text
MMEMory:STORe:DATA1 <File>Save Arb Data. Stores the channel arbitrary waveform data to a file (.RAF).Text
MMEMory:LOAD:DATA1 <File>Load Arb Data. Loads an arbitrary waveform file (.RAF) into the channel.Text
MMEMory:DELete <File>Delete File. Deletes the specified file or empty folder in the current directory.Text
MMEMory:CDIRectory <Path>Set Directory. Sets the current working directory.Text
MMEMory:CATalog:ALL?List Directory. Lists all files and folders in the current directory.None

System (SYSTem) (6)

CommandWhat it doesArguments
SYSTem:BEEPer:STATe ONEnable Beeper. Enables the system beeper.None
SYSTem:BEEPer:STATe OFFDisable Beeper. Disables the system beeper.None
SYSTem:BEEPer:IMMediateBeep Now. Sounds the beeper once immediately.None
SYSTem:POWeron <Mode>Set Power On Config. Sets the power-on configuration to factory default or last setting.Text: DEFault,LAST
SYSTem:VERSion?Read SCPI Version. Returns the SCPI version the instrument conforms to.None
SYSTem:ERRor:NEXT?Read Error. Reads and removes the next message from the error queue.None

Display (DISPlay) (5)

CommandWhat it doesArguments
DISPlay:BRIGhtness <Level>Set Display Brightness. Sets the screen brightness (1 to 100 percent).Number
DISPlay:BRIGhtness?Read Display Brightness. Reads the screen brightness.None
DISPlay:SAVer:STATe ONEnable Screensaver. Enables the display screen saver.None
DISPlay:SAVer:STATe OFFDisable Screensaver. Disables the display screen saver.None
DISPlay:SAVer:IMMediateScreensaver Now. Activates the screen saver immediately.None

ROSC subsystem (3)

CommandWhat it doesArguments
ROSCillator:SOURce INTernalSet Clock Source Internal. Sets the system clock source to internal 10 MHz.None
ROSCillator:SOURce EXTernalSet Clock Source External. Sets the system clock source to the external 10 MHz input.None
ROSCillator:SOURce:CURRent?Read Clock Source. Reads the currently selected system clock source.None

Other subsystem (1)

CommandWhat it doesArguments
<Output Variable>=<Equation>Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)Number; Text

WAIT subsystem (1)

CommandWhat it doesArguments
wait(<ms>)Wait. Waits for number of millisecondsNumber

SAVE subsystem (1)

CommandWhat it doesArguments
save2var <Variable_name>Save2Variable. Saves last measurement to a variableText

IEEE 488.2 common commands (10)

CommandWhat it doesArguments
*RCL <Slot>Recall State Slot. Recalls the state stored in internal memory slot 0 to 5.Number
*SAV <Slot>Save State Slot. Stores the current state to internal memory slot 0 to 5.Number
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).None
*RSTReset. Restores the instrument to its factory default state.None
*CLSClear Status. Clears all event registers and the error queue.None
*OPC?Operation Complete. Returns 1 when all pending operations are complete.None
*OPCSet Operation Complete. Sets the OPC bit in the standard event register after pending operations complete.None
*WAIWait For Complete. Prevents executing further commands until all pending operations finish.None
*TRGTrigger. Triggers a sweep or burst (bus/manual trigger).None
*OPT?Read Options. Queries the installation state of the instrument options.None

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from Rigol's programming documentation for the DG812 and DG822 and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Rigol's programming manual: check it before you rely on an edge case. Last updated November 17, 2026.

Frequently asked questions

Does the Rigol DG812 support SCPI remote control?

Yes. The Rigol DG812 accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 213 SCPI commands for it: 60 queries that read values or state, and 153 settings and actions.

How do I control the Rigol DG812 from Python?

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?, OUTPut1:STATe ON and OUTPut1:STATe?.

Which command reads a value from the Rigol DG812?

OUTPut1:STATe? (read output state). Reads whether channel 1 output is ON or OFF. The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the Rigol DG812 without writing code?

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 Rigol DG812 through the TestFlow desktop app, and writes the report from the measured results.

Your next test, automated today

Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.