background image

Chapter 2 Command System

 

RIGOL

 

DG900 Programming Guide

 

2-153

 

:TRIGger Commands 

 

The :TRIGger commands are used to set the trigger source type, trigger input edge type and trigger delay 

as well as generate a trigger event. 

 
Command List: 

 

:TRIGger[<n>]:DELay 

 

:TRIGger[<n>][:IMMediate] 

 

:TRIGger[<n>]:SLOPe 

 

:TRIGger[<n>]:SOURce

 

 

 

:TRIGger[<n>]:DELay 

 

Syntax 

:TRIGger[<n>]:DELay {<seconds>|MINimum|MAXimum} 

:TRIGger[<n>]:DELay? [MINimum|MAXimum] 

 

Description 

Sets the burst delay of the specified channel. 

Queries the burst delay of the specified channel. 

 

Parameter 

Name 

Type 

Range 

Default 

[<n>] 

Integer 

1|2 

<seconds> 

Real 

Refer to "Remarks". 

0 s 

 

Remarks 

 

Burst delay is only available for N cycle and Infinite burst mode. It is defined as the duration from the 

time when the generator receives the trigger signal to the time when it starts to output the N Cycle (or 

Infinite) burst. 

 

For the N cycle burst or Infinite burst in the external trigger or manual trigger mode 

(

[:SOURce[<n>]]:BURSt:TRIGger:SOURce

), the range of <delay> is 0 s to 100 s. 

 

For the N cycle burst in the internal trigger mode, the range of <delay> is from 0 s to 
(

2us

×

cycle

waveform

burst

N

P

P

), and its range should be smaller than or equal to 100 s. 

Wherein, 

burst

P

 

——burst period; 

waveform

P

  ——waveform period (i.g. the period of the burst function (Sine, Square, etc)); 

cycle

N

 

——number of cycles. 

 

When [<n>] is omitted, the system sets the burst delay of CH1 by default. 

 

Return Format 

The query returns the burst delay in scientific notation, with 7 effective digits. For example, 1.00 

(the burst delay is 1 s). 

 

Example 

:TRIG:DEL 1        /*Sets the burst delay of CH1 to 1 s.*/ 

:TRIG:DEL?    /*Queries the burst delay of CH1 and the query returns 1.00.*/ 

 

 

 

 

Содержание DG952

Страница 1: ...RIGOL Programming Guide DG900 Series Function Arbitrary Waveform Generator Aug 2018 RIGOL SUZHOU TECHNOLOGIES INC ...

Страница 2: ......

Страница 3: ...formation in this publication replaces all previously released materials 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 with...

Страница 4: ...00 by programming in the development environments such as Visual C Visual Basic and LabVIEW Chapter 5 Appendix This chapter provides the command list and the factory settings Tip For the latest version of this manual download it from the official website of RIGOL www rigol com Format Conventions in this Manual 1 Keys The keys on the front panel are usually denoted by the format of Key Name Bold Te...

Страница 5: ...5 SOURce Commands 2 47 SOURce APPLy 2 48 SOURce BURSt 2 55 SOURce FREQuency 2 63 SOURce FUNCtion 2 70 SOURce HARMonic 2 86 SOURce MARKer 2 90 SOURce MOD AM 2 91 SOURce MOD ASKey 2 96 SOURce MOD FM 2 99 SOURce MOD FSKey 2 103 SOURce MOD PM 2 106 SOURce MOD PSKey 2 109 SOURce MOD PWM 2 113 SOURce MOD 2 117 SOURce PERiod 2 119 SOURce PHASe 2 120 SOURce PULSe 2 121 SOURce SUM 2 123 SOURce SWEep 2 126 ...

Страница 6: ...hapter 4 Programming Examples 4 1 Programming Preparations 4 2 Excel Programming Examples 4 3 Matlab Programming Example 4 6 LabVIEW Programming Example 4 8 Visual Basic Programming Example 4 15 Visual C Programming Example 4 18 Chapter 5 Appendix 5 1 Appendix A Factory Setting 5 1 Appendix B Warranty 5 5 ...

Страница 7: ...es how to build the remote communication between the signal generator and the PC how to control the signal generator remotely It also introduces the syntax symbols parameter types and abbreviation rules of the SCPI commands Contents in this chapter Build Remote Communication Remote Control Method SCPI Command Overview ...

Страница 8: ... the USB HOST interface of the PC by using a USB cable The Found New Hardware Wizard dialog box will be displayed and please install the USB Test and Measurement Device IVI according to the instructions refer to Remote Control via USB in Chapter 3 Remote Control in DG900 User s Guide 2 Use the LAN interface Make sure that your PC has been accessed to the local area network Check whether the local ...

Страница 9: ...arch for the resources and right click the resource name Select SCPI Panel Control to open the SCPI command control panel Input a correct command in the pop up SCPI control panel and click and in sequence or directly click to check whether the connection is successful as shown in the figure below the USB interface is taken as an example ...

Страница 10: ...rs and abbreviation rules of the SCPI commands Syntax The SCPI commands provide a hierarchical tree structure and consist of multiple subsystems Each command subsystem consists of one root keyword and one or more sub keywords The command line usually starts with a colon the keywords are separated by colons and following the keywords are the parameter settings available The command ending with a qu...

Страница 11: ...or example sending the COUNter LEVEl value command in COUNter LEVEl 1 5 form Parameter Type The command parameters introduced in this manual include 5 types Bool Integer Real Discrete and ASCII String 1 Bool The parameter can be set to ON 1 or OFF 0 For example COUNter HF ON 1 OFF 0 2 Integer Unless otherwise specified the parameter can be any integer within the effective value range Note Do not s...

Страница 12: ... used to set the brightness to the minimum or maximum Command Abbreviation The letters in the commands are case insensitive The commands can be input all in uppercase letters or in lowercase letters For abbreviations you must enter all the uppercase letters that exist in the command syntax For example the COUNter COUPling command can be abbreviated as COUN COUP ...

Страница 13: ...ble below Parameter Type Units Available Default Unit Frequency MHz kHz Hz uHz Hz Sample Rate MSa s kSa s Sa s uSa s Sa s Amplitude Vpp mVpp Vrms mVrms dBm Vpp Vrms dBm Relates to the current amplitude unit to be set Offset Vdc mVdc Vdc High Level Low Level V mV V Time Ms ks s ms us ns s Phase Duty Cycle Modulation Depth Brightness Impedance Ω Ω Note In this manual the range of the parameter in th...

Страница 14: ...mmand List 1 COUNter AUTO COUNter COUPling COUNter GATEtime COUNter HF COUNter LEVEl COUNter MEASure COUNter SENSitive COUNter STATe COUNter STATIstics CLEAr COUNter STATIstics STATe 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 key...

Страница 15: ...he coupling mode of the input signal to DC COUN COUP Queries the coupling mode of the input signal and the query returns DC COUNter GATEtime Syntax COUNter GATEtime USER1 USER2 USER3 USER4 USER5 USER6 COUNter GATEtime Description Selects the gate time of the measurement system Queries the gate time of the measurement system Parameter Name Type Range Default USER1 USER2 USER3 USER4 USER5 USER6 Disc...

Страница 16: ...the query returns USER2 COUNter HF Syntax COUNter HF ON 1 OFF 0 COUNter HF Description Enables or disables the high frequency rejection function of the frequency counter Queries the on off status of the high frequency rejection function of the frequency counter Parameter Name Type Range Default ON 1 OFF 0 Bool ON 1 OFF 0 OFF Remarks Enable the high frequency rejection when low frequency signal wit...

Страница 17: ...d to query the measurement values of the last measurement Return Format The query returns a string consisting of 5 parts representing the frequency period duty cycle positive pulse width and negative pulse width respectively separated by commas Each part is expressed in scientific notation and contains 10 effective digits for example 2 000000000E 03 5 000000000E 04 4 760800000E 01 2 380415000E 04 ...

Страница 18: ...rameter is RUN STOP or SINGLE is only valid when the frequency counter function is enabled When the frequency counter function is enabled the sync output of CH2 will be disabled In the RUN status the frequency counter measures the input signal continuously according to the current configuration In the SINGLE status the frequency counter executes a measurement then enters the STOP status and then s...

Страница 19: ...r is enabled COUNter STATIstics STATe The statistics results are cleared automatically when the statistical function of the frequency counter is disabled COUNter STATIstics STATe Syntax COUNter STATIstics STATe ON 1 OFF 0 COUNter STATIstics STATe Description Enables or disables the statistical function of the measurement results of the frequency counter Queries the on off status of the statistical...

Страница 20: ...ng n AMPL DEViation COUPling n AMPL MODE COUPling n AMPL RATio COUPling n AMPL STATe COUPling n FREQuency DEViation COUPling n FREQuency MODE COUPling n FREQuency RATio COUPling n FREQuency STATe COUPling n PHASe DEViation COUPling n PHASe MODE COUPling n PHASe RATio COUPling n PHASe STATe COUPling n STATe COUPling n TRIgger STATe Note The coupling function is only available when both the waveform...

Страница 21: ...plitude ratio sending this command can set the amplitude coupling mode to amplitude deviation and set the amplitude deviation Return Format The query returns the amplitude deviation in scientific notation The returned value contains 7 effective digits for example 1 000000E 00 the amplitude deviation is 1 Vpp Example COUP1 AMPL DEV 1 Sets the amplitude deviation in the amplitude coupling of CH1 to ...

Страница 22: ...ling n AMPL RATio value MINimum MAXimum COUPling n AMPL RATio Description Sets the amplitude ratio in the amplitude coupling of the specified channel Queries the amplitude ratio in the amplitude coupling of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 value Real 0 001 to 1000 1 Remarks When n is omitted the commands set and query the related parameters of CH1 by default...

Страница 23: ...ling the amplitude coupling function You cannot set the amplitude coupling mode and amplitude deviation ratio after the amplitude coupling function is enabled You can also send the SOURce n VOLTage COUPle STATe command to set and query the on off status of the amplitude coupling function Return Format The query returns ON or OFF Example COUP1 AMPL ON Enables the amplitude coupling function of CH1 ...

Страница 24: ...2 1 OFFSet RATio Discrete OFFSet RATio RATio Remarks When n is omitted the commands set and query the related parameters of CH1 by default Frequency deviation mode the frequencies of CH1 and CH2 have a certain deviation relation The parameter relations are FCH2 FCH1 FDev the reference source is CH1 FCH1 FCH2 FDev the reference source is CH2 Wherein FCH1 is the frequency of CH1 FCH2 is the frequenc...

Страница 25: ... frequency deviation ratio after the frequency coupling function is enabled When the frequency coupling function is disabled if the current frequency coupling mode is frequency ratio sending this command can set the frequency ratio if the current frequency coupling mode is frequency deviation sending this command can set the frequency coupling mode to frequency ratio and set the frequency ratio Yo...

Страница 26: ...ncy COUPle STATe command to set and query the on off status of the frequency coupling function Return Format The query returns ON or OFF Example COUP1 FREQ ON Enables the frequency coupling function of CH1 COUP1 FREQ Queries the on off status of the frequency coupling function of CH1 and the query returns ON COUPling n PHASe DEViation Syntax COUPling n PHASe DEViation deviation COUPling n PHASe DE...

Страница 27: ...nce source is CH1 PCH1 PCH2 PDev the reference source is CH2 Wherein PCH1 is the phase of CH1 PCH2 is the phase of CH2 and PDev is the set phase deviation Phase ratio mode the phases of CH1 and CH2 have a certain ratio relation The parameter relations are PCH2 PCH1 PRatio the reference source is CH1 PCH1 PCH2 PRatio the reference source is CH2 Wherein PCH1 is the phase of CH1 PCH2 is the phase of ...

Страница 28: ...ase ratio and set the phase ratio Return Format The query returns the phase ratio in scientific notation The returned value contains 7 effective digits for example 1 120000E 00 the phase ratio is 1 12 Example COUP1 PHAS RAT 1 12 Sets the phase ratio in the phase coupling of CH1 to 1 12 COUP1 PHAS RAT Queries the phase ratio in the phase coupling of CH1 and the query returns 1 120000E 00 COUPling n...

Страница 29: ...marks When n is omitted the commands set and query the related parameters of CH1 by default DG900 supports frequency amplitude and phase coupling functions When the corresponding coupling functions are enabled CH1 and CH2 are mutual base sources When the frequency amplitude or phase of one channel as the base source is changed the corresponding parameter of the other channel will be changed automa...

Страница 30: ... 1 2 1 ON 1 OFF 0 Bool ON 1 OFF 0 OFF Remarks When n is omitted the commands set and query the related parameters of CH1 by default After the trigger coupling function is enabled CH1 and CH2 take each other as the reference source When one channel this channel is taken as the reference source initiates the trigger the other channel is automatically triggered Return Format The query returns ON or O...

Страница 31: ...ISPlay BRIGhtness MINimum MAXimum Description Sets the screen brightness Queries the screen brightness Parameter Name Type Range Default brightness Integer 1 to 100 50 Return Format The query returns the screen brightness in scientific notation The returned value contains 7 effective digits for example 5 100000E 01 the screen brightness is 51 Example DISP BRIG 51 Sets the screen brightness to 51 D...

Страница 32: ...en saver function is enabled the instrument enters the screen saver mode automatically when you stop operating the instrument for more than 15 minutes and the screen stays black automatically after another 30 minutes Return Format The query returns ON or OFF Example DISP SAV OFF Disables the screen saver function DISP SAV Queries the on off status of the screen saver function and the query returns...

Страница 33: ...ample 9000230456BM6 x84 x03 x00 wherein 9 following denotes that there are 9 characters 000230456 following behind and they are used to denote the data length HCOPy SDUMp DATA FORMat Syntax HCOPy SDUMp DATA FORMat BMP PNG HCOPy SDUMp DATA FORMat Description Sets the format of the returned image of the screenshot to BMP or PNG Queries the format of the returned image of the screenshot Parameter Nam...

Страница 34: ...sets and clears the error queue ESE Syntax ESE value ESE Description Enables the bits in the standard event register to be reported to the status byte register Queries the bit enabled in the standard event register Parameter Name Type Range Default value Integer Refer to Remarks 0 Remarks The parameter value is a decimal value It corresponds to the binary weighted sum of the bits to be reported to...

Страница 35: ...e later occurred events corresponding to that bit will be ignored until the register is cleared by the query command or the CLS command used to clear the status Return Format The query returns a decimal value corresponding to the binary weighted sum of all the bits in the event register of the standard event register IDN Syntax IDN Description Queries the ID string of the instrument Return Format ...

Страница 36: ...nt register is set to 1 after the command queue is completed Return Format The query returns 1 or 0 Example OPC Configures the instrument to set the OPC operation complete bit in the standard event register to 1 after all the previous commands that have been sent are executed OPC Queries whether all the previous commands that have been sent are executed If yes the query returns 1 to the output buf...

Страница 37: ...ter parameters as well as utility function parameters and system parameters under the Utility menu RST Syntax RST Description Restores the instrument to its factory default state Remarks Restores the instrument to its factory default state please refer to Factory Setting and it is not affected by the MEMory STATe RECall AUTO command This command will stop the sweep or burst in progress in an abnor...

Страница 38: ...es a Service Request signal When value is set to 0 executing this command will clear the enable register of the status byte register If you have configured the instrument by using the PSC 1 command the enable register of the standard event register will be cleared at the next power on of the instrument If you have configured the instrument by using the PSC 0 command the enable register of the stan...

Страница 39: ...URce or SOURce n BURSt TRIGger SOURce command You can also send the SOURce n SWEep TRIGger IMMediate or SOURce n BURSt TRIGger IMMediate command to trigger a sweep or a burst when the sweep or burst function is currently enabled and the trigger source is set to manual WAI Syntax WAI Description Executes any other command via the interface after all the pending operations are completed Remarks This...

Страница 40: ... of storage locations for the state files in the non volatile memory of the internal memory of the instrument Return Format The query returns a fixed value 6 MEMory STATe CATalog Syntax MEMory STATe CATalog Description Queries the state files stored in the internal non volatile memory of the instrument Remarks The internal non volatile memory of the instrument provides 6 storage locations for stat...

Страница 41: ...rnal non volatile memory of the instrument Parameter Name Type Range Default 0 1 2 3 4 5 Discrete 0 1 2 3 4 5 None name ASCII String Refer to Remarks Null Remarks The internal non volatile memory of the instrument provides 6 storage locations for state files The parameters 0 to 5 represent the state files in the specified storage locations respectively The parameter name is the specified filename ...

Страница 42: ...ept the parameters that will not be affected by factory default settings refer to Factory Setting at power on Return Format The query returns ON or OFF Example MEM STAT RECall AUTO ON Recalls the last system configuration at the next power on MEM STAT RECall AUTO Queries the configuration of the instrument at next power on The query returns ON MEMory STATe VALid Syntax MEMory STATe VALid 0 1 2 3 4...

Страница 43: ...IRectory MMEMory MOVE MMEMory RDIRectory MMEMory RDIRectory MMEMory STORe ALL MMEMory STORe DATA MMEMory STORe STATe MMEMory CATalog ALL Syntax MMEMory CATalog ALL folder Description Queries all the files and folders in the current directory Parameter Name Type Range Default folder ASCII String Valid directory None Remarks The parameter folder is a valid directory in the internal or external memor...

Страница 44: ...he parameter folder is a valid directory in the internal or external memory It is a string enclosed by double quotation marks For example C and D Rigol Return Format The query returns a string in the following format space used space available size property name wherein the units of the space used and space available are byte the property of the file is empty and the size is the space that it occu...

Страница 45: ...MMEMory CDIRectory directory_name MMEMory CDIRectory Description Sets the current directory Queries the current directory Parameter Name Type Range Default directory_name ASCII String Valid directory C Remarks The parameter directory_name is a valid directory in the internal or external memory It is a string enclosed by double quotation marks For example C and D Rigol Return Format The query retur...

Страница 46: ... the filename of the file or the folder name of the empty folder under the current directory It is a string enclosed by double quotation marks For example Rigol1 RAF Example Assume that the current directory is D MMEM DEL D Rigol1 RAF Deletes the file Rigol1 RAF from the external memory D MMEMory DOWNload FNAMe MMEMory DOWNload DATA Syntax MMEMory DOWNload FNAMe file_name MMEMory DOWNload DATA bin...

Страница 47: ...me that the current directory is D MMEM LOAD Rigol0 RSF Loads the file Rigol0 RSF from the external memory D MMEMory LOAD DATA Syntax MMEMory LOAD DATA n file_name Description Load the specified arbitrary waveform file and sequence file RAF from the current directory into the specified channel Parameter Name Type Range Default n Discrete 1 2 1 file_name ASCII String The filename of the arbitrary w...

Страница 48: ...tory dir_name Description Creates a folder in the current directory with a specified name Parameter Name Type Range Default dir_name ASCII String Refer to Remarks None Remarks The parameter dir_name is a string enclosed by double quotation marks The content in the double quotation marks is the name of the folder to be created and its length cannot exceed 7 characters The name can be composed of Ch...

Страница 49: ...Rigol RSF D Rigol Moves the file Rigol RSF from the external memory directory to D Rigol i g the Rigol folder in Disk D MMEMory RDIRectory Syntax MMEMory RDIRectory Description Queries the available disk drive Return Format The query returns a string in the form of the number of disk drives available the names of the disk drives available For example 1 D denotes that there is one disk drive availa...

Страница 50: ...M STOR R00 RSF Stores the current instrument state into disk D in the state file form with the filename R00 RSF MMEMory STORe DATA Syntax MMEMory STORe DATA n file_name Description Stores the arbitrary waveform or sequence data of the specified channel into the current directory in arbitrary waveform file or sequence file RAF form with the specified filename Parameter Name Type Range Default n Dis...

Страница 51: ...ter file_name is a string enclosed by double quotation marks and the content in the double quotation marks is the filename of the specified state file including the file type suffixed with RSF The length of the filename cannot exceed 7 characters It can be composed of Chinese characters English characters and numbers Wherein one Chinese character is counted as 2 characters Example Assume that the ...

Страница 52: ...f the output connector of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 ohms Integer 1 Ω to 10 kΩ 50 Ω Remarks When n is omitted the commands set and query the related parameters of CH1 by default The parameter ohms denotes setting the output impedance of the output connector of the specified channel to a specified value within the range available The parameter INFinity ...

Страница 53: ...related parameters of CH1 by default The output polarity of the channel refers to that the signal on the output connector of the channel is normal NORMal output or inverted INVerted output In the normal mode the instrument outputs the normal waveform in the inverted mode the waveform is inverted and then output Waveform is inverted relative to the offset voltage After the waveform is inverted any ...

Страница 54: ...ity of the sync signal refers to that the sync signal on the rear panel Sync Ext Mod Trig FSK connector of the specified channel is normal POSitive output or inverted NEGative output In the normal mode the instrument outputs the normal sync signal in the inverted mode the sync signal is inverted and then output After the waveform is inverted OUTPut n POLarity the sync signal related to the wavefor...

Страница 55: ...ync signal output from the rear panel CH1 Sync Ext Mod Trig FSK connector and returns ON OUTP1 SYNC OFF Disables to output the sync signal from the rear panel CH1 Sync Ext Mod Trig FSK connector OUTP1 SYNC Queries the output status of the sync signal output from the rear panel CH1 Sync Ext Mod Trig FSK connector and returns OFF OUTPut n VOLLimit HIGH Syntax OUTPut n VOLLimit HIGH amp OUTPut n VOLL...

Страница 56: ...el limit value is 1 V Example OUTP1 VOLLimit LOW Sets the low level amplitude of voltage limit of CH1 to 1 V OUTP1 VOLLimit LOW Queries the low level amplitude of voltage limit of CH1 and returns 1 000000E 00 OUTPut n VOLLimit STATe Syntax OUTPut n VOLLimit STATe ON 1 OFF 0 OUTPut n VOLLimit STATe Description Enables or disables the voltage limit Queries the on off status of the voltage limit Para...

Страница 57: ...lected the instrument will detect whether a valid external clock signal is input from the rear panel 10MHz In Out connector If no valid clock source is detected a prompt message No valid external clock is detected is displayed and the clock source will be switched to Internal You can send the ROSCillator SOURce CURRent command to query the currently selected clock source You can synchronize two or...

Страница 58: ...Rent Description Queries the currently selected system clock source Remarks You can send the ROSCillator SOURce command to set the system clock source to Internal or External Return Format The query returns INT or EXT Example ROSC SOUR CURR Queries the currently selected system clock source and the query returns INT ...

Страница 59: ... μHz to 15 MHz 1 μHz to 20 MHz 1 μHz to 25 MHz Ramp 1 μHz to 1 5 MHz 1 μHz to 1 5 MHz 1 μHz to 2 MHz Pulse 1 μHz to 15 MHz 1 μHz to 20 MHz 1 μHz to 25 MHz Harmonic 1 μHz to 20 MHz 1 μHz to 20 MHz 1 μHz to 25 MHz Noise 3 dB 100 MHz Bandwidth Arbitrary Waveform 1 μHz to 15 MHz 1 μHz to 20 MHz 1 μHz to 20 MHz Dual tone 1 μHz to 20 MHz 1 μHz to 20 MHz 1 μHz to 20 MHz PRBS 2 kbps to 40 Mbps 2 kbps to 5...

Страница 60: ...itude offset and phase of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 Remarks When SOURce n or n is omitted the command queries the related parameters of CH1 by default The channel waveform types and the corresponding returned waveform names are as shown in the table below Sine Square Ramp Pulse Noise DC Arbitrary Waveform SIN SQU RAMP PULSE NOISE DC USER Return Format...

Страница 61: ...emarks 0 Vdc Remarks When SOURce n or n is omitted the system sets the related parameters of CH1 by default frequency and amplitude are not applicable to the DC function but a placeholder must be specified for them The range of offset is limited by the Impedance OUTPut n IMPedance or OUTPut n LOAD setting Example SOUR1 APPL DC 1 1 2 Sets the waveform of CH1 to DC with 2 Vdc offset SOURce n APPLy D...

Страница 62: ...ameters of CH1 by default The range of amp is limited by the Impedance OUTPut n IMPedance or OUTPut n LOAD and Frequency Period settings The range of offset is limited by the Impedance and Amplitude High Level settings When this command is executed the instrument uses the default harmonic parameters or the harmonic parameters set at the last time You can send the SOURce n HARMonic series commands ...

Страница 63: ...to 60 Mbps 2 kbps amp Real Refer to Remarks 5 Vpp offset Real Refer to Remarks 0 Vdc Remarks When SOURce n or n is omitted the system sets the related parameters of CH1 by default The range of amp is limited by the Impedance OUTPut n IMPedance or OUTPut n LOAD and Frequency Period settings The range of offset is limited by the Impedance and Amplitude High Level settings Example SOUR1 APPL PRBS 100...

Страница 64: ...litude offset and phase Parameter Name Type Range Default n Discrete 1 2 1 freq Real 1 μHz to 2 MHz 1 kHz amp Real Refer to Remarks 5 Vpp offset Real Refer to Remarks 0 Vdc phase Real 0 to 360 0 Remarks When SOURce n or n is omitted the system sets the related parameters of CH1 by default The range of amp is limited by the Impedance OUTPut n IMPedance or OUTPut n LOAD and Frequency Period settings...

Страница 65: ...1 2 1 sample_rate Real 2 kSa s to 60 MSa s 1 MSa s amplitude Real Refer to Remarks 5 Vpp offset Real Refer to Remarks 0 Vdc phase Real 0 to 360 0 Remarks When SOURce n or n is omitted the system sets the related parameters of CH1 by default This command only selects and sets the sequence waveform parameters of the channel The range of amplitude is limited by the Impedance OUTPut n IMPedance or OUT...

Страница 66: ... the specified channel to Square with the specified frequency amplitude offset and phase Parameter Name Type Range Default n Discrete 1 2 1 freq Real 1 μHz to 25 MHz 1 kHz amp Real Refer to Remarks 5 Vpp offset Real Refer to Remarks 0 Vdc phase Real 0 to 360 0 Remarks When SOURce n or n is omitted the system sets the related parameters of CH1 by default The range of amp is limited by the Impedance...

Страница 67: ... LOAD and Frequency Period settings The range of the offset is limited by the Impedance and Amplitude High Level settings Example SOUR1 APPL USER 100 1 2 3 Sets the waveform of CH1 to Arbitrary with 100 Hz frequency 1 Vpp amplitude 2 Vdc offset and 3 start phase SOURce BURSt Command List SOURce n BURSt GATE POLarity SOURce n BURSt INTernal PERiod SOURce n BURSt MODE SOURce n BURSt NCYCles SOURce n...

Страница 68: ...L NORM Sets the gate polarity of the gated burst of CH1 to NORM SOUR1 BURS GATE POL Queries the gate polarity of the gated burst of CH1 and the query returns NORM SOURce n BURSt INTernal PERiod Syntax SOURce n BURSt INTernal PERiod period MINimum MAXimum SOURce n BURSt INTernal PERiod MINimum MAXimum Description Sets the internal burst period of the N cycle burst of the specified channel Queries t...

Страница 69: ...urst Internal External or Manual trigger source could be selected Besides you can also set the parameters of Burst Period internal trigger Delay Trig In external trigger and Trig Out internal and manual trigger In Infinite mode the cycle number of the waveform is set as an infinite value The generator outputs a continuous waveform after receiving a trigger signal The waveform functions that suppor...

Страница 70: ...ctive digits For example 1 000000E 01 the number of cycles is 10 Example SOUR1 BURS NCYC 10 Sets the number of cycles in the N cycle burst of CH1 to 10 SOUR1 BURS NCYC Queries the number of cycles in the N cycle burst of CH1 and the query returns 1 000000E 01 SOURce n BURSt PHASe Syntax SOURce n BURSt PHASe phase MINimum MAXimum SOURce n BURSt PHASe MINimum MAXimum Description Sets the start phase...

Страница 71: ... parameters of CH1 by default Return Format The query returns ON or OFF Example SOUR1 BURS ON Enables the burst function of CH1 SOUR1 BURS Queries the on off status of the Burst function of CH1 and the query returns ON SOURce n BURSt TDELay Syntax SOURce n BURSt TDELay delay MINimum MAXimum SOURce n BURSt TDELay MINimum MAXimum Description Sets the burst delay of the N cycle burst or Infinite burs...

Страница 72: ...on the specified channel Parameter Name Type Range Default n Discrete 1 2 1 Remarks This command is only applicable to the burst mode in manual trigger SOURce n BURSt TRIGger SOURce If the output of the corresponding channel is not enabled OUTPut n STATe the trigger will be ignored When SOURce n or n is omitted the system generates a trigger on CH1 by default Example SOUR1 BURS TRIG Triggers a bur...

Страница 73: ... BURSt MODE supports the internal trigger When internal trigger is selected the frequency of the N cycle burst is determined by the Burst Period SOURce n BURSt INTernal PERiod You can also set the rear panel Sync Ext Mod Trig FSK connector of the corresponding channel to output the trigger signal with the specified edge type rising edge or falling edge or disable the trigger output signal SOURce n...

Страница 74: ...ected you can set the instrument to output the trigger signal with the specified edge rising edge or falling edge from the corresponding rear panel Sync Ext Mod Trig FSK connector or disable the trigger output signal When SOURce n or n is omitted the system sets the related parameters of CH1 by default Return Format The query returns POS NEG or OFF Example SOUR BURS TRIG TRIGO POS Sets the edge ty...

Страница 75: ...nter frequency of the sweep function of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 frequency Real Refer to Remarks 550 Hz Remarks You can set the sweep boundaries via the center frequency and frequency span SOURce n FREQuency SPAN Different sweep waveforms correspond to different center frequency and frequency span ranges Besides the center frequency and frequency spa...

Страница 76: ...uency deviation mode the frequencies of CH1 and CH2 have a certain deviation relation The parameter relations are FCH2 FCH1 FDev the reference source is CH1 FCH1 FCH2 FDev the reference source is CH2 Wherein FCH1 is the frequency of CH1 FCH2 is the frequency of CH2 and FDev is the frequency deviation Frequency ratio mode the frequencies of CH1 and CH2 have a certain ratio relation The parameter re...

Страница 77: ...ratio after the frequency coupling function is enabled When the frequency coupling function is disabled if the current frequency coupling mode is frequency deviation sending this command can set the frequency deviation if the current frequency coupling mode is frequency ratio sending this command can set the frequency coupling mode to frequency deviation and set the frequency deviation You can als...

Страница 78: ... COUP RAT Queries the frequency ratio in the frequency coupling and the query returns 1 001230E 02 SOURce n FREQuency COUPle STATe Syntax SOURce n FREQuency COUPle STATe ON 1 OFF 0 SOURce n FREQuency COUPle STATe Description Enables or disables the frequency coupling function Queries the on off status of the frequency coupling function Parameter Name Type Range Default n Discrete 1 2 1 ON 1 OFF 0 ...

Страница 79: ...ower limit the waveform frequency of the specified channel will be set to the frequency upper limit or lower limit When the waveform type of the specified channel is changed the instrument still uses the frequency if the frequency is valid for the new waveform type the instrument will display a prompt message and set the frequency to the frequency upper limit of the new waveform type automatically...

Страница 80: ... by default The start frequency stop frequency center frequency and frequency span fulfills the following equations stop start center F F F start stop span F F F Wherein center F center frequency span F frequency span start F start frequency stop F stop frequency The generator will restart to sweep from the specified start frequency after the frequency span is modified In large scale sweep the amp...

Страница 81: ...and output from the specified Start Frequency after the start frequency is modified In large scale sweep the amplitude characteristic of the output signal might change Return Format The query returns the start frequency in scientific notation with 7 effective digits For example 1 000000E 02 the start frequency is 100 Hz Example SOUR1 FREQ STAR 100 Sets the start frequency of the sweep function of ...

Страница 82: ...sweep the amplitude characteristic of the output signal might change Return Format The query returns the stop frequency in scientific notation with 7 effective digits For example 9 000000E 02 the stop frequency is 900 Hz Example SOUR1 FREQ STOP 900 Sets the stop frequency of the sweep function of CH1 to 900 Hz SOUR1 FREQ STOP Queries the stop frequency of the sweep function of CH1 and the query re...

Страница 83: ...s the center frequency of the dual tone signal of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 frequency Real Refer to Remarks 1 kHz Remarks When SOURce n or n is omitted the system sets the related parameters of CH1 by default The center frequency frequency 1 and frequency 2 satisfy the following relations 2 2 1 F F Fcenter Wherein center F center frequency 1 F frequen...

Страница 84: ... of CH1 to 500 Hz SOUR1 FUNC DUALT FREQ1 Queries the frequency 1 of the dual tone signal of CH1 and the query returns 5 000000E 02 SOURce n FUNCtion DUALTone FREQ2 Syntax SOURce n FUNCtion DUALTone FREQ2 frequency MINimum MAXimum SOURce n FUNCtion DUALTone FREQ2 Description Sets Frequency 2 of the dual tone signal of the specified channel Queries Frequency 2 of the dual tone signal of the specifie...

Страница 85: ...query returns the offset frequency in scientific notation with 7 effective digits For example 2 000000E 03 the offset frequency is 2 kHz Example SOUR1 FUNC DUALT OFFSETF 2000 Sets the offset frequency of the dual tone signal of CH1 to 2 kHz SOUR1 FUNC DUALT OFFSETF Queries the offset frequency of the dual tone signal of CH1 and the query returns 2 000000E 03 SOURce n FUNCtion PRBS BRATe Syntax SOU...

Страница 86: ...o PRBS9 SOUR1 FUNC PRBS DATA Queries the PRBS data type of CH1 and the query returns PN9 SOURce n FUNCtion PULSe DCYCle Syntax SOURce n FUNCtion PULSe DCYCle percent MINimum MAXimum SOURce n FUNCtion PULSe DCYCle MINimum MAXimum Description Sets the pulse duty cycle of the specified channel Queries the pulse duty cycle of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 per...

Страница 87: ...ge Default n Discrete 1 2 1 seconds Real 40 ns to 1 Ms 1 ms Remarks When SOURce n or n is omitted the system sets the related parameters of CH1 by default When the waveform type of the specified channel is changed SOURce n APPLy the instrument still uses the period if the period is valid for the new waveform type the instrument displays a prompt message and sets the period to the period lower limi...

Страница 88: ... pulse rise time of the specified channel Queries the pulse rise time of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 seconds Real 10 ns to 0 625 pulse width 20 ns Remarks The rise time is defined as the time required for the pulse amplitude to rise from 10 to 90 When SOURce n or n is omitted the system sets the related parameters of CH1 by default The range of the rise...

Страница 89: ...ery returns 3 500000E 08 SOURce n FUNCtion PULSe WIDTh Syntax SOURce n FUNCtion PULSe WIDTh seconds MINimum MAXimum SOURce n FUNCtion PULSe WIDTh MINimum MAXimum Description Sets the pulse width of the specified channel Queries the pulse width of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 seconds Real 16 ns to 999 999 982 118 590 6 ks 500 μs Remarks Pulse width is def...

Страница 90: ...ed parameters of CH1 by default Return Format The query returns the symmetry in scientific notation with 7 effective digits For example 5 500000E 01 the Ramp symmetry is 55 Example SOUR1 FUNC RAMP SYMM 55 Sets the Ramp symmetry of CH1 to 55 SOUR1 FUNC RAMP SYMM Queries the Ramp symmetry of CH1 and the query returns 5 500000E 01 SOURce n FUNCtion RS232 BAUDrate Syntax SOURce n FUNCtion RS232 BAUDra...

Страница 91: ...s of CH1 by default Return Format The query returns NONE ODD or EVEN Example SOUR1 FUNC RS232 CHECKB ODD Sets the RS232 check bit of CH1 to ODD SOUR1 FUNC RS232 CHECKB Queries the RS232 check bit of CH1 and the query returns ODD SOURce n FUNCtion RS232 DATA Syntax SOURce n FUNCtion RS232 DATA value MINimum MAXimum SOURce n FUNCtion RS232 DATA Description Sets the RS232 data of the specified channe...

Страница 92: ...TAB 7 Sets the RS232 data bit of CH1 to 7 SOUR1 FUNC RS232 DATAB Queries the RS232 data bit of CH1 and the query returns 7 SOURce n FUNCtion RS232 STOPBit Syntax SOURce n FUNCtion RS232 STOPBit 1 1 5 2 SOURce n FUNCtion RS232 STOPBit Description Sets the RS232 stop bits of the specified channel Queries the RS232 stop bits of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 ...

Страница 93: ...or example 5 000000E 07 the edge time is 0 5 μs Example SOUR1 FUNC SEQ EDGET 0 0000005 Sets the edge time of the sequence waveform of CH1 to 0 5 μs SOUR1 FUNC SEQ EDGET Queries the edge time of the sequence waveform of CH1 and the query returns 5 000000E 07 SOURce n FUNCtion SEQuence FILTer Syntax SOURce n FUNCtion SEQuence FILTer SMOOth STEP INSErt SOURce n FUNCtion SEQuence FILTer Description Se...

Страница 94: ...nce of CH1 to 2 SOUR1 FUNC SQU PER Queries the waveform period of the number 1 in Sequence of CH1 and the query returns 2 SOURce n FUNCtion SEQuence SRATe Syntax SOURce n FUNCtion SEQuence SRATe sample_rate MINimum MAXimum SOURce n FUNCtion SEQuence SRATe Description Sets the sample rate of the Sequence of the specified channel Queries the sample rate of the Sequence of the specified channel Param...

Страница 95: ... in Sequence of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 num Discrete 1 2 3 4 5 6 7 8 1 wavename Discrete Refer to Remarks SINusoid Remarks When SOURce n or n is omitted the system sets the related parameters of CH1 by default The parameter name can be various basic waveforms harmonics and arbitrary waves Its range is SINusoid SQUare RAMP PULSe NOISe USER HARMonic C...

Страница 96: ... default The parameter name can be various basic waveforms harmonics and arbitrary waveforms Its range is SINusoid SQUare RAMP PULSe NOISe USER HARMonic DC KAISER ROUNDPM SINC NEGRAMP ATTALT AMPALT STAIRDN STAIRUP STAIRUD CPULSE PPULSE NPULSE TRAPEZIA ROUNDHALF ABSSINE ABSSINEHALF SINETRA SINEVER EXPRISE EXPFALL TAN COT SQRT X2DATA GAUSS HAVERSINE LORENTZ DIRICHLET GAUSSPULSE AIRY CARDIAC QUAKE GA...

Страница 97: ... sets the related parameters of CH1 by default Return Format The query returns the Square duty cycle in scientific notation with 7 effective digits For example 4 500000E 01 the Square duty cycle is 45 Example SOUR1 FUNC SQU DCYC 45 Sets the Square duty cycle of CH1 to 45 SOUR1 FUNC SQU DCYC Queries the Square duty cycle of CH1 and the query returns 4 500000E 01 SOURce n FUNCtion SQUare PERiod Synt...

Страница 98: ...on Sets the amplitude of the specified order of harmonic in the harmonic function of the specified channel Queries the amplitude of the specified order of harmonic in the harmonic function of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 sn Integer 2 to 8 2 value Real 0 Vpp to the amplitude upper limit of the specified channel 1 2647 Vpp Remarks When SOURce n or n is omi...

Страница 99: ... Format The query returns the highest order of harmonic in scientific notation with 7 effective digits For example 3 000000E 00 the highest order of harmonic is 3 Example SOUR1 HARM ORDE 3 Sets the highest order of harmonic that CH1 can output to 3 SOUR1 HARM ORDE Queries the highest order of harmonic that CH1 can output and the query returns 3 000000E 00 SOURce n HARMonic PHASe Syntax SOURce n HA...

Страница 100: ...ce n HARMonic AMPL and phase SOURce n HARMonic PHASe When SOURce n or n is omitted the system sets the related parameters of CH1 by default Return Format The query returns ON or OFF Example SOUR1 HARM ON Enables the harmonic function of CH1 SOUR1 HARM Queries the on off status of the harmonic function of CH1 and the query returns ON SOURce n HARMonic TYPe Syntax SOURce n HARMonic TYPe EVEN ODD ALL...

Страница 101: ...URce n HARMonic USER Syntax SOURce n HARMonic USER user SOURce n HARMonic USER Description Sets the user defined harmonic output of the specified channel Queries the user defined harmonic output of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 user ASCII String X0000000 to X11111111 X0000000 Remarks In the user defined harmonic SOURce n HARMonic TYPe users can define the...

Страница 102: ...l change to low level at the marker frequency point If the set marker frequency is not equal to the value at the sweep point the sync signal will change to low level at the sweep point which is closest to this marker frequency When SOURce n or n is omitted the system sets the related parameters of CH1 by default The range of frequency is limited by the Start Frequency SOURce n FREQuency STARt and ...

Страница 103: ...o high level at the start of each sweep When the Marker function is disabled the sync signal will change to low level at the center frequency point When the Marker function is enabled the sync signal changes to low level at the specified marker frequency point When SOURce n or n is omitted the system sets the related parameters of CH1 by default Return Format The query returns ON or OFF Example SO...

Страница 104: ... connector For example if the modulation depth is set to 100 the output amplitude will be the maximum when the modulating signal is 5 V and the minimum when the modulating signal is 5 V Return Format The query returns the AM modulation depth in scientific notation with 7 effective digits For example 5 000000E 01 the AM modulation depth is 50 Example SOUR1 AM 50 Sets the AM modulation depth of CH1 ...

Страница 105: ...SOURce n MOD AM INTernal FREQuency frequency MINimum MAXimum SOURce n MOD AM INTernal FREQuency MINimum MAXimum Description Sets the AM modulation frequency of the specified channel Queries the AM modulation frequency of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 frequency Real 2 mHz to 1 MHz 100 Hz Remarks This command is only applicable to the internal modulation so...

Страница 106: ...eturns SQU SOURce n MOD AM SOURce Syntax SOURce n MOD AM SOURce INTernal EXTernal SOURce n MOD AM SOURce Description Sets the AM modulation source of the specified channel to internal INTernal or external EXTernal modulation source Queries the AM modulation source of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 INTernal EXTernal Discrete INTernal EXTernal INTernal Remar...

Страница 107: ...form The AM carrier waveform could be Sine Square Ramp or Arbitrary waveform The default is Sine Pulse Noise and DC cannot be used as carrier waveform The different settings of various parameters e g frequency amplitude offset and start phase of the carrier waveform will affect the output AM modulated waveform When SOURce n or n is omitted the system sets the related parameters of CH1 by default I...

Страница 108: ...tude between two preset amplitudes the carrier amplitude and modulation amplitude When SOURce n or n is omitted the system sets the related parameters of CH1 by default Return Format The query returns the ASK modulation amplitude in scientific notation with 7 effective digits For example 1 000000E 00 the AM modulation amplitude is 1 Vpp Example SOUR1 ASK AMPL 1 Sets the ASK modulation amplitude of...

Страница 109: ...n or n is omitted the system sets the related parameters of CH1 by default In the internal modulation SOURce n MOD ASKey SOURce set the polarity to Positive and the generator will output an amplitude whichever is smaller between the carrier amplitude and modulating amplitude SOURce n MOD ASKey AMPLitude when the modulating waveform is a logic low level It will output an amplitude whichever is grea...

Страница 110: ... from controlling AM FM PM modulations externally While controlling the ASK modulation you can set the polarity SOURce n MOD ASKey POLarity When SOURce n or n is omitted the system sets the related parameters of CH1 by default Return Format The query returns INT or EXT Example SOUR1 ASK SOUR EXT Sets the ASK modulation source of CH1 to external modulation source SOUR1 ASK SOUR Queries the ASK modu...

Страница 111: ...iation MINimum MAXimum SOURce n MOD FM DEViation MINimum MAXimum Description Sets the FM frequency deviation of the specified channel Queries the FM frequency deviation of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 deviation Real Refer to Remarks 1 kHz Remarks When SOURce n or n is omitted the system sets the related parameters of CH1 by default Frequency deviation is...

Страница 112: ... returns 1 000000E 02 SOURce n MOD FM INTernal FREQuency Syntax SOURce n MOD FM INTernal FREQuency frequency MINimum MAXimum SOURce n MOD FM INTernal FREQuency MINimum MAXimum Description Sets the FM modulation frequency of the specified channel Queries the FM modulation frequency of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 frequency Real 2 mHz to 1 MHz 100 Hz Remar...

Страница 113: ...M modulation waveform of CH1 and the query returns SQU SOURce n MOD FM SOURce Syntax SOURce n MOD FM SOURce INTernal EXTernal SOURce n MOD FM SOURce Description Sets the FM modulation source of the specified channel to internal INTernal or external EXTernal modulation source Queries the FM modulation source of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 INTernal EXTern...

Страница 114: ... the transient voltage of the modulating waveform The FM carrier waveform can be Sine Square Ramp or Arbitrary waveform The default is Sine Pulse Noise and DC cannot be used as carrier waveform The different settings of various parameters e g frequency amplitude offset and start phase of the carrier waveform will affect the output FM modulated waveform When SOURce n or n is omitted the system sets...

Страница 115: ...or shifts its output frequency between two preset frequencies the carrier frequency and the hop frequency When SOURce n or n is omitted the system sets the related parameters of CH1 by default Return Format The query returns the FSK hop frequency in scientific notation with 7 effective digits For example 5 000000E 03 the FSK hop frequency is 5 kHz Example SOUR1 FSK 5000 Sets the FSK hop frequency ...

Страница 116: ...on polarity of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 POSitive NEGative Discrete POSitive NEGative POSitive Remarks When SOURce n or n is omitted the system sets the related parameters of CH1 by default In the internal modulation SOURce n MOD FSKey SOURce set the polarity to Positive and the generator will output the carrier frequency when the modulating waveform ...

Страница 117: ...lly is different from controlling AM FM PM modulations externally While controlling the FSK modulation you can set the polarity SOURce n MOD FSKey POLarity When SOURce n or n is omitted the system sets the related parameters of CH1 by default Return Format The query returns INT or EXT Example SOUR1 FSK SOUR EXT Sets the FSK modulation source of CH1 to external modulation source SOUR1 FSK SOUR Quer...

Страница 118: ...OURce SOURce n MOD PM STATe SOURce n MOD PM DEViation Syntax SOURce n MOD PM DEViation deviation MINimum MAXimum SOURce n MOD PM DEViation MINimum MAXimum Description Sets the PM phase deviation of the specified channel Queries the PM phase deviation of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 deviation Real 0 to 360 90 Remarks When SOURce n or n is omitted the syst...

Страница 119: ...tion with 7 effective digits For example 1 500000E 02 the PM modulation frequency is 150 Hz Example SOUR1 PM INT FREQ 150 Sets the PM modulation frequency of CH1 to 150 Hz SOUR1 PM INT FREQ Queries the PM modulation frequency of CH1 and the query returns 1 500000E 02 SOURce n MOD PM INTernal FUNCtion Syntax SOURce n MOD PM INTernal FUNCtion SINusoid SQUare TRIangle RAMP NRAMp NOISe USER SOURce n M...

Страница 120: ... source When the internal modulation source is selected the modulation waveform can be SINusoid SQUare TRIangle RAMP NRAMp NOISe or USER The default is SINusoid NOISe can be used as the modulation waveform but cannot be used as carrier waveform When the external source is selected the generator receives the external modulating signal from the rear panel Sync Ext Mod Trig FSK connector At this time...

Страница 121: ...ers e g frequency amplitude and offset of the carrier waveform will affect the output PM modulated waveform When SOURce n or n is omitted the system sets the related parameters of CH1 by default If the sweep function SOURce n SWEep STATe or burst function SOURce n BURSt STATe is currently enabled it will be disabled automatically when the modulation function is enabled If the harmonic function is ...

Страница 122: ... modulation rate in scientific notation with 7 effective digits For example 1 500000E 02 the PSK modulation rate is 150 Hz Example SOUR1 PSK INT RATE 150 Sets the PSK modulation rate of CH1 to 150 Hz SOUR1 PSK INT RATE Queries the PSK modulation rate of CH1 and the query returns 1 500000E 02 SOURce n MOD PSKey PHASe Syntax SOURce n MOD PSKey PHASe phase MINimum MAXimum SOURce n MOD PSKey PHASe MIN...

Страница 123: ...g phase SOURce n MOD PSKey PHASe when the modulating waveform amplitude is a logic high level The situation is the opposite when the polarity is set to Negative In the external modulation SOURce n MOD PSKey SOURce set the polarity to Positive and the generator will output the carrier phase when the external input signal is a logic low level It will output the modulating phase SOURce n MOD PSKey PH...

Страница 124: ...e ON 1 OFF 0 SOURce n MOD PSKey STATe Description Enables or disables the PSK modulation function of the specified channel Queries the on off status of the PSK modulation function of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 ON 1 OFF 0 Bool ON 1 OFF 0 OFF Remarks PSK Phase Shift Keying the signal generator shifts the output phase between two preset phases the carrier...

Страница 125: ...e from the original pulse duty cycle expressed in When SOURce n or n is omitted the system sets the related parameters of CH1 by default Duty cycle deviation is limited by the minimum duty cycle and current edge time setting The duty cycle deviation cannot exceed the current pulse duty cycle If Duty is currently selected in the pulse of the specified channel Duty Dev is displayed in the interface ...

Страница 126: ...e PWM modulation function is enabled if Width is currently selected in the pulse of the specified channel Width Dev is displayed in the interface when the PWM modulation function is enabled Return Format The query returns the PWM width deviation in scientific notation with 7 effective digits For example 1 000000E 04 the PWM width deviation is 100 us i g 0 0001 s Example SOUR1 PWM 0 0001 Sets the P...

Страница 127: ...INusoid SQUare TRIangle RAM P NRAMp NOISe USER Discrete SINusoid SQUare TRIangle RAMP NR AMp NOISe USER SINusoid Remarks This command is only applicable to the internal modulation source SOURce n MOD PWM SOURce When SOURce n or n is omitted the system sets the related parameters of CH1 by default SQUare 50 duty cycle TRIangle 50 symmetry RAMP 100 symmetry NRAMp 0 symmetry USER the arbitrary wavefo...

Страница 128: ...eturns INT or EXT Example SOUR1 PWM SOUR EXT Sets the PWM modulation source of CH1 to external modulation source SOUR1 PWM SOUR Queries the PWM modulation source of CH1 and the query returns EXT SOURce n MOD PWM STATe Syntax SOURce n MOD PWM STATe ON 1 OFF 0 SOURce n MOD PWM STATe Description Enables or disables the PWM modulation function of the specified channel Queries the on off status of the ...

Страница 129: ...ation function of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 ON 1 OFF 0 Bool ON 1 OFF 0 OFF Remarks When SOURce n or n is omitted the system sets the related parameters of CH1 by default If the sweep function SOURce n SWEep STATe or burst function SOURce n BURSt STATe is currently enabled it will be disabled automatically when the modulation function is enabled If the...

Страница 130: ...ge of the modulating waveform PM Phase Modulation the phase of the carrier waveform changes with the transient voltage of the modulating waveform ASK Amplitude Shift Keying the signal generator shifts the output amplitude between two preset amplitudes the carrier amplitude and modulation amplitude FSK Frequency Shift Keying the signal generator shifts the output frequency between two preset freque...

Страница 131: ...fferent models and different waveforms of DG900 series refer to Table 2 1 If the period in the command is smaller than the corresponding period lower limit the system sets the waveform period of the specified channel to the corresponding period lower limit When the waveform type of the specified channel is changed SOURce n APPLy the instrument still uses the period if the period is valid for the n...

Страница 132: ...ase lower limit the system sets the waveform start phase of the specified channel to the corresponding start phase lower limit Return Format The query returns the waveform start phase in scientific notation with 7 effective digits For example 1 000000E 01 the waveform start phase is 10 Example SOUR1 PHAS 10 Sets the start phase of CH1 to 10 SOUR1 PHAS Queries the start phase of CH1 and the query r...

Страница 133: ...e WIDTh takes up in the whole pulse period SOURce n FUNCtion PULSe PERiod Pulse duty cycle and pulse width are correlative Modifying either of them pulse duty cycle or pulse width will automatically affect the other The range of the pulse duty cycle is limited by the minimum pulse width and pulse period for the ranges of the minimum pulse width and pulse period please refer to the Signal Character...

Страница 134: ...xample 3 500000E 08 the pulse rise time is 35 ns Example SOUR1 PULS TRAN 0 000000035 Sets the pulse rise time of CH1 to 35 ns SOUR1 PULS TRAN Queries the pulse rise time of CH1 and the query returns 3 500000E 08 SOURce n PULSe TRANsition TRAiling Syntax SOURce n PULSe TRANsition TRAiling seconds MINimum MAXimum SOURce n PULSe TRANsition TRAiling MINimum MAXimum Description Sets the pulse fall time...

Страница 135: ...the pulse width is limited by the minimum pulse width and pulse period for the ranges of the minimum pulse width and pulse period please refer to the Signal Characteristics of the Specifications in DG900 Datasheet The actual range of the pulse width is min min 2 w pulse width w P P P P Wherein width P pulse width min w P minimum pulse width pulse P pulse period When SOURce n or n is omitted the sy...

Страница 136: ...0 SOUR1 SUM AMPL Queries the sum ratio of the waveform combine function of CH1 and the query returns 1 000000E 01 SOURce n SUM INTernal FREQuency Syntax SOURce n SUM INTernal FREQuency frequency MAXimum MINimum SOURce n SUM INTernal FREQuency MINimum MAXimum Description Sets the sum frequency of the waveform combine function of the specified channel Queries the sum frequency of the waveform combin...

Страница 137: ...FUNC SQU Sets the sum source of the waveform combine function of CH1 to Square SOUR1 SUM INT FUNC Queries the sum source of the waveform combine function of CH1 and the query returns SQU SOURce n SUM STATe Syntax SOURce n SUM STATe ON 1 OFF 0 SOURce n SUM STATe Description Enables or disables the waveform combine function of the specified channel Queries the on off status of the waveform combine f...

Страница 138: ...e 1 2 1 seconds Real 0 s to 500 s 0 s Remarks Start hold is the duration that the output signal outputs with the Start Frequency SOURce n FREQuency STARt after the sweep starts After the start hold time expires the generator will continue outputting with varied frequencies according to the current sweep type When SOURce n or n is omitted the system sets the related parameters of CH1 by default The...

Страница 139: ...time in scientific notation with 7 effective digits For example 1 000000E 00 the stop hold time is 1 s Example SOUR1 SWE HTIM 1 Sets the stop hold time of the sweep function of CH1 to 1 s SOUR1 SWE HTIM Queries the stop hold time of the sweep function of CH1 and the query returns 1 000000E 00 SOURce n SWEep RTIMe Syntax SOURce n SWEep RTIMe seconds MINimum MAXimum SOURce n SWEep RTIMe MINimum MAXi...

Страница 140: ...OURce n FREQuency STARt Stop Frequency SOURce n FREQuency STOP and Sweep Time SOURce n SWEep TIME A straight line is displayed on the waveform on the screen indicating that the output frequency varies linearly In Log Sweep type the output frequency of the instrument varies in a logarithmic fashion that is the output frequency changes in the way of octave per second or decade per second The variati...

Страница 141: ...nd Noise basic waveforms for Sine Square Ramp and Arbitrary waveform When SOURce n or n is omitted the system sets the related parameters of CH1 by default If the modulation function SOURce n MOD STATe or pulse function SOURce n BURSt STATe is currently enabled it will be disabled automatically when the sweep function is enabled If the harmonic function SOURce n HARMonic STATe is currently enabled...

Страница 142: ...p TIME MINimum MAXimum Description Sets the sweep time of the specified channel Queries the sweep time of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 seconds Real 1 ms to 500 s 1 s Remarks Sweep time sets the time required for the instrument to sweep from the start frequency SOURce n FREQuency STARt to stop frequency SOURce n FREQuency STOP When SOURce n or n is omitte...

Страница 143: ...r Falling NEGative Queries the edge type of the trigger input signal of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 POSitive NEGative Discrete POSitive NEGative POSitive Remarks Sets the edge type of the trigger input signal i g selects to trigger on the rising edge or falling edge of the trigger input signal This command is only applicable to the external trigger SOUR...

Страница 144: ... hold SOURce n SWEep HTIMe STARt and stop hold time SOURce n SWEep HTIMe STOP In the External trigger the signal generator receives the trigger signal input from the rear panel Sync Ext Mod Trig FSK connector of the specified channel Once it receives a TTL pulse SOURce n SWEep TRIGger SLOPe with a specified polarity a sweep is initiated In the Manual trigger the instrument initiates a sweep on the...

Страница 145: ...END CON denotes that there is data package following this existing data package END denotes that this is the last data package and the data transmission finishes data denotes the binary data to be downloaded The length of the data ranges from 8 pts 16Bytes to 16 kpts 32kBytes data denotes the binary data to be downloaded The length of the data ranges from 16Bytes 8pts to 32kBytes 16kpts data is a ...

Страница 146: ...nverted the track function has been enabled The instrument copies the various parameters and states except the channel output state of CH1 to CH2 automatically When the parameters or states of CH1 are modified the corresponding parameters or states of CH2 except the channel output state will be adjusted to the same values or states automatically At this time CH2 if channels are currently enabled o...

Страница 147: ... on off status of the amplitude coupling function and the query returns ON SOURce n VOLTage LEVel IMMediate AMPLitude Syntax SOURce n VOLTage LEVel IMMediate AMPLitude amplitude MINimum MAXimum SOURce n VOLTage LEVel IMMediate AMPLitude MINimum MAXimum Description Sets the waveform amplitude of the specified channel Queries the waveform amplitude of the specified channel Parameter Name Type Range ...

Страница 148: ...level value of the waveform of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 voltage Real Refer to Remarks 2 5 Vpp Remarks When SOURce n or n is omitted the system sets the related parameters of CH1 by default You can also use the Amplitude SOURce n VOLTage LEVel IMMediate AMPLitude and Offset SOURce n VOLTage LEVel IMMediate OFFSet to set the high level and low level Hi...

Страница 149: ...hannel Parameter Name Type Range Default n Discrete 1 2 1 voltage Real Refer to Remarks 0 Vdc Remarks When SOURce n or n is omitted the system sets the related parameters of CH1 by default The range of the DC offset voltage is limited by Impedance OUTPut n IMPedance or OUTPut n LOAD Frequency SOURce n FREQuency FIXed and Amplitude SOURce n VOLTage LEVel IMMediate AMPLitude settings If the offset v...

Страница 150: ...eak peak value Vrms is the unit for root mean square value and dBm is the unit of the absolute power value of the signal For different waveforms the relation between Vpp and Vrms is different Take Sine as an example The conversion relations between Vpp and Vrms fulfills the equation Vrms Vpp 2 2 dBm and Vrms fulfills the equation 001 0 1 lg 10 2 W R Vrms dBm Wherein R represents the channel output...

Страница 151: ...and List SYSTem BEEPer IMMediate SYSTem BEEPer STATe SYSTem CHANnel CURrent SYSTem CHANnel NUMber SYSTem COMMunicate GPIB SELF ADDRess SYSTem COMMunicate LAN APPLy SYSTem COMMunicate LAN AUTOip STATe SYSTem COMMunicate LAN CONTrol SYSTem COMMunicate LAN DHCP STATe SYSTem COMMunicate LAN DNS SYSTem COMMunicate LAN GATEway SYSTem COMMunicate LAN IPADdress SYSTem COMMunicate LAN SMASk SYSTem COMMunic...

Страница 152: ...Queries the on off status of the beeper Parameter Name Type Range Default ON 1 OFF 0 Bool ON 1 OFF 0 ON Remarks When the beeper is enabled a beep is generated when an error occurs during front panel operation or remote operation Return Format The query returns ON or OFF Example SYST BEEP STAT 1 Turns on the beeper SYST BEEP STAT Queries the on off status of the beeper and the query returns ON SYST...

Страница 153: ...icate GPIB SELF ADDRess integer SYSTem COMMunicate GPIB SELF ADDRess Description Sets the GPIB address of the instrument Queries the GPIB address of the instrument Parameter Name Type Range Default integer Integer 0 to 30 2 Remarks To use the GPIB interface please make sure that your PC has installed the GPIB card Connect the USB terminal of the USB GPIB interface converter to the USB HOST interfa...

Страница 154: ...N where the PC resides The instrument provides 3 IP configuration modes DHCP AutoIP and ManualIP In AutoIP mode the instrument will get the IP address ranging from 169 254 0 1 to 169 254 255 254 and the subnet mask 255 255 0 0 automatically according to the current network configuration If all the three IP configuration modes are set to On the priority of parameters configuration from high to low ...

Страница 155: ...e the DHCP server in the current network assigns the network parameters e g IP address for the signal generator If all the three IP configuration modes are set to On the priority of parameters configuration from high to low is DHCP AutoIP and ManualIP The three IP configuration modes cannot be set to Off at the same time After sending this command the new settings will only take effect when the SY...

Страница 156: ...ddress and the query returns 202 106 46 151 SYSTem COMMunicate LAN GATEway Syntax SYSTem COMMunicate LAN GATEway address SYSTem COMMunicate LAN GATEway Description Sets the default gateway Queries the default gateway Parameter Name Type Range Default address ASCII String Refer to Remarks None Remarks This command is only valid when the ManualIP configuration mode SYSTem COMMunicate LAN STATic STAT...

Страница 157: ...is executed to apply the current network parameters Return Format The query returns a string For example 192 168 1 88 Example SYST COMM LAN IPAD 192 168 1 88 Sets the IP address to 192 168 1 88 SYST COMM LAN IPAD Queries the IP address and the query returns 192 168 1 88 SYSTem COMMunicate LAN SMASk Syntax SYSTem COMMunicate LAN SMASk mask SYSTem COMMunicate LAN SMASk Description Sets the subnet ma...

Страница 158: ...ed by users If all the three IP configuration modes are set to On the priority of parameters configuration from high to low is DHCP AutoIP and ManualIP Therefore to enable the ManualIP mode set DHCP and AutoIP to Off The three IP configuration modes cannot be set to Off at the same time After sending this command the new settings will only take effect when the SYSTem COMMunicate LAN APPLy command ...

Страница 159: ... CH1 to CH2 SYSTem ERRor Syntax SYSTem ERRor Description Queries and clears an error message from the error queue Remarks The error will be cleared when you read the error queue You can also clear the error queue by using the CLS command or the RST command or by turning on off the instrument Return Format The query returns a string consisting of two parts separated by commas The first part is the ...

Страница 160: ...00 allows users to lock the specified key or knob on the front panel to avoid the danger caused by misoperation Return Format The query returns 1 or 0 Example SYST KLOC HOME 1 Locks the Home key on the front panel SYST KLOC HOME The query returns 1 SYST KLOC HOME OFF Unlocks the Home key on the front panel SYST KLOC HOME The query returns 0 SYSTem LANGuage Syntax SYSTem LANGuage ENGLish SCHinese S...

Страница 161: ...Syntax SYSTem POWeron DEFault LAST SYSTem POWeron Description Sets the power on state to Default DEFault or Last LAST Queries the power on state Parameter Name Type Range Default DEFault LAST Discrete DEFault LAST DEFault Remarks DEFault the instrument recalls the factory defaults except the parameters e g Language that will not be affected by factory default settings refer to Factory Setting at p...

Страница 162: ...le stored in the state file storage locations 1 in the internal memory of the instrument SYSTem PRESet RECall Syntax SYSTem PRESet RECall DEFault USER1 USER2 USER3 USER4 USER5 USER6 USER7 USER8 USER9 USER10 Description Restores the instrument to the default state DEFault or recalls the specified user stored state file USER1 to USER10 from the internal memory of the instrument Parameter Name Type R...

Страница 163: ...atus then the query returns the current system status name For example Default User2 SYSTem ROSCillator SOURce Syntax SYSTem ROSCillator SOURce INTernal EXTernal SYSTem ROSCillator SOURce Description Sets the system clock source to internal source INTernal or external source EXTernal Queries the system clock source type Parameter Name Type Range Default INTernal EXTernal Discrete INTernal EXTernal...

Страница 164: ...tiple instruments Divide the 10MHz clock source of a Generator Internal clock into multiple channels and then connect them to the 10MHz In Out connectors of other generators External clock respectively and finally set the output frequencies of all the generators to a same value to realize synchronization among multiple instruments Return Format The query returns INT or EXT Example SYST ROSC SOUR I...

Страница 165: ...n the generator receives the trigger signal to the time when it starts to output the N Cycle or Infinite burst For the N cycle burst or Infinite burst in the external trigger or manual trigger mode SOURce n BURSt TRIGger SOURce the range of delay is 0 s to 100 s For the N cycle burst in the internal trigger mode the range of delay is from 0 s to 2us cycle waveform burst N P P and its range should ...

Страница 166: ... or Falling NEGative Queries the edge type of the trigger input signal of the specified channel Parameter Name Type Range Default n Discrete 1 2 1 POSitive NEGative Discrete POSitive NEGative POSitive Remarks This command is only applicable to the burst mode SOURce n BURSt STATe N cycle Infinite or Gated or sweep output SOURce n SWEep STATe in external trigger TRIGger n SOURce In the External trig...

Страница 167: ...In the External trigger the signal generator receives the trigger signal input from the rear panel Sync Ext Mod Trig FSK connector Once it receives a TTL pulse with a specified polarity a burst output N cycle Infinite or Gated or sweep output is initiated You can specify the edge type of the trigger input signal TRIGger n SLOPe The N cycle Infinite and the sweep mode all support the manual trigger...

Страница 168: ......

Страница 169: ...in this chapter please select the desired communication interface USB LAN or GPIB and make correct connections refer to descriptions in Build Remote Communication In addition you have to install Ultra Sigma or other PC software that can be used to send commands 3 In each instance every command is followed by contents enclosed by two slashes and They are the descriptions of the command and not part...

Страница 170: ...ommunication works normally 2 SOUR1 FUNC SIN Sets the waveform of CH1 to Sine 3 SOUR1 FREQ 500 Sets the waveform frequency of CH1 to 500 Hz 4 SOUR1 VOLT 2 5 Sets the waveform amplitude of CH1 to 2 5 Vpp 5 SOUR1 VOLT OFFS 1 Sets the offset voltage of CH1 to 1 Vdc 6 SOUR1 PHAS 90 Sets the start phase of CH1 to 90 7 OUTP1 ON Enables the output of CH1 To Output the Arbitrary Waveform Requirement Use t...

Страница 171: ... HARM AMPL 4 1 Sets the amplitude of the fourth order of harmonic of CH1 to 1 Vpp 9 SOUR1 HARM PHAS 4 50 Sets the phase of the fourth order of harmonic of CH1 to 50 10 OUTP1 ON Enables the output of CH1 To Output AM Modulated Waveform Requirement Use the SCPI commands to realize the following functions Output AM modulated waveform from the front panel output connector of CH1 set the carrier wavefo...

Страница 172: ...the return time to 0 1 s the start frequency to 100 Hz and the stop frequency to 1 kHz enable the frequency mark function and set the marker frequency to 500 Hz the start hold to 0 1 s the stop hold to 0 1 s the trigger source to manual and the edge type of the trigger output signal to rising edge Method 1 IDN Queries the ID string of the signal generator to test whether the remote communication w...

Страница 173: ... of the N cycle burst of CH1 to 0 1 s 7 SOUR1 BURS TRIG SOUR INT Sets the trigger source of the burst mode of CH1 to Internal 8 SOUR1 BURS TRIG TRIGO NEG Sets the edge type of the trigger output signal in the burst mode of CH1 to Falling edge 9 SOUR1 BURS TDEL 0 01 Sets the burst delay of the N cycle burst of CH1 to 0 01 s 10 OUTP1 ON Enables the output of CH1 11 SOUR1 BURS TRIG Triggers a burst o...

Страница 174: ...EVE 0 1 Sets the trigger level of the frequency counter to 0 1 V 7 COUN COUP AC Sets the coupling mode of the input signal to AC 8 COUN HF ON Enables the high frequency rejection function of the frequency counter 9 COUN RUN Sets the operating status of the frequency counter to RUN ...

Страница 175: ...ough their bus lines NI VISA enables you to communicate with the instrument in the same way without considering the interface type of the instrument such as GPIB USB LAN Ethernet or RS232 The instruments that communicate with NI VISA through various interfaces are called Resources The VISA descriptor i g resource name describes the accurate name and location of the VISA resource Before programming...

Страница 176: ...USB cable to connect the signal generator to the PC via the USB DEVICE interface on the rear panel of the signal generator You can also use LAN or GPIB to remotely communicate with the PC 3 After the signal generator is properly connected to the PC connect the signal generator to power source and turn it on 4 The Found New Hardware Wizard dialog box will be displayed and please install the USB Tes...

Страница 177: ... file 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 USB ID into a cell of the Excel file Click the Developer menu and select the Visual Basic option to open the Microsoft Visual Basic 4 Select Too...

Страница 178: ...Dim viDevice As Long Dim viErr As Long Dim cmdStr As String Dim idnStr As String 128 Dim ret As Long Turn on the device and the device resource descriptor is in CELLS 1 2 of SHEET1 viErr visa viOpenDefaultRM viDefRm viErr visa viOpen viDefRm Sheet1 Cells 1 2 0 5000 viDevice Send request read the data and the return value is in CELLS 2 2 of SHEET1 cmdStr IDN viErr visa viWrite viDevice cmdStr Len c...

Страница 179: ...em and put it into the Excel cell At this time the Assign Macro dialog box is displayed select Sheet1 QueryIdn and click OK The default name of the button is Button1 Right click the button and select Edit Text in the pop up menu to change the button name to IDN 7 Click the IDN button inserted into the Excel file in the last step to run the program and the device information is returned ...

Страница 180: ...o E DG900_Demo_Matlab 2 Click File New Blank M File in the Matlab interface to create an empty M file 3 Add the following codes to the M file DG900 visa ni USB0 0x1AB1 0x0642 DG80000000001 INSTR create VISAobject fopen DG900 open a created VISA object fprintf DG900 SOURce1 APPLy Send a request query_CH1 fscanf DG900 Query data fclose DG900 close the VISA object display query_CH1 display the device...

Страница 181: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 7 ...

Страница 182: ...lized in this example search for the instrument address connect to the instrument send and read commands 1 Run LabVIEW 2009 and then create a VI file named DG900_Demo_LABVIEW 2 Add controls to the front panel interface including the Address field Command field and Return field the Connect button the Write button the Read button and the Exit button ...

Страница 183: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 9 3 Click Show Block Diagram under the Window menu to create an event structure ...

Страница 184: ...GOL Chapter 4 Programming Examples 4 10 DG900 Programming Guide 4 Add the events including connecting to the instrument write operation read operation and exit 1 Connect including error correction advice ...

Страница 185: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 11 ...

Страница 186: ...RIGOL Chapter 4 Programming Examples 4 12 DG900 Programming Guide 2 Write operation including error confirmation 3 Read operation including error processing ...

Страница 187: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 13 ...

Страница 188: ...face is displayed below Click the VISA resource name from the drop down list under Address and click Connect to connect the instrument Then input IDN in the Command field Click Write to write the command to the instrument If it is a query command click Read and then the query result will be displayed in the Return field ...

Страница 189: ...ck the Existing tab to search for the visa32 bas file from the include folder under the NI VISA installation path and add the file 3 Add two Command Button controls to represent CH1 and CH2 respectively Add two Label controls Label1 0 and Label1 1 to represent the status of the two channels respectively by default the Label control is gray when the channel is enabled it displays the corresponding ...

Страница 190: ...hes As Long Dim matches As String 200 Obtain the usb resource of visa Call viOpenDefaultRM defrm Call viFindRsrc defrm USB list nmatches matches Turn on the instrument Call viOpen defrm matches 0 0 vi Send a command to query the status of CH1 Call viVPrintf vi OUTP1 Chr 10 0 Acquire the status of CH1 Call viVScanf vi t strRes If strRes ON Then Send the setting command Call viVPrintf vi OUTP1 OFF C...

Страница 191: ... Call viClose vi Call viClose defrm 6 Run and view the results as shown in the figure below 1 Click the CH1 button to enable CH1 and the label above CH1 turns red 2 Click the CH2 button to enable CH2 and the label above CH2 turns blue The running result is as shown in the figure below ...

Страница 192: ...crosoft Visual C 6 0 Function realized in this example search for the instrument address connect to the instrument send and read commands 1 Run Microsoft Visual C 6 0 Create a MFC project based on a dialog box and name it DG900_Demo_VC 2 Click Project Settings and add visa32 lib in the Link tab in the pop up interface manually ...

Страница 193: ...ded here are related to the installation path of NI VISA on your PC By default NI VISA is installed under C Program Files IVI Foundation VISA Select Include files from the drop down list under Show directories for Double click the empty space under Directories to enter the specified path of Include files C Program Files IVI Foundation VISA WinNT include Click OK to close the dialog box ...

Страница 194: ... to enter the specified path of Library files C Program Files IVI Foundation VISA WinNT lib msc Click OK to close the dialog box 4 Add the Text Edit and Button controls and the layout is as shown in the figure below Address Command and Return are Text controls Connect Send and Read are Button controls the three Edit are Edit controls and the third Edit control is read only Read only ...

Страница 195: ...strWrite CString strAddr CString strContent write function ViSession defaultRM instr ViStatus status ViUInt32 retCount char SendBuf NULL char SendAddr NULL bool bWriteOK false CString str Change the address s data style from CString to char SendAddr strAddr GetBuffer strAddr GetLength strcpy SendAddr strAddr strAddr ReleaseBuffer Change the command s data style from CString to char SendBuf strCont...

Страница 196: ...ULL unsigned char RecBuf MAX_REC_SIZE bool bReadOK false CString str Change the address s data style from CString to char SendAddr strAddr GetBuffer strAddr GetLength strcpy SendAddr strAddr strAddr ReleaseBuffer memset RecBuf 0 MAX_REC_SIZE open the VISA instrument status viOpenDefaultRM defaultRM if status VI_SUCCESS Error Initializing VISA exiting AfxMessageBox No VISA instrument was opened ret...

Страница 197: ...r Initializing VISA exiting MessageBox No VISA instrument was opened return memset instrDesc 0 1000 Find resource status viFindRsrc defaultRM expr findList retcnt instrDesc for i 0 i retcnt i Get instrument name strSrc Format s instrDesc InstrWrite strSrc IDN Sleep 200 InstrRead strSrc strInstr If the instrument resource belongs to the DG series then jump out from the loop strInstr MakeUpper if st...

Страница 198: ...ation void CDG900_Demo_VCDlg OnRead TODO Add your control notification handler code here UpdateData true InstrRead m_strInstrAddr m_strResult UpdateData false 8 Run the program and enter the following operation interface Perform the following steps 1 Click the Connect button to search for the signal generator and connect it 2 Input IDN in the Command edit box 3 Click the Send button to send the co...

Страница 199: ...Chapter 4 Programming Examples RIGOL DG900 Programming Guide 4 25 ...

Страница 200: ......

Страница 201: ...erted Off Level Limit Off HighL Limit 0 V LowL Limit 0 V SyncState Off Sync Polarity Negative Freq Cpl Off FreqCplMode Deviation Freq Dev 0 μHz Freq Ratio 1 Ampl Cpl Off AmplCplMode Deviation Ampl Dev 0 Vpp Ampl Ratio 1 Phase Cpl Off PhaseCplMode Deviation Phase Dev 0 Phase Ratio 1 Trig Coupling Off Track Mode Off Combine Off Waveform Sine Freq 1 kHz Ratio 10 Basic Waveforms Frequency 1 kHz Amplit...

Страница 202: ...le Rate 1 MSa s Sequence Phase 0 Modulation AM Modulation Source Internal Mod Wave Sine Mod Freq 100 Hz Mod Depth 100 DSSC Off FM Modulation Source Internal Mod Wave Sine Mod Freq 100 Hz Freq Dev 1 kHz PM Modulation Source Internal Mod Wave Sine Mod Freq 100 Hz Phas Dev 90 ASK Modulation Source Internal Mod Rate 100 Hz Mod Ampl 2 Vpp Polarity Positive FSK Modulation Source Internal Mod Rate 100 Hz...

Страница 203: ...ated Polarity Positive Idle Level 1st Point Trigger Source Internal Trig Out Off Trig In RisEdge Delay 0 ns Interface Focus Items Freq Period Freq Ampl HighL Ampl Offset LowL Offset Duty Width Duty Start Center Start Stop Span Stop Default Channel CH1 Frequency Counter Meas Para Freq GateTime 100 ms Statistics Off Sensitivity Low Trig Level 0 V Coupling DC High Freq Rejection Off System Parameter ...

Страница 204: ...4 DG900 Programming Guide Screen Saver Off Brightness 100 Print Setting Location USB Storage Device Format PNG Interface GPIB 2 DHCP On default setting in LAN Auto IP On default setting in LAN Manual IP Off default setting in LAN ...

Страница 205: ...GOL 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 b...

Отзывы: