SDG1000 Programming Manual 1.1. About Commands & Queries.................. 1 1.1.1. How they are listed? …………………………………………………………1 1.1.2. How they are described?................. 1 1.1.3. When can they be used?.................. 1 1.1.4. Command Notation..................2 1.2. Table of Commands & Queries……………………………………………………3 1.3. IEEE 488.2 Common Command Introduction…………………………………… 4 1.3.1 CHDR………………………………………………………………………..
SDG1000 Programming Manual Introduction to the SCPI Language 1.1. About Commands & Queries This section lists and describes the remote control commands and queries recognized by the instrument. All commands and queries can be executed in either local or remote state.
SDG1000 Programming Manual 1.1.4. Command Notation The following notation is used in the commands: < > Angular brackets enclose words that are used placeholders, of which there are two types: the header path and the data parameter of a command. A colon followed by an equals sign separates a placeholder from the description of the type and range of values that may be used in a command instead of the placeholder.
SDG1000 Programming Manual 1.2. Table of Commands & Queries Short Long Form Subsystem What Command/Query dose *IDN *IDN SYSTEM identification from device. *OPC *OPC SYSTEM Get or set the OPC bit (0) in the Event Status Register (ESR). CHDR COMM_HEADER Set the format of return data (Long, short, off)...
SDG1000 Programming Manual 1.3. IEEE 488.2 Common Command Introduction IEEE standard defines the common commands used for querying the basic information of the instrument or executing basic operations. These commands usually start with "*" and the length of the keywords of the command is usually 3 characters. 1.3.1 CHDR DESCRIPTION This Command is used to change query command return format.
SDG1000 Programming Manual 1.3.2 OPC DESCRIPTION The *OPC (OPeration Complete) command sets to true the OPC bit (bit 0) in the standard Event Status Register (ESR). The *OPC? query always responds with the ASCII character 1 because the device only responds to the query when the previous command has been entirely executed.
SDG1000 Programming Manual 1.3.3 IDN DESCRIPTION The *IDN? Query causes the instrument to identify itself. The response comprises manufacturer, scope model, serial number, software version and firmware version. QUERY SYNTAX *IDN? RESPONSE FORMAT *IDN ,<device id>,<model>,<serial number>,<software version>,<firmware version> <device id>:=“SDG”is used to identify instrument. <model>:= A model identifier less than 14 characters.
SDG1000 Programming Manual 1.4. Output Command DESCRIPTION Enable or disable the output of the [Output] connector at the front panel corresponding to the channel. The query returns ON or OFF. COMMAND SYNTAX <channel>: OUTPut <parameter> <channel>:={C1,C2} <parameter >:= {a parameter from the table below} Parameters Value Description...
SDG1000 Programming Manual 1.5. Basic Wave Command DESCRIPTION Set or get basic wave parameters. COMMAND SYNTAX <channel>:BaSicWaVe <parameter> <channel>:={C1, C2} <parameter>:= {a parameter from the table below} Parameters Value Description WVTP <type> Type of wave Value of frequency. I f wave type is Noise, <frequency>...
Page 12
SDG1000 Programming Manual Value of delay. Only <delay> wave type is Pulse, you can set this parameter. Note: if the command don’t set basic wave type, the parameter will set parameters to current device wave type default. where: <type>:={SINE, SQUARE, RAMP, PULSE, NOISE, ARB ,DC} <frequency>:= { Default unit is "HZ".
Page 13
SDG1000 Programming Manual EXAMPLE 4 reads channel basic wave parameters from device. C1:BSWV? Return: C1: BSWV WVTP,SINE,FRQ,1000,AMP,3,OFST,3,PHSE,0 RELATED COMMANDS ARWV, BTWV, CFG, CPL, MDWV, SWWV...
SDG1000 Programming Manual 1.6. Modulate Wave Command DESCRIPTION Set or get modulated wave parameters. COMMAND SYNTAX <channel>:MoDulateWaVe <parameter> <channel>:={C1, C2} <parameter>:= {a parameter from the table below. } Parameters Value Describe Turn on or off modulated wave. Note if you want STATE <state>...
Page 15
SDG1000 Programming Manual PM,SRC, <src> PM signal source PM modulation wave. Only PM,MDSP <mod wave shape> PM signal source is set to INT. PM frequency. Only PM PM,FRQ <pm frequency> signal source is set to INT. frequency. Only PWM,FRQ <pwm frequency> carry wave is PULSE wave.
Page 16
SDG1000 Programming Manual where: <state>:={ON,OFF} <src>:= {INT,EXT} <mod wave shape>:={SINE,SQUARE,TRIANGLE, UPRAMP,DNRAMP,NOISE,ARB} <am frequency>:= {0.002Hz to 20000Hz} <deep>:= {0% to 120%} <fm frequency>:= {0.002Hz to 20000Hz} <fm frequency offset> :={0 to basic wave frequency / 2} <pm frequency> :={ 0.002Hz to 20000Hz} <pm phase offset>:= {0°...
Page 17
SDG1000 Programming Manual to sine wave. C1:MDWV AM, MDSP, SINE EXAMPLE 3 Reads channel one modulate wave parameters that STATE is C1:MDWV? return: C1:MDWV STATE,ON,AM,MDSP,SINE,SRC,INT,FRQ,100HZ,DEPTH,100,CARR, WVTP,RAMP,FRQ,1000HZ,AMP,4V,OFST,0V,SYM,50 EXAMPLE 3 Reads channel one modulate wave parameters that STATE is OFF. C1:MDWV? return: C1:MDWV STATE,OFF EXAMPLE 4 set channel one Fm frequency to 1000HZ...
SDG1000 Programming Manual 1.7. Sweep Wave Command DESCRIPTION Set or get sweep wave parameters. COMMAND SYNTAX <channel>:SWeepWaVe <parameter> <channel>:={C1, C2} <parameter>:= {a parameter from the table below. } Parameters Value Description STATE <state> Turn on or off sweep wave. Note if you want set or read sweep wave other parameter you must turn on the state first.
Page 19
SDG1000 Programming Manual Note: If Carrier wave is Pulse or Noise you can’t set turn on modulate wave. If you want set CARR and STATE the first parameter have to one of them. where: <state>:= {ON|OFF} <time>:= {0.001S to 500S} <stop frequency>...
Page 20
SDG1000 Programming Manual C2:SWWV STATE,ON,TIME,1S,STOP,100HZ,START,100HZ,TRSR,MAN,TRMD,O FF,SWMD,LINE,DIR,UP,CARR,WVTP,SQUARE,FRQ,1000HZ,AMP,4V, OFST,0V,DUTY,50 EXAMPLE 4 Reads channel two modulate wave parameters that STATE is OFF. C2:SWWV? Return: C2:SWWV STATE,OFF...
SDG1000 Programming Manual 1.8. Burst Wave Command DESCRIPTION Set or get burst wave parameters. COMMAND SYNTAX <channel>:BursTWaVe <parameter> <channel>:={C1, C2} <parameter>:= {a parameter from the table below.} Parameters Value Description STATE <state> Turn on or off burst wave. Note if you want set or read burst wave other parameter you must turn on the state first.
Page 22
SDG1000 Programming Manual MTRIG When TRSR’s parameter be chosen to MAN, that it can be set. CARR,WVTP <wave type> Value of carrier wave type. CARR,FRQ <frequency> Value of frequency. CARR,AMP <amplifier> Value of amplifier. CARR,OFST <offset> Value of offset. CARR,SYM <symmetry>...
Page 23
SDG1000 Programming Manual If wave type is pulse, range is from 0.1% to 99.9%} <symmetry>:={ 0% to 100%} <carr delay>:= {Maximal is Pulse Period, minimum value is 0.Unit is S.} <variance>:={0.4mv to 666.6mv} <mean>:={ the maximal value depends on the variance} QUERY SYNTAX <channel>:BursTWaVe? <parameter>...
SDG1000 Programming Manual 1.10. Arbitrary Wave Command DESCRIPTION Change arbitrary wave type. COMMAND SYNTAX <channel>:ARbWaVe {INDEX, NAME} <channel>:={C1, C2} <index>: 2 to 60 (see blow table what the index number mean.) <name>: see blow table. Inde Inde Inde Inde Inde Name Name Name...
Page 26
SDG1000 Programming Manual EXAMPLE 1 Set StarUp arbitrary wave output by index. ARWV INDEX, 2 EXAMPLE 2 Reads system current wave. ARWV? Return: ARWV INDEX,2,NAME,stairup EXAMPLE 3 Set Atan arbitrary wave output by name. ARWV NAME, ATAN RELATED COMMANDS BSWV...
SDG1000 Programming Manual 1.11. Phase Command DESCRIPTION Set or get phase parameters. COMMAND SYNTAX INVerT <parameter> <parameter>:= {OFF, ON} QUERY SYNTAX INVerT? RESPONSE FORMAT INVERT <parameter> EXAMPLE 1 Set load to invert. INVT...
SDG1000 Programming Manual 1.12. Sync Command DESCRIPTION Set signal output from backward panel in phase with forward. COMMAND SYNTAX <channel>: SYNC <parameter> <channel>:={C1,C2} <parameter>:= {ON,OFF} QUERY SYNTAX <channel>:SYNC? RESPONSE FORMAT <channel>:SYNC <parameter> EXAMPLE 1 Sync function on defend of channel one C1:SYNC ON EXAMPLE 2 Reads channel one sync state.
SDG1000 Programming Manual 1.13. Configuration Command DESCRIPTION Changes system load data of power on. COMMAND SYNTAX Sys_CFG<parameter> <parameter>:= {DEFAULT,LAST} QUERY SYNTAX Sys_CFG? RESPONSE FORMAT Sys_CFG <parameter> EXAMPLE 1 Set system load data of power on to last time data. SCFG LAST...
SDG1000 Programming Manual 1.15. Screen Save Command DESCRIPTION Turns on or off Screen Save. COMMAND SYNTAX SCreen_SaVe <parameter> <parameter>:= {OFF,1,5,15,30,60,120,300, Unit is minute} QUERY SYNTAX SCreen_SaVe? RESPONSE FORMAT SCreen_SaVe <parameter> EXAMPLE 1 Set screen save time 5 minutes. SCSV 5...
SDG1000 Programming Manual 1.17. Frequency Counter DESCRIPTION Set or get frequency counter. COMMAND SYNTAX FreqCouNTer {TRG,<value>,MODE, <value>,HFR,<value>,DEF ,<value>} <value> = {see below table.} QUERY SYNTAX FreqCouNTer? {FRQ, DUTY, TRG, PW, NW, MODE, HFR} RESPONSE FORMAT FreqCouNTer <parameter> Parameters Value Description STATE <state>...
Page 34
SDG1000 Programming Manual EXAMPLE 1 set trig level to 2v. FCNT TRG, 2v EXAMPLE 2 get signal frequency. FCNT? Return: FCNT STATE,ON,FRQ,0.01HZ,DUTY,0,TRG,0V,PW,0,NW,0,MODE,AC,HFR,O FF,FRQ,0.01HZ\n...
SDG1000 Programming Manual 1.18. Store list command DESCRIPTION This command used to read the device wave data name if the store unit is empty, the command will return “EMPTY” string. Note: M50~ M59 is user defined memory. The name will return what you defined. is you not defined arbitrary name will turn “EMPTY”.
SDG1000 Programming Manual 1.19. Get arbitrary wave data command DESCRIPTION The command used to change user defined memory unit arbitrary wave data. COMMAND SYNTAX WaVe_DaTa <address>,<parameter> <address>:= {M50~M59} <parameter>:= {a parameter from the table below. } Parameters Value Description WVNM <wavename>...
SDG1000 Programming Manual 1.20. Virtual key command DESCRIPTION The Command is to send key word to device. COMMAND SYNTAX VirtualKEY VALUE,<value>,STATE,<sate> <value>:= {a parameter from the table below. } <state>:=<0,1>(The “1” is effective to virtual value, and the “0” is useless ) KB_CHANNEL KB_NUMBER_1 KB_FUNC1...
Need help?
Do you have a question about the SDG1000 Series and is the answer not in the manual?
Questions and answers