Function Generator · SCPI command reference

Rigol DG1022Z and DG1032Z SCPI commands

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

Commands
201
Queries
49
Subsystems
14
Models covered
2

Control the Rigol DG1022Z 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 DG1022Z's VISA address

# Paste the address of your Rigol DG1022Z (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 DG1022Z test without writing code

Describe the test in a sentence, for example “turn on output on the DG1022Z, 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

201 commands in 14 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The DG1022Z and DG1032Z share this command set in TestFlow's library.

Source (SOURce) (137)

CommandWhat it doesArguments
:SOURce1:APPLy:SINusoid <Freq>,<Amp>,<Offset>Apply Sine. Configures channel 1 to output a sine waveform with the given frequency amplitude and offset.Number; Number; Number
:SOURce1:APPLy:SQUare <Freq>,<Amp>,<Offset>Apply Square. Configures channel 1 to output a square waveform with the given frequency amplitude and offset.Number; Number; Number
:SOURce1:APPLy:RAMP <Freq>,<Amp>,<Offset>Apply Ramp. Configures channel 1 to output a ramp waveform with the given frequency amplitude and offset.Number; Number; Number
:SOURce1:APPLy:PULSe <Freq>,<Amp>,<Offset>Apply Pulse. Configures channel 1 to output a pulse waveform with the given frequency amplitude and offset.Number; Number; Number
:SOURce1:APPLy:NOISe <Amp>,<Offset>Apply Noise. Configures channel 1 to output noise with the given amplitude and offset.Number; Number
:SOURce1:APPLy:DC 1,1,<Offset>Apply DC. Configures channel 1 to output a DC level with the given offset voltage.Number
:SOURce1:APPLy:USER <Freq>,<Amp>,<Offset>Apply User. Configures channel 1 to output the selected arbitrary waveform with the given frequency amplitude and offset.Number; Number; Number
:SOURce1:APPLy?Read Apply Config. Reads the current waveform type frequency amplitude offset and phase of channel 1.None
:SOURce1:FUNCtion <Shape>Set Function Shape. Sets the output waveform shape of channel 1.Text: SINusoid,SQUare,RAMP,PULSe,NOISe,USER,HARMonic,DC,SINC,GAUSS,EXPRISE,EXPFALL,CARDIAC
:SOURce1:FUNCtion?Read Function Shape. Reads the current output waveform shape of channel 1.None
:SOURce1:FREQuency <Freq>Set Frequency. Sets the output frequency of channel 1 in Hz. Sine range 1uHz to 25MHz on the DG1022Z.Number
:SOURce1:FREQuency?Read Frequency. Reads the current output frequency of channel 1.None
:SOURce1:PERiod <Sec>Set Period. Sets the output period of channel 1 in seconds.Number
:SOURce1:PERiod?Read Period. Reads the current output period of channel 1.None
:SOURce1:PHASe <Phase>Set Phase. Sets the start phase of channel 1 in degrees. Range 0 to 360.Number
:SOURce1:PHASe?Read Phase. Reads the current start phase of channel 1.None
:SOURce1:PHASe:INITiateAlign Phase. Re-aligns the phase relationship between the two channels.None
:SOURce1:VOLTage <Amp>Set Amplitude. Sets the output amplitude of channel 1 in the current voltage unit.Number
:SOURce1:VOLTage?Read Amplitude. Reads the current output amplitude of channel 1.None
:SOURce1:VOLTage:OFFSet <Volt>Set Voltage Offset. Sets the DC offset voltage of channel 1.Number
:SOURce1:VOLTage:OFFSet?Read Voltage Offset. Reads the current DC offset voltage of channel 1.None
:SOURce1:VOLTage:HIGH <Volt>Set Voltage High. Sets the high voltage level of the channel 1 waveform.Number
:SOURce1:VOLTage:HIGH?Read Voltage High. Reads the high voltage level of channel 1.None
:SOURce1:VOLTage:LOW <Volt>Set Voltage Low. Sets the low voltage level of the channel 1 waveform.Number
:SOURce1:VOLTage:LOW?Read Voltage Low. Reads the low voltage level of channel 1.None
:SOURce1:VOLTage:UNIT <Unit>Set Voltage Unit. Sets the amplitude unit of channel 1.Text: VPP,VRMS,DBM
:SOURce1:VOLTage:UNIT?Read Voltage Unit. Reads the current amplitude unit of channel 1.None
:SOURce1:VOLTage:RANGe:AUTO <State>Set Voltage Auto Range. Enables or disables automatic voltage range selection for channel 1.Text: ON,OFF
:SOURce1:FUNCtion:SQUare:DCYCle <Pct>Set Square Duty Cycle. Sets the duty cycle of a square waveform as a percentage.Number
:SOURce1:FUNCtion:SQUare:DCYCle?Read Square Duty Cycle. Reads the square waveform duty cycle.None
:SOURce1:FUNCtion:RAMP:SYMMetry <Pct>Set Ramp Symmetry. Sets the symmetry of a ramp waveform as a percentage (0 to 100).Number
:SOURce1:FUNCtion:RAMP:SYMMetry?Read Ramp Symmetry. Reads the ramp waveform symmetry percentage.None
:SOURce1:FUNCtion:PULSe:WIDTh <Sec>Set Pulse Width. Sets the pulse width of channel 1 in seconds.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.Number
:SOURce1:FUNCtion:PULSe:DCYCle?Read Pulse Duty Cycle. Reads the current pulse duty cycle.None
:SOURce1:FUNCtion:PULSe:PERiod <Sec>Set Pulse Period. Sets the pulse period in seconds.Number
:SOURce1:FUNCtion:PULSe:PERiod?Read Pulse Period. Reads the current pulse period.None
:SOURce1:FUNCtion:PULSe:TRANsition:LEADing <Sec>Set Pulse Rise Time. Sets the pulse leading edge (rise) transition time.Number
:SOURce1:FUNCtion:PULSe:TRANsition:LEADing?Read Pulse Rise Time. Reads the pulse rise time.None
:SOURce1:FUNCtion:PULSe:TRANsition:TRAiling <Sec>Set Pulse Fall Time. Sets the pulse trailing edge (fall) transition time.Number
:SOURce1:FUNCtion:PULSe:TRANsition:TRAiling?Read Pulse Fall Time. Reads the pulse fall time.None
:SOURce1:FUNCtion:ARBitrary:MODE <Mode>Set Arb Mode. Sets the arbitrary waveform output mode to frequency or sample rate.Text: FREQ,SRATe
:SOURce1:FUNCtion:ARBitrary:MODE?Read Arb Mode. Reads the arbitrary waveform output mode.None
:SOURce1:FUNCtion:ARBitrary:SRATe <Rate>Set Arb Sample Rate. Sets the arbitrary waveform sample rate in Sa/s.Number
:SOURce1:FUNCtion:ARBitrary:SRATe?Read Arb Sample Rate. Reads the arbitrary waveform sample rate.None
:SOURce1:HARMonic:STATe ONEnable Harmonic. Enables the harmonic function of channel 1.None
:SOURce1:HARMonic:STATe OFFDisable Harmonic. Disables the harmonic function of channel 1.None
:SOURce1:HARMonic:STATe?Read Harmonic State. Reads whether the harmonic function is enabled.None
:SOURce1:HARMonic:ORDEr <Order>Set Harmonic Order. Sets the highest harmonic order that can be output (2 to 8).Number
:SOURce1:HARMonic:ORDEr?Read Harmonic Order. Reads the highest harmonic order.None
:SOURce1:HARMonic:TYPe <Type>Set Harmonic Type. Sets the harmonic type to even odd all or user defined.Text: EVEN,ODD,ALL,USER
:SOURce1:HARMonic:TYPe?Read Harmonic Type. Reads the current harmonic type.None
:SOURce1:HARMonic:AMPL <Order>,<Amp>Set Harmonic Amplitude. Sets the amplitude of the specified harmonic order.Number; Number
:SOURce1:HARMonic:PHASe <Order>,<Phase>Set Harmonic Phase. Sets the phase of the specified harmonic order in degrees.Number; Number
:SOURce1:MOD:STATe ONEnable Modulation. Enables the modulation function of channel 1.None
:SOURce1:MOD:STATe OFFDisable Modulation. Disables the modulation function of channel 1.None
:SOURce1:MOD:STATe?Read Modulation State. Reads whether the modulation function is enabled.None
:SOURce1:MOD:TYPe <Type>Set Modulation Type. Sets the modulation type of channel 1.Text: AM,FM,PM,ASK,FSK,PSK,PWM
:SOURce1:MOD:TYPe?Read Modulation Type. Reads the current modulation type.None
:SOURce1:AM:STATe ONEnable AM. Enables amplitude modulation on channel 1.None
:SOURce1:AM:STATe OFFDisable AM. Disables amplitude modulation on channel 1.None
:SOURce1:AM <Depth>Set AM Depth. Sets the AM modulation depth as a percentage (0 to 120).Number
:SOURce1:AM?Read AM Depth. Reads the AM modulation depth.None
:SOURce1:AM:SOURce <Source>Set AM Source. Sets the AM modulation source to internal or external.Text: INTernal,EXTernal
:SOURce1:AM:INTernal:FREQuency <Freq>Set AM Mod Frequency. Sets the internal AM modulating frequency in Hz.Number
:SOURce1:AM:INTernal:FUNCtion <Name>Set AM Mod Waveform. Sets the internal AM modulating waveform.Text: SINusoid,SQUare,TRIangle,RAMP,NRAMp,NOISe,USER
:SOURce1:FM:STATe ONEnable FM. Enables frequency modulation on channel 1.None
:SOURce1:FM:STATe OFFDisable FM. Disables frequency modulation on channel 1.None
:SOURce1:FM <Dev>Set FM Deviation. Sets the FM frequency deviation in Hz.Number
:SOURce1:FM?Read FM Deviation. Reads the FM frequency deviation.None
:SOURce1:FM:SOURce <Source>Set FM Source. Sets the FM modulation source to internal or external.Text: INTernal,EXTernal
:SOURce1:FM:INTernal:FREQuency <Freq>Set FM Mod Frequency. Sets the internal FM modulating frequency in Hz.Number
:SOURce1:FM:INTernal:FUNCtion <Name>Set FM Mod Waveform. Sets the internal FM modulating waveform.Text: SINusoid,SQUare,TRIangle,RAMP,NRAMp,NOISe,USER
:SOURce1:PM:STATe ONEnable PM. Enables phase modulation on channel 1.None
:SOURce1:PM:STATe OFFDisable PM. Disables phase modulation on channel 1.None
:SOURce1:PM <Dev>Set PM Deviation. Sets the PM phase deviation in degrees (0 to 360).Number
:SOURce1:PM?Read PM Deviation. Reads the PM phase deviation.None
:SOURce1:PM:SOURce <Source>Set PM Source. Sets the PM modulation source to internal or external.Text: INTernal,EXTernal
:SOURce1:PM:INTernal:FREQuency <Freq>Set PM Mod Frequency. Sets the internal PM modulating frequency in Hz.Number
:SOURce1:ASKey:STATe ONEnable ASK. Enables amplitude shift keying modulation on channel 1.None
:SOURce1:ASKey:STATe OFFDisable ASK. Disables ASK modulation on channel 1.None
:SOURce1:ASKey:AMPLitude <Amp>Set ASK Amplitude. Sets the ASK modulation amplitude in Vpp.Number
:SOURce1:ASKey:INTernal:RATE <Freq>Set ASK Rate. Sets the internal ASK modulation rate in Hz.Number
:SOURce1:ASKey:SOURce <Source>Set ASK Source. Sets the ASK modulation source to internal or external.Text: INTernal,EXTernal
:SOURce1:FSKey:STATe ONEnable FSK. Enables frequency shift keying modulation on channel 1.None
:SOURce1:FSKey:STATe OFFDisable FSK. Disables FSK modulation on channel 1.None
:SOURce1:FSKey:FREQuency <Freq>Set FSK Hop Frequency. Sets the FSK hop frequency in Hz.Number
:SOURce1:FSKey:INTernal:RATE <Freq>Set FSK Rate. Sets the internal FSK modulation rate in Hz.Number
:SOURce1:FSKey:SOURce <Source>Set FSK Source. Sets the FSK modulation source to internal or external.Text: INTernal,EXTernal
:SOURce1:PSKey:STATe ONEnable PSK. Enables phase shift keying modulation on channel 1.None
:SOURce1:PSKey:STATe OFFDisable PSK. Disables PSK modulation on channel 1.None
:SOURce1:PSKey:PHASe <Phase>Set PSK Phase. Sets the PSK modulation phase in degrees (0 to 360).Number
:SOURce1:PSKey:INTernal:RATE <Freq>Set PSK Rate. Sets the internal PSK modulation rate in Hz.Number
:SOURce1:PSKey:SOURce <Source>Set PSK Source. Sets the PSK modulation source to internal or external.Text: INTernal,EXTernal
:SOURce1:PWM:STATe ONEnable PWM. Enables pulse width modulation on channel 1 (pulse carrier only).None
:SOURce1:PWM:STATe OFFDisable PWM. Disables PWM modulation on channel 1.None
:SOURce1:PWM:DCYCle <Pct>Set PWM Duty Deviation. Sets the PWM duty cycle deviation as a percentage.Number
:SOURce1:PWM <Sec>Set PWM Width Deviation. Sets the PWM pulse width deviation in seconds.Number
:SOURce1:PWM:INTernal:FREQuency <Freq>Set PWM Mod Frequency. Sets the internal PWM modulating frequency in Hz.Number
:SOURce1:SWEep:STATe ONEnable Sweep. Enables the sweep function on channel 1.None
:SOURce1:SWEep:STATe OFFDisable Sweep. Disables the sweep function on channel 1.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 type to linear logarithmic or step.Text: LINear,LOGarithmic,STEp
:SOURce1:SWEep:TIME <Sec>Set Sweep Time. Sets the sweep time in seconds (1ms to 500s).Number
:SOURce1:SWEep:STEP <N>Set Sweep Steps. Sets the number of steps for a step sweep (2 to 1024).Number
:SOURce1:FREQuency:STARt <Freq>Set Start Frequency. Sets the sweep start frequency in Hz.Number
:SOURce1:FREQuency:STOP <Freq>Set Stop Frequency. Sets the sweep stop frequency in Hz.Number
:SOURce1:FREQuency:CENTer <Freq>Set Center Frequency. Sets the sweep center frequency in Hz.Number
:SOURce1:FREQuency:SPAN <Freq>Set Frequency Span. Sets the sweep frequency span in Hz.Number
:SOURce1:SWEep:HTIMe:STARt <Sec>Set Sweep Start Hold. Sets the start hold time of the sweep in seconds.Number
:SOURce1:SWEep:HTIMe:STOP <Sec>Set Sweep Stop Hold. Sets the stop hold time of the sweep in seconds.Number
:SOURce1:SWEep:RTIMe <Sec>Set Sweep Return Time. Sets the sweep return time in seconds.Number
:SOURce1:SWEep:TRIGger:SOURce <Source>Set Sweep Trigger Source. Sets the sweep trigger source.Text: INTernal,EXTernal,MANual
:SOURce1:SWEep:TRIGger:IMMediateTrigger Sweep. Triggers a sweep immediately when the source is set to manual.None
:SOURce1:MARKer:FREQuency <Freq>Set Mark Frequency. Sets the sweep mark frequency in Hz.Number
:SOURce1:MARKer:STATe ONEnable Mark. Enables the frequency mark function during sweep.None
:SOURce1:MARKer:STATe OFFDisable Mark. Disables the frequency mark function during sweep.None
:SOURce1:BURSt:STATe ONEnable Burst. Enables the burst function on channel 1.None
:SOURce1:BURSt:STATe OFFDisable Burst. Disables the burst function on channel 1.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 to N cycle infinite or gated.Text: TRIGgered,INFinity,GATed
:SOURce1:BURSt:MODE?Read Burst Mode. Reads the current burst mode.None
:SOURce1:BURSt:NCYCles <N>Set Burst Cycles. Sets the number of cycles in N cycle burst mode.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 in seconds for N cycle burst.Number
:SOURce1:BURSt:PHASe <Phase>Set Burst Phase. Sets the burst start phase in degrees.Number
:SOURce1:BURSt:TDELay <Sec>Set Burst Delay. Sets the burst delay time in seconds.Number
:SOURce1:BURSt:TRIGger:SOURce <Source>Set Burst Trigger Source. Sets the burst trigger source.Text: INTernal,EXTernal,MANual
:SOURce1:BURSt:TRIGger:SLOPe <Slope>Set Burst Trigger Slope. Sets the edge type of the burst external trigger input signal.Text: POSitive,NEGative
:SOURce1:BURSt:TRIGger:IMMediateTrigger Burst. Triggers a burst output immediately when the source is set to manual.None
:SOURce1:BURSt:GATE:POLarity <Polarity>Set Burst Gate Polarity. Sets the gate polarity for gated burst mode.Text: NORMal,INVerted
:SOURce1:SUM:STATe ONEnable Waveform Sum. Enables the waveform summing function on channel 1.None
:SOURce1:SUM:STATe OFFDisable Waveform Sum. Disables the waveform summing function on channel 1.None
:SOURce1:SUM:AMPLitude <Pct>Set Sum Ratio. Sets the sum ratio of the summed waveform as a percentage.Number
:SOURce1:SUM:INTernal:FREQuency <Freq>Set Sum Frequency. Sets the frequency of the summed waveform in Hz.Number
:SOURce1:SUM:INTernal:FUNCtion <Name>Set Sum Source. Sets the waveform to be summed onto the basic waveform.Text: SIN,SQU,RAMP,NOISe,ARB

Output (OUTPut) (17)

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 INFinity for HighZ.Number
:OUTPut1:IMPedance?Read Output Impedance. Reads the current output load impedance setting.None
:OUTPut1:POLarity NORMalSet Output Polarity Normal. Sets the output polarity of channel 1 to normal.None
:OUTPut1:POLarity INVertedSet Output Polarity Inverted. Sets the output polarity of channel 1 to inverted.None
:OUTPut1:POLarity?Read Output Polarity. Reads the current output polarity of channel 1.None
:OUTPut1:MODE <Mode>Set Output Mode. Sets the output mode of channel 1 to normal or gated.Text: NORMal,GATed
:OUTPut1:MODE?Read Output Mode. Reads the current output mode of channel 1.None
:OUTPut1:GATe:POLarity <Polarity>Set Gate Polarity. Sets the gate polarity used in gated output mode.Text: POSitive,NEGative
:OUTPut1:SYNC:STATe ONTurn On Sync. Enables the sync signal output of channel 1 on the rear connector.None
:OUTPut1:SYNC:STATe OFFTurn Off Sync. Disables the sync signal output of channel 1.None
:OUTPut1:SYNC:STATe?Read Sync State. Reads whether the sync signal output of channel 1 is enabled.None
:OUTPut1:SYNC:POLarity <Polarity>Set Sync Polarity. Sets the polarity of the sync signal output.Text: POSitive,NEGative
:OUTPut1:SYNC:DELay <Sec>Set Sync Delay. Sets the sync signal output delay time in seconds.Number
:OUTPut1:SYNC:DELay?Read Sync Delay. Reads the current sync signal output delay time.None

COUN subsystem (9)

CommandWhat it doesArguments
:COUNter:STATe ONEnable Counter. Enables the frequency counter function.None
:COUNter:STATe OFFDisable Counter. Disables the frequency counter function.None
:COUNter:STATe?Read Counter State. Reads the running status of the frequency counter.None
:COUNter:MEASure?Read Counter Measurement. Reads the frequency period duty cycle and pulse width measured by the counter.None
:COUNter:COUPling <Mode>Set Counter Coupling. Sets the input coupling of the frequency counter.Text: AC,DC
:COUNter:HF <State>Set Counter HF Reject. Enables or disables high frequency rejection on the counter.Text: ON,OFF
:COUNter:LEVEl <Volt>Set Counter Trigger Level. Sets the trigger level of the frequency counter in volts.Number
:COUNter:SENSitive <Pct>Set Counter Sensitivity. Sets the trigger sensitivity of the frequency counter as a percentage.Number
:COUNter:AUTOCounter Auto Gate. Lets the counter select a proper gate time automatically.None

Display (DISPlay) (6)

CommandWhat it doesArguments
:DISPlay:BRIGhtness <Level>Set Display Brightness. Sets the screen brightness level (1 to 100).Number
:DISPlay:BRIGhtness?Read Display Brightness. Reads the current screen brightness.None
:DISPlay:MODE <Mode>Set Display Mode. Sets the display mode to dual parameter dual graph or single channel.Text: DPV,DGV,SV
:DISPlay:TEXT <Str>Set Display Text. Displays a text string on the instrument screen.Text
:DISPlay:TEXT:CLEarClear Display Text. Clears any text displayed on the instrument screen.None
:DISPlay:STATe <State>Set Display State. Enables or disables the screen display in remote mode.Text: ON,OFF

COUP subsystem (5)

CommandWhat it doesArguments
:COUPling:STATe ONEnable Channel Coupling. Enables frequency amplitude and phase coupling between the two channels.None
:COUPling:STATe OFFDisable Channel Coupling. Disables channel coupling.None
:COUPling:FREQuency:STATe <State>Set Frequency Coupling. Enables or disables frequency coupling between channels.Text: ON,OFF
:COUPling:AMPL:STATe <State>Set Amplitude Coupling. Enables or disables amplitude coupling between channels.Text: ON,OFF
:COUPling:PHASe:STATe <State>Set Phase Coupling. Enables or disables phase coupling between channels.Text: ON,OFF

Mass memory (MMEMory) (5)

CommandWhat it doesArguments
:MMEMory:STORe:STATe <File>Store State To File. Stores the current instrument state to a file on external memory.Text
:MMEMory:LOAD:STATe <File>Load State From File. Loads an instrument state file from external memory.Text
:MMEMory:CATalog?List Directory. Returns the files and folders in the current external memory directory.None
:MMEMory:CDIRectory <Path>Set Directory. Sets the current working directory on external memory.Text
:MMEMory:DELete <File>Delete File. Deletes the specified file or empty folder from external memory.Text

ROSC subsystem (2)

CommandWhat it doesArguments
:ROSCillator:SOURce <Source>Set Clock Source. Sets the system reference clock source to internal or external.Text: INTernal,EXTernal
:ROSCillator:SOURce:CURRent?Read Clock Source. Reads the system clock source currently in use.None

HCOP subsystem (1)

CommandWhat it doesArguments
:HCOPy:SDUMp:DATA?Take Screenshot. Returns a binary BMP image block of the front panel screen.None

MEM subsystem (1)

CommandWhat it doesArguments
:MEMory:STATe:RECall:AUTO <State>Set Power On Config. Sets the power on configuration to last (ON) or default (OFF).Text: ON,OFF

System (SYSTem) (1)

CommandWhat it doesArguments
:SYSTem:ERRor?Read Error. Reads and removes the next error from the error queue.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 (14)

CommandWhat it doesArguments
*SAV <Location>Save State. Stores the current instrument state or arbitrary waveform to an internal location.Text: USER1,USER2,USER3,USER4,USER5,USER6,USER7,USER8,USER9,USER10,ARB1,ARB2,ARB3,ARB4,ARB5,ARB6,ARB7,ARB8,ARB9,ARB10
*RCL <Location>Recall State. Recalls a state or arbitrary waveform from an internal location.Text: USER1,USER2,USER3,USER4,USER5,USER6,USER7,USER8,USER9,USER10,ARB1,ARB2,ARB3,ARB4,ARB5,ARB6,ARB7,ARB8,ARB9,ARB10
*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 Bit. Sets the operation complete bit after all previous commands are executed.None
*WAIWait For Complete. Prevents further command execution until all pending operations complete.None
*TRGTrigger. Triggers a sweep or burst when the trigger source is set to manual.None
*OPT?Query Options. Returns whether the 16M arbitrary memory option is installed.None
*ESE <Value>Set Event Status Enable. Sets the standard event status enable register.Number
*ESR?Read Event Status. Reads and clears the standard event status register.None
*STB?Read Status Byte. Reads the status byte register without clearing it.None
*SRE <Value>Set Service Request Enable. Sets the service request enable register.Number

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from Rigol's programming documentation for the DG1022Z and DG1032Z 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 12, 2026.

Frequently asked questions

Does the Rigol DG1022Z support SCPI remote control?

Yes. The Rigol DG1022Z accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 201 SCPI commands for it: 49 queries that read values or state, and 152 settings and actions.

How do I control the Rigol DG1022Z 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 DG1022Z?

: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 DG1022Z 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 DG1022Z 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.