Rigol DG1022 Programming Guide

RIGOL
Programming Guide
DG1022 Function/Arbitrary
Waveform Generator
RIGOL Technologies, Inc.
RIGOL
I
Copyright
© 2009 RIGOL Technologies, Inc. All Rights Reserved.
Trademark Information
RIGOL is registered trademark of RIGOL Technologies, Inc.
Notices
RIGOL products are protected by patent law in and outside of P.R. China. RIGOL Technologies, Inc. reserves the right to modify or change part of or all
the specifications and pricing policies at company’s sole decision.
Information in this publication replaces all previously corresponding material. RIGOL shall not be liable for losses caused no matter by incidental or by
consequential in connection with the furnishing, use or performance of this manual as well as any information contained.
Any part of this document is forbidden to copy, photocopy or rearrange without
the express written approval of RIGOL.
Product Certification
RIGOL guarantees this product conforms to the standards of national and industrial. Meanwhile, the related standards conform to other ISO will get further. At present, DG1022 has passed CE, GOST and cTUVus certification.
Programming Guide for DG1022
RIGOL
II
Structure of this Document
Chapter 1 Programming Overview
This chapter introduces you how to programme DG1022 generator using commands and how to input the commands in right format.
Chapter 2 DG1022 Commands System
This chapter gives detailed information on each command supported by DG1022, including command format, function description, considerations when using command as well as some application examples.
Chapter 3 Application Examples
This chapter shows you how to realize the examples inDG1022 Users Guidevia command lines.
Appendix: Commands Reference A-Z
The Appendix lists all the commands alphabetically in favor of quick reference.
Programming Guide for DG1022
RIGOL
III
Table of Contents
Chapter 1 Programming Overview ........................................................... 1-1
Communication Interfaces.......................................................................... 1-2
Commands Introduction ............................................................................. 1-3
Commands Format .............................................................................. 1-3
Symbol Instruction .............................................................................. 1-4
Parameter Types ................................................................................. 1-5
Commands Abbreviation ...................................................................... 1-6
Chapter 2 DG1022 Commands System .................................................... 2-1
IEEE 488.2 ................................................................................................ 2-2
APPLy ....................................................................................................... 2-3
FUNCtion ................................................................................................ 2-10
FREQuency ............................................................................................. 2-16
VOLTage ................................................................................................. 2-20
OUTPut .................................................................................................. 2-26
PULSe .................................................................................................... 2-31
AM ......................................................................................................... 2-35
FM ......................................................................................................... 2-38
PM ......................................................................................................... 2-41
FSKey ..................................................................................................... 2-44
SWEep ................................................................................................... 2-47
TRIGger ................................................................................................. 2-50
BURSt .................................................................................................... 2-53
DATA ...................................................................................................... 2-57
MEMory .................................................................................................. 2-61
SYSTem .................................................................................................. 2-64
PHASe .................................................................................................... 2-67
DISPlay .................................................................................................. 2-69
COUPling ................................................................................................ 2-70
Chapter 3 Application Examples .............................................................. 3-1
Example 1: To Generate a Sine Wave .......................................................... 3-2
Example 2: To Generate a Built-in Arbitrary Wave ........................................ 3-3
Example 3: To Generate an User-defined Arbitrary Wave .............................. 3-4
Example 4: To Generate a FSK Wave .......................................................... 3-6
Example 5: To Generate a Linear Sweep Wave ............................................ 3-7
Programming Guide for DG1022
RIGOL
IV
Example 6: To Generate a Burst Wave ........................................................ 3-8
Example 7: To Output Waves via Dual Channels .......................................... 3-9
Example 8: Channel Coupling ................................................................... 3-10
Example 9: Channel Copy ........................................................................ 3-11
Appendix: Commands Reference A-Z .......................................................... 1
Programming Guide for DG1022
Programming Overview RIGOL
1-1
Chapter 1 Programming Overview
This chapter introduces you how to programme DG1022 generator using commands and how to input commands in right format.
This chapter contains the following sections:
Communication Interfaces Commands Introduction
Commands Format Symbol Instruction Parameter Types Commands Abbreviation
Programming Guide for DG1022
RIGOL Programming Overview
1-2
Communication Interfaces
Computers communicate with the generator by sending and receiving messages over an USB interface. Command word is sended and identified in the form of ASCII character strings for users to easily control and do user-defined development.
Operations that you can do with a computer and a generator include:
Set the generator. Output waveforms from the generator.
Connection: Please connect the USB Device port of DG1022 with the corresponding USB interface on the computer using an USB cable.
Programming Guide for DG1022
Programming Overview RIGOL
1-3
Commands Introduction
Commands Format
The commands system of DG1022 is a tree structure, and each of sub-system is consists of a root keyword and multilayered keywords. The keywords are separated by : and aoptional parameters are permitted to follow; ? appeared following a command line denotes to query this function; besides, space is used to divide command and parameter.
For example: FUNCtion:SQUare:DCYCle {<percent>|MINimum|MAXimum} FUNCtion:SQUare:DCYCle? [MINimum|MAXimum]
FUNCtion is the root keyword of a commmand line, SQUare and DCYCle is the second and third keyword, all of them are separated by :”. <percent> denotes the parameters permitted to be set by user; ? denotes to query; the command FUNCtion:SQUare:DCYCle and parameter are separated by space”.
,” is usually used to compart multiple parameters existed in one command, for example: DATA VOLATILE,<value>,<value>, . . .
Programming Guide for DG1022
RIGOL Programming Overview
1-4
Symbol Instruction
Following symbols are not included in commands, but whichi are usually used to assist to explain the parameters containd in a command line.
1. Braces { }
The parameters or contents enclosed in a { } are reqired. Only one content or parameter could be selected every time, and all the options are separated by |. For example: {ON|OFF} indicateds that ON or OFF can be selected.
2. Square brackets [ ]
Some keywords or contents are enclosed by square bracket [ ], which indicates that those parameters are optional and will be execute no matter whether been ignored or not. For example: DATA:COPY <destination arb name>[,VOLATILE] This command copys the wave from volatile memory to the specified nonvolatile memory. Note: [,VOLATILE] may be ignored.
3. Triangle Brackets < >
An item enclosed in < > should be replaced by an effective value. For example: DISPlay:CONTRAST <value> Note: <value> must be a numerical value, such as: DISPlay:CONTRAST 25
Programming Guide for DG1022
Programming Overview RIGOL
1-5
Parameter Types
The commands contain 5 kinds of parameters, different parameters have different setting methods.
1. Boolean Parameters
The parameters could be OFF”, ONor “0”, 1”, for example: AM:STATE {OFF|ON} OFF denotes disable AM function. On denotes enable.
2. Consecutive Integer Parameters
The parameters could be a consecutive integer, for example: DISPlay:CONTRAST <value> <value> could be an integer between 0 and 31(including 0 and 31).
3. Consecutive Real Number Parameters
The parameters could be any value only in effective range and precision permitted, for example: FREQuency {<frequency>|MINimum|MAXimum} As a sine wave, <frequency> should be any real number between 1uHz~20MHz.
4. Discrete Parameters
The parameters could be a cited value, for example,
MEMory:STATe:NAME? {0|1|2|3|4|5|6|7|8|9|10} The parameter could only be 0, 1, 2, 3, 4, 5, 6. 7, 8, 9, 10.
5. ASCII Character String
The parameters should be composed of ASCII character string, for example, DATA:COPY <destination arb name>[,VOLATILE] <destination arb name> is a character string defined by user.
Programming Guide for DG1022
RIGOL Programming Overview
1-6
Commands Abbreviation
All the comands are case-insensitive, so you can use any kind of them. But if use abbreviation, the capital letters specified in commands must be written completely. For example: FUNCtion:SQUare:DCYCle? also can be: FUNC:SQU:DCYC? or func:squ:dcyc?
Programming Guide for DG1022
DG1022 Commands System RIGOL
2-1
Chapter 2 DG1022 Commands System
This chapter gives detailed information on each command supported by DG1022, including command format, function description, using considerations as well as some application examples.
DG1022 contains following subcommands systems:
IEEE 488.2 APPLy FUNCtion FREQuency VOLTage OUTPut PULSe AM FM PM FSKey SWEep TRIGger BURSt DATA MEMory SYSTem PHASe DISPlay COUPling
Programming Guide for DG1022
RIGOL DG1022 Commands System
2-2
1. *IDN?
Command Format
*IDN?
Function
Query ID character string of instrument, including a field separated by 4 ,”, manufactory, model, serial number and the edition number that consists of numbers and separated by .” .
Return Format
RIGOL TECHNOLOGIES,DG1022,DG1000000002,
00.01.00.04.00
IEEE 488.2
IEEE standard has some common commands for querying some basic information about instrument or executing, which usually begins with “*” and holds 3-character long command keyword.
DG1022 supports following IEEE488.2 commands:
1. *IDN?
Programming Guide for DG1022
DG1022 Commands System RIGOL
2-3
APPLy
APPLy commands provide the most straightforward method to program the generator over remote interface. Among following commands, the instrument could set and output waveforms if OUTPUT function is enable.
DG1022 supports following APPLy commands:
1. APPLy:SINusoid
2. APPLy:SQUare
3. APPLy:RAMP
4. APPLy:PULSe
5. APPLy:NOISe
6. APPLy:DC
7. APPLy:USER
8. APPLy?
9. APPLy:SINusoid:CH2
10. APPLy:SQUare:CH2
11. APPLy:RAMP:CH2
12. APPLy:PULSe:CH2
13. APPLy:NOISe:CH2
14. APPLy:DC:CH2
15. APPLy:USER:CH2
16. APPLy:CH2?
Programming Guide for DG1022
RIGOL DG1022 Commands System
2-4
1. APPLy:SINusoid
Command Format
APPLy:SINusoid [<frequency>[,<amplitude>[,<offset>]]]
Function
Generate a sine wave with specific frequency, amplitude and DC offset via CH1.
Explanations
If the parameters you set are less than three, the sequence
would be: <frequency>, <amplitude>, <offset>.
The default units of <frequency>, <amplitude>, <offset> are:
Hz, Vpp, VDC.
Example
APPL:SIN 1000,5.0,-1.5
2. APPLy:SQUare
Command Format
APPLy:SQUare [<frequency>[,<amplitude>[,<offset>]]]
Function
Generate a square wave with specific frequency, amplitude and DC offset via CH1 and cover the current duty cycle settings and select 50% automaticly.
Explanations
If the parameters you set are less than three, the sequence
would be: <frequency>, <amplitude>, <offset>.
The default units of <frequency>, <amplitude>, <offset> are:
Hz, Vpp, VDC.
Example
APPL:SQU 1000,5.0,-1.5
3. APPLy:RAMP
Command Format
APPLy:RAMP [<frequency>[,<amplitude>[,<offset>]]]
Function
Generate a ramp wave with specific frequency, amplitude and DC offset via CH1 and cover the current symmetry settings and select 50% automaticly.
Explanations
If the parameters you set are less than three, the sequence
would be: <frequency>, <amplitude>, <offset>.
The default units of <frequency>, <amplitude>, <offset> are:
Hz, Vpp, VDC.
Example
APPL:RAMP 1000,5.0,-1.5
The detailed information of each command are:
Programming Guide for DG1022
DG1022 Commands System RIGOL
2-5
4. APPLy:PULSe
Command Format
APPLy:PULSe [<frequency>[,<amplitude>[,<offset>]]]
Function
Generate a pulse wave with specific frequency, amplitude and DC offset via CH1.
Explanations
If the parameters you set are less than three, the sequence
would be: <frequency>, <amplitude>, <offset>.
The default units of <frequency>, <amplitude>, <offset> are:
Hz, Vpp, VDC.
Example
APPL:PULS 1000,5.0,-1.5
5. APPLy:NOISe
Command Format
APPLy:NOISe [<frequency |DEFault>[,<amplitude>[,<offset>]]] Function
Generate Gaussian noise with specific amplitude and DC offset.
Explanations
Although the frequency parameter made no impression on this
command, a value or DEFault must be specified. (noise function has 5MHz of bandwidth)
If the parameters you set are less than three, the sequence
would be: <frequency>, <amplitude>, <offset>.
The default units of <frequency>, <amplitude>, <offset> are:
Hz, Vpp, VDC.
Example
APPL:NOIS DEF,5.0,2.0
6. APPLy:DC
Command Format
APPLy:DC [<frequency|DEFault>[,<amplitude>|DEFault>[,< offset>]]]
Function
Generate a DC with electrical level specified by < offset > parameter via CH1.
Explanations
Although the frequency and amplitude parameter made no
impression on this command, a value or DEFault must be specified.
If the parameters you set are less than three, the sequence
would be: <frequency>, <amplitude>, <offset>.
The default units of <frequency>, <amplitude>, <offset> are:
Hz, Vpp, VDC.
Example
APPL:DC DEF,DEF,-2.5
Programming Guide for DG1022
RIGOL DG1022 Commands System
2-6
7. APPLy:USER
Command Format
APPLy:USER [<frequency>[,<amplitude>[,<offset>]]]
Function
Generate an arbitrary wave selected by FUNCtion:USER command with specific frequency, amplitude and DC offset.
Explanations
If the parameters you set are less than three, the sequence
would be: <frequency>, <amplitude>, <offset>.
The default units of <frequency>, <amplitude>, <offset> are:
Hz, Vpp, VDC.
Example
APPL:USER 1000,5.0,-1.5
8. APPLy?
Command Format
APPLy?
Function
Query the current configuration of CH1 and the type of waves outputted.
Explanations
The query returns a character string with double quotation marks, including function, frequency, amplitude and offset.
Example
CH1:"SIN,1.000000e+03,5.000000e+00,-1.500000e+00"
9. APPLy:SINusoid:CH2
Command Format
APPLy:SINusoid:CH2 [<frequency>[,<amplitude>[,<offset>]]]
Function
Generate a sine wave with specific frequency, amplitude and DC offset via CH2.
Explanations
If the parameters you set are less than three, the sequence
would be: <frequency>, <amplitude>, <offset>.
The default units of <frequency>, <amplitude>, <offset> are:
Hz, Vpp, VDC.
Example
APPL:SIN:CH2 1000,5.0,-1
10. APPLy:SQUare:CH2
Command Format
APPLy:SQUare:CH2 [<frequency>[,<amplitude>[,<offset>]]]
Function
Generate a square wave with specific frequency, amplitude and DC offset via CH2 and cover the current duty cycle settings and select
Programming Guide for DG1022
DG1022 Commands System RIGOL
2-7
50% automaticly.
Explanations
If the parameters you set are less than three, the sequence
would be: <frequency>, <amplitude>, <offset>.
The default units of <frequency>, <amplitude>, <offset> are:
Hz, Vpp, VDC.
Example
APPL:SQU:CH2 1000,5.0,-1
11. APPLy:RAMP:CH2
Command Format
APPLy:RAMP:CH2 [<frequency>[,<amplitude>[,<offset>]]]
Function
Generate a ramp wave with specific frequency, amplitude and DC offset via CH2 and cover the current symmetry settings and select 50% automaticly.
Explanations
If the parameters you set are less than three, the sequence
would be: <frequency>, <amplitude>, <offset>.
The default units of <frequency>, <amplitude>, <offset> are:
Hz, Vpp, VDC.
Example
APPL:RAMP:CH2 1000,5.0,0.5
12. APPLy:PULSe:CH2
Command Format
APPLy:PULSe:CH2 [<frequency>[,<amplitude>[,<offset>]]]
Function
Generate a pulse wave with specific frequency, amplitude and DC offset via CH2.
Explanations
If the parameters you set are less than three, the sequence
would be: <frequency>, <amplitude>, <offset>.
The default units of <frequency>, <amplitude>, <offset> are:
Hz, Vpp, VDC.
Example
APPL:PULS:CH2 1000,5.0,0.5
13. APPLy:NOISe:CH2
Command Format
APPLy:NOISe:CH2[<frequency|DEFault>[,<amplitude>[,<offset>]]]
Function
Generate Gaussian noise with specific amplitude and DC offset via CH2.
Explanations
Although the frequency parameter made no impression on this
command, a value or DEFault must be specified. (noise
Programming Guide for DG1022
RIGOL DG1022 Commands System
2-8
function has 5MHz of bandwidth)
If the parameters you set are less than three, the sequence
would be: <frequency>, <amplitude>, <offset>.
The default units of <frequency>, <amplitude>, <offset> are:
Hz, Vpp, VDC.
Example
APPL:NOIS:CH2 DEF, 5.0, 0.5
14. APPLy:DC:CH2
Command Format
APPLy:DC:CH2[<frequency|DEFault>[,<amplitude>|DEFault>[,< offset>]]]
Function
Generate a DC with electrical level specified by <offset> parameter via CH2.
Explanations
Although the frequency and amplitude parameter made no
impression on this command, a value or DEFault must be specified.
If the parameters you set are less than three, the sequence
would be: <frequency>, <amplitude>, <offset>.
The default units of <frequency>, <amplitude>, <offset> are:
Hz, Vpp, VDC.
Example
APPL:DC:CH2 DEF,DEF,1.5
15. APPLy:USER:CH2
Command Format
APPLy:USER:CH2 [<frequency>[,<amplitude>[,<offset>]]]
Function
Generate an arbitrary wave selected by FUNCtion:USER:CH2 command with specific frequency, amplitude and DC offset.
Explanations
If the parameters you set are less than three, the sequence
would be: <frequency>, <amplitude>, <offset>.
The default units of <frequency>, <amplitude>, <offset> are:
Hz, Vpp, VDC.
Example
APPL:USER:CH2 1000,5.0,-1.5
16. APPLy:CH2?
Command Format
APPLy:CH2?
Function
Query the current configuration of CH2 and the type of waves outputted.
Programming Guide for DG1022
DG1022 Commands System RIGOL
2-9
Explanations
The query returns a character string with double quotation marks, including function, frequency, amplitude and offset.
Example
CH2:"SIN,1.000000e+03,5.000000e+00,-1.500000e+00"
Programming Guide for DG1022
RIGOL DG1022 Commands System
2-10
FUNCtion
FUNCtion commands are used for setting the output function and their parameters; selecting carrier wave function in modulation mode; choosing any one from 48 built-in arbitrary waveforms and 10 user-defined waveforms, or the waveform downloaded to volatile memory currently.
DG1022 supports following FUNCtion commands:
1. FUNCtion
2. FUNCtion?
3. FUNCtion:USER
4. FUNCtion:USER?
5. FUNCtion:SQUare:DCYCle
6. FUNCtion:SQUare:DCYCle?
7. FUNCtion:RAMP:SYMMetry
8. FUNCtion:RAMP:SYMMetry?
9. FUNCtion:CH2
10. FUNCtion:CH2?
11. FUNCtion:USER:CH2
12. FUNCtion:USER:CH2?
13. FUNCtion:SQUare:DCYCle:CH2
14. FUNCtion:SQUare:DCYCle:CH2?
15. FUNCtion:RAMP:SYMMetry:CH2
16. FUNCtion:RAMP:SYMMetry:CH2?
Programming Guide for DG1022
DG1022 Commands System RIGOL
2-11
1. FUNCtion
Command Format
FUNCtion {SINusoid|SQUare|RAMP|PULSe|NOISe|DC|USER} Function
Select the output function for CH1.
Explanations
If send FUNC DC and then FUNC USER, the output is still DC.
Example
FUNC SIN
2. FUNCtion?
Command Format
FUNCtion? Function
Query the output function from CH1.
Explanations
The query always returns CH1:ARB after sending FUNC DC or FUNC USER.
Example
The query returns CH1:SIN, CH1:SQU, CH1:RAMP, CH1:PULS, CH1:NOIS or CH1:ARB, the default is CH1:SIN.
3. FUNCtion:USER
Command Format
FUNCtion:USER {<name of arbitrary wave>|VOLATILE}
Function
Separately select any one wave from built-in arbitrary waves and 10 user-defined waves for CH1 or select the wave that has been downloaded into volatile memory.
Explanations
The built-in waves contains:
Common: NegRamp/AttALT/AmpALT/StairDown/StairUp/StairUD/Cpulse/ PPulse/NPulse/Trapezia/RoundHalf/AbsSine/AbsSineHalf/ SINE_TRA/SINE_VER Math: Exp_Rise/Exp_Fall/Tan/Cot/Sqrt/X∧2/Sinc/Gauss/HaverSine/ Lorentz/Dirichlet/GaussPulse/Airy Project: Cardiac/Quake/Gamma/Voice/TV/Combin/BandLimited/ Stepresponse/Butterworth/Chebyshev1/ Chebyshev2 Window Function: Boxcar/Barlett/triang/Blackman/Hamming/Hanning/Kaiser
The detailed information of each command are:
Programming Guide for DG1022
RIGOL DG1022 Commands System
2-12
Others: Roundpm/DC
Send FUNC DC command when use DC. Abbreviation is invalid.
Example
FUNC:USER VOLATILE
4. FUNCtion:USER?
Command Format
FUNCtion:USER? Function
Query the name of arbitrary wave generated from CH1.
Return Value
The query returns the name of built-in arbitrary wave that has been selected. (such as EXP_RISE), VOLATILE or returns any name of user-defined wave in nonvolatile memory. The default is EXP_RISE.
5. FUNCtion:SQUare:DCYCle
Command Format
FUNCtion:SQUare:DCYCle {<percent>|MINimum|MAXimum} Function
Set the duty cycle of square wave for CH1.
Explanations
<percent> is the percent of duty cycle selected, MIN is the minimum duty cycle and MAX is the maximum.
Example
FUNC:SQU:DCYC 50
6. FUNCtion:SQUare:DCYCle?
Command Format
FUNCtion:SQUare:DCYCle? [MINimum|MAXimum] Function
Query the duty cycle of square wave from CH1.
Return Value
The query returns current duty cycle settings with the format of percent, such as 50.000000.
7. FUNCtion:RAMP:SYMMetry
Command Format
FUNCtion:RAMP:SYMMetry {<percent>|MINimum|MAXimum} Function
Set the symmetry of ramp wave for CH1.
Explanations
<percent> is the selected percent of symmetry; MIN0, MAX 100%.
Example
FUNC:RAMP:SYMM 50
Programming Guide for DG1022
DG1022 Commands System RIGOL
2-13
8. FUNCtion:RAMP:SYMMetry?
Command Format
FUNCtion:RAMP:SYMMetry? [MINimum|MAXimum] Function
Query the symmetry of ramp wave from CH1.
Return Value
The query returns current symmetry settings with the format of percent, such as 50.000000.
9. FUNCtion:CH2
Command Format
FUNCtion:CH2 {SINusoid|SQUare|RAMP|PULSe|NOISe|DC|USER} Function
Select the output function form CH2.
Explanations
If send FUNC:CH2 DC and then FUNC:CH2 USER, the output is still DC.
Example
FUNC:CH2 SIN
10. FUNCtion:CH2?
Command Format
FUNCtion:CH2? Function
Query the output function from CH2.
Explanations
The query always returns CH2:ARB after sending FUNC:CH2 DC or FUNC:CH2 USER.
Example
The query returns CH2:SIN, CH2:SQU, CH2:RAMP, CH2:PULS, CH2:NOIS or CH2:ARB, the default is CH2:SIN.
11. FUNCtion:USER:CH2
Command Format
FUNCtion:USER:CH2 {< name of arbitrary wave >|VOLATILE}
Function
Separately select any one wave from built-in arbitrary waves and 10 user-defined waves for CH2 or select the wave that has been loaded into volatile memory.
Explanations
The built-in waves contains:
Common: NegRamp/AttALT/AmpALT/StairDown/StairUp/StairUD/Cpulse/ PPulse/NPulse/Trapezia/RoundHalf/AbsSine/AbsSineHalf/ SINE_TRA/SINE_VER Math: Exp_Rise/Exp_Fall/Tan/Cot/Sqrt/X∧2/Sinc/Gauss/HaverSine/
Programming Guide for DG1022
RIGOL DG1022 Commands System
2-14
Lorentz/Dirichlet/GaussPulse/Airy Project: Cardiac/Quake/Gamma/Voice/TV/Combin/BandLimited/ Stepresponse/Butterworth/Chebyshev1/ Chebyshev2 Window Function: Boxcar/Barlett/triang/Blackman/Hamming/Hanning/Kaiser Others: Roundpm/DC
Send FUNC:CH2 DC command when use DC. Abbreviation is invalid.
Example
FUNC:USER:CH2 SINC
12. FUNCtion:USER:CH2?
Command Format
FUNCtion:USER:CH2? Function
Query the name of arbitrary wave generated from CH2.
Return Value
The query returns the name of built-in arbitrary wave that has been selected. (such as EXP_RISE), VOLATILE or returns any name of user-defined wave in nonvolatile memory. The default is EXP_RISE.
13. FUNCtion:SQUare:DCYCle:CH2
Command Format
FUNCtion:SQUare:DCYCle:CH2 {<percent>|MINimum|MAXimum} Function
Set the duty cycle of square wave for CH2.
Explanations
<percent> is the selected percent of duty cycle, MIN is the minimum duty cycle and MAX is the maximum.
Example
FUNC:SQU:DCYC:CH2 50
14. FUNCtion:SQUare:DCYCle:CH2?
Command Format
FUNCtion:SQUare:DCYCle:CH2? [MINimum | MAXimum] Function
Query the duty cycle of square wave from CH2.
Return Value
The query returns current duty cycle settings with the format of percent, such as 50.000000.
15. FUNCtion:RAMP:SYMMetry:CH2
Command
FUNCtion:RAMP:SYMMetry:CH2 {<percent>|MINimum|MAXimum}
Programming Guide for DG1022
DG1022 Commands System RIGOL
2-15
Format
Function
Set the symmetry of ramp wave for CH2.
Explanations
<percent> is the selected percent of symmetry; MIN0, MAX 100%.
Example
FUNC:RAMP:SYMM:CH2 50
16. FUNCtion:RAMP:SYMMetry:CH2?
Command Format
FUNCtion:RAMP:SYMMetry:CH2? [MINimum|MAXimum] Function
Query the symmetry of ramp wave from CH2.
Return Value
The query returns current symmetry settings with the format of percent, such as 50.000000.
Programming Guide for DG1022
RIGOL DG1022 Commands System
2-16
FREQuency
FREQuency commands are used for setting: the frequency of output function from dual channels; the start/stop frequency, the center/span frequency in sweep mode, the carrier frequency in modulation. Sweep and modulation are only valid for CH1.
DG1022 supports following FREQuency commands:
1. FREQuency
2. FREQuency?
3. FREQuency:CH2
4. FREQuency:CH2?
5. FREQuency:STARt
6. FREQuency:STARt?
7. FREQuency:STOP
8. FREQuency:STOP?
9. FREQuency:CENTer
10. FREQuency:CENTer?
11. FREQuency:SPAN
12. FREQuency:SPAN?
Programming Guide for DG1022
DG1022 Commands System RIGOL
2-17
1. FREQuency
Command Format
FREQuency {<frequency>|MINimum|MAXimum} Function
Set the frequency of output function for CH1.
Explanations
<frequency> is the frequency value set by user, the default unit is Hz. MIN is the minimum frequency permitted by specified function, MAX is the maxmum.
Example
FREQ MIN
2. FREQuency?
Command Format
FREQuency? [MINimum|MAXimum] Function
Query the frequency of output function from CH1.
Return Value
The query returns the frequency value that has been set in the form of scientific notation in Hz, such as: 1.000000e-06.
3. FREQuency:CH2
Command Format
FREQuency:CH2 {<frequency>|MINimum|MAXimum} Function
Set the frequency of output function for CH2.
Explanations
<frequency> is the frequency value set by user, the default unit is Hz. MIN is the minimum frequency permitted by specified function, MAX is the maxmum.
Example
FREQ:CH2 MIN
4. FREQuency:CH2?
Command Format
FREQuency:CH2? [MINimum|MAXimum] Function
Query the frequency of output function from CH2.
Return Value
The query returns the frequency value that has been set in the form of scientific notation in Hz, such as: CH2:1.000000e-06.
5. FREQuency:STARt
Command Format
FREQuency:STARt {<frequency>|MINimum|MAXimum}
The detailed information of each command are:
Programming Guide for DG1022
RIGOL DG1022 Commands System
2-18
Function
Set the start frequency (used in conjunction with the stop frequency) in sweep mode.
Example
FREQ:STAR MIN
6. FREQuency:STARt?
Command Format
FREQuency:STARt? [MINimum|MAXimum] Function
Query the start frequency in sweep mode.
Return Value
The query returns the start frequency that has been set in the form of scientific notation in Hz, such as: 1.000000e-06.
7. FREQuency:STOP
Command Format
FREQuency:STOP {<frequency>|MINimum|MAXimum}
Function
Set the stop frequency (used in conjunction with start frequency) in sweep mode.
Example
FREQ:STOP MAX
8. FREQuency:STOP?
Command Format
FREQuency:STOP? [MINimum|MAXimum] Function
Query the stop frequency in sweep mode.
Return Value
The query returns the stop frequency that has been set in the form of scientific notation in Hz, such as: 2.000000e+07.
9. FREQuency:CENTer
Command Format
FREQuency:CENTer {<frequency>|MINimum|MAXimum}
Function
Set the center frequency (used in conjunction with span frequency) in sweep mode.
Example
FREQ:CENT 10000000
10. FREQuency:CENTer?
Command Format
FREQuency:CENTer? [MINimum|MAXimum] Function
Query the center frequency in sweep mode.
Return Value
The query returns the center frequency that has been set in the
Programming Guide for DG1022
Loading...
+ 70 hidden pages