DSG800 Programming Guide
DSG800 Programming Guide
Programming Guide
Sept. 2018
RIGOL (SUZHOU) TECHNOLOGIES, INC.
RIGOL
Trademark Information
RIGOL is a registered trademark of RIGOL (SUZHOU) TECHNOLOGIES, INC.
Publication Number
PGG02104-1110
Software Version
00.01.07
Software upgrade might change or add product features. Please acquire the latest version of the manual
from RIGOL website or contact RIGOL to upgrade the software.
Notices
RIGOL products are covered by P.R.C. and foreign patents, issued and pending.
RIGOL reserves the right to modify or change parts of or all the specifications and pricing policies at
company’s sole decision.
Information in this publication replaces all previously corresponding material.
Information in this publication is subject to change without notice.
RIGOL shall not be liable for either incidental or consequential losses 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 be copied, photocopied, or rearranged without prior written
approval of RIGOL.
Product Certification
RIGOL guarantees this product conforms to the national and industrial standards in China as well as the
ISO9001:2015 standard and the ISO14001:2015 standard. Other international standard conformance
certification is in progress.
Contact Us
If you have any problem or requirement when using our products or this manual, please contact RIGOL.
E-mail: service@rigol.com
Website: www.rigol.com
Safety Requirement
General Safety Summary
Please review the following safety precautions carefully before putting the instrument into operation so as
to avoid any personal injury or damage to the instrument and any product connected to it. To prevent
potential hazards, please follow the instructions specified in this manual to use the instrument properly.
environment.
WARNING
Indicates a potentially hazardous situation or practice which, if not avoided, will result in
serious injury or death.
CAUTION
Indicates a potentially hazardous situation or practice which, if not avoided, could result in
damage to the product or loss of important data.
DANGER It calls attention to an operation, if not correctly performed, could result in injury or
hazard immediately.
WARNING It calls attention to an operation, if not correctly performed, could result in potential
injury or hazard.
CAUTION It calls attention to an operation, if not correctly performed, could result in damage to
the product or other devices connected to the product.
Anschluss einesTastkopfes.
Die Erdungsklemmen der Sonden sindauf dem gleichen Spannungspegel des Instruments geerdet.
SchließenSie die Erdungsklemmen an keine hohe Spannung an.
Belüftung sicherstellen.
Unzureichende Belüftung kann zu Temperaturanstiegen und somit zu thermischen Schäden am Gerät
führen. Stellen Sie deswegen die Belüftung sicher und kontrollieren regelmäßig Lüfter und
Belüftungsöffnungen.
Sicherer Transport.
Transportieren Sie das Gerät sorgfältig (Verpackung!), um Schäden an Bedienelementen, Anschlüssen und
anderen Teilen zu vermeiden.
WARNING
Die Kennzeichnung WARNING beschreibt Gefahrenquellen die leibliche Schäden oder den
Tod von Personen zur Folge haben können.
CAUTION
Die Kennzeichnung Caution (Vorsicht) beschreibt Gefahrenquellen die Schäden am Gerät
hervorrufen können.
DANGER weist auf eine Verletzung oder Gefährdung hin, die sofort geschehen kann.
WARNING weist auf eine Verletzung oder Gefährdung hin, die möglicherweise nicht sofort
geschehen.
CAUTION weist auf eine Verletzung oder Gefährdung hin und bedeutet, dass eine mögliche
Beschädigung des Instruments oder anderer Gegenstände auftreten kann.
Gefährliche Sicherheits-
Schutz-erde Gehäusemasse Erde
Spannung Hinweis
Document Overview
This manual introduces how to program the RF signal generator over the remote interfaces in details.
Chapter 5 Appendix
This chapter provides various information, such as factory setting list.
Tip
The latest version of this manual can be downloaded from www.rigol.com.
1. Key
The key at the front panel is denoted by the format of "Key Name (Bold) + Text Box" in the manual. For
example, FREQ denotes the FREQ key.
2. Menu
The menu item is denoted by the format of "Menu Word (Bold) + Character Shading" in the manual.
For example, LF denotes the "LF" menu item under FREQ.
3. Operation Step
The next step of operation is denoted by an arrow "" in the manual. For example, FREQ LF
denotes pressing FREQ at the front panel and then pressing LF.
DSG800 series RF signal generator includes DSG830 and DSG815. The introductions of the DSG800 series
commands in this manual are based on DSG830, unless otherwise noted.
Contents
Guaranty and Declaration ......................................................................................................... I
Safety Requirement .................................................................................................................. II
General Safety Summary ............................................................................................................. II
Safety Notices and Symbols ......................................................................................................... IV
Allgemeine Sicherheits Informationen ........................................................................................... V
Sicherheits Begriffe und Symbole ............................................................................................... VII
Document Overview ............................................................................................................. VIII
Chapter 1 Programming Overview......................................................................................1-1
To Build Remote Communication ............................................................................................... 1-2
Remote Control Methods ........................................................................................................... 1-3
SCPI Command Overview .......................................................................................................... 1-4
Syntax ............................................................................................................................... 1-4
Symbol Description ............................................................................................................ 1-4
Parameter Type .................................................................................................................. 1-5
Command Abbreviation ...................................................................................................... 1-5
Chapter 2 Command System ...............................................................................................2-1
IEEE488.2 Common Commands................................................................................................. 2-2
*IDN? ............................................................................................................................... 2-2
*TRG ................................................................................................................................ 2-2
:MMEMory Commands .............................................................................................................. 2-3
:MMEMory:CATalog ............................................................................................................ 2-3
:MMEMory:CATalog:LENGth ................................................................................................ 2-4
:MMEMory:COPY ................................................................................................................ 2-4
:MMEMory:DATA:IQ ........................................................................................................... 2-5
:MMEMory:DATA:IQ:LIST ................................................................................................... 2-5
:MMEMory:DELete.............................................................................................................. 2-6
:MMEMory:DISK:FORMat .................................................................................................... 2-6
:MMEMory:DISK:INFormation ............................................................................................. 2-6
:MMEMory:FILEtype ........................................................................................................... 2-7
:MMEMory:LDISk:SPACe ..................................................................................................... 2-7
:MMEMory:LOAD ................................................................................................................ 2-7
:MMEMory:MDIRectory ....................................................................................................... 2-8
:MMEMory:MOVE ............................................................................................................... 2-8
:MMEMory:PNAMe:EDIT ..................................................................................................... 2-9
:MMEMory:PNAMe:STATe .................................................................................................... 2-9
:MMEMory:SAVe ............................................................................................................... 2-10
:OUTPut Command ................................................................................................................. 2-11
:OUTPut[:STATe].............................................................................................................. 2-11
:SOURce Commands ............................................................................................................... 2-12
[:SOURce]:AM Command Subsystem................................................................................. 2-12
[:SOURce]:CORRection Command Subsystem .................................................................... 2-18
[:SOURce]:FM Command Subsystem ................................................................................. 2-20
[:SOURce]:FMPM:TYPE..................................................................................................... 2-25
[:SOURce]:FREQuency Command Subsystem .................................................................... 2-26
[:SOURce]:INPut:TRIGger:SLOPe ...................................................................................... 2-27
[:SOURce]:IQ Command Subsystem ................................................................................. 2-28
[:SOURce]:LEVel Command Subsystem ............................................................................. 2-41
[:SOURce]:LFOutput Command Subsystem........................................................................ 2-43
[:SOURce]:MODulation:STATe ........................................................................................... 2-45
[:SOURce]:PM Command Subsystem ................................................................................. 2-46
[:SOURce]:PULM Command Subsystem ............................................................................. 2-51
[:SOURce]:SWEep Command Subsystem ........................................................................... 2-61
Operating Steps:
1. Install the Ultra Sigma common PC software
Acquire the Ultra Sigma common PC software from www.rigol.com; then, install it according to the
instructions.
2. Connect the instrument and PC and configure the interface parameters of the instrument
DSG800 supports USB and LAN communication interfaces, as shown in the figure below.
Syntax
SCPI commands present a hierarchical tree structure and have multiple sub-systems, each of which
contains a root keyword and one or more sub-keywords. The command string usually begins with ":"; the
keywords are separted by ":" and are followed by the parameter settings available; "?" is added at the end
of the command string to indicate query; space is used to separate the command and parameter.
For example,
:SYSTem:COMMunication:LAN:IP:ADDress <value>
:SYSTem:COMMunication:LAN:IP:ADDress?
SYSTem is the root keyword of the command above. COMMunication, LAN, IP and ADDress are the
second-level, third-level, forth-level and fifth-level keywords respectively. The command string begins with
":" which is also used to separate the multi-level keywords. <value> denotes the parameter available for
setting. "?" denotes query and the RF signal generator returns the response information (the output value
or internal setting value of the instrument) when receiving a query command. The
command :SYSTem:COMMunication:LAN:IP:ADDress and prarameter <value> are separated by a space.
"," is generally used for separating different parameters contained in the same command; for example,
[:SOURce]:SWEep:LIST:LIST? <Start>,<Count>
Symbol Description
The following four symbols are not the content of SCPI commands and will not be sent with the command;
but, they are usually used to describe the parameters in the commands.
1. Braces { }
Multiple optional parameters are enclosed in the braces and one of the parameters must be selected
when sending the command.
2. Vertical Bar |
The vartical bar is used to separate multiple parameters. When you send a command, one of the
parameters must be selected. For example, the :SYSTem:LANGuage CHINese|ENGLish command.
3. Square Brackets [ ]
The contents (command keywords) enclosed in the square brackets are optional and will be executed
no matter whether they are omitted or not. For example, for the [:SOURce]:AM[:DEPTh]? command,
sending any of the four commands below can generate the same effect.
:AM?
:AM:DEPTh?
:SOURce:AM?
:SOURce:AM:DEPTh?
Parameter Type
The parameters of the commands introduced in this manual contains 5 types: bool, integer, real number,
discrete and ASCII string.
1. Bool
The parameter could be OFF, ON, 0 or 1. For example, [:SOURce]:AM:STATe ON|OFF|1|0.
2. Integer
Unless otherwise noted, the parameter can be any integer within the effective value range. Note that
do not set the parameter to a decimal; otherwise, errors will occur. For example, in
the :SYSTem:BRIGhtness <value> command, <value> can be any integer from 1 to 8.
3. Real Number
Unless otherwise noted, the parameter can be any value within the effective value range.
For example, <value> in the [:SOURce]:AM:FREQuency <value> command can be any real number
from 10Hz to 100kHz.
4. Discrete
The parameter could only be one of the specified values or characters. For example, in the
[:SOURce]:AM:WAVEform SINE|SQUA command, the parameter can only be SINE or SQUA.
5. ASCII String
The parameter should be the combinations of ASCII characters. For example, in the :MMEMory:SAVe
<file_name> command, <file_name> is the filename of the file to be saved and can include Chinese
characters (a Chinese character occupies two bytes), English characters and numbers. The filename
cannot exceed 28 bytes.
Command Abbreviation
All the commands are case-insensitive and you can use any of them. If abbreviation is used, all the capital
letters in the command must be written completely. For example, the :MMEMory:DISK:FORMat command
can be abbreviated to :MMEM:DISK:FORM.
Command List[1] :
*IDN?
*TRG
*IDN?
Syntax *IDN?
Description Query the ID string of the instrument.
Return Format The query returns the ID string of the instrument. For example, Rigol
Technologies,DSG830,DSG8A170200001,00.01.01.
*TRG
Syntax *TRG
Description Trigger a pulse modulation, RF sweep or IQ wavetable output immediately.
Related :TRIGger:IQ[:IMMediate]
Commands
:TRIGger:PULSe[:IMMediate]
:TRIGger[:SWEep][:IMMediate]
Note[1]: In the "Command List" in this manual, the parameters in the setting commands and the query commands are
not included and you can refer to the complete introductions of the commands in the text according to the keywords.
:MMEMory Commands
The :MMEMory commands are used to store files to the internal or external memory of the instrument, read
or delete the specified file as well as query the disk information.
Command List:
:MMEMory:CATalog
:MMEMory:CATalog:LENGth
:MMEMory:COPY
:MMEMory:DATA:IQ
:MMEMory:DATA:IQ:LIST
:MMEMory:DELete
:MMEMory:DISK:FORMat
:MMEMory:DISK:INFormation
:MMEMory:FILEtype
:MMEMory:LDISk:SPACe
:MMEMory:LOAD
:MMEMory:MDIRectory
:MMEMory:MOVE
:MMEMory:PNAMe:EDIT
:MMEMory:PNAMe:STATe
:MMEMory:SAVe
:MMEMory:CATalog
Syntax :MMEMory:CATalog? <path>
Description Query all the files and folders under the specified path.
Parameter Name Type Range Default
<path> ASCII string Valid path --
Explanation <path>: the local memory (D disk), external memory (E disk; when a USB
storage device is detected by the USB HOST interface at the rear panel) or the
subdirectory under the D or E disk.
The query returns a list of all the files and folders under the path specified by
<path>.
Return Format NO.1 File Name: Rigol
NO.2 File Name: 4.STA
Example :MMEM:CAT? D:
:MMEMory:CATalog:LENGth
Syntax :MMEMory:CATalog:LENGth? <path>
Description Query the number of files and folders under the specified path.
Parameter Name Type Range Default
<path> ASCII string Valid path --
Explanation <path> can be the local memory (D disk), external memory (E disk; when a USB
storage device is detected by the USB HOST interface at the rear panel) or the
subdirectory under the D or E disk.
Return Format The query returns an integer. For example, 2.
Example :MMEM:CAT:LENG? D: /*Query and return the number of files and folders in the
D disk*/
:MMEMory:COPY
Syntax :MMEMory:COPY <file_source>,<file_destination>
Description Copy the file or folder specified by <file_source> to the destination path specified
by <file_destination>.
Parameter Name Type Range Default
The name of the file or folder to
<file_source> ASCII string --
be copied
<file_destination> ASCII string Valid destination path --
Explanation <file_source> denotes the file or folder to be copied. The file or folder name
must contain the path. <file_destination> denotes the destination path and
does not include the filename.
If the file or folder specified by <file_source> does not exist, the operation
fails.
If the destination path specified by <file_destination> does not exist, the copy
operation fails.
Example :MMEM:COPY D:\1.STA,D:\
:MMEMory:DATA:IQ
Syntax :MMEMory:DATA:IQ <file_name>,<flag>,<num>{,<i0>,<q0>…<in>,<qn>}
Description Save and download IQ waveform data to the instrument.
Parameter Name Type Explanation
The name of the wavetable file downloaded
<file_name> ASCII string
into the instrument.
When the IQ data file exceeds 64kB, you
should download the file packets separately.
0 denotes downloading the first data packet;
<flag> Discrete 1 denotes downloading the subsequent data
packets;
2 denotes downloading the last data packet
and output the IQ waveform.
<num> Integer The number of IQ data pairs.
{,<i0>,<q0>… Decimal IQ data pairs. Each data (for example, i0)
<in>,<qn>} number cannot exceed two bytes.
Explanation When sending the command, you should add the data block (start with #9 flag)
which denotes the total length of the IQ data before <i0>,<q0>…<in>,<qn>. For
example, #9000000011 denotes that the total length of the IQ data is 11 bytes. The
value is calculated by the formula "the number of bytes of the IQ data pairs + the
number of bytes occupied by the commas".
Example :MMEM:DATA:IQ test1,0,2,#9000000011 1,10,11,20
/*Save the two pairs of IQ data currently edited with the filename "test1" (the total
length of "1,10,11,20" is 11 bytes and is expressed by #9000000011) and download
the IQ data to DSG800*/
:MMEMory:DATA:IQ:LIST
Syntax :MMEMory:DATA:IQ:LIST?
Description Query the wavetable files currently stored in the root directory (D: disk) of the
instrument.
Return Format The query returns the wavetable file list in the format of "wavetable filename
(*.arb),file size". For example, wave2.arb,2180,wave3.arb,2516,.
:MMEMory:DELete
Syntax :MMEMory:DELete <file_name>
Description Delete the specified file or folder under the specified operation path.
Parameter Name Type Range Default
The name of the file or folder to
<file_name> ASCII string --
be deleted
Explanation This command is valid only when the specified file or folder exists under the
current operation path or the specified path.
<file_name> can be the name of a file or folder under the current operation
path or a file or folder name containing the specified path. For
example, :MMEM:DEL D:\NEW\8.STA.
Example :MMEM:DEL 8.STA /*Delete the file named "8.STA" under the current operation
path*/
:MMEMory:DISK:FORMat
Syntax :MMEMory:DISK:FORMat
Description Format the local disk (D disk).
:MMEMory:DISK:INFormation
Syntax :MMEMory:DISK:INFormation? <Disk>
Description Query the information of the local disk.
Parameter Name Type Range Default
<Disk> ASCII string D: (or LOCAL) D: (or LOCAL)
Return Format The query returns the information of the local disk, including the disk name, file
system, total space, used space and free space. For example,
Disk:D: (or Disk:LOCAL)
File Sys:FAT32
Total:1.0 GB
Used:512 KB
Free:0.99 GB
Example :MMEM:DISK:INF? D: /*The query returns the information of D disk*/
:MMEMory:FILEtype
Syntax :MMEMory:FILEtype
ALL|STATe|ARB|FLACsv|SWPCsv|TRNCsv|SEGMent|SEQList|SEQCsv
:MMEMory:FILEtype?
Description Set the file type.
Query the current file type.
Parameter Name Type Range Default
ALL|STATe|ARB|FLACsv|S ALL|STATe|ARB|FLACsv|S
WPCsv|TRNCsv|SEGMent| Discrete WPCsv|TRNCsv|SEGMent| ALL
SEQList|SEQCsv SEQList|SEQCsv
Explanation The file types available are all, state, Arb, flatness csv, sweep csv, train csv,
segment, seg list and seg csv.
After selecting the corresponding file type, you can view all the files of this file
type or save a new file of this file type.
Return Format The query returns ALL, STATE, ARB, FLACSV, SWPCSV, TRNCSV, SEGMENT, SEQLIST
or SEQCSV.
Example :MMEM:FILE STATe /*Set the file type to "State"*/
:MMEM:FILE? /*Query the current file type and the query returns
STATE*/
:MMEMory:LDISk:SPACe
Syntax :MMEMory:LDISk:SPACe?
Description Query the space information of the local disk (D disk).
Return Format The query returns the D disk space information including the "Used space" and "Free
space". For example, Used:512 k,Free:1048064 k.
:MMEMory:LOAD
Syntax :MMEMory:LOAD <file_name>
Description Read the specified file in the specified operation path.
Parameter Name Type Range Default
ASCII The name of the file to be
<file_name> --
string read
Explanation This command is valid only when the specified file exists under the current
operation path or the specified path.
<file_name> can be the name of a file under the current operation path or a file
name containing the specified path. For example, MMEM:LOAD D:\NEW\2.STA.
Example :MMEM:LOAD 2.STA /*Read the file named "2.STA" under the current operation
path*/
:MMEMory:MDIRectory
Syntax :MMEMory:MDIRectory <directory_name>
Description Create a new folder under the specified operation path.
Parameter Name Type Range Default
The name of the folder to be
<directory_name> ASCII string --
created
Explanation The folder name can include Chinese characters (a Chinese character occupies
two bytes), English characters or numbers. The folder name cannot exceed 28
bytes.
If the name of the folder to be created already exists, this operation is invalid. At
this point, "The filename already exists" is displayed in the user interface.
<directory_name> can be a new folder name that does not contain the path
(denote creating a folder under the current operation path) or a folder name
that contains the specified path (denote creating a new folder under the
specified path; for example, :MMEM:MDIR D:\1\NEW).
Example :MMEM:MDIR NEW /*Create a folder named "NEW" under the current operation
path*/
:MMEMory:MOVE
Syntax :MMEMory:MOVE <file_source>,<file_destination>
Description Rename the file or folder specified by <file_source> as the destination file or folder
name specified by <file_destination>.
:MMEMory:PNAMe:EDIT
Syntax :MMEMory:PNAMe:EDIT <pre_name>
:MMEMory:PNAMe:EDIT?
Description Edit and save the filename prefix.
Query the filename prefix saved.
Parameter Name Type Range Default
<pre_name> ASCII string The filename prefix to be edited --
Explanation You can edit any filename prefix.
Return Format The query returns the filename prefix. For example, N.
Example :MMEM:PNAM:EDIT N /*Edit the filename prefix as N*/
:MMEM:PNAM:EDIT? /*The query returns N*/
Related :MMEMory:PNAMe:STATe
Command
:MMEMory:PNAMe:STATe
Syntax :MMEMory:PNAMe:STATe ON|OFF|1|0
:MMEMory:PNAMe:STATe?
Description Turn on or off the filename prefix.
Query the current on/off state of the filename prefix.
:MMEMory:SAVe
Syntax :MMEMory:SAVe <File_name>
Description Save the file with the specified filename under the current operation path.
Parameter Name Type Range Default
<file_name> ASCII string The name of the file to be saved --
Explanation The filename can include Chinese characters (a Chinese character occupies two
bytes), English characters or numbers. The filename cannot exceed 28 bytes.
When the current path already contains a file with the same name, this
command will directly overwrite the original file.
Example :MMEM:SAV SET.STA /*Save the current instrument state with the filename
"SET.STA" under the current operation path*/
:OUTPut Command
Command List:
:OUTPut
:OUTPut[:STATe]
Syntax :OUTPut[:STATe] ON|OFF|1|0
:OUTPut[:STATe]?
Description Turn on or off the RF output.
Query the on/off state of the RF output.
Parameter Name Type Range Default
ON|OFF|1|0 Bool ON|OFF|1|0 OFF|0
Explanation ON|1: turn on the RF output. At this point, the backlight of RF/on goes on.
OFF|0: turn off the RF output. At this point, the backlight of RF/on goes off.
Return Format The query returns 1 or 0.
Example :OUTP ON /*Turn on the RF output*/
:OUTP? /*The query returns 1*/
:SOURce Commands
The :SOURce commands are used to set the related parameters of the main functions of the RF signal
generator including the frequency, level, flatness calibration, AM, FM/ØM, Pulse, SWEEP, LF output and so
on.
Command List:
[:SOURce]:AM Command Subsystem
[:SOURce]:CORRection Command Subsystem
[:SOURce]:FM Command Subsystem
[:SOURce]:FMPM:TYPE
[:SOURce]:FREQuency Command Subsystem
[:SOURce]:INPut:TRIGger:SLOPe
[:SOURce]:IQ Command Subsystem
[:SOURce]:LEVel Command Subsystem
[:SOURce]:LFOutput Command Subsystem
[:SOURce]:MODulation:STATe
[:SOURce]:PM Command Subsystem
[:SOURce]:PULM Command Subsystem
[:SOURce]:SWEep Command Subsystem
[:SOURce]:AM[:DEPTh]
Syntax [:SOURce]:AM[:DEPTh] <value>
[:SOURce]:AM[:DEPTh]?
Description Set the AM modulation depth.
Query the AM modulation depth.
Parameter Name Type Range Default
<value> Real 0 to 100 50
Explanation When "Int" modulation source is selected, the AM modulation depth ( ma ) and
amplitude difference ( ΔPsb ) between the carrier and sidebands satisfy the
following relation: ΔPsb = 6 − 20 lg ma .
<value> can also be expressed as percentage. For example, 80%.
After the modulation depth is set, you can rotate the knob to modify the
modulation depth at the current step. You can set and query the current step
using the [:SOURce]:AM[:DEPTh]:STEP[:INCRement] command.
Return Format The query returns the modulation depth. For example, 80.00.
Example :AM:DEPT 80
:AM:DEPT?
Related [:SOURce]:AM[:DEPTh]:STEP[:INCRement]
Command
[:SOURce]:AM[:DEPTh]:STEP[:INCRement]
Syntax [:SOURce]:AM[:DEPTh]:STEP[:INCRement] <value>
[:SOURce]:AM[:DEPTh]:STEP[:INCRement]?
Description Set the AM modulation depth step.
Query the AM modulation depth step.
Parameter Name Type Range Default
<value> Real 0.1 to 50 10
Explanation <value> can also be expressed as percentage. For example, 0.2%.
After the modulation depth step is set, you can rotate the knob to modify the
modulation depth at the current step. At this point, you can query or set the
modulation depth using the [:SOURce]:AM[:DEPTh] command.
Return Format The query returns the modulation depth step. For example, 0.20.
Example AM:DEPT:STEP:INCR 0.2
AM:DEPT:STEP:INCR?
Related [:SOURce]:AM[:DEPTh]
Command
[:SOURce]:AM:EXT:COUP
Syntax [:SOURce]:AM:EXT:COUP AC|DC
[:SOURce]:AM:EXT:COUP?
Description Set the coupling mode of AM external modulation.
Query the coupling mode of AM external modulation.
Parameter Name Type Range Default
AC|DC Discrete AC|DC AC
Explanation AC: set the coupling mode of AM external modulation to "AC".
DC: set the coupling mode of AM external modulation to "DC".
When the modulation source of AM is set to "Int", this command is invalid.
Return Format The query returns AC or DC.
Example :AM:EXT:COUP AC
:AM:EXT:COUP?
Related [:SOURce]:AM:SOURce
Command
[:SOURce]:AM:EXT:IMP
Syntax [:SOURce]:AM:EXT:IMP 50|600|100k
[:SOURce]:AM:EXT:IMP?
Description Set the impedance of AM external modulation.
Query the impedance of AM external modulation.
[:SOURce]:AM:FREQuency
Syntax [:SOURce]:AM:FREQuency <value>
[:SOURce]:AM:FREQuency?
Description Set the AM modulation frequency.
Query the AM modulation frequency.
[:SOURce]:AM:FREQuency:STEP[:INCRement]
Syntax [:SOURce]:AM:FREQuency:STEP[:INCRement] <value>
[:SOURce]:AM:FREQuency:STEP[:INCRement]?
Description Set the AM modulation frequency step.
Query the AM modulation frequency step.
[:SOURce]:AM:SOURce
Syntax [:SOURce]:AM:SOURce EXTernal|INTernal
[:SOURce]:AM:SOURce?
Description Set the AM modulation source.
Query the AM modulation source.
[:SOURce]:AM:STATe
Syntax [:SOURce]:AM:STATe ON|OFF|1|0
[:SOURce]:AM:STATe?
Description Set the state of the AM switch.
Query the state of the AM switch.
[:SOURce]:AM:WAVEform
Syntax [:SOURce]:AM:WAVEform SINE|SQUA
[:SOURce]:AM:WAVEform?
Description Set the AM modulation waveform.
Query the AM modulation waveform.
Command List:
[:SOURce]:CORRection:FLATness:COUNt
[:SOURce]:CORRection:FLATness:LIST
[:SOURce]:CORRection:FLATness[:STATe]
[:SOURce]:CORRection:FLATness:COUNt
Syntax [:SOURce]:CORRection:FLATness:COUNt?
Description Query the number of points in the current flatness calibration list.
Return Format The query returns the number of points in the flatness calibration list in integer. For
example, 5.
[:SOURce]:CORRection:FLATness:LIST
Syntax [:SOURce]:CORRection:FLATness:LIST? <Start>,<Count>
Description Query the flatness calibration list data within the specified range.
Parameter Name Type Range Default
<Start> Integer 1 to the total number of rows in the current list --
<Count> Integer 1 to the total number of rows in the current list --
Explanation <Start>: the number of the start row of the data to be acquired.
<Count>: the total number of rows of the data to be acquired.
Return Format The query returns the flatness calibration list data acquired. For example,
NO.1:304000000.000000 , 7.450000
NO.2:800000000.000000 , -17.799999
Example :CORR:FLAT:LIST? 2,2 /*Query and return two rows of calibration data starting
from the 2nd row of the flatness calibration list*/
Related [:SOURce]:CORRection:FLATness:COUNt
Command
[:SOURce]:CORRection:FLATness[:STATe]
Syntax [:SOURce]:CORRection:FLATness[:STATe] ON|OFF|1|0
[:SOURce]:CORRection:FLATness[:STATe]?
Description Turn on or off the flatness calibration switch.
Query the state of the flatness calibration switch.
Parameter Name Type Range Default
ON|OFF|1|0 Bool ON|OFF|1|0 OFF|0
Explanation ON|1: turn on the flatness calibration switch.
OFF|0: turn off the flatness calibration switch.
Return Format The query returns 1 or 0.
Example :CORR:FLAT ON /*Turn on the flatness calibration switch*/
:CORR:FLAT? /*The query returns 1*/
[:SOURce]:FM[:DEViation]
Syntax [:SOURce]:FM[:DEViation] <value>
[:SOURce]:FM[:DEViation]?
Description Set the FM frequency deviation.
Query the FM frequency deviation.
Parameter Name Type Range Default
100mHz to
<value> Real 10kHz
1MHz
Explanation When <value> is set in "Number" form, the default unit is Hz; for example,
20000. In addition, <value> can also be set in "Number + Unit" form; for
example, 20kHz.
After the frequency deviation is set, you can rotate the knob to modify the
deviation at the current step. You can set and query the current step using the
[:SOURce]:FM[:DEViation]:STEP[:INCRement] command.
Return Format The query returns the FM frequency deviation. For example, 20.00000kHz.
Example :FM:DEV 20kHz
:FM:DEV?
Related [:SOURce]:FM[:DEViation]:STEP[:INCRement]
Command
[:SOURce]:FM[:DEViation]:STEP[:INCRement]
Syntax [:SOURce]:FM[:DEViation]:STEP[:INCRement] <value>
[:SOURce]:FM[:DEViation]:STEP[:INCRement]?
Description Set the FM frequency deviation step.
Query the FM frequency deviation step.
[:SOURce]:FM:EXT:COUP
Syntax [:SOURce]:FM:EXT:COUP AC|DC
[:SOURce]:FM:EXT:COUP?
Description Set the coupling mode of FM external modulation.
Query the coupling mode of FM external modulation.
Parameter Name Type Range Default
AC|DC Discrete AC|DC AC
Explanation AC: set the coupling mode of FM external modulation to "AC".
DC: set the coupling mode of FM external modulation to "DC".
When the modulation source of FM is set to "Int", this command is invalid.
[:SOURce]:FM:EXT:IMP
Syntax [:SOURce]:FM:EXT:IMP 50|600|100k
[:SOURce]:FM:EXT:IMP?
Description Set the impedance of FM external modulation.
Query the impedance of FM external modulation.
Parameter Name Type Range Default
50|600|100k Discrete 50|600|100k 100k
Explanation 50: set the impedance of FM external modulation to "50ohm".
600: set the impedance of FM external modulation to "600ohm".
100k: set the impedance of FM external modulation to "100kohm".
When the modulation source of FM is set to "Int", this command is invalid.
[:SOURce]:FM:FREQuency
Syntax [:SOURce]:FM:FREQuency <value>
[:SOURce]:FM:FREQuency?
Description Set the FM modulation frequency.
Query the FM modulation frequency.
Parameter Name Type Range Default
10Hz to 100kHz (Sine)/10Hz to 20kHz
<value> Real 10kHz
(Square)
Explanation When <value> is set in "Number" form, the default unit is Hz; for example,
20000. In addition, <value> can also be set in "Number + Unit" form; for
example, 20kHz.
After the modulation frequency is set, you can rotate the knob to modify the
modulation frequency at the current step. At this point, you can set and query
the current step using the [:SOURce]:FM:FREQuency:STEP[:INCRement]
command.
When the modulation source of FM is set to "Ext", this command is invalid.
Return Format The query returns the FM modulation frequency. For example, 20.00000kHz.
Example :FM:FREQ 20kHz
:FM:FREQ?
Related [:SOURce]:FM:FREQuency:STEP[:INCRement]
Commands
[:SOURce]:FM:SOURce
[:SOURce]:FM:FREQuency:STEP[:INCRement]
Syntax [:SOURce]:FM:FREQuency:STEP[:INCRement] <value>
[:SOURce]:FM:FREQuency:STEP[:INCRement]?
Description Set the FM modulation frequency step.
Query the FM modulation frequency step.
[:SOURce]:FM:SOURce
Syntax [:SOURce]:FM:SOURce EXTernal|INTernal
[:SOURce]:FM:SOURce?
Description Set the FM modulation source.
Query the FM modulation source.
Parameter Name Type Range Default
EXTernal|INTernal Discrete EXTernal|INTernal INTernal
Explanation EXTernal: set the modulation source to "Ext". At this point, the external
modulating signal is input from the [EXT MOD IN] connector.
INTernal: set the modulation source to "Int". At this point, the instrument
provides the modulating signal and you can set the modulation frequency and
modulation waveform of the modulating signal.
Return Format The query returns the FM modulation source. For example, INT.
Example :FM:SOUR INT
:FM:SOUR?
Related [:SOURce]:FM:FREQuency
Commands
[:SOURce]:FM:WAVEform
[:SOURce]:FM:STATe
Syntax [:SOURce]:FM:STATe ON|OFF|1|0
[:SOURce]:FM:STATe?
Description Set the state of the FM switch.
Query the state of the FM switch.
[:SOURce]:FM:WAVEform
Syntax [:SOURce]:FM:WAVEform SINE|SQUA
[:SOURce]:FM:WAVEform?
Description Set the FM modulation waveform.
Query the FM modulation waveform.
[:SOURce]:FMPM:TYPE
Syntax [:SOURce]:FMPM:TYPE FM|PM
[:SOURce]:FMPM:TYPE?
Description Set the current modulation type to FM or ØM.
Query the current modulation type.
Command List:
[:SOURce]:FREQuency
[:SOURce]:FREQuency:STEP
[:SOURce]:FREQuency
Syntax [:SOURce]:FREQuency <value>
[:SOURce]:FREQuency?
Description Set the frequency of the RF signal.
Query the frequency of the RF signal.
Explanation When <value> is set in "Number" form, the default unit is Hz; for example,
4000000. In addition, <value> can also be set in "Number + Unit" form; for
example, 4MHz.
After the RF frequency is set, you can rotate the knob to modify the frequency
at the current step. At this point, you can set and query the current step using
the [:SOURce]:FREQuency:STEP command.
Return Format The query returns the frequency of the RF signal. For example, 4.00000000MHz.
Example :FREQ 4MHz
:FREQ?
Related [:SOURce]:FREQuency:STEP
Command
[:SOURce]:FREQuency:STEP
Syntax [:SOURce]:FREQuency:STEP <value>
[:SOURce]:FREQuency:STEP?
Description Set the RF frequency step.
Query the RF frequency step.
[:SOURce]:INPut:TRIGger:SLOPe
Syntax [:SOURce]:INPut:TRIGger:SLOPe POSitive|NEGative
[:SOURce]:INPut:TRIGger:SLOPe?
Description Set the polarity of the external trigger input signal.
Query the polarity of the external trigger input signal.
Command List[2]:
[:SOURce]:IQ:BASeout:LEVel
[:SOURce]:IQ:BASeout:LEVel:STEP
[:SOURce]:IQ:BASeout:STATe
[:SOURce]:IQ:MODe
[:SOURce]:IQ:MODe:STATe
[:SOURce]:IQ:SAMPle
[:SOURce]:IQ:SAMPle:STEP
[:SOURce]:IQ:TRIGger:ARB
[:SOURce]:IQ:TRIGger:DELay
[:SOURce]:IQ:TRIGger:DELay:STEP
[:SOURce]:IQ:TRIGger:DURation
[:SOURce]:IQ:TRIGger:DURation:STEP
[:SOURce]:IQ:TRIGger:DURation:UNIT
[:SOURce]:IQ:TRIGger:INHibit
[:SOURce]:IQ:TRIGger:INHibit:STEP
[:SOURce]:IQ:TRIGger:MODe
[:SOURce]:IQ:TRIGger:OPTMode
[:SOURce]:IQ:TRIGger:SEGMent:CURRent?
[:SOURce]:IQ:TRIGger:SEGMent:EXECute
[:SOURce]:IQ:TRIGger:SEGMent:MODE
[:SOURce]:IQ:TRIGger:SEGMent:NEXT
Note[2]: If you want to use the IQ-related commands, please order RF signal generators with the DSG800-IQ option.
Otherwise, the command settings are invalid.
[:SOURce]:IQ:BASeout:LEVel
Syntax [:SOURce]:IQ:BASeout:LEVel <value>
[:SOURce]:IQ:BASeout:LEVel?
Description Set the baseband output amplitude.
Query the baseband output amplitude.
Parameter Name Type Range Default
<value> Real 20mV to 1.5V 1V
Explanation When <value> is set in "Number" form, the default unit is V. Besides, <value>
can also be set in "Number + Unit" form; for example, 1.1V.
The default unit of the return value is V.
After the baseband output amplitude is set, you can rotate the knob to modify
the amplitude at the current step. At this point, you can set and query the
current step using the [:SOURce]:IQ:BASeout:LEVel:STEP command.
Return Format The query returns the amplitude of the baseband output signal. For example,
1.100000.
Example :IQ:BAS:LEV 1.1
:IQ:BAS:LEV?
Related [:SOURce]:IQ:BASeout:LEVel:STEP
Command
[:SOURce]:IQ:BASeout:LEVel:STEP
Syntax [:SOURce]:IQ:BASeout:LEVel:STEP <value>
[:SOURce]:IQ:BASeout:LEVel:STEP?
Description Set the baseband output amplitude step.
Query the baseband output amplitude step.
[:SOURce]:IQ:BASeout:STATe
Syntax [:SOURce]:IQ:BASeout:STATe ON|OFF|1|0
[:SOURce]:IQ:BASeout:STATe?
Description Set the state of the baseband output switch.
Query the state of the baseband output switch.
[:SOURce]:IQ:MODe
Syntax [:SOURce]:IQ:MODe INTernal|EXTernal
[:SOURce]:IQ:MODe?
Description Set the IQ modulation source.
Query the IQ modulation source.
[:SOURce]:IQ:MODe:STATe
Syntax [:SOURce]:IQ:MODe:STATe ON|OFF|1|0
[:SOURce]:IQ:MODe:STATe?
Description Set the state of the IQ modulation switch.
Query the state of the IQ modulation switch.
[:SOURce]:IQ:SAMPle
Syntax [:SOURce]:IQ:SAMPle <value>
[:SOURce]:IQ:SAMPle?
Description Set the sample rate of the IQ wavetable output.
Query the sample rate of the IQ wavetable output.
Parameter Name Type Range Default
<value> Real 1kHz to 100MHz 1MHz
Explanation When <value> is set in "Number" form, the default unit is Hz; for example,
3000. In addition, <value> can also be set in "Number + Unit" form; for
example, 3kHz.
The default unit of the return value is Hz.
After the sample rate is set, you can rotate the knob to modify the sample rate
at the current step. At this point, you can set and query the current step using
the [:SOURce]:IQ:SAMPle:STEP command.
Return Format The query returns the sample rate of the IQ wavetable output. For example, 3000.
Example :IQ:SAMP 3kHz
:IQ:SAMP?
Related [:SOURce]:IQ:SAMPle:STEP
Command
[:SOURce]:IQ:SAMPle:STEP
Syntax [:SOURce]:IQ:SAMPle:STEP <value>
[:SOURce]:IQ:SAMPle:STEP?
Description Set the sample rate step of the IQ wavetable output.
Query the sample rate step of the IQ wavetable output.
[:SOURce]:IQ:TRIGger:ARB
Syntax [:SOURce]:IQ:TRIGger:ARB
Description Stop the waveform output manually.
Explanation When the operation mode after the IQ wavetable is triggered is set to "Arm Auto" or
"Arm Retrig", you need to use this command to stop the waveform output manually
and wait for the next trigger.
Related [:SOURce]:IQ:TRIGger:OPTMode
Command
[:SOURce]:IQ:TRIGger:DELay
Syntax [:SOURce]:IQ:TRIGger:DELay <value>
[:SOURce]:IQ:TRIGger:DELay?
Description Set the external trigger delay of the IQ modulation baseband signal.
Query the external trigger delay of the IQ modulation baseband signal.
[:SOURce]:IQ:TRIGger:DELay:STEP
Syntax [:SOURce]:IQ:TRIGger:DELay:STEP <value>
[:SOURce]:IQ:TRIGger:DELay:STEP?
Description Set the external trigger delay step of the IQ modulation baseband signal.
Query the external trigger delay step of the IQ modulation baseband signal.
Parameter Name Type Range Default
<value> Integer 1 to 10000 1
Explanation After the trigger delay step is set, you can rotate the knob to modify the trigger delay
at the current step. At this point, you can query or set the trigger delay using the
[:SOURce]:IQ:TRIGger:DELay command.
Return Format The query returns the external trigger delay step. For example, 20.
Example :IQ:TRIG:DEL:STEP 20
:IQ:TRIG:DEL:STEP?
Related [:SOURce]:IQ:TRIGger:DELay
Command
[:SOURce]:IQ:TRIGger:DURation
Syntax [:SOURce]:IQ:TRIGger:DURation <value>
[:SOURce]:IQ:TRIGger:DURation?
Description Set the duration of the signal in single trigger.
Query the duration of the signal in single trigger.
[:SOURce]:IQ:TRIGger:DURation:STEP
Syntax [:SOURce]:IQ:TRIGger:DURation:STEP <value>
[:SOURce]:IQ:TRIGger:DURation:STEP?
Description Set the duration step.
Query the duration step.
[:SOURce]:IQ:TRIGger:DURation:UNIT
Syntax [:SOURce]:IQ:TRIGger:DURation:UNIT SEQUENCE|SAMPLES
[:SOURce]:IQ:TRIGger:DURation:UNIT?
Description Set the duration unit of the IQ wavetable in "Single" trigger.
Query the duration unit of the IQ wavetable in "Single" trigger.
Parameter Name Type Range Default
SEQUENCE|SAMPLES Discrete SEQUENCE|SAMPLES SAMPLES
Explanation SEQUENCE: trigger by the waveform segment.
SAMPLES: trigger by the data point.
Return Format The query returns the duration unit of the IQ wavetable in "Single" trigger. For
example, SAMPLES.
Example :IQ:TRIG:DUR:UNIT SAMPLES
:IQ:TRIG:DUR:UNIT?
Related [:SOURce]:IQ:TRIGger:OPTMode
Command
[:SOURce]:IQ:TRIGger:INHibit
Syntax [:SOURce]:IQ:TRIGger:INHibit <value>
[:SOURce]:IQ:TRIGger:INHibit?
Description Set the trigger inhibit of the IQ modulation baseband signal.
Query the trigger inhibit of the IQ modulation baseband signal.
Parameter Name Type Range Default
<value> Integer 0 to 65535 0
Explanation Trigger inhibit refers to the time from when a trigger signal is received to when
the instrument receives the next trigger signal.
This command is valid only when "Ext" trigger mode is selected. <value>
describes the number of points ( N i ). The actual time ( Ti ) can be obtained
according to the current sample rate ( S a ): Ti = N i Sa .
After the trigger inhibit is set, you can rotate the knob to modify the inhibit at
the current step. At this point, you can set and query the current step using the
[:SOURce]:IQ:TRIGger:INHibit:STEP command.
Return Format The query returns the trigger inhibit. For example, 5000.
Example :IQ:TRIG:INH 5000
:IQ:TRIG:INH?
Related [:SOURce]:IQ:TRIGger:INHibit:STEP
Commands
[:SOURce]:IQ:TRIGger:MODe
[:SOURce]:IQ:TRIGger:INHibit:STEP
Syntax [:SOURce]:IQ:TRIGger:INHibit:STEP <value>
[:SOURce]:IQ:TRIGger:INHibit:STEP?
Description Set the trigger inhibit step.
Query the trigger inhibit step.
[:SOURce]:IQ:TRIGger:MODe
Syntax [:SOURce]:IQ:TRIGger:MODe AUTO|KEY|BUS|EXT
[:SOURce]:IQ:TRIGger:MODe?
Description Set the trigger mode of the IQ modulation baseband output.
Query the trigger mode of the IQ modulation baseband output.
[:SOURce]:IQ:TRIGger:OPTMode
Syntax [:SOURce]:IQ:TRIGger:OPTMode RETRig|AMDAuto|AMDRetrig|SINGle
[:SOURce]:IQ:TRIGger:OPTMode?
Description Set the operation mode after the IQ modulation baseband signal is triggered.
Query the operation mode after the IQ modulation baseband signal is triggered.
Explanation RETRig: select the "Retrig" mode. At this point, the instrument outputs the
baseband signal continuously and restarts to output the signal each time a
trigger is received.
AMDAuto: select the "Arm Auto" mode. The instrument starts outputting the
waveform continuously each time a trigger is received until "Arm ARB" is
selected and then waits for the next trigger.
AMDRetrig: select the "Arm Retrig" mode. The instrument starts outputting the
waveform continuously each time a trigger is received; the instrument restarts
outputting the signal when another trigger is received until "Arm ARB" is
selected and then waits for the next trigger.
SINGle: select the "Single" mode. The instrument outputs the specified length
(specified in "Duration") of waveform each time a trigger is received and then
stops to wait for the next trigger.
Return Format The query returns the operation mode after the IQ modulation baseband signal is
triggered. For example, RETRIG.
Example :IQ:TRIG:OPTM RETR
:IQ:TRIG:OPTM?
Related [:SOURce]:IQ:TRIGger:ARB
Commands
[:SOURce]:IQ:TRIGger:DURation
[:SOURce]:IQ:TRIGger:SEGMent:CURRent?
Syntax [:SOURce]:IQ:TRIGger:SEGMent:CURRent?
Return Format The query returns the number of the current wavetable segment. For example, 1.
[:SOURce]:IQ:TRIGger:SEGMent:EXECute
Syntax [:SOURce]:IQ:TRIGger:SEGMent:EXECute
Description Execute the trigger of the next segment.
Explanation This command is only valid when a "Segment" file is loaded and the segment trigger
mode is set to "Next Seg" or "Seamless".
Related [:SOURce]:IQ:TRIGger:SEGMent:MODE
Command
[:SOURce]:IQ:TRIGger:SEGMent:MODE
Syntax [:SOURce]:IQ:TRIGger:SEGMent:MODE SAME|NEXT|SEAMLESS|SEQUENCER
[:SOURce]:IQ:TRIGger:SEGMent:MODE?
Description Set the trigger mode of the IQ data segment.
Query the trigger mode of the IQ data segment.
[:SOURce]:IQ:TRIGger:SEGMent:NEXT
Syntax [:SOURce]:IQ:TRIGger:SEGMent:NEXT <value>
[:SOURce]:IQ:TRIGger:SEGMent:NEXT?
Description Set the number of the next segment of the wavetable.
Query the number of the next segment of the wavetable.
[:SOURce]:LEVel
Syntax [:SOURce]:LEVel <value>
[:SOURce]:LEVel?
Description Set the RF output amplitude.
Query the RF output amplitude.
Related [:SOURce]:LEVel:STEP
Command
[:SOURce]:LEVel:STEP
Syntax [:SOURce]:LEVel:STEP <value>
[:SOURce]:LEVel:STEP?
Description Set the RF output amplitude step.
Query the RF output amplitude step.
Parameter Name Type Range Default
<value> Real 0.01dB to 100dB 10dB
Explanation When <value> is set in "Number" form, the default unit is dB. Besides, <value>
can also be set in "Number + Unit" form; for example, 20dB.
The default unit of the return value is dB.
After the output amplitude step is set, you can rotate the knob to modify the
output amplitude at the current step. At this point, you can query or set the
output amplitude using the [:SOURce]:LEVel command.
Return Format The query returns the RF output amplitude step. For example, 20.00.
Example :LEV:STEP 20
:LEV:STEP?
Related [:SOURce]:LEVel
Command
Command List:
[:SOURce]:LFOutput:FREQuency
[:SOURce]:LFOutput:LEVel
[:SOURce]:LFOutput:SHAPe
[:SOURce]:LFOutput[:STATe]
[:SOURce]:LFOutput:FREQuency
Syntax [:SOURce]:LFOutput:FREQuency <value>
[:SOURce]:LFOutput:FREQuency?
Description Set the frequency of the LF output signal.
Query the frequency of the LF output signal.
Return Format The query returns the frequency of the LF output signal. For example, 2.00000kHz.
Example :LFO:FREQ 2kHz
:LFO:FREQ?
[:SOURce]:LFOutput:LEVel
Syntax [:SOURce]:LFOutput:LEVel <value>
[:SOURce]:LFOutput:LEVel?
Description Set the amplitude of the LF output signal.
Query the amplitude of the LF output signal.
Return Format The query returns the amplitude of the LF output signal. For example, 2.00.
Example :LFO:LEV 2
:LFO:LEV?
[:SOURce]:LFOutput:SHAPe
Syntax [:SOURce]:LFOutput:SHAPe SINE|SQUare
[:SOURce]:LFOutput:SHAPe?
Description Set the waveform of the LF output signal.
Query the waveform of the LF output signal.
[:SOURce]:LFOutput[:STATe]
Syntax [:SOURce]:LFOutput[:STATe] ON|OFF|1|0
[:SOURce]:LFOutput[:STATe]?
Description Turn on or off the LF output switch.
Query the state of the LF output switch.
[:SOURce]:MODulation:STATe
Syntax [:SOURce]:MODulation:STATe ON|OFF|1|0
[:SOURce]:MODulation:STATe?
Description Turn on or off the switch of all the modulation outputs.
Query the on/off state of the switch of all the modulation outputs.
Parameter Name Type Range Default
ON|OFF|1|0 Bool ON|OFF|1|0 OFF|0
Explanation ON|1: turn on all the modulation outputs. The backlight of Mod/on goes on.
OFF|0: turn off all the modulation outputs. The backlight of Mod/on goes off.
Return Format The query returns 1 or 0.
Example :MOD:STAT ON /*Turn on the switch of all the modulation outputs*/
:MOD:STAT? /*The query returns 1*/
Command List:
[:SOURce]:PM[:DEViation]
[:SOURce]:PM[:DEViation]:STEP[:INCRement]
[:SOURce]:PM:EXT:COUP
[:SOURce]:PM:EXT:IMP
[:SOURce]:PM:FREQuency
[:SOURce]:PM:FREQuency:STEP[:INCRement]
[:SOURce]:PM:SOURce
[:SOURce]:PM:STATe
[:SOURce]:PM:WAVEform
[:SOURce]:PM[:DEViation]
Syntax [:SOURce]:PM[:DEViation] <value>
[:SOURce]:PM[:DEViation]?
Description Set the phase deviation of ØM.
Query the phase deviation of ØM.
[:SOURce]:PM[:DEViation]:STEP[:INCRement]
Syntax [:SOURce]:PM[:DEViation]:STEP[:INCRement] <value>
[:SOURce]:PM[:DEViation]:STEP[:INCRement]?
Description Set the phase deviation step of ØM.
Query the phase deviation step of ØM.
[:SOURce]:PM:EXT:COUP
Syntax [:SOURce]:PM:EXT:COUP AC|DC
[:SOURce]:PM:EXT:COUP?
Description Set the coupling mode of ØM external modulation.
Query the coupling mode of ØM external modulation.
[:SOURce]:PM:EXT:IMP
Syntax [:SOURce]:PM:EXT:IMP 50|600|100k
[:SOURce]:PM:EXT:IMP?
Description Set the impedance of ØM external modulation.
Query the impedance of ØM external modulation.
Parameter Name Type Range Default
50|600|100k Discrete 50|600|100k 100k
Explanation 50: set the impedance of ØM external modulation to "50ohm".
600: set the impedance of ØM external modulation to "600ohm".
100k: set the impedance of ØM external modulation to "100kohm".
When the modulation source of ØM is set to "Int", this command is invalid.
[:SOURce]:PM:FREQuency
Syntax [:SOURce]:PM:FREQuency <value>
[:SOURce]:PM:FREQuency?
Description Set the modulation frequency of ØM.
Query the modulation frequency of ØM.
[:SOURce]:PM:FREQuency:STEP[:INCRement]
Syntax [:SOURce]:PM:FREQuency:STEP[:INCRement] <value>
[:SOURce]:PM:FREQuency:STEP[:INCRement]?
Description Set the modulation frequency step of ØM.
Query the modulation frequency step of ØM.
[:SOURce]:PM:SOURce
Syntax [:SOURce]:PM:SOURce EXTernal|INTernal
[:SOURce]:PM:SOURce?
Description Set the ØM modulation source.
Query the ØM modulation source.
[:SOURce]:PM:STATe
Syntax [:SOURce]:PM:STATe ON|OFF|1|0
[:SOURce]:PM:STATe?
Description Turn on or off the ØM switch.
Query the state of the ØM switch.
[:SOURce]:PM:WAVEform
Syntax [:SOURce]:PM:WAVEform SINE|SQUA
[:SOURce]:PM:WAVEform?
Description Set the modulation waveform of ØM.
Query the modulation waveform of ØM.
Parameter Name Type Range Default
SINE|SQUA Discrete SINE|SQUA SINE
Explanation SINE: set the modulation waveform of ØM to "Sine".
SQUA: set the modulation waveform of ØM to "Square".
This command is invalid when the ØM modulation source is set to "Ext".
Command List[3]:
[:SOURce]:PULM:MODE
[:SOURce]:PULM:OUT:STATe
[:SOURce]:PULM:PERiod
[:SOURce]:PULM:PERiod:STEP
[:SOURce]:PULM:POLarity
[:SOURce]:PULM:SOURce
[:SOURce]:PULM:STATe
[:SOURce]:PULM:TRAin:LIST:COUNt
[:SOURce]:PULM:TRAin:LIST:GET
[:SOURce]:PULM:TRIGger:DELay
[:SOURce]:PULM:TRIGger:DELay:STEP
[:SOURce]:PULM:TRIGger:EXTernal:GATE:POLarity
[:SOURce]:PULM:TRIGger:EXTernal:SLOPe
[:SOURce]:PULM:TRIGger:MODE
[:SOURce]:PULM:WIDTh
[:SOURce]:PULM:WIDTh:STEP
[:SOURce]:PULM:MODE
Syntax [:SOURce]:PULM:MODE SINGle|TRAin
[:SOURce]:PULM:MODE?
Description Set the pulse modulation mode.
Query the pulse modulation mode.
Note[3]: To use the commands related to "Pulse Modulation" and "Pulse Generator", you need to install the
DSG800-PUM option; to use the related commands of "Train", you need to install the DSG800-PUG option; otherwise,
the command settings are invalid. For the installation methods of the option, refer to DSG800 User's Guide.
[:SOURce]:PULM:OUT:STATe
Syntax [:SOURce]:PULM:OUT:STATe ON|OFF|0|1
[:SOURce]:PULM:OUT:STATe?
Description Turn on or off the pulse output switch.
Query the state of the pulse output switch.
Related [:SOURce]:PULM:MODE
Commands
[:SOURce]:PULM:SOURce
[:SOURce]:PULM:PERiod
Syntax [:SOURce]:PULM:PERiod <value>
[:SOURce]:PULM:PERiod?
Description Set the period of pulse modulation.
Query the period of pulse modulation.
[:SOURce]:PULM:PERiod:STEP
Syntax [:SOURce]:PULM:PERiod:STEP <value>
[:SOURce]:PULM:PERiod:STEP?
Description Set the step of the pulse modulation period.
Query the step of the pulse modulation period.
Parameter Name Type Range Default
<value> Real 10ns to 10s 100us
Explanation When <value> is set in "Number" form, the default unit is s. Besides, <value>
can also be set in "Number + Unit" form; for example, 5000ms.
After the pulse period step is set, you can rotate the knob to modify the period at
the current step. At this point, you can query and set the pulse period using the
[:SOURce]:PULM:PERiod command.
Return Format The query returns the step of the pulse modulation period. For example,
5.000000000s.
Example :PULM:PER:STEP 5000ms
:PULM:PER:STEP?
Related [:SOURce]:PULM:PERiod
Command
[:SOURce]:PULM:POLarity
Syntax [:SOURce]:PULM:POLarity NORMal|INVerse
[:SOURce]:PULM:POLarity?
Description Set the polarity of pulse modulation.
Query the polarity of pulse modulation.
Parameter Name Type Range Default
NORMal|INVerse Discrete NORMal|INVerse NORMal
Explanation NORMal: set the polarity of the current pulse modulating signal to "Normal".
INVerse: set the polarity of the current pulse modulating signal to "Inverse".
Return Format The query returns NORMAL or INVERSE.
Example :PULM:POL INV
:PULM:POL?
[:SOURce]:PULM:SOURce
Syntax [:SOURce]:PULM:SOURce INTernal|EXTernal
[:SOURce]:PULM:SOURce?
Description Set the pulse modulation source.
Query the pulse modulation source.
[:SOURce]:PULM:STATe
Syntax [:SOURce]:PULM:STATe ON|OFF|1|0
[:SOURce]:PULM:STATe?
Description Set the state of pulse modulation.
Query the state of pulse modulation.
[:SOURce]:PULM:TRAin:LIST:COUNt
Syntax [:SOURce]:PULM:TRAin:LIST:COUNt?
Description Acquire the total number of rows in the current train list.
Return Format The query returns the total number of rows in the current train list in integer. For
example, 2.
[:SOURce]:PULM:TRAin:LIST:GET
Syntax [:SOURce]:PULM:TRAin:LIST:GET? <Start>,<Count>
Description Acquire the train list date within the specified range.
Parameter Name Type Range Default
1 to the total number of rows in the current
<Start> Integer --
train list
1 to the total number of rows in the current
<Count> Integer --
train list
Explanation <Start>: the number of the start row of the train list data to be acquired.
<Count>: the total number of rows of the train list data to be acquired.
Return Format The query returns the train list date newly acquired. For example,
SN.2:2.00 ms , 4.00 ms, 2, 12.00 ms
SN.3:15.55 ms , 100.50 us, 2, 31.30 ms
Example :PULM:TRA:LIST:GET? 2,2 /*Acquire 2 rows of train data starting from the
second row of the train list*/
Related [:SOURce]:PULM:TRAin:LIST:COUNt
Command
[:SOURce]:PULM:TRIGger:DELay
Syntax [:SOURce]:PULM:TRIGger:DELay <value>
[:SOURce]:PULM:TRIGger:DELay?
Description Set the pulse trigger delay.
Query the pulse trigger delay.
[:SOURce]:PULM:TRIGger:DELay:STEP
Syntax [:SOURce]:PULM:TRIGger:DELay:STEP <value>
[:SOURce]:PULM:TRIGger:DELay:STEP?
Description Set the step of pulse trigger delay.
Query the step of pulse trigger delay.
Parameter Name Type Range Default
<value> Real 10ns to 170s 100us
Explanation When <value> is set in "Number" form, the default unit is s. Besides, <value>
can also be set in "Number + Unit" form; for example, 50ms.
After the trigger delay step is set, you can rotate the knob to modify the trigger
delay at the current step. At this point, you can query and set the trigger delay
using the [:SOURce]:PULM:TRIGger:DELay command.
Return Format The query returns the trigger delay step. For example, 5.000000000s.
Example :PULM:TRIG:DEL:STEP 5 /*Set the trigger delay step to 5s*/
:PULM:TRIG:DEL:STEP?
Related [:SOURce]:PULM:TRIGger:DELay
Command
[:SOURce]:PULM:TRIGger:EXTernal:GATE:POLarity
Syntax [:SOURce]:PULM:TRIGger:EXTernal:GATE:POLarity NORMal|INVerse
[:SOURce]:PULM:TRIGger:EXTernal:GATE:POLarity?
Description Set the polarity of the external gated signal.
Query the polarity of the external gated signal.
[:SOURce]:PULM:TRIGger:EXTernal:SLOPe
Syntax [:SOURce]:PULM:TRIGger:EXTernal:SLOPe POSitive|NEGative
[:SOURce]:PULM:TRIGger:EXTernal:SLOPe?
Description Set the polarity of the effective edge of the external trigger pulse.
Query the polarity of the effective edge of the external trigger pulse.
[:SOURce]:PULM:TRIGger:MODE
Syntax [:SOURce]:PULM:TRIGger:MODE AUTO|EXTernal|EGATe|KEY|BUS
[:SOURce]:PULM:TRIGger:MODE?
Description Set the trigger mode of pulse modulation.
Query the trigger mode of pulse modulation.
Parameter Name Type Range Default
AUTO|EXTernal|EGATe AUTO|EXTernal|EGATe
Discrete AUTO
|KEY|BUS |KEY|BUS
Explanation AUTO: select "Auto" trigger mode. At this point, the RF signal generator meets
the trigger condition at any time and will start the pulse modulation once the
pulse modulation function is turned on.
EXTernal: select "Ext" trigger mode. At this point, the RF signal generator
receives the external trigger signal input from the [TRIGGER IN] connector at
the rear panel. The instrument starts a pulse modulation each time a TTL pulse
with the specified polarity is received. To specify the polarity of the TTL pulse,
use the [:SOURce]:PULM:TRIGger:EXTernal:SLOPe command to select "Pos" or
"Neg".
EGATe: select "Ext Gate" trigger mode. At this point, the RF signal generator
receives the external gated signal input from the [TRIGGER IN] connector at
the rear panel. The instrument starts a pulse modulation within the valid level
range each time a gated signal with the specified polarity is received. To specify
the polarity of the external gated signal, use the
[:SOURce]:PULM:TRIGger:EXTernal:GATE:POLarity command to select
"Normal" or "Inverse".
KEY: select "Key" trigger mode. At this point, the instrument starts a pulse
modulation each time Key Trig is pressed.
BUS: select "Bus" trigger mode. At this point, the instrument starts a pulse
modulation each time the *TRG or :TRIGger:PULSe[:IMMediate] command is
sent.
When the modulation source is set to "Ext", this command is invalid.
Return Format The query returns the trigger mode of pulse modulation. For example, EGAT.
Example :PULM:TRIG:MODE EGAT
:PULM:TRIG:MODE?
Related [:SOURce]:PULM:TRIGger:EXTernal:GATE:POLarity
Commands
[:SOURce]:PULM:TRIGger:EXTernal:SLOPe
[:SOURce]:PULM:SOURce
*TRG
:TRIGger:PULSe[:IMMediate]
[:SOURce]:PULM:WIDTh
Syntax [:SOURce]:PULM:WIDTh <value>
[:SOURce]:PULM:WIDTh?
Description Set the width of the pulse modulating signal.
Query the width of the pulse modulating signal.
[:SOURce]:PULM:WIDTh:STEP
Syntax [:SOURce]:PULM:WIDTh:STEP <value>
[:SOURce]:PULM:WIDTh:STEP?
Description Set the step of the width of the pulse modulating signal.
Query the step of the width of the pulse modulating signal.
Parameter Name Type Range Default
<value> Real 10ns to 10s 100us
Explanation When <value> is set in "Number" form, the default unit is s. Besides, <value>
can also be set in "Number + Unit" form; for example, 3000ms.
After the pulse width step is set, you can rotate the knob to modify the pulse
width at the current step. At this point, you can query or set the pulse width
using the [:SOURce]:PULM:WIDTh command.
Return Format The query returns the step of the width of the pulse modulating signal. For example,
3.000000000s.
Example :PULM:WIDT:STEP 3
:PULM:WIDT:STEP?
Related [:SOURce]:PULM:WIDTh
Command
Command List:
[:SOURce]:SWEep:DIRection
[:SOURce]:SWEep:EXECute
[:SOURce]:SWEep:LIST:CPOint
[:SOURce]:SWEep:LIST:INITialize:FSTep
[:SOURce]:SWEep:LIST:INITialize:PRESet
[:SOURce]:SWEep:LIST:LIST
[:SOURce]:SWEep:MODE
[:SOURce]:SWEep:POINt:TRIGger:TYPE
[:SOURce]:SWEep:RESet[:ALL]
[:SOURce]:SWEep:STATe
[:SOURce]:SWEep:STEP:DWELl
[:SOURce]:SWEep:STEP:DWELl:STEP
[:SOURce]:SWEep:STEP:POINts
[:SOURce]:SWEep:STEP:POINts:STEP
[:SOURce]:SWEep:STEP:SHAPe
[:SOURce]:SWEep:STEP:SPACing
[:SOURce]:SWEep:STEP:STARt:FREQuency
[:SOURce]:SWEep:STEP:STARt:FREQuency:STEP
[:SOURce]:SWEep:STEP:STARt:LEVel
[:SOURce]:SWEep:STEP:STARt:LEVel:STEP
[:SOURce]:SWEep:STEP:STOP:FREQuency
[:SOURce]:SWEep:STEP:STOP:FREQuency:STEP
[:SOURce]:SWEep:STEP:STOP:LEVel
[:SOURce]:SWEep:STEP:STOP:LEVel:STEP
[:SOURce]:SWEep:SWEep:TRIGger:TYPE
[:SOURce]:SWEep:TYPE
[:SOURce]:SWEep:DIRection
Syntax [:SOURce]:SWEep:DIRection FWD|REV
[:SOURce]:SWEep:DIRection?
Description Set the sweep direction.
Query the sweep direction.
Parameter Name Type Range Default
FWD|REV Discrete FWD|REV FWD
Explanation FWD: select "Fwd" sweep direction. At this point, the RF signal generator
sweeps from the start frequency or start level to the stop frequency or stop
level.
REV: select "Down" sweep direction. At this point, the RF signal generator
sweeps from the stop frequency or stop level to the start frequency or stop
level.
Return Format The query returns FWD or REV.
Example :SWE:DIR FWD /*Set the sweep direction to "Fwd"*/
:SWE:DIR? /*The query returns FWD*/
[:SOURce]:SWEep:EXECute
Syntax [:SOURce]:SWEep:EXECute
Description Execute a sweep.
Explanation If the current sweep mode is "Cont", sending this command will change the
sweep mode to "Single". The instrument starts a sweep if the trigger condition
is currently met.
If the current sweep mode is "Single", the instrument starts a sweep if the
trigger condition is met after sending this command.
Related [:SOURce]:SWEep:MODE
Command
[:SOURce]:SWEep:LIST:CPOint
Syntax [:SOURce]:SWEep:LIST:CPOint?
Description Query the total number of points in the current sweep list.
Return Format The query returns the total number of sweep points in the sweep list. For example, 5.
[:SOURce]:SWEep:LIST:INITialize:FSTep
Syntax [:SOURce]:SWEep:LIST:INITialize:FSTep
Description Recalculate the data points set in the current step sweep to generate a new sweep
list.
Explanation In the new sweep list, "SN" depends on the "Points" of step sweep.
"Freq" depends on the "Start Freq" and "Stop Freq" of step sweep.
"Level" depends on the "start Lev" and "Stop Lev" of step sweep.
"Time" depends on the "Dwell Time" of step sweep.
Related [:SOURce]:SWEep:STEP:DWELl
Commands
[:SOURce]:SWEep:STEP:POINts
[:SOURce]:SWEep:STEP:STARt:FREQuency
[:SOURce]:SWEep:STEP:STARt:LEVel
[:SOURce]:SWEep:STEP:STOP:FREQuency
[:SOURce]:SWEep:STEP:STOP:LEVel
[:SOURce]:SWEep:LIST:INITialize:PRESet
Syntax [:SOURce]:SWEep:LIST:INITialize:PRESet
Description Reset the sweep list to the factory setting.
Explanation After resetting the sweep list to the default using this command, the sweep list only
contains one frequency point (3GHz) and level point (-20dBm).
[:SOURce]:SWEep:LIST:LIST
Syntax [:SOURce]:SWEep:LIST:LIST? <Start>,<Count>
Description Acquire the sweep data within the specified range of the sweep list.
Parameter Name Type Range Default
1 to the total number of rows in the
<Start> Integer --
current list
1 to the total number of rows in the
<Count> Integer --
current list
Explanation <Start>: denote the number of the start row of the sweep data to be acquired.
<Count>: denote the total number of rows of the sweep data to be acquired.
Return Format The query returns the sweep data newly acquired. For example,
SN.2:2994152687 , -50.000000, 0.500000
SN.3:2888000000 , -60.849998, 0.500000
SN.4:2550000000 , -75.750000, 0.500000
Example :SWE:LIST:LIST? 2,3 /*Acquire 3 rows of sweep data starting from the second
row in the sweep list*/
[:SOURce]:SWEep:MODE
Syntax [:SOURce]:SWEep:MODE CONTinue|SINGle
[:SOURce]:SWEep:MODE?
Description Set the sweep mode.
Query the sweep mode.
Parameter Name Type Range Default
CONTinue|SINGle Discrete CONTinue|SINGle CONTinue
Explanation CONTinue: select "Cont" sweep mode. The instrument sweeps continuously
according to the current setting when the trigger condition is met.
SINGle: select "Single" sweep mode. The instrument performs a sweep
according to the current setting and then stops when the trigger condition is
met.
Return Format The query returns the sweep mode (CONT or SING).
Example :SWE:MODE CONT
:SWE:MODE?
[:SOURce]:SWEep:POINt:TRIGger:TYPE
Syntax [:SOURce]:SWEep:POINt:TRIGger:TYPE AUTO|KEY|BUS|EXT
[:SOURce]:SWEep:POINt:TRIGger:TYPE?
Description Set the point trigger mode of the sweep.
Query the point trigger mode of the sweep.
Parameter Name Type Range Default
AUTO|KEY|BUS|EXT Discrete AUTO|KEY|BUS|EXT AUTO
Explanation AUTO: select "Auto" trigger mode. If the sweep mode is set to "Cont", the
instrument will start sweeping each sweep point continuously within a sweep
period once a sweep manner is selected. If the sweep mode is set to "Single",
you need to send the [:SOURce]:SWEep:EXECute command to meet the single
sweep condition; after that, the instrument starts to sweep and then stops after
the sweep period expires.
KEY: select "Key" trigger mode. If the sweep mode is set to "Cont", the
instrument starts to sweep a point each time Key Trig is pressed; if the sweep
mode is set to "Single", you need to send the [:SOURce]:SWEep:EXECute
command to meet the single sweep condition and after that, the instrument
starts to sweep a point and then stops after the sweep period expires each time
Key Trig is pressed.
BUS: select "Bus" trigger mode. If the sweep mode is set to "Cont", the
instrument starts to sweep a point each time the *TRG
or :TRIGger[:SWEep][:IMMediate] command is sent; if the sweep mode is set
to "Single", you need to send the [:SOURce]:SWEep:EXECute command to
meet the single sweep condition and after that, the instrument starts to sweep a
point and then stops after the sweep period expires each time the *TRG
or :TRIGger[:SWEep][:IMMediate] command is sent.
EXT: select "Ext" trigger mode. The RF signal generator receives the trigger
signal input from the [TRIGGER IN] connector at the rear panel. If the sweep
mode is set to "Cont", the instrument starts to sweep a point each time a TTL
pulse signal with the specified polarity is received. If the sweep mode is set to
"Single", you need to send the [:SOURce]:SWEep:EXECute command to meet
the single sweep condition; after that, the instrument starts to sweep a point
and then stops after the sweep period expires each time a TTL pulse signal with
the specified polarity is received.
Note: The above descriptions are valid when the trigger mode of the
corresponding sweep period is met.
When executing the sweep operation, the priority of the required conditions is:
single sweep trigger mode point trigger mode.
Return Format The query returns the point trigger mode. For example, AUTO.
Example :SWE:POIN:TRIG:TYPE AUTO
:SWE:POIN:TRIG:TYPE?
Related [:SOURce]:SWEep:EXECute
Commands
[:SOURce]:SWEep:MODE
[:SOURce]:SWEep:SWEep:TRIGger:TYPE
*TRG
:TRIGger[:SWEep][:IMMediate]
[:SOURce]:SWEep:RESet[:ALL]
Syntax [:SOURce]:SWEep:RESet[:ALL]
Description Reset all the sweeps to the start point.
Explanation If the current sweep direction is "Fwd", the instrument will stop the current
sweep and sweep from the start frequency or start level after sending this
command.
If the current sweep direction is "Down", the instrument will stop the current
sweep and sweep from the stop frequency or stop level after sending this
command.
Related [:SOURce]:SWEep:DIRection
Command
[:SOURce]:SWEep:STATe
Syntax [:SOURce]:SWEep:STATe OFF|FREQuency|LEVel[,FREQuency]
[:SOURce]:SWEep:STATe?
Description Set the sweep manner.
Query the sweep manner.
Parameter Name Type Range Default
OFF|FREQuency| OFF|FREQuency|LEVel|
Discrete OFF
LEVel[,FREQuency] LEVel,FREQuency
Explanation OFF: turn off the sweep function.
FREQuency: enable the frequency sweep function.
LEVel: enable the level sweep function.
LEVel,FREQuency: enable the frequency and level sweep functions at the same
time.
Return Format The query returns the sweep manner. For example, FREQ.
Example :SWE:STAT FREQ
:SWE:STAT?
[:SOURce]:SWEep:STEP:DWELl
Syntax [:SOURce]:SWEep:STEP:DWELl <value>
[:SOURce]:SWEep:STEP:DWELl?
Description Set the dwell time of step sweep.
Query the dwell time of step sweep.
[:SOURce]:SWEep:STEP:DWELl:STEP
Syntax [:SOURce]:SWEep:STEP:DWELl:STEP <value>
[:SOURce]:SWEep:STEP:DWELl:STEP?
Description Set the dwell time step.
Query the dwell time step.
[:SOURce]:SWEep:STEP:POINts
Syntax [:SOURce]:SWEep:STEP:POINts <value>
[:SOURce]:SWEep:STEP:POINts?
Description Set the number of points of step sweep.
Query the number of points of step sweep.
Parameter Name Type Range Default
<value> Integer 2 to 65535 91
Explanation The number of sweep points decides the time interval between two neighboring
sweep points.
After the number of sweep points is set, you can rotate the knob to modify the
number of sweep points at the current step. At this point, you can query or set
the current step using the [:SOURce]:SWEep:STEP:POINts:STEP command.
Return Format The query returns the number of sweep points. For example, 5.
Example :SWE:STEP:POIN 5
:SWE:STEP:POIN?
Related [:SOURce]:SWEep:STEP:POINts:STEP
Command
[:SOURce]:SWEep:STEP:POINts:STEP
Syntax [:SOURce]:SWEep:STEP:POINts:STEP <value>
[:SOURce]:SWEep:STEP:POINts:STEP?
Description Set the step of the number of sweep points.
Query the step of the number of sweep points.
[:SOURce]:SWEep:STEP:SHAPe
Syntax [:SOURce]:SWEep:STEP:SHAPe TRIangle|RAMP
[:SOURce]:SWEep:STEP:SHAPe?
Description Set the step sweep shape.
Query the step sweep shape.
[:SOURce]:SWEep:STEP:SPACing
Syntax [:SOURce]:SWEep:STEP:SPACing LINear|LOGarithmic
[:SOURce]:SWEep:STEP:SPACing?
Description Set the step sweep spacing.
Query the step sweep spacing.
Parameter Name Type Range Default
LINear|LOGarithmic Discrete LINear|LOGarithmic LINear
Explanation The sweep spacing refers to the variation mode from one frequency or level to
another frequency or level within a step.
LINear: set the sweep spacing to "Lin". Note that level sweep only supports "Lin"
sweep spacing.
LOGarithmic: set the sweep spacing to "Log".
Return Format The query returns LIN or LOG.
Example :SWE:STEP:SPAC LIN
:SWE:STEP:SPAC?
[:SOURce]:SWEep:STEP:STARt:FREQuency
Syntax [:SOURce]:SWEep:STEP:STARt:FREQuency <value>
[:SOURce]:SWEep:STEP:STARt:FREQuency?
Description Set the start frequency of the sweep.
Query the start frequency of the sweep.
[:SOURce]:SWEep:STEP:STARt:FREQuency:STEP
Syntax [:SOURce]:SWEep:STEP:STARt:FREQuency:STEP <value>
[:SOURce]:SWEep:STEP:STARt:FREQuency:STEP?
Description Set the start frequency step of the sweep.
Query the start frequency step of the sweep.
[:SOURce]:SWEep:STEP:STARt:LEVel
Syntax [:SOURce]:SWEep:STEP:STARt:LEVel <value>
[:SOURce]:SWEep:STEP:STARt:LEVel?
Description Set the start level of the sweep.
Query the start level of the sweep.
[:SOURce]:SWEep:STEP:STARt:LEVel:STEP
Syntax [:SOURce]:SWEep:STEP:STARt:LEVel:STEP <value>
[:SOURce]:SWEep:STEP:STARt:LEVel:STEP?
Description Set the start level step of the sweep.
Query the start level step of the sweep.
Parameter Name Type Range Default
<value> Real 0.01dB to 100dB 1dB
Explanation When <value> is set in "Number" form, the default unit is dB. Besides, <value>
can also be set in "Number + Unit" form; for example, 20dB.
The default unit of the return value is dB.
After the start level step is set, you can rotate the knob to modify the start level
at the current step. At this point, you can query or set the start level using the
[:SOURce]:SWEep:STEP:STARt:LEVel command.
Return Format The query returns the start level step of the sweep. For example, 20.00.
Example :SWE:STEP:STAR:LEV:STEP 20
:SWE:STEP:STAR:LEV:STEP?
Related [:SOURce]:SWEep:STEP:STARt:LEVel
Command
[:SOURce]:SWEep:STEP:STOP:FREQuency
Syntax [:SOURce]:SWEep:STEP:STOP:FREQuency <value>
[:SOURce]:SWEep:STEP:STOP:FREQuency?
Description Set the stop frequency of the sweep.
Query the stop frequency of the sweep.
[:SOURce]:SWEep:STEP:STOP:FREQuency:STEP
Syntax [:SOURce]:SWEep:STEP:STOP:FREQuency:STEP <value>
[:SOURce]:SWEep:STEP:STOP:FREQuency:STEP?
Description Set the stop frequency step of the sweep.
Query the stop frequency step of the sweep.
[:SOURce]:SWEep:STEP:STOP:LEVel
Syntax [:SOURce]:SWEep:STEP:STOP:LEVel <value>
[:SOURce]:SWEep:STEP:STOP:LEVel?
Description Set the stop level of the sweep.
Query the stop level of the sweep.
[:SOURce]:SWEep:STEP:STOP:LEVel:STEP
Syntax [:SOURce]:SWEep:STEP:STOP:LEVel:STEP <value>
[:SOURce]:SWEep:STEP:STOP:LEVel:STEP?
Description Set the stop level step of the sweep.
Query the stop level step of the sweep.
[:SOURce]:SWEep:SWEep:TRIGger:TYPE
Syntax [:SOURce]:SWEep:SWEep:TRIGger:TYPE AUTO|KEY|BUS|EXT
[:SOURce]:SWEep:SWEep:TRIGger:TYPE?
Description Set the trigger mode of the sweep period.
Query the trigger mode of the sweep period.
Parameter Name Type Range Default
AUTO|KEY|BUS|EXT Discrete AUTO|KEY|BUS|EXT AUTO
Explanation AUTO: select "Auto" trigger mode. If the sweep mode is set to "Cont", the
instrument will start sweeping once a sweep manner is selected. If the sweep
mode is set to "Single", you need to send the [:SOURce]:SWEep:EXECute
command to meet the single sweep condition; after that, the instrument will
start a sweep and then stops.
KEY: select "Key" trigger mode. If the sweep mode is set to "Cont", the
instrument starts a sweep each time Key Trig is pressed; if the sweep mode is
set to "Single", you need to send the [:SOURce]:SWEep:EXECute command to
meet the single sweep condition and after that, the instrument starts a sweep
and then stops each time Key Trig is pressed.
BUS: select "Bus" trigger mode. If the sweep mode is set to "Cont", the
instrument starts a sweep each time the *TRG
or :TRIGger[:SWEep][:IMMediate] command is sent; if the sweep mode is set to
"Single", you need to send the [:SOURce]:SWEep:EXECute command to meet
the single sweep condition and after that, the instrument starts a sweep and
then stops each time the *TRG or :TRIGger[:SWEep][:IMMediate] command is
sent.
EXT: select "Ext" trigger mode. The RF signal generator receives the trigger
signal input from the [TRIGGER IN] connector at the rear panel. If the sweep
mode is set to "Cont", the instrument starts a sweep each time a TTL pulse
signal with the specified polarity is received. If the sweep mode is set to
"Single", you need to send the [:SOURce]:SWEep:EXECute command to meet
the single sweep condition; after that, the instrument starts a sweep and then
stops each time a TTL pulse signal with the specified polarity is received.
Note: The above explanations are only valid when the trigger mode of each
sweep point within the sweep period is met.
When executing the sweep operation, the priority of the required conditions is:
single sweep trigger mode point trigger mode.
Return Format The query returns the trigger mode of the sweep. For example, AUTO.
Example :SWE:SWE:TRIG:TYPE AUTO
:SWE:SWE:TRIG:TYPE?
Related [:SOURce]:SWEep:EXECute
Commands
[:SOURce]:SWEep:MODE
[:SOURce]:SWEep:POINt:TRIGger:TYPE
*TRG
:TRIGger[:SWEep][:IMMediate]
[:SOURce]:SWEep:TYPE
Syntax [:SOURce]:SWEep:TYPE LIST|STEP
[:SOURce]:SWEep:TYPE?
Description Set the sweep type.
Query the sweep type.
:STATus Commands
The :STATus commands and IEEE488.2 common commands are mainly used to operate or query the status
register. The structure of the status register is as shown in the figure below. It includes the questionable
status register, operation status register, standard event status register, status byte register and error queue.
The STATus commands are used to set and query the questionable status register and operation status
register; the IEEE488.2 common commands are used to perform operations on the standard event status
register and status byte register.
Error/Event Queue
0
1
2 Status Byte Register
POWer 3
TEMPerature 4 0
FREQuency 5 1
6 2
MODulation
CALibration
7
8
+ 3
4
SELFtest 9 5
CONNect 10 6
11 7
12
13
14
15
0
SETTing 1
2
SWEeping 3
4
Waiting for TRIGger 5
6
SWEep Calculation
7
8
+
9
10
11
12
13
14
15
The definitions of the questionable status register are as shown in the table below. Wherein, bit 0 to bit 2,
bit 6 and bit 11 to bit 15 are not used and will be always treated as 0.
The definitions of the operation status register are as shown in the table below. Wherein, bit 0, bit 2, bit 4,
bit 6, bit 7 and bit 9 to bit 15 are not used and will always be treated as 0.
Command List:
:STATus:OPERation:CONDition
:STATus:OPERation:ENABle
:STATus:OPERation[:EVENt]
:STATus:QUEStionable:CALibration:CONDition
:STATus:QUEStionable:CALibration:ENABle
:STATus:QUEStionable:CALibration[:EVENt]
:STATus:QUEStionable:CONDition
:STATus:QUEStionable:CONNect:CONDition
:STATus:QUEStionable:CONNect:ENABle
:STATus:QUEStionable:CONNect[:EVENt]
:STATus:QUEStionable:ENABle
:STATus:QUEStionable[:EVENt]
:STATus:QUEStionable:FREQuency:CONDition
:STATus:QUEStionable:FREQuency:ENABle
:STATus:QUEStionable:FREQuency[:EVENt]
:STATus:QUEStionable:MODulation:CONDition
:STATus:QUEStionable:MODulation:ENABle
:STATus:QUEStionable:MODulation[:EVENt]
:STATus:QUEStionable:POWer:CONDition
:STATus:QUEStionable:POWer:ENABle
:STATus:QUEStionable:POWer[:EVENt]
:STATus:QUEStionable:SELFtest:CONDition
:STATus:QUEStionable:SELFtest:ENABle
:STATus:QUEStionable:SELFtest[:EVENt]
:STATus:QUEStionable:TEMP:CONDition
:STATus:QUEStionable:TEMP:ENABle
:STATus:QUEStionable:TEMP[:EVENt]
:STATus:OPERation:CONDition
Syntax :STATus:OPERation:CONDition?
Description Query the value of the condition register for the operation status register.
Explanation The bit 0, bit 2, bit 4, bit 6, bit 7 and bit 9 to bit 15 of the operation status register
are not used and will always be treated as 0; therefore, the range of the return value
of the command are the decimal numbers corresponding to the binary numbers
ranging from 0000000000000000 (0 in decimal) to 1111111111111111 (32767 in
decimal) and of which the bit 0, bit 2, bit 4, bit 6, bit 7 and bit 9 to bit 15 are 0.
Return Format The query returns the value of the condition register in integer. For example, 0.
:STATus:OPERation:ENABle
Syntax :STATus:OPERation:ENABle <value>
:STATus:OPERation:ENABle?
Description Set the value of the enable register for the operation status register.
Query the value of the enable register for the operation status register.
Parameter Name Type Range Default
<value> Integer Refer to the "Explanation" 0
Explanation The range of <value> are the decimal numbers corresponding to the binary numbers
ranging from 0000000000000000 (0 in decimal) to 1111111111111111 (32767 in
decimal).
Return Format The query returns the value of the enable register of the operation status register in
integer.
Example :STAT:OPER:ENAB 100
:STAT:OPER:ENAB?
:STATus:OPERation[:EVENt]
Syntax :STATus:OPERation[:EVENt]?
Description Query the value of the event register for the operation status register.
Explanation The bit 0, bit 2, bit 4, bit 6, bit 7 and bit 9 to bit 15 of the operation status register are
not used and will always be treated as 0; therefore, the range of the return value of
the command are the decimal numbers corresponding to the binary numbers ranging
from 0000000000000000 (0 in decimal) to 1111111111111111 (32767 in decimal)
and of which the bit 0, bit 2, bit 4, bit 6, bit 7 and bit 9 to bit 15 are 0.
Return Format The query returns the value of the event register in integer. For example, 0.
:STATus:QUEStionable:CALibration:CONDition
Syntax :STATus:QUEStionable:CALibration:CONDition?
Description Query the value of the condition register for the questionable calibration status register.
Explanation The relation between the calibration status register and questionable status register
is as shown in the figure below.
Questionable Status Register
Calibration Status Register
0
ALC 0 1
AM 1 2
FM 2 POWer 3
LF 3 TEMPerature 4
PM 4 FREQuency 5
FM/PM External Modulation 5 6
AM External Modulation 6 MODulation 7 + To Status Byte,
IQ
Frequency Reference
7
8
+ CALibration
SELFtest
8
9
Bit 3
9 CONNect 10
10 11
11 12
12 13
13 14
14 15
15
The definitions of the questionable calibration status register are as shown in the
table below. Wherein, bit 0 and bit 9 to bit 15 are not used and will be always
treated as 0. The range of the return value are the decimal numbers corresponding
to the binary numbers ranging from 0000000000000000 (0 in decimal) to
1111111111111111 (32767 in decimal) and of which the bit 0 and bit 9 to bit 15 are
0 (bit 2 and bit 4 cannot be 1 at the same time).
Bit Value Definition
0 1 Not Used
1 2 AM
2 4 FM
3 8 LF
4 16 ØM
5 32 FM/ØM External Modulation
6 64 AM External Modulation
7 128 IQ
8 256 Frequency Reference
9 0 Not Used
10 0 Not Used
11 0 Not Used
12 0 Not Used
13 0 Not Used
14 0 Not Used
15 0 Not Used
Return The query returns the value of the condition register of the questionable calibration
Format status register in integer. For example, 24.
:STATus:QUEStionable:CALibration:ENABle
Syntax :STATus:QUEStionable:CALibration:ENABle <value>
:STATus:QUEStionable:CALibration:ENABle?
Description Set the value of the enable register for the questionable calibration status register.
Query the value of the enable register for the questionable calibration status register.
:STATus:QUEStionable:CALibration[:EVENt]
Syntax :STATus:QUEStionable:CALibration[:EVENt]?
Description Query the value of the event register for the questionable calibration status register.
Explanation The bit 0 and bit 9 to bit 15 of the questionable calibration status register are not
used and will be always treated as 0. The range of the return value are the decimal
numbers corresponding to the binary numbers ranging from 0000000000000000 (0
in decimal) to 1111111111111111 (32767 in decimal) and of which the bit 0 and bit
9 to bit 15 are 0 (bit 2 and bit 4 cannot be 1 at the same time).
Return Format The query returns the value of the event register of the questionable calibration
status register in integer. For example, 24.
:STATus:QUEStionable:CONDition
Syntax :STATus:QUEStionable:CONDition?
Description Query the value of the condition register for the questionable status register.
Explanation The bit 0 to bit 2, bit 6 and bit 11 to bit 15 of the questionable status register are not
used and are always treated as 0; therefore, the range of the return value are the
decimal numbers corresponding to the binary numbers ranging from
0000000000000000 (0 in decimal) to 1111111111111111 (32767 in decimal) and of
which the bit 0 to bit 2, bit 6 and bit 11 to bit 15 are 0.
Return Format The query returns the value of the condition register of the questionable status
register in integer. For example, 0.
:STATus:QUEStionable:CONNect:CONDition
Syntax :STATus:QUEStionable:CONNect:CONDition?
Description Query the value of the condition register for the questionable connect status register.
Explanation The relation between the connect status register and questionable status register is
as shown in the figure below.
Questionable Status Register
0
Connect Status Register 1
2
Device Connection State 0 POWer 3
1 TEMPerature 4
2 FREQuency 5
3 6
4
5
MODulation
CALibration
7
8
+ To Status Byte,
Bit 3
6 SELFtest 9
7
8
+ CONNect 10
11
9 12
10 13
11 14
12 15
13
14
15
The definitions of the questionable connect status register are as shown in the table
below. Wherein, bit 1 to bit 15 are not used and will be always treated as 0. The
range of the return value are the decimal numbers corresponding to the binary
numbers ranging from 0000000000000000 (0 in decimal) to 0000000000000001 (1
in decimal).
Bit Value Definition
0 1 Device Connection State
1 0 Not Used
2 0 Not Used
3 0 Not Used
4 0 Not Used
5 0 Not Used
6 0 Not Used
7 0 Not Used
8 0 Not Used
9 0 Not Used
10 0 Not Used
11 0 Not Used
12 0 Not Used
13 0 Not Used
14 0 Not Used
15 0 Not Used
Return The query returns the value of the condition register of the questionable connect status
Format register in integer. For example, 0.
:STATus:QUEStionable:CONNect:ENABle
Syntax :STATus:QUEStionable:CONNect:ENABle <value>
:STATus:QUEStionable:CONNect:ENABle?
Description Set the value of the enable register for the questionable connect status register.
Query the value of the enable register for the questionable connect status register.
Parameter Name Type Range Default
<value> Integer Refer to the "Explanation" 0
Explanation In the questionable connect status register, the range of <value> are the decimal
numbers corresponding to the binary numbers ranging from 0000000000000000 (0
in decimal) to 1111111111111111 (32767 in decimal).
Return Format The query returns the value of the enable register of the questionable connect status
register in integer.
Example :STAT:QUES:CONN:ENAB 1
:STAT:QUES:CONN:ENAB?
:STATus:QUEStionable:CONNect[:EVENt]
Syntax :STATus:QUEStionable:CONNect[:EVENt]?
Description Query the value of the event register for the questionable connect status register.
Explanation The bit 1 to bit 15 of the questionable connect status register are not used and will
be always treated as 0. The range of the return value are the decimal numbers
corresponding to the binary numbers ranging from 0000000000000000 (0 in
decimal) to 0000000000000001 (1 in decimal).
Return Format The query returns the value of the event register of the questionable connect status
register in integer.
:STATus:QUEStionable:ENABle
Syntax :STATus:QUEStionable:ENABle <value>
:STATus:QUEStionable:ENABle?
Description Set the value of the enable register for the questionable status register.
Query the value of the enable register for the questionable status register.
Parameter Name Type Range Default
<value> Integer Refer to the "Explanation" 0
Explanation The range of <value> are the decimal numbers corresponding to the binary numbers
ranging from 0000000000000000 (0 in decimal) to 1111111111111111 (32767 in
decimal).
Return Format The query returns the value of the enable register of the questionable status register
in integer.
Example :STAT:QUES:ENAB 100
:STAT:QUES:ENAB?
:STATus:QUEStionable[:EVENt]
Syntax :STATus:QUEStionable[:EVENt]?
Description Query the value of the event register for the questionable status register.
Explanation The bit 0 to bit 2, bit 6 and bit 11 to bit 15 of the questionable status register are not
used and are always treated as 0; therefore, the range of the return value are the
decimal numbers corresponding to the binary numbers ranging from
0000000000000000 (0 in decimal) to 1111111111111111 (32767 in decimal) and of
which the bit 0 to bit 2, bit 6 and bit 11 to bit 15 are 0.
Return Format The query returns the value of the event register of the questionable status register
in integer. For example, 0.
:STATus:QUEStionable:FREQuency:CONDition
Syntax :STATus:QUEStionable:FREQuency:CONDition?
Description Query the value of the condition register for the questionable frequency status register.
Explanation The relation between the frequency status register and questionable status register
is as shown in the figure below.
The definitions of the questionable frequency status register are as shown in the
table below. Wherein, bit 1 to bit 15 are not used and will be always treated as 0.
The range of the return value are the decimal numbers corresponding to the binary
numbers ranging from 0000000000000000 (0 in decimal) to 0000000000000001 (1
in decimal).
Bit Value Definition
0 1 PLL Unlocked
1 0 Not Used
2 0 Not Used
3 0 Not Used
4 0 Not Used
5 0 Not Used
6 0 Not Used
7 0 Not Used
8 0 Not Used
9 0 Not Used
10 0 Not Used
11 0 Not Used
12 0 Not Used
13 0 Not Used
14 0 Not Used
15 0 Not Used
Return The query returns the value of the condition register of the questionable frequency
Format status register in integer.
:STATus:QUEStionable:FREQuency:ENABle
Syntax :STATus:QUEStionable:FREQuency:ENABle <value>
:STATus:QUEStionable:FREQuency:ENABle?
Description Set the value of the enable register for the questionable frequency status register.
Query the value of the enable register for the questionable frequency status register.
Parameter Name Type Range Default
<value> Integer Refer to the "Explanation" 0
Explanation In the questionable frequency status register, the range of <value> are the decimal
numbers corresponding to the binary numbers ranging from 0000000000000000 (0
in decimal) to 1111111111111111 (32767 in decimal).
Return Format The query returns the value of the enable register of the questionable frequency
status register in integer.
Example :STAT:QUES:FREQ:ENAB 1
:STAT:QUES:FREQ:ENAB?
:STATus:QUEStionable:FREQuency[:EVENt]
Syntax :STATus:QUEStionable:FREQuency[:EVENt]?
Description Query the value of the event register for the questionable frequency status register.
Explanation The bit 1 to bit 15 of the questionable frequency status register are not used and will
be always treated as 0. The range of the return value are the decimal numbers
corresponding to the binary numbers ranging from 0000000000000000 (0 in
decimal) to 0000000000000001 (1 in decimal).
Return Format The query returns the value of the event register of the questionable frequency
status register in integer.
:STATus:QUEStionable:MODulation:CONDition
Syntax :STATus:QUEStionable:MODulation:CONDition?
Description Query the value of the condition register for the questionable modulation status register.
Explanation The relation between the modulation status register and questionable status
register is as shown in the figure below.
AM Overmodulation 0 0
1 1
2 2
3 POWer 3
4 TEMPerature 4
5 FREQuency 5
6 6
7
8
+ MODulation
CALibration
7
8
+ To Status Byte,
Bit 3
9 SELFtest 9
10 CONNect 10
11 11
12 12
13 13
14 14
15 15
The definitions of the questionable modulation status register are as shown in the
table below. Wherein, bit 1 to bit 15 are not used and will be always treated as 0.
The range of the return value are the decimal numbers corresponding to the binary
numbers ranging from 0000000000000000 (0 in decimal) to 0000000000000001 (1
in decimal).
Bit Value Definition
0 1 AM Overmodulation
1 0 Not Used
2 0 Not Used
3 0 Not Used
4 0 Not Used
5 0 Not Used
6 0 Not Used
7 0 Not Used
8 0 Not Used
9 0 Not Used
10 0 Not Used
11 0 Not Used
12 0 Not Used
13 0 Not Used
14 0 Not Used
15 0 Not Used
Return The query returns the value of the condition register of the questionable modulation
Format status register in integer.
:STATus:QUEStionable:MODulation:ENABle
Syntax :STATus:QUEStionable:MODulation:ENABle <value>
:STATus:QUEStionable:MODulation:ENABle?
Description Set the value of the enable register for the questionable modulation status register.
Query the value of the enable register for the questionable modulation status
register.
Parameter Name Type Range Default
<value> Integer Refer to the "Explanation" 0
Explanation In the questionable modulation status register, the range of <value> are the decimal
numbers corresponding to the binary numbers ranging from 0000000000000000 (0
in decimal) to 1111111111111111 (32767 in decimal).
Return Format The query returns the value of the enable register of the questionable modulation
status register in integer.
Example :STAT:QUES:MOD:ENAB 1
:STAT:QUES:MOD:ENAB?
:STATus:QUEStionable:MODulation[:EVENt]
Syntax :STATus:QUEStionable:MODulation[:EVENt]?
Description Query the value of the event register for the questionable modulation status register.
Explanation The bit 1 to bit 15 of the questionable modulation status register are not used and
will be always treated as 0. The range of the return value are the decimal numbers
corresponding to the binary numbers ranging from 0000000000000000 (0 in
decimal) to 0000000000000001 (1 in decimal).
Return Format The query returns the value of the event register of the questionable modulation
status register in integer.
:STATus:QUEStionable:POWer:CONDition
Syntax :STATus:QUEStionable:POWer:CONDition?
Description Query the value of the condition register for the questionable power status register.
Explanation The relation between the power status register and questionable status register is as
shown in the figure below.
Power Status Register
ALC Unlocked 0 Questionable Status Register
Output Power Protection 1
ALC Heater Detector 2 0
3 1
4 2
5
6
+ POWer
TEMPerature
3
4
7 FREQuency 5
8 6
9
10
MODulation
CALibration
7
8
+ To Status Byte,
Bit 3
11 SELFtest 9
12 CONNect 10
13 11
14 12
15 13
14
15
The definitions of the questionable power status register are as shown in the table
below. Wherein, bit 3 to bit 15 are not used and will be always treated as 0. The
range of the return value are the decimal numbers corresponding to the binary
numbers ranging from 0000000000000000 (0 in decimal) to 1111111111111111
(32767 in decimal) and of which the bit 3 to bit 15 are 0.
Bit Value Definition
0 1 ALC Unlocked
1 2 Output Power Protection
2 4 ALC Heater Detector, 30 min
3 0 Not Used
4 0 Not Used
5 0 Not Used
6 0 Not Used
7 0 Not Used
8 0 Not Used
9 0 Not Used
10 0 Not Used
11 0 Not Used
12 0 Not Used
13 0 Not Used
14 0 Not Used
15 0 Not Used
Return The query returns the value of the condition register of the questionable power status
Format register in integer.
:STATus:QUEStionable:POWer:ENABle
Syntax :STATus:QUEStionable:POWer:ENABle <value>
:STATus:QUEStionable:POWer:ENABle?
Description Set the value of the enable register for the questionable power status register.
Query the value of the enable register for the questionable power status register.
Explanation In the questionable power status register, the range of <value> are the decimal
numbers corresponding to the binary numbers ranging from 0000000000000000 (0
in decimal) to 1111111111111111 (32767 in decimal).
Return Format The query returns the value of the enable register of the questionable power status
register in integer.
Example :STAT:QUES:POW:ENAB 6
:STAT:QUES:POW:ENAB?
:STATus:QUEStionable:POWer[:EVENt]
Syntax :STATus:QUEStionable:POWer[:EVENt]?
Description Query the value of the event register for the questionable power status register.
Explanation The bit 3 to bit 15 of the questionable power status register are not used and will be
always treated as 0. The range of the return value are the decimal numbers
corresponding to the binary numbers ranging from 0000000000000000 (0 in
decimal) to 1111111111111111 (32767 in decimal) and of which the bit 3 to bit 15
are 0.
Return Format The query returns the value of the event register of the questionable power status
register in integer.
:STATus:QUEStionable:SELFtest:CONDition
Syntax :STATus:QUEStionable:SELFtest:CONDition?
Description Query the value of the condition register for the questionable selftest status register.
Explanation The relation between the selftest status register and questionable status register is
as shown in the figure below.
9
10
+ SELFtest
CONNect
9
10
11 11
12 12
13 13
14 14
15 15
The definitions of the questionable selftest status register are as shown in the table
below. Wherein, bit 1 to bit 15 are not used and will be always treated as 0. The
range of the return value are the decimal numbers corresponding to the binary
numbers ranging from 0000000000000000 (0 in decimal) to 0000000000000001 (1
in decimal).
Bit Value Definition
0 1 Boot Process Initialization Error
1 0 Not Used
2 0 Not Used
3 0 Not Used
4 0 Not Used
5 0 Not Used
6 0 Not Used
7 0 Not Used
8 0 Not Used
9 0 Not Used
10 0 Not Used
11 0 Not Used
12 0 Not Used
13 0 Not Used
14 0 Not Used
15 0 Not Used
Return The query returns the value of the condition register of the questionable selftest status
Format register in integer.
:STATus:QUEStionable:SELFtest:ENABle
Syntax :STATus:QUEStionable:SELFtest:ENABle <value>
:STATus:QUEStionable:SELFtest:ENABle?
Description Set the value of the enable register for the questionable selftest status register.
Query the value of the enable register for the questionable selftest status register.
:STATus:QUEStionable:SELFtest[:EVENt]
Syntax :STATus:QUEStionable:SELFtest[:EVENt]?
Description Query the value of the event register for the questionable selftest status register.
Explanation The bit 1 to bit 15 of the questionable selftest status register are not used and will be
always treated as 0. The range of the return value are the decimal numbers
corresponding to the binary numbers ranging from 0000000000000000 (0 in
decimal) to 0000000000000001 (1 in decimal).
Return Format The query returns the value of the event register of the questionable selftest status
register in integer.
:STATus:QUEStionable:TEMP:CONDition
Syntax :STATus:QUEStionable:TEMP:CONDition?
Description Query the value of the condition register for the questionable temperature status register.
Explanation The relation between the temperature status register and questionable status
register is as shown in the figure below.
Temperature Status Register
Mainboard or RF Board Overheating 0 Questionable Status Register
1
2 0
3 1
4 2
5 POWer 3
6
7
+ TEMPerature
FREQuency
4
5
8 6
9
10
MODulation
CALibration
7
8
+ To Status Byte,
Bit 3
11 SELFtest 9
12 CONNect 10
13 11
14 12
15 13
14
15
The definitions of the questionable temperature status register are as shown in the
table below. Wherein, bit 1 to bit 15 are not used and will be always treated as 0.
The range of the return value are the decimal numbers corresponding to the binary
numbers ranging from 0000000000000000 (0 in decimal) to 0000000000000001 (1
in decimal).
Bit Value Definition
0 1 Mainboard or RF Board Overheating
1 0 Not Used
2 0 Not Used
3 0 Not Used
4 0 Not Used
5 0 Not Used
6 0 Not Used
7 0 Not Used
8 0 Not Used
9 0 Not Used
10 0 Not Used
11 0 Not Used
12 0 Not Used
13 0 Not Used
14 0 Not Used
15 0 Not Used
Return The query returns the value of the condition register of the questionable temperature
Format status register in integer.
:STATus:QUEStionable:TEMP:ENABle
Syntax :STATus:QUEStionable:TEMP:ENABle <value>
:STATus:QUEStionable:TEMP:ENABle?
Description Set the value of the enable register for the questionable temperature status register.
Query the value of the enable register for the questionable temperature status
register.
Parameter Name Type Range Default
<value> Integer Refer to the "Explanation" 0
Explanation In the questionable temperature status register, the range of <value> are the
decimal numbers corresponding to the binary numbers ranging from
0000000000000000 (0 in decimal) to 1111111111111111 (32767 in decimal).
Return Format The query returns the value of the enable register of the questionable temperature
status register in integer.
Example :STAT:QUES:TEMP:ENAB 1
:STAT:QUES:TEMP:ENAB?
:STATus:QUEStionable:TEMP[:EVENt]
Syntax :STATus:QUEStionable:TEMP[:EVENt]?
Description Query the value of the event register for the questionable temperature status
register.
Explanation The bit 1 to bit 15 of the questionable temperature status register are not used and
will be always treated as 0. The range of the return value are the decimal numbers
corresponding to the binary numbers ranging from 0000000000000000 (0 in
decimal) to 0000000000000001 (1 in decimal).
Return Format The query returns the value of the event register of the questionable temperature
status register in integer.
:SYSTem Commands
The :SYSTem commands are used to set a series of parameters relating to the system and the settings of
these parameters do not affect the output signal of the RF signal generator.
Command List:
:SYSTem:BRIGhtness
:SYSTem:CLEar
:SYSTem:COMMunication:INTerface
:SYSTem:COMMunication:LAN:DHCP
:SYSTem:COMMunication:LAN:IP:ADDress
:SYSTem:COMMunication:LAN:IP:AUTO
:SYSTem:COMMunication:LAN:IP:GATeway
:SYSTem:COMMunication:LAN:IP:MANual
:SYSTem:COMMunication:LAN:IP:SET
:SYSTem:COMMunication:LAN:IP:SUBnet:MASK
:SYSTem:COMMunication:LAN:RESet
:SYSTem:COMMunication:LAN[:SELF]:PREFerred
:SYSTem:DATE
:SYSTem:DISPlay:UPDate[:STATe]
:SYSTem:FSWitch:STATe
:SYSTem:LANGuage
:SYSTem:LKEY
:SYSTem:POWer:ON:TYPE
:SYSTem:PRESet
:SYSTem:PRESet:TYPE
:SYSTem:PRESet:SAVE
:SYSTem:TIME
:SYSTem:BRIGhtness
Syntax :SYSTem:BRIGhtness <value>
:SYSTem:BRIGhtness?
Description Set the brightness of the LCD.
Query the brightness of the LCD.
:SYSTem:CLEar
Syntax :SYSTem:CLEar
Description Clear all the user-defined data.
Explanation The instrument will be reset to the factory setting after the data is cleared.
— Format the NAND FLASH;
— Reset the user data saved in NVRAM and NorFlash to the factory setting;
— Reset the HOST NAME, IP address and password in LXI to the factory setting.
:SYSTem:COMMunication:INTerface
Syntax :SYSTem:COMMunication:INTerface OFF|USB|LAN|AUTO
:SYSTem:COMMunication:INTerface?
Description Set the communication interface.
Query the communication interface.
:SYSTem:COMMunication:LAN:DHCP
Syntax :SYSTem:COMMunication:LAN:DHCP ON|OFF|1|0
:SYSTem:COMMunication:LAN:DHCP?
Description Turn on or off the DHCP mode.
Query the state of the DHCP mode.
Parameter Name Type Range Default
ON|OFF|1|0 Bool ON|OFF|1|0 ON|1
Explanation In DHCP mode, the DHCP server in the current network distributes network
parameters (such as the IP address) for the instrument.
When all the three IP configuration modes are "On", the priority order of
parameter configuration is "DHCP", "Auto-IP" and "Manual-IP".
The three IP configuration modes cannot be all set to "Off" at the same time.
Return Format The query returns 1 or 0.
Example :SYST:COMM:LAN:DHCP ON
:SYST:COMM:LAN:DHCP?
Related :SYSTem:COMMunication:LAN:IP:AUTO
Commands
:SYSTem:COMMunication:LAN:IP:MANual
:SYSTem:COMMunication:LAN:IP:ADDress
Syntax :SYSTem:COMMunication:LAN:IP:ADDress <value>
:SYSTem:COMMunication:LAN:IP:ADDress?
Description Set the IP address.
Query the current IP address.
Parameter Name Type Range Default
The format is nnn.nnn.nnn.nnn;
wherein, the range of the first nnn is
<value> ASCII string from 1 to 223 (except 127) and the --
ranges of the other three nnn are from
0 to 255
Explanation This command is only valid when the Manual-IP configuration mode is turned
on.
You are recommended to ask your network administrator for an address
available.
Return Format The query returns the IP address. For example, 172.16.3.199.
Example :SYST:COMM:LAN:IP:ADD 172.16.3.199
:SYST:COMM:LAN:IP:ADD?
Related :SYSTem:COMMunication:LAN:IP:MANual
Command
:SYSTem:COMMunication:LAN:IP:AUTO
Syntax :SYSTem:COMMunication:LAN:IP:AUTO ON|OFF|1|0
:SYSTem:COMMunication:LAN:IP:AUTO?
Description Turn on or off the Auto-IP configuration mode.
Query the state of the Auto-IP configuration mode.
:SYSTem:COMMunication:LAN:IP:GATeway
Syntax :SYSTem:COMMunication:LAN:IP:GATeway <string>
:SYSTem:COMMunication:LAN:IP:GATeway?
Description Set the default gateway.
Query the current default gateway.
Parameter Name Type Range Default
The format is nnn.nnn.nnn.nnn;
wherein, the range of the first nnn is
<string> ASCII string from 1 to 223 (except 127) and the --
ranges of the other three nnn are from
0 to 255
Explanation This command is only valid when the Manual-IP configuration mode is turned
on.
You are recommended to ask your network administrator for an address
available.
Return Format The query returns the default gateway. For example, 172.16.3.1.
Example :SYST:COMM:LAN:IP:GAT 172.16.3.1
:SYST:COMM:LAN:IP:GAT?
Related :SYSTem:COMMunication:LAN:IP:MANual
Command
:SYSTem:COMMunication:LAN:IP:MANual
Syntax :SYSTem:COMMunication:LAN:IP:MANual ON|OFF|1|0
:SYSTem:COMMunication:LAN:IP:MANual?
Description Turn on or off the Manual-IP configuration mode.
Query the status of the Manual-IP configuration mode.
Parameter Name Type Range Default
ON|OFF|1|0 Bool ON|OFF|1|0 OFF|0
Explanation In the Manual-IP configuration mode, the network parameters (such as the IP
address) are defined by users.
When all the three IP configuration modes are "On", the priority order of
parameter configuration is "DHCP", "Auto-IP" and "Manual-IP".
The three IP configuration modes cannot be all set to "Off" at the same time.
Return Format The query returns 1 or 0.
Example :SYST:COMM:LAN:IP:MAN ON
:SYST:COMM:LAN:IP:MAN?
Related :SYSTem:COMMunication:LAN:DHCP
Commands
:SYSTem:COMMunication:LAN:IP:AUTO
:SYSTem:COMMunication:LAN:IP:SET
Syntax :SYSTem:COMMunication:LAN:IP:SET
Description Apply the current network parameter settings.
Explanation After setting the LAN parameters, you have to execute this command to apply the
parameters. Otherwise, the settings are invalid.
:SYSTem:COMMunication:LAN:IP:SUBnet:MASK
Syntax :SYSTem:COMMunication:LAN:IP:SUBnet:MASK <value>
:SYSTem:COMMunication:LAN:IP:SUBnet:MASK?
Description Set the subnet mask.
Query the current subnet mask.
Explanation This command is only valid when the Manual-IP configuration mode is turned
on.
You are recommended to ask your network administrator for a subnet mask
available.
Return Format The query returns the subnet mask. For example, 255.255.255.0.
Example :SYST:COMM:LAN:IP:SUB:MASK 255.255.255.0
:SYST:COMM:LAN:IP:SUB:MASK?
Related :SYSTem:COMMunication:LAN:IP:MANual
Command
:SYSTem:COMMunication:LAN:RESet
Syntax :SYSTem:COMMunication:LAN:RESet
Description Reset the current network parameters.
Explanation After resetting the current parameters, DHCP and Auto-IP are turned on and
Manual-IP is turned off.
:SYSTem:COMMunication:LAN[:SELF]:PREFerred
Syntax :SYSTem:COMMunication:LAN[:SELF]:PREFerred <value>
:SYSTem:COMMunication:LAN[:SELF]:PREFerred?
Description Set the DNS (Domain Name Service).
Query the current DNS.
Parameter Name Type Range Default
The format is nnn.nnn.nnn.nnn,
wherein, the range of the first nnn is
<value> ASCII string from 1 to 223 (except 127) and the --
ranges of the other three nnn are from
0 to 255
Explanation You are recommended to ask your network administrator for an address available.
Return Format The query returns the DNS address. For example, 172.16.2.3.
Example :SYST:COMM:LAN:PREF 172.16.2.3
:SYST:COMM:LAN:PREF?
:SYSTem:DATE
Syntax :SYSTem:DATE <year>,<month>,<day>
:SYSTem:DATE?
Description Set the date of the instrument.
Query the date of the instrument.
Parameter Name Type Range Default
<year> ASCII string 2000 to 2099 --
<month> ASCII string 01 to 12 --
<day> ASCII string 01 to 31 --
Return Format The query returns the current date in "YYYY,MM,DD" format. For example,
2015,04,21.
Example :SYST:DATE 2015,04,21
:SYST:DATE?
:SYSTem:DISPlay:UPDate[:STATe]
Syntax :SYSTem:DISPlay:UPDate[:STATe] ON|OFF|1|0
:SYSTem:DISPlay:UPDate[:STATe]?
Description Set the on/off state of the screen.
Query the on/off state of the screen.
Parameter Name Type Range Default
ON|OFF|1|0 Bool ON|OFF|1|0 ON|1
Explanation When the screen is turned off, the screen stops updating and is locked. At this point,
the measurement speed is improved. You can press ESC to unlock the screen.
Screen locking is mainly used in remote operation mode.
Return Format The query returns 1 or 0.
Example :SYST:DISP:UPD OFF
:SYST:DISP:UPD?
:SYSTem:FSWitch:STATe
Syntax :SYSTem:FSWitch:STATe OPEN|DEFault
:SYSTem:FSWitch:STATe?
Description Set the power status of the RF signal generator after power-on.
Query the power status of the RF signal generator after power-on.
:SYSTem:LANGuage
Syntax :SYSTem:LANGuage CHINese|ENGLish
:SYSTem:LANGuage?
Description Set the system language.
Query the system language.
Parameter Name Type Range Default
CHINese|ENGLish Discrete CHINese|ENGLish --
Return Format The query returns CHINESE or ENGLISH.
Example :SYST:LANG CHIN
:SYST:LANG?
:SYSTem:LKEY
Syntax :SYSTem:LKEY <license key>
:SYSTem:LKEY? <option>
Description Install and activate the option of the instrument.
Query the license of the option installed.
:SYSTem:POWer:ON:TYPE
Syntax :SYSTem:POWer:ON:TYPE LAST|PRESet
:SYSTem:POWer:ON:TYPE?
Description Select the instrument configuration to be used at start-up.
Query the instrument configuration to be used at start-up.
Parameter Name Type Range Default
LAST|PRESet Discrete LAST|PRESet --
Explanation LAST: the instrument loads the system configuration used before the last
power-off automatically at start-up.
PRESet: the instrument loads the settings defined by the :SYSTem:PRESet:TYPE
command automatically at start-up.
Return Format The query returns LAST or PRESET.
Example :SYST:POW:ON:TYPE LAST
:SYST:POW:ON:TYPE?
Related :SYSTem:PRESet:TYPE
Command
:SYSTem:PRESet
Syntax :SYSTem:PRESet
Description Reset the instrument to the preset state (the settings (FACtory or USER) defined by
the :SYSTem:PRESet:TYPE command).
Explanation Sending this command is equivalent to pressing Preset at the front panel, namely
recalling the default values or user-preset values related to this key.
Related :SYSTem:POWer:ON:TYPE
Commands
:SYSTem:PRESet:TYPE
:SYSTem:PRESet:TYPE
Syntax :SYSTem:PRESet:TYPE FACtory|USER
:SYSTem:PRESet:TYPE?
Description Select the preset type of the system.
Query the preset type of the system.
Parameter Name Type Range Default
FACtory|USER Discrete FACtory|USER --
Explanation When the power-on setting is set to "Preset", the instrument loads the specified
preset type ("Factory" or "User") after start-up.
Pressing Preset at the front panel will recall the specified preset type.
When the preset type is set to "User", you can use the :SYSTem:PRESet:SAVE
command to save the current system configuration.
Return Format The query returns FACTORY or USER.
Example :SYST:PRES:TYPE USER
:SYST:PRES:TYPE?
Related :SYSTem:POWer:ON:TYPE
Commands
:SYSTem:PRESet:SAVE
:SYSTem:PRESet:SAVE
Syntax :SYSTem:PRESet:SAVE
Description Save the user setting.
Explanation Using this command can save the current system configuration as user-defined
setting in the internal non-volatile memory.
When Preset Type is set to "User" (use the :SYSTem:PRESet:TYPE command),
this configuration will be loaded when recalling "Preset" (use
the :SYSTem:POWer:ON:TYPE command).
When Preset Type is set to "Factory", this command is invalid.
Related :SYSTem:POWer:ON:TYPE
Commands
:SYSTem:PRESet:TYPE
:SYSTem:TIME
Syntax :SYSTem:TIME <hour>,<min>,<sec>
:SYSTem:TIME?
Description Set the time of the instrument.
Query the time of the instrument.
Parameter Name Type Range Default
<hour> ASCII string 00 to 23 --
<min> ASCII string 00 to 59 --
<sec> ASCII string 00 to 59 --
Return Format The query returns the current time in "hh,mm,ss" format. For example, 16,40,30.
Example SYST:TIME 16,40,30
SYST:TIME?
:SYSTem:TIME:STATe
Syntax :SYSTem:TIME:STATe ON|OFF
:SYSTem:TIME:STATe?
Description Set the on/off status of the display of the time and date.
Query the on/off status of the display of the time and date.
:TRIGger Commands
Command List:
:TRIGger:IQ[:IMMediate]
:TRIGger:PULSe[:IMMediate]
:TRIGger[:SWEep][:IMMediate]
:TRIGger:IQ[:IMMediate]
Syntax :TRIGger:IQ[:IMMediate]
Description Trigger an IQ wavetable output immediately.
Explanation When the "Trig Mode" of IQ wavetable is set to "Bus", the instrument starts
outputting an IQ baseband signal each time this command is sent.
Example :TRIG:IQ
Related *TRG
Command
:TRIGger:PULSe[:IMMediate]
Syntax :TRIGger:PULSe[:IMMediate]
Description Trigger a pulse modulation immediately.
Explanation When the "Trig Mode" of pulse modulation is set to "Bus", the instrument starts a
pulse modulation each time this command is sent.
Example :TRIG:PULS
Related *TRG
Command
:TRIGger[:SWEep][:IMMediate]
Syntax :TRIGger[:SWEep][:IMMediate]
Description Trigger a RF sweep immediately.
Explanation When the "Trig Mode" or "Point Trig" mode of SWEEP is set to "Bus" and the
corresponding trigger condition is met, the instrument starts a RF sweep within the
sweep period or sweeps a point and then stops each time this command is sent.
Example :TRIG:SWE
Related *TRG
Command
:UNIT Command
Command List:
:UNIT:POWer
:UNIT:POWer
Syntax :UNIT:POWer DBM|DBMV|DBUV|V|W
:UNIT:POWer?
Description Set the output and display unit of the amplitude.
Query the output and display unit of the amplitude.
Note:
1. The examples in this chapter are based on DSG830. For other models, the ranges of some parameters
might be different. When using the commands, please make proper adjustment according to the
model of your instrument.
2. Before using the examples in this chapter, please select the desired communication interface (USB or
LAN) and make correct connections (refer to the introductions in To Build Remote Communication).
Besides, you have to install Ultra Sigma or other PC software for sending commands on your PC.
3. The content enclosed in "/*" and "*/" after each command in the application examples in this chapter
is annotation for easier understanding and is not a part of the command.
To Output RF signal
Requirement
Use the SCPI commands to realize the following functions:
Output a RF signal with 1GHz frequency and -20dBm amplitude from the [RF OUTPUT 50Ω] connector.
Method
1. *IDN? /*Query the ID string of the RF signal generator to check whether
the remote communication is normal*/
2. :SYST:PRES:TYPE FAC /*Set the preset type to "Factory"*/
3. :SYST:PRES /*Restore the instrument to the factory setting*/
4. :FREQ 1GHz /*Set the RF signal frequency to 1GHz*/
5. :LEV -20 /*Set the RF signal amplitude to -20dBm*/
6. :OUTP ON /*Turn on the RF output*/
Method
1. *IDN? /*Query the ID string of the RF signal generator to check whether
the remote communication is normal*/
2. :SYST:PRES:TYPE FAC /*Set the preset type to "Factory"*/
3. :SYST:PRES /*Restore the instrument to the factory setting (by default, the
sweep mode is continuous, the sweep type is step and the
sweep spacing is linear)*/
4. :SWE:STEP:STAR:FREQ 1GHz /*Set the start frequency of step sweep to 1GHz*/
5. :SWE:STEP:STOP:FREQ 2GHz /*Set the stop frequency of step sweep to 2GHz*/
6. :SWE:STEP:STAR:LEV -20 /*Set the start level of step sweep to -20dBm*/
7. :SWE:STEP:STOP:LEV 0 /*Set the stop level of step sweep to 0dBm*/
8. :SWE:STEP:POIN 10 /*Set the number of step sweep points to 10*/
9. :SWE:STEP:DWEL 500ms /*Set the dwell time of step sweep to 500ms*/
10. :SWE:STAT LEV,FREQ /*Turn on the frequency and level sweep functions at the same
time*/
11. :OUTP ON /*Turn on the RF output*/
Method
1. *IDN? /*Query the ID string of the RF signal generator to check
whether the remote communication is normal*/
2. :SYST:PRES:TYPE FAC /*Set the preset type to "Factory"*/
3. :SYST:PRES /*Restore the instrument to the factory setting (by default,
the modulation source is internal and the modulation
waveform is sine)*/
4. :FREQ 800MHz /*Set the RF carrier frequency to 800MHz*/
5. :LEV -20 /*Set the RF carrier amplitude to -20dBm*/
6. :AM:DEPT 60 /*Set the AM modulation depth to 60%*/
7. :AM:FREQ 20kHz /*Set the AM modulation frequency to 20kHz*/
8. :AM:STAT ON /*Turn on the AM function*/
9. :MOD:STAT ON /*Turn on the RF modulation*/
10. :OUTP ON /*Turn on the RF output*/
The instrument communicating with NI-VISA via various interfaces is called "resource". The VISA descriptor
(namely the "resource name") is used to describe the accurate name and location of the VISA resource. If
LAN interface is currently used for communicating with the instrument, the VISA descriptor
is :TCPIP0::172.16.3.199::INSTR. Before programming, please acquire the correct VISA descriptor.
Programming Preparations
Before programming, you need to make the following preparations.
1. Make sure that your PC has been installed with the NI-VISA library (can be downloaded from the NI
website: http://www.ni.com/visa). Here, the default installation path is C:\Program Files\IVI
Foundation\VISA.
2. In this manual, the USB interface of the RF signal generator is used to communicate with the PC and
please use a USB cable to connect the USB DEVICE interface at the rear panel of the RF signal
generator to the PC.
3. Turn on the instrument after correctly connecting the RF signal generator and PC.
4. At this point, the "Found New Hardware Wizard" dialog box appears on the PC. Please follow the
instructions to install the "USB Test and Measurement Device (IVI)".
5. Acquire the USB VISA descriptor of the RF signal generator: run Ultra Sigma and search for the RF
signal generator resource currently connected to the PC. The resource found is displayed under the
"RIGOL Online Resource" directory, including the instrument model and the USB interface information
(namely the VISA descriptor) as shown in the figure below. Here, the VISA descriptor of the RF signal
generator is USB0::0x1AB1::0x6666::DSG8A170200001::INSTR.
The functions realized in this demo: send the *IDN? Command to read the device information.
1. Create a new Excel file that enables the Macro. In this example, the file is named as
DSG800_Demo_Excel.xlsm.
2. Run DSG800_Demo_Excel.xlsm. Click File Options at the upper-left corner of the Excel file to open
the interface as shown in the figure below. Click Customize Ribbon at the left, check Developer
and click OK. At this point, the Excel menu bar displays the Developer menu.
3. Input the VISA descriptor into a cell of the file as shown in the figure below. Click the Developer
menu and select the Visual Basic option to open the Microsoft Visual Basic.
4. Select Tools in the Microsoft Visual Basic menu bar and click References.
Select VISA Library in the pop-up dialog box and click OK to refer to the VISA Library.
Explanation:
If you cannot find the VISA Library in the left list in the figure above, please try to find it using
the following method.
(1) Make sure that you have installed the NI-VISA library on your PC.
(2) Click Browse… at the right and set the search range to C:\WINDOWS\system32 and
the filename to visa32.dll, as shown in the figure below.
5. Click View Code in the Developer menu to enter the Microsoft Visual Basic interface. Add the
following codes and save the file.
Note: If the Excel file created at step 2 does not enable the Macros, at this point, the prompt message
"The following features cannot be saved in macro-free workbooks" will be displayed. In this situation,
please save the Excel file as a file using the Macros.
Sub QueryIdn()
End Sub
6. Add button control: click Insert in the Developer menu, select the desired button in Form Controls
and put it into the cell of the Excel. At this point, the Assign Macro interface is displayed, select
"Sheet1.QueryIdn" and click OK.
By default, the button mane is "Button 1". Right-click the button and select Edit Text in the pop-up
7. Click the "*IDN?" button to run the program. The device information of the RF signal generator is as
shown in the figure below.
The functions realized in this demo: read the current frequency and amplitude of the RF signal
generator.
1. Run Matlab and modify the current directory (namely modify the Current Directory at the top of the
software). In this example, the current directory is changed to D:\DSG800_Demo.
2. Click File New Blank M-File in the Matlab interface to create a blank M file.
4. Save the M file in the current directory. In this example, the M file is named as
DSG800_Demo_MATLAB.m.
5. Run the M file and the command window displays the following results.
meas_RF_FREQ =
meas_RF_LEV =
-20.00
The results above denote that the current frequency of the RF signal generator is 1.5GHz and the
amplitude is -20dBm.
The functions realized in this demo: search for the instrument address, connect the instrument, send
command and read the return value.
2. Add controls in the front panel interface, including the address bar, command bar and return bar as
well as the Connect, Write, Read and Exit buttons.
3. Click Show Block Diagram in the Window menu and add the While cycle to create the event
structure.
4. Add events, including connect the instrument, write operation, read operation and exit.
(1) Connect the instrument (include error processing).
(4) Exit.
5. Run the program and the interface as shown below is displayed. Click the Address dropdown box and
select the VISA resource name. Click Connect to connect the instrument, input the command in the
Command text box and click Write to write the command into the instrument. If the command is a
query command (for example, :FREQ?), you need to first click Write to write the command into the
instrument and then click Read. The return value 1.500 000 000 00GHz (denote that the current
frequency of the RF signal generator is 1.5GHz) is displayed in the Return text box. Click Exit to exit
the program.
The functions realized in this demo: turn on the LF, MOD and RF output switches respectively and use
yellow label to indicate that the output is turned on.
1. Build a standard application program project (Standard EXE) and name it as DSG800_Demo_VB.
2. Click the Existing tab under Project Add Module. Find the visa32.bas file under the include
folder in the installation directory of NI-VISA and add the file.
3. Add three CommandButton controls to represent LF, MOD and RF respectively. Add three Label
controls (Label1(0), Label1(1) and Label1(2)) to denote the status of the three switches respectively
(the controls are gray by default and are yellow when the output switches are turned on). The layout is
as shown in the figure below.
4. Open the General tab under Project Project1 Properties and select Form1 from the Startup
Object dropdown box.
5. Double-clcik the LF button to enter the programming environment and add the following codes to
realize the control of LF, MOD and RF. The codes of LF are as shown below. The codes of MOD and RF
are similar.
If strRes = 1 Then
Else
End If
6. Execution Results
1) Click "LF" to turn on the LF output. The control above the LF button turns yellow (as shown in the
figure below). At this point, the RF signal generator can output LF signal via the [LF OUTPUT]
connector according to the current configuration. Click "LF" again to turn off the LF output and
the control above the LF button turns gray.
2) Click "MOD" to turn on the modulation output and the control above the MOD button turns yellow
(as shown in the figure below). At this point, the RF signal generator can output the RF modulated
signal via the [RF OUTPUT 50Ω] connector if the RF output is turned on. Click "MOD" again to
turn off the modulation output and the control above the MOD button turns gray.
3) Click "RF" to turn on the RF output and the control above the RF button turns yellow (as shown in
the figure below). At this point, the RF signal generator can output RF signal via the [RF
OUTPUT 50Ω] connector according to the current configuration. Click "RF" again to turn off the
RF output and the control above the RF button turns gray.
The functions realized in this demo: search for the instrument address, connect the instrument, send
command and read the return value.
1. Run Microsoft Visual C++ 6.0. Create a new MFC project based on dialog box and name it as
DSG800_DEMO_VC.
2. Click Project Settings and add visa32.lib under the Link tab in the pop-up interface manually.
3. Click Tools Options and add the Include and Lib directories under the Directories tab in the
pop-up interface.
Select Include files in Show directories for and double-click at the blank in Directories to add the
path of Include: C:\Program Files\IVI Foundation\VISA\WinNT\include.
Select Library files in Show directories for and double-click at the blank in Directories to add the
path of Lib: C:\Program Files\IVI Foundation\VISA\WinNT\lib\msc.
Note:
The tow directories are related to the installation directory of NI-VISA on your PC. Here, NI-VISA is
installed under C:\Program Files\IVI Foundation\VISA by default.
4. Add the Text, Edit and Button controls. The layout is as shown in the figure below.
5. Click View ClassWizard and add the control variables under the Member Variables tab in the
pop-up interface.
Instrument Address: CString m_strInstrAddr
Command: CString m_strCommand
Return Value: CString m_strResult
return bWriteOK;
}
memset(RecBuf,0,MAX_REC_SIZE);
(*pstrResult).Format("%s",RecBuf);
return bReadOK;
}
status = viOpenDefaultRM(&defaultRM);
if (status < VI_SUCCESS)
{
//Error Initializing VISA...exiting
MessageBox("No VISA instrument was opened ! ");
return ;
}
memset(instrDesc,0,1000);
//Find resource
status = viFindRsrc(defaultRM,expr,findList, retcnt, instrDesc);
//If the instrument(resource) belongs to the DSG series then jump out from the loop
strInstr.MakeUpper();
if (strInstr.Find("DSG") >= 0)
{
bFindDSG = true;
m_strInstrAddr = strSrc;
break;
}
if (bFindDSG == false)
{
MessageBox("Didn't find any DSG!");
}
UpdateData(false);
}
2) Write operation
void CDSG800_DEMO_VCDlg::OnSend()
{
//TODO: Add your control notification handler code here
UpdateData(true);
if (m_strInstrAddr.IsEmpty())
{
MessageBox("Please connect to the instrument first!");
}
InstrWrite(m_strInstrAddr,m_strCommand);
m_strResult.Empty();
UpdateData(false);
}
3) Read operation
void CDSG800_DEMO_VCDlg::OnRead()
{
//TODO: Add your control notification handler code here
UpdateData(true);
InstrRead(m_strInstrAddr,&m_strResult);
UpdateData(false);
}
8. Execution Results
1) Click "Connect" to find and connect the RF signal generator. If the instrument is successfully
connected, the corresponding USB VISA descriptor will be displayed in the address bar.
2) Input command in the "Command" edit box; for example, :SWE:DIR?.
3) Click "Send" to send the command.
4) Click "Read" to read the return value.
Chapter 5 Appendix
Appendix A: Factory Setting
Parameter Factory Value
FREQ
DSG830: 3GHz
Frequency
DSG815: 1.5GHz
LF
Switch Off
Output Waveform Sine
Output Level 500mV
Output Frequency 1kHz
Square Output Level 500mV
Square Output Frequency 1kHz
LEVEL
Level -110dBm
Flatness Switch Off
Amplitude Unit dBm
SWEEP
Sweep Manner Off
Sweep Type Step
Sweep Mode Cont
Start Frequency of Step Sweep 100MHz
Stop Frequency of Step Sweep 1GHz
Start Level of Step Sweep -10dBm
Stop Level of Step Sweep -20dBm
Number of Sweep Points 91
Dwell Time 100ms
Sweep Space Lin
Sweep Shape Ramp
Trigger Mode of the Sweep Period Auto
Trigger Mode of Each Sweep Point Auto
External Trigger Polarity Pos
Sweep Direction Fwd
AM
Switch Off
Modulation Source Int
Modulation Depth 50%
Modulation Frequency 10kHz
Modulation Waveform Sine
External Coupling AC
Input Impedance 100kohm
FM/ØM
Modulation Type ØM
FM
Switch Off
Modulation Source Int
ØM
Switch Off
Modulation Source Int
Phase Deviation 5rad
Modulation Rate 10kHz
Modulation Waveform Sine
External Coupling AC
Input Impedance 100kohm
Pulse Mod
Switch Off
Modulation Source Int
Pulse Mode Single
Period 1ms
Pulse Width 500us
Trigger Mode Auto
Pulse Output Off
Trigger Delay 100us
Modulation Polarity Normal
External Gated Polarity Normal
External Trigger Polarity Pos
IQ Mod
Switch Off
Modulation Source Int
Baseband Switch Off
Baseband Level 1V
Sample Rate 1MHz
Trigger Mode Auto
Operation Mode Retrig
Duration 1
Trigger Delay 0
Trigger Inhibit 0
Segment Trigger Mode Same Seg
Next Segment 0
Output Control
RF/on Switch Off
Mod/on Switch Off
System[1]
Language English
Power On Setting Preset
Preset Type Factory
Remote Interface Off
DHCP On
Auto-IP On
Manual-IP Off
Screen State On
Brightness 4
Time/Date Off
Power Status Open
Save[1]
File Type All
IME Number
Prefix Switch Off
Appendix B: Warranty
RIGOL (SUZHOU) TECHNOLOGIES, INC. (hereinafter referred to as RIGOL) warrants that the product will
be free from defects in materials and workmanship within the warranty period. If a product proves defective
within the warranty period, RIGOL guarantees free replacement or repair for the defective product.
To get repair service, please contact with your nearest RIGOL sales or service office.
There is no other warranty, expressed or implied, except such as is expressly set forth herein or other
applicable warranty card. There is no implied warranty of merchantability or fitness for a particular purpose.
Under no circumstances shall RIGOL be liable for any consequential, indirect, ensuing, or special damages
for any breach of warranty in any case.