Home

AWG5000 & AWG7000 Series Arbitrary Waveform

image

Contents

1. ISF TDS TXT TXTS TXT10 TXT14 WFM JPAT TFW Examples MMEMORY IMPORT sine1024 sine1024 txt txt imports a waveform file named sine1024 whose file format is text with normalized analog value MMEMory IMPort PARameter FREQuency UPDate STATe This command sets or queries the FREQuency parameter which determines whether frequency is modified during waveform import If this value is set the sampling rate is automatically updated during waveform import Group Mass memory Syntax MMEMory IMPort PARameter FREOuency UPDate STATe state MMEMory IMPort PARameter FREQuency UPDate STATe Related Commands MMEMory IMPort AWG5000 and AWG7000 Series Programmer Manual 2 57 Command Descriptions Arguments Returns Examples lt state gt lt Boolean gt 0 indicates OFF 1 indicates ON At RST this returns 1 lt state gt MMEMORY IMPORT PARAMETER FREQUENCY UPDATE STATE 1 the instrument will automatically modify the sampling rate when importing the waveform data MMEMory IMPort PARameter LEVel UPDate CHANnel Group Syntax Related Commands Arguments Returns Examples 2 58 This command sets or queries the channel for which the amplitude and offset values will be updated during import NOTE Channel number starts from 1 for CH1 2 for CH2 Valid input depends on model number and interleave state This command is effective only when MMEMory IMPort PARameter LEVel UPDate STA
2. FUNCtion USER command Source AWG5000 and AWG7000 Series Programmer Manual 2 95 Command Descriptions Syntax Related Commands Arguments Returns Examples SRE Group Syntax Related Commands Arguments Returns Examples 2 96 SOURce n WAveform wfm name SOoURce n wAveform SOURce n FUNCtion USER lt wfm_name gt lt string gt The value of n indicates the channel number lt wfm_name gt SOURCE1 WAVEFORM SINE100 loads a predefined waveform called Sine100 into channell memory SOURCE1 WAVEFORM might return Sinel00 This command sets or gueries the bits in Service Reguest Enable register Status SRE lt NRl gt SRE CLS ESE ESR STB lt NR1 gt lt NRI gt SRE 48 sets the bits in the SRER to the binary value 00110000 SRE might return a value of 32 showing that the bits in the SRER have the binary value 00100000 AWG5000 and AWG7000 Series Programmer Manual Command Descriptions STATus OPERation CONDition Query Only Group Syntax Related Commands Returns This query returns the contents of the Operation Condition Register Note that the OCR is not used in the arbitrary waveform generator Status STATUS OPERation CONDition STATus OPERation ENABle STATus OPERation EVENt lt NRI gt STATus OPERation ENABle Group Syntax Related Commands Arguments Returns This command and
3. Syntax Related Commands Arguments Returns Examples Note that the frequency of the waveform output by the instrument is calculated as SamplingFreguency Output Frequency NumberOfPoints The minimum number of points in a waveform for the instrument is 1 Source SOURce 1 FREOuency Cw FIXed lt NR3 gt SOURce 1 FREOuency Cw FIXed SOURce n WAVeform AWGControl INTerleave STATe lt NR3 gt The value must be between 10 MHz to 10 GHz At RST this returns 1 2000000E 10 lt NR3 gt SOURCE1 FREQUENCY 10MHZ sets the frequency to 10 MHz SOURce 1 ROSCillator FREOuency Group Syntax Related Commands Arguments 2 78 This command selects the reference oscillator freguency Valid values are 10 MHz 20 MHz and 100 MHz This command is used when the Clock Source is Internal and Reference Input is External and External Reference Type is Fixed Source SOURce 1 ROSCillator FREOuency lt NR3 gt SOURce 1 ROSCillator FREOuency SOURce 1 ROSCillator SOURce SOURce 1 ROSCillator TYPE lt NR3 gt At RST this returns 10 MHz AWG5000 and AWG7000 Series Programmer Manual Returns Examples Command Descriptions lt NR3 gt SOURCE1 ROSCILLATOR FREQUENCY 10MHZ sets the reference oscillator source frequency to 10 MHz SOURCE1 ROSCILLATOR FREQUENCY might return 1 00000000E 7 SOURce 1 ROSCillator MULTiplier Group Syntax Related Commands Arg
4. Command Descriptions EVENt IMMediate EVENt IMPedance EVENt JTIMing EVENt LEVel EVENt POLarity EVENT IMMEDIATE generates the event signal This command and query sets or returns the impedance of the external event input Valid values are 50 ohm or 1 kohm Event EVENt IMPedance ohms EVENt IMPedance EVENt IMMediate EVENt JTIMing EVENt LEVel EVENt POLarity lt ohms gt lt NR3 gt Valid values are 50 ohm or kohm At RST this value is 1e3 ohm lt NR3 gt EVENT IMPEDANCE 50 sets the impedance to 50 ohms This command and guery sets or returns the jump timing Refer to the User Online Help for more information on jump timing Event EVENt JTIMing lt jump_type gt EVENt JTIMing 2 49 Command Descriptions Related Commands Arguments Returns Examples EVENt LEVel Group Syntax Related Commands Arguments Returns Examples EVENt POLarity 2 50 EVENt IMMediate EVENt IMPedance EVENt LEVel EVENt POLarity lt jump_type gt SYNChronous AS YNchronous SYNChronous indicates jump occurs immediately ASYNchronous indicates jump occurs after the signal generation is finished At RST this returns ASYNchronous SYNC ASYN EVENT JTIMING ASYNCHRONOUS sets the jump to asynchronous type This command and query sets or returns the event level Event EVENt LEVel level EVENt LEVel EVENt IMMediate EVENt IMPedance EVENt JTIMing EVENt POLarity
5. NA CALibration ALL 7 NA Calibration DIAGnoste DATA DIAGnosite lMMediate DlAGnostic SELect EVENt POL aritu INSTrument COUPIe SOURce NONE N N N N N MMEMory IMPort PARameter FREQuency UPDatel STATel 1 MMEMory IMPort PARameter LEVel LlPDiate CHANnell 1 MMEMory IMPort PARameter LE Vell UPDatell STATel 7 1 IDATa NONE Maximum sampling rate for non interleaved mode 0 NA C Instrument Mass Memor AWG5000 and AWG7000 Series Programmer Manual E 1 Appendix E Factory Initialization Settings OUTPut n Fil Ter LP4Ss FREQuencyl 3e37 INFinity OUTPutin STATel SEQuence ELEMent n GOTO INDex SEOuence ELEMent n GOTO STATe SEQuence ELEMentin JTAR get INDes SEDuence ELEMent n JTAR get TYPE SEQuence ELEMent n LOOP COUN SEQuence ELEMent n LOOP INFinite SEGQuence ELEMent n Tw Ai SEGQuence ELEMent n V AVeformin SEQuence JUMPLIMMediate SEGQuence LENGth selon Rmo m ku oz gt Source SOUR cel FREQuencyl Cw FlXed 10 GHz SULIRce 1 ROSCillator FREQuencyl 10 MHz SOLIRce 1 ROSCillator MLILTiplier SULIRce 1 ROSCillator SOLIRce INTernal SOUR cel ROSCillator TYPE Fixed SOUR ce n COMBine FEEDC um SOURce nIE DAC RESolution 8 SOURcel n E DEL sat ADJust Os SOURcel n E DEL av POINts points VOLTagel SOUIRce n F
6. lt NR3 gt At RST this returns 0 points lt NR3 gt 2 83 Command Descriptions Examples SOURCE1 DELAY POINTS 20 sets the analog output delay for channel 1 to 20 points SOURce n DlGital VOLTage LEVel lMMediate AMPLitude AWG5000 Series only Group Syntax Related Commands Arguments Returns Examples This command and query sets or returns the amplitude of digital output This command is available only for AWG500B and AWG5000C instruments with option 03 Source SOoURce n DIGital VoLTage LEVel IMMediate AMPLitude lt NR3 gt SoURnce n DIGital voLTage LEVel IMMediate AMPLitude SOURce n DIGital VOLTage LEVel MMediate HIGH SOURce n DIGital VOLTage LEVel IMMediate LOW SOURce n DIGital VOLTage LEVel IMMediate OFFSet NR3 The value of n indicates the channel number At RST this returns 1 Vy lt NR3 gt SOURCEL DIGITAL VOLTAGE LEVEL IMMEDIATE AMPLITUDE 1 4 sets the digital output amplitude level to 1 4 volts SOURce n DlGital VOLTage LEVel IMMediate HlGH AWG5000 Series only Group Syntax 2 84 This command and guery sets or returns the high digital output This command is available only for AWG5000B and AWG5000C instruments with option 03 Source SoURce n DIGital VoLTage LEVel IMMediate HIGH lt NR3 gt SOURce n DIGital VvoLTage LEVe1 IMMediate HIGH AWG5000 and AWG7000 Series Programmer Man
7. AWG5000C and AWG7000C with option 09 This command is provided for compatibility with the AWG400 500 600 700 series instruments The query form will return TABL when the instrument is in the Table Jump mode otherwise LOG will be returned Control AWGControl ENHanced SEOuence JMODe jump mode AWGControl ENHanced SEQuence JMODe lt jump_mode gt LOGic TABLe SOFTware LOGic or SOFTware activates Event Jump The jump target defined in the sequence definition will be the target of Event Jump TABLe activates Table Jump The Table Jump definition is used as the jump target At RST this returns LOGic lt jump_mode gt AWGCONTROL ENHANCED SEQUENCE JMODE TABLE sets the jump mode to Table AWGCONTROL ENHANCED SEQUENCE JMODE might return TABL if the instrument is in the Table Jump mode AWG5000 and AWG7000 Series Programmer Manual 2 31 Command Descriptions AWGControl EVENt DJUMp DEFine No Query Form Group Syntax Arguments Examples This command associates an event pattern with the jump target for Dynamic Jump The query returns the jump target associated to the specified lt event_pattern gt Control AwGControl EVENt DJUMp DEFine event pattern jump target AwGControl EVENt DJUMp DEFine event pattern event_pattern lt NRI gt The values ranges between 0 and 511 This parameter specifies the event pattern to make an event jump The event bits are mapped to the integer value
8. INT EXT SOURCE1 ROSCILLATOR SOURCE INTERNAL selects the internal clock source SOURce 1 ROSCillator TYPE Group Syntax Related Commands Arguments Returns 2 80 This command selects the type of the reference oscillator This parameter is valid only when Clock Source is Internal and Reference Source is External Source soURce 1 Roscillator TYPE FIXed VARiable SOURCe 1 ROSCil lator TYPE SOURce 1 ROSCillator FREQuency SOURce 1 ROSCillator SOURce FIXed VARiable FIXed Selects a reference source whose frequency is fixed to 10MHz 20MHz or 100MHz Select one of these freguencies using the SOURce 1 ROSCillator FREOuency command VARiable Selects a reference source whose frequency is not fixed At RST this returns FIXed FIXJVAR AWG5000 and AWG7000 Series Programmer Manual Examples Command Descriptions SOURCE1 ROSCILLATOR TYPE FIXED selects a fixed frequency external reference oscillator The frequency is fixed to 10 MHz 20 MHz or 100 MHz SOURce n COMBine FEED AWG5000 Series only Group Syntax Related Commands Arguments Returns Examples This command adds the signal from an external input to the output of the channel NOTE When the signal addition is enabled the return value is ESIG It is always in uppercase When setting the parameter either ESIGnal or ESIG can be specified While setting the parameter it is case insensiti
9. Syntax Related Commands Arguments Returns 2 54 None lt directory_name gt lt string gt lt directory_name gt MMEMORY CDIRECTORY AWG WORKO changes the current directory to AWG WORKO This command and query sets or returns block data to from the file in the current mass storage device NOTE The file is always transferred to the path mentioned along with the file name on the target If no path is specified with the file name the current directory is used When path contains only the file name current path is assumed This command has a limit of 650 000 000 bytes of data If this limit is insufficient consider the following alternatives B Use a more efficient file encoding WFM or PAT when sending data m Use instrument commands for direct control WLISt WAVeform DATA FREQ VOLT and so on m Use Ethernet ftp http or file sharing to transfer the file Mass memory MMEMOry DATA file name block data MMEMOry DATA file name MMEMory CDIRectory MMEMory MSIS file name block data Block data IEEE 488 2 data block AWG5000 and AWG7000 Series Programmer Manual Examples Command Descriptions file name string having file name and path MMEMORY DATA FILEI 4241024XXXXX loads data into the file FILEI MMEMory DELete No Guery Form Group Syntax Related Commands Arguments Examples This command deletes a file or directory from the i
10. Table 3 5 Command errors cont Error code Error message 171 Invalid expression 178 Expression data not allowed 180 Macro error 181 Invalid outside macro definition 183 Invalid inside macro definition 184 Macro parameter error Execution errors These error codes are returned when an error is detected during command execution Table 3 6 Execution errors Error code Error message 200 Execution error 201 Invalid while in local 202 Settings lost due to rtl 203 Command protected 210 Trigger error 211 Trigger ignored 212 Arm ignored 213 Init ignored 214 Trigger deadlock 215 Arm deadlock 220 Parameter error 221 Settings conflict 222 Data out of range 223 Too much data 224 Illegal parameter value 225 Out of memory 226 Lists not same length 230 Data corrupt or stale 231 Data questionable 232 Invalid format 233 Invalid version 240 Hardware error 241 Hardware missing AWG5000 and AWG7000 Series Programmer Manual 3 13 Messages and Codes Table 3 6 Execution errors cont Error code Error message 250 Mass storage error 251 Missing mass storage 252 Missing media 253 Corrupt media 254 Media full 255 Directory full 256 File name not found 257 File name error 258 Media protected 260 Expres
11. When a waveform is assigned to Subsequence SEOuence ELEMent n SUBSeguence lt subseg_name gt SEQuence ELEMent n SUBSequence All Sequence and Subsequence group commands lt subseq_name gt lt string gt lt subseq_name gt SEQUENCE ELEMENT10 SUBSEQUENCE MYTEST inserts the subsequence named mytest at array position 10 of the main sequence SEQUENCE ELEMENT10 SUBSEQUENCE might return mytest which indicates the sequence name SEGuence ELEMent n TWAit 2 70 Group Syntax This command and query sets or returns the wait trigger state for an element Send a trigger signal in one of the following ways m By using an external trigger signal B By pressing the Force Trigger button on the front panel m By sending the TRG remote command Seguence SEOuence ELEMent n TWAit lt Boolean gt SEOuence ELEMent n TWAit AWG5000 and AWG7000 Series Programmer Manual Related Commands Arguments Returns Examples Command Descriptions SEQuence LENGth lt wait_trigger_state gt lt Boolean gt 0 indicates OFF 1 indicates ON At RST this returns 0 In the OFF state the sequencer ignores trigger signals The value of lt n gt is an index number of sequence NOTE The instrument without option 08 always sets Wait Trigger On Trying to set the wait trigger state to off in an instrument without option 08 will cause an error lt NRI gt SEQUENCE ELEMENTL
12. lt file_name gt lt string gt lt msus gt mass storage unit specifier lt string gt AWGCONTROL SRESTORE Setupl Awg AWGControl SSAVe No Guery Form Group Syntax Related Commands 2 42 This command saves the arbitrary waveform generator s setting to a specified settings file The drive may be a local or a network drive If full path is not specified the file will be stored in the current path Control AWGControl SsAVe lt file_name gt lt msus gt AWGControl SREStore AWGControl SNA Me AWG5000 and AWG7000 Series Programmer Manual Arguments Examples Command Descriptions lt fi 1e_name gt lt string gt msus mass storage unit specifier lt string gt AWGCONTROL SSAVE my project awg setup x awg D will save the current setup to D NmyNprojectNawgNsetupNx awg AWGControl STOP IMMediate No Query Form Group Syntax Related Commands Examples CAL Query Only Group Syntax Related Commands Returns Examples This command stops the output of a waveform or a sequence Control AWGContro STOP IMMediate AWGControl RUN IMMediate AWGCONTROL STOP IMMEDIATE stops the output of a waveform This guery does an internal calibration of the arbitrary waveform generator and returns a status that indicates whether the calibration was completed successfully Calibration CAL CALibration ALL lt NRI gt 0 indicates no erro
13. that has been modified or integrated with other products when the effect of such modification or integration increases the time or difficulty of servicing the product THIS WARRANTY IS GIVEN BY TEKTRONIX WITH RESPECT TO THE PRODUCT IN LIEU OF ANY OTHER WARRANTIES EXPRESS OR IMPLIED TEKTRONIX AND ITS VENDORS DISCLAIM ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE TEKTRONIX RESPONSIBILITY TO REPAIR OR REPLACE DEFECTIVE PRODUCTS IS THE SOLE AND EXCLUSIVE REMEDY PROVIDED TO THE CUSTOMER FOR BREACH OF THIS WARRANTY TEKTRONIX AND ITS VENDORS WILL NOT BE LIABLE FOR ANY INDIRECT SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES IRRESPECTIVE OF WHETHER TEKTRONIX OR THE VENDOR HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES W2 15AUG04 Table of Contents Getting Started gerett e EE 1 1 Remote Conte ME 1 2 GPIB Parameters ge END IEU GU TEG FU ddd EE OE 1 3 IZA NParameters is ag UR AU GAA AD AAG EA MT ERE DO DINOD 1 4 Connecting to the Instrument using GPIB Y Y Y YY YY YY ARY RR sene me een 1 5 Setting Up GPIB Communication Y FYFYR YL RR FL me se eee ee see seen 1 6 Docurmentationl osii S LL ULT dE dU FUD DD YNG ODD 1 9 e UE EE 1 10 Syntax and Commands Command Syntax ettet t eR RIA IR EOD Ne iP eadem AEN ENNEN 2 1 Syntax e EE 2 1 Command and Query Structure 2 0 00 cece cece cee RR YR AR FF emen shes 2 1 Clearing the Instrument td ew DOG dad er td
14. 1 O SOURcel n DlGital VOLTage LEVelll lMMediate LOW 1 SOURce n l DIGiial VDLTage LEVellLlMMediate AMPLitudel SOLIRce n DIGital VOLTage LEVel IMMediate OFF Sed Ll JJ SOURce n I ENABle 1 SOURcelIn EFUNCtion USER P SOURce n l MARKer Tl2 DEL 3y v 1 AWG4O0 onl SOURceln MARKer 12 VOLT age LEVell date E AMPLitude H SOURee n EMARKeTIIZEVOLTagetLEVel IMMediate HIGH 7 v I AWG400 onl SOURce n l MARKer 1l2 VOLTaae LEVellLlMMediatelLOwWl 3 i AwG400 onl SOURce n l MARKer 1l2 VOLTage LEVellllMMediatel0FF5el _ _ H SOURcel n EPDELay HOLD SOURceIn EPHASe ADJust Lo i SOURcel n ESKEW D i SOURce n VOLTagel LEVell IMMediatel AMPLitude Y 1 SOLIRce n VOLT agel LE Vell IMMediate HIGH a SOURcel n I VOLTagel LEVell IMMediate LOW a SOLIRce n VOLT agel LEVelll IMMediate OFF Sed D H SOURceln WAVetorm 1 Subsequence i SEGuence ELEMent n SUBSeguence ll H SLISt NAME E WE i SLISt SIZE H SLISt SUBSequence DELete as H SLISt SUBSequence ELEMent n LOOP COUNt DL O H SLISt SUBSequence ELEMeni n WAVeform n ll SLISt SUBSeguence NEW Ooo i SLISt SUBSequence LENGth o i SLISt SUBSequence TSTamp EN H F 2 AWG5000 and AWG7000 Series Programmer Manual Appendix F Compatibility with Other Instruments A
15. E mi EVENCEIMMediate DO VENCLEVel EVENt POLaritu INSTrument COUPIe SOURce 11 MMEMory CATalog MMEMory CDIRectory H 3 yo me m Instrument Mass Memor MMEMoryIMPor i MMEMory IMPort PARameter FREQuency UPDatell STATel MMEMory IMPort PARameter LE Vel UPDate CHANnel MMEMory IMPort PARameter LEVell UPDatel STATe MMEMory IMPort PARameter LEVel UPDate TYPE MMEMor IMPortPARameterNORMalize 7 ii MMEMory IMPort PARameter RESampling FREQuenc MMEMory IMPort PARameter RESamplina STATe MMEMor MDIRectory i MMEMor MSIS NO3o AWG5000 and AWG7000 Series Programmer Manual C 1 Appendix C SCPI Conformance Information Group S SCPI 1999 0 Output JDUTPu n ESTATe H Sequence SEQuence ELEMent n GOTO INDex gegen SEQuence ELEMent n GOTO STATe SEQuence ELEMent n JTAR get INDexs SEQuence ELEMent n JTARget TY PE lu 4 SEQuence ELEMent n LOOP COUN li SEQuence ELEMent n LODP IMFinite SEGuence ELEMent n TWAi _ SEQuence ELEMent n wAVeform n Source SOLIRce 1 FREOuency Cw FlXed SOLIRce 1 ROSCillator FREDuency SOUR ce 1 ROSCillator UL Tiplier SOLIRce 1 ROSCillator SOLIRce SOUPce 1 ROSCillator TYPEC SOLIRce n DAC RESolution SOUR ce n FUN
16. LEVel IMMediate LOW lt NR3 gt SOURce n voLTage LEVel IMMediate LOW None lt NR3 gt The value of n indicates the channel number At RST this returns 0 5 V AWG5000 and AWG7000 Series Programmer Manual Returns Examples Command Descriptions lt NR3 gt SOURCEl1 VOLTAGE LOW 0 25 sets the channell low to 0 25 volts SOURce n VOLTage LEVel lMMediate OFFSet Group Syntax Related Commands Arguments Returns Examples This command and guery sets or returns the offset for the waveform associated with a channel The command is not available on instruments with Option 02 or Option 06 installed Source SOURce n voLTage LEVel IMMediate OFFSet lt NR3 gt SOURce n voLTage LEVel IMMediate OFFSet SOURce n VOLTage LEVel IMMediate HIGH SOURce n VOLTage LEVel IMMediate LOW AWGControl DOUTput n STATe NR3 The value of n indicates the channel number At RST this returns 0 5 V lt NR3 gt SOURCE1 VOLTAGE LEVEL IMMEDIATE OFFSET 0 5 sets the channel 1 offset to 0 5 V SOURce n WAVeform Group This command and query sets or returns the output waveform from the current waveform list for each channel when Run Mode is not Sequence However this command cannot be used to load a waveform stored in an AWG400 500 600 700 waveform or pattern file To load a waveform stored in an AWG400 500 600 700 waveform or pattern file use the SOURce n
17. MARKER1 DELAY might return 2 00000000E 011 indicating 20 ps SOURce n MARKer 1 2 VOLTage LEVel lMMediate AMPLitude 2 88 Group Syntax Related Commands This command sets the marker amplitude In the AWG7000 Series when the DAC resolution is changed to 10 bits marker output is not available However marker related parameters can be modified using SCPI commands Source SOURce n MARKer 1 2 voLTage LEVel IMMediate AMPLitude NR3 SOURce n MARKer 1 2 VOLTage LEVel IMMediate AMPLi tude SOURce n DAC RESolution AWG5000 and AWG7000 Series Programmer Manual Command Descriptions Arguments lt NR3 gt The value of n indicates the channel number At RST this returns 1 Vpp Returns lt NR3 gt Examples SOURCEL MARKER1 VOLTAGE AMPLITUDE O 5v sets the channell markerlamplitude to 0 5 volts SOURCE1 MARKERL VOLTAGE AMPLITUDE might return 0 5 volts SOURce n MARKer 1 2 VOLTage LEVel IMMediate HIGH This command sets the marker high level In the AWG7000 Series when DAC resolution is changed to 10 bits marker output is not available However marker related parameters can be modified using SCPI commands Refer to the User Online Help for the setting range of marker high and marker low Group Source Syntax SOURce n MARKer 1 2 VOLTage LEVel IMMediate HIGH lt NR3 gt SOURce n MARKer 1 2 VOLTage LEVel IMMediate HIGH Related Command
18. Status Byte Register SBR The Status Byte Register SBR is made up of 8 bits Bits 4 5 and 6 are defined in accordance with IEEE Std 488 2 1987 see the following figure and table These bits are used to monitor the output gueue SESR and service reguests The contents of this register are returned when the STB guery is used The following figure shows the bit values of the SBR 6 7 ROS 5 4 8 2 1 0 OSS 6 ESB MAV QSS EAV MSS The following table lists the SBR bit functions Table 3 1 SBR bit functions Bit Function 7 Operation Summary Status OSS 6 RQS Request Service MSS Master Summary Status When the instrument is accessed using the GPIB serial poll command this bit is called the Request Service ROS bit and indicates to the controller that a service request has occurred that the GPIB bus SRQ is LOW The ROS bit is cleared when the serial poll ends When the instrument is accessed using the STB query this bit is called the Master Summary Status MSS bit and indicates that the instrument has issued a service reguest for one or more reasons The MSS bit is never cleared to 0 by the STB query 5 Event Status Bit ESB This bit indicates whether or not a new event has occurred after the previous Standard Event Status Register SESR has been cleared or after an event readout has been performed 4 Message Available Bit MAV This bit indicates that a message has been placed in the o
19. The SH function controls the initiation and termination of data byte transfers Talker T T6 Basic Talker Serial Poll Unaddress if my listen address MLA No Talk Only mode Enables a device to send device dependent data over the interface This capability is available only when the device is addressed to talk and uses a one byte address AWG5000 and AWG7000 Series Programmer Manual Appendix B GPIB Interface Specifications Table B 1 GPIB interface function implementation cont Interface function Implemented subset Capability Description Listener L L4 Basic Listener Unaddress if my talk address MTA No Listen Only mode Enables a device to receive device dependent data over the interface This capability is available only when the device is addressed to listen and uses a one byte address Service Request SR SR1 Complete Enables a device to request service from the controller Remote Local RL RL1 Complete Enables a device to select between one of two sources for arbitrary waveform generator control It determines whether input information is controlled from the front panel local control or by GPIB commands remote control Parallel Poll PL PPO None Device Clear DC DC1 Complete Enables a device to be cleared or initialized either individually or as part of a group of devices Device Trigg
20. a Tek VISA GPIB compatible interface referred to as the virtual GPIB interface Refer to Documentation for information on related manuals and documents The programmer guide is divided into the following major topics books Getting Started This topic introduces you to the online help and provides basic information about setting up your instrument for remote control Command Syntax This topic provides an overview of the command syntax that you will use to communicate with the instrument and other general information about commands such as how commands and queries are constructed how to enter commands constructed mnemonics and argument types Command Groups This topic contains all the commands listed in functional groups Each group consists of an overview of the commands in that group and a table that lists all the commands and queries for that group Click a command in the listing to display a detailed description of the command Status and Events This topic discusses the status and event reporting system for the GPIB interface This system informs you of certain significant events that occur within the instrument Topics that are discussed include registers queues event handling sequences synchronization methods and messages that the instrument may return including error messages Appendices This topic contains miscellaneous information such as a table of the factory initialization default settings and GPIB interfa
21. a single command SOURCe EXTernal NEGative The longer version works equally well TRIGger SOURCE EXTernal TRIGger POLarity NEG 3 Never precede a star command with a semicolon or colon 4 When you concatenate queries the responses to all the queries are concatenated into a single response message For example if the high level of the markerl of channel one is 1 0 V and the low level of that is 0 0 V the concatenated query SOURCe1 MARKer VOLTage HIGH SOURCe1 MARKer VOLTage LOW will return the following 1 0 0 0 5 Set commands and queries may be concatenated in the same message For example AWGControl RMODe SEOuence SEOuence LENGth is a valid message that sets the run mode to Seguence The message then gueries the length of the seguence Concatenated commands and gueries are executed in the order received Here are some invalid concatenations B TRIGger SOURCe INTernal AWGControl RMODe TRIGgered no colon before AWGControl B TRIGger SOURCe INTernal TRIGger POLarity NEG extra colon before TRIGger SOURce INTernal POLarity NEG instead This documentation uses EOM end of message to represent a message terminator Table 2 3 Message terminator and meaning Symbol Meaning lt EOM gt Message terminator AWG5000 and AWG7000 Series Programmer Manual Parameter Types About MIN MAX Command Syntax For messages sent to the instrument the end of message terminator must be the END messag
22. and Size part of a waveform can be transferred at a time Very large waveforms can be transferred in chunks Waveform data is always transferred in the LSB first format The format of the transferred data depends on the waveform type If Size is omitted the length of waveform is assumed to be the value of the Size parameter Transferring large waveforms in chunks allows external programs to cancel the operation before it is completed The instrument supports two types of waveform data integer format and floating point format The integer format occupies two bytes per waveform data point Floating point waveform data points occupy five bytes So the total bytes will be five times the size of the waveform The first four bytes of each data point represent the floating point representation of the sample value and the fifth byte stores the marker data The marker data occupy the two most significant bits of the fifth byte The minimum size of the waveform must be 1 and the maximum size depends on the instrument model and configuration This command has a limit of 650 000 000 bytes of data If this limit is insufficient consider the following alternatives m Use a more efficient file encoding WFM or PAT when sending data m Use instrument commands for direct control WLISt WAVeform DATA FREQ VOLT and so on m Use Ethernet ftp http or file sharing to transfer the file Refer to the User Online Help AWG Reference gt Wav
23. as follows MSB LSB Event bits 8 76543210 jump_target lt NRI gt The values are 1 and 1 to maximum sequence length This parameter specifies the sequence index as the jump target If 1 is specified the event jump for the specified event pattern 1s cancelled At RST all definitions are cancelled AWGCONTROL EVENT DJUMP DEFINE 15 3 sets the jump target index to third sequence element for the event pattern 00001111 AWGCONTROL EVENT DJUMP DEFINE 15 might return 3 AWGControl EVENt JMODe Group Syntax Arguments 2 32 This command and query sets or returns the event jump mode Control AWGControl EVENt JMODe lt jump_mode gt AWGControl EVENt JMODe jump mode EJUMp DJUMp EJUMp sets the Jump Mode to Event Jump The jump targets defined in the sequence definition table will be used as the jump target In this mode the instrument behavior for the event jump is the same as that of the AWG7000 AWG5000 series AWG5000 and AWG7000 Series Programmer Manual Examples Command Descriptions DJUMp sets the Jump Mode to Dynamic Jump The Dynamic Jump target definitions are used as the jump target This is also known as Table Jump The jump command is always available in both the modes At RST this returns EJUMp AWGCONTROL EVENT JMODE DJUMP sets the Jump Mode to Dynamic Jump AWGControl EVENt SOFTware lMMediate No Query Form Group Syntax Related Commands Argumen
24. eR ENNEN Uw paved AGOR NATUR CODODD S EN 3 16 Operation Complete Event 3 16 Appendices Appendix A Character Charts ues GT FAAN WRAN Seed SE NENNEN EE A 1 Appendix B GPIB Interface Specifications 0 ccc cce ec ee Y YY YR YR eee e eee mene B 1 GPIB Interface Specifications csse eem ese meses esses B 1 Interface Functions on erm DDI IAU FU EEE Een Ed FFA HR NUNCA SEIS B 1 Interface Messages ove eoe HD EE pon Ee Es ULH Te FAD REC AR NE Zeg B 3 ii AWG5000 and AWG7000 Series Programmer Manual Table of Contents Appendix C SCPI Conformance Information 0 ce eee ec Y YE LEL Y Y mene C 1 Appendix D Raw Socket Specification YY YRR ene eene sese D 1 Appendix E Factory Initialization Senge E 1 Appendix F Compatibility with Other Instruments 9 9YY Y YR RY mme emen F 1 AWG5000 and AWG7000 Series Programmer Manual iii Table of Contents iv AWG5000 and AWG7000 Series Programmer Manual Getting Started Introduction This online programmer guide provides you with the information to use commands for remotely controlling your instrument With this information write computer programs that will perform functions such as setting the front panel controls selecting clock source setting sampling rate and exporting data for use in other programs In addition to the traditional GPIB electronic interface referred to as the physical GPIB interface your instrument is provided with
25. external event input and generate an event Table 2 12 Event group commands and their descriptions Command Description EVENI IMMediate Generates a forced event EVENt IMPedance Sets or returns the impedance of the external event input EVENt JTIMing Sets or returns the jump timing EVENt LEVel Sets or returns the event level EVENt POLarity Sets or returns the polarity of event signal Instrument Group Commands Use the following instrument commands to set or return the coupled state of instrument models Table 2 13 Instrument group commands and their descriptions Command Description INSTrument COUPIe SOURce Sets or returns the coupled state for a channel Mass Memory Group Commands Use the following mass memory commands to read write data from to hard disk on the instrument 2 14 AWG5000 and AWG7000 Series Programmer Manual Command Groups Table 2 14 Mass Memory group commands and their descriptions Command Description MMEMory CATalog Returns the current contents and state of the mass storage media MMEMory CDIRectory Sets or returns the current directory of the file system on the arbitrary waveform generator MMEMory DATA Sets or returns block data to from the file in the current mass storage device MMEMory DELete Deletes a file or directory from the instrument s hard disk MMEMory IMPort Imports a file into arbitrary waveform generator s setup as a waveform M
26. ms TRIGger SEGuence WVALue Group Syntax Related Commands This command and guery sets or returns the output data position of a waveform while the instrument is in the waiting for trigger state This is valid only when Run Mode is Triggered or Gated Trigger TRIGger SEOuence WVALue FIRSt LAST TRIGger SEOuence wVALue TRIGger SEOuence SOURce AWG5000 and AWG7000 Series Programmer Manual 2 107 Command Descriptions Arguments FIRSt specifies the first value of the waveform as the output level LAST specifies the last value of the waveform as the output level At RST this returns FIRSt Returns FIRS LAST Examples TRIGGER SEOUENCE WVALUE LAST selects the last value as the output level TST Query Only This query executes a self test and returns the results Group Diagnostic Syntax TST Related Commands DIAGnostic IMMediate DIAGnostic DATA DIAGnostic SELect Returns NRI O indicates no error Examples TST might return 330 indicating that the self test failed WAI No Query Form This command prevents the arbitrary waveform generator from executing further commands until all pending commands are executed Group Synchronization Syntax WAT Related Commands OPC 2 108 AWG5000 and AWG7000 Series Programmer Manual Examples Command Descriptions WAI prevents the execution of any commands or queries until all pending operations complete WLISt NAME Quer
27. only for the compatibility with AWG400 500 600 700 series In the response SEQ is returned even if ENH is specified in the command At RST this value is CONTinuous AWG5000 and AWG7000 Series Programmer Manual 2 37 Command Descriptions Returns Examples AWGControl RRATe Group Syntax Related Commands 2 38 CONT TRIG GAT SEQ AWGCONTROL RMODE TRIGGERED sets the instrument Run mode to Triggered AWGCONTROL RMODE returns CONT if the instrument is in continuous mode The following table lists the run modes and their descriptions Argument Description CONTinuous Selects the continuous mode which continuously outputs the waveform The external trigger including the FORCE TRIGGER button and the corresponding remote commands has no effect TRIGgered Sets the triggered mode which outputs one waveform cycle for each trigger GATed Selects the gated mode which continuously outputs the waveform or seguence as long as the trigger remains enabled The trigger remains effective as long as any of the following events occur m The FORCE TRIGGER button remains pressed m A valid external gate signal remains input W The TRIGger SEQuence IMMediate or TRIG command has been executed but an ABORt command has not yet been issued SEQuence Selects the sequence mode which outputs the waveform according to the sequence file specified with the SOURce FUNCtion USER command If the sequence file is not
28. query sets or returns the mask for the Operation Enable Register Note that the OENR is not used in the arbitrary waveform generator Status STATUS OPERation ENABle lt NRl gt STATUS OPERation ENABle STATus OPERation CONDition STATus OPERation EVENt lt NR1 gt lt NRI gt STATus OPERation EVENt Query Only Group This query returns the contents of Operation Event Register Note that the OEVR is not used in the arbitrary waveform generator Status AWG5000 and AWG7000 Series Programmer Manual 2 97 Command Descriptions Syntax STATus OPERation EVENt Related Commands STATus OPERation CONDition STATus OPERation ENABle Returns lt NRI gt STATus PRESet No Query Form This command sets the OENR and QENR registers Group Status Syntax STATus PRESet Related Commands None Examples STATUS PRESET resets the SCPI enable registers STATus QUEStionable CONDition Query Only This query returns the status of the Questionable Condition Register Note that the QCR is not used in the arbitrary waveform generator Group X Status Syntax sTATus QUEStionable CONDition Related Commands STATus QUEStionable ENABle STATus QUEStionable EVENt Returns NRI STATus QUEStionable ENABle This command and query sets or returns the mask for Questionable Enable Register 2 98 AWG5000 and AWG7000 Series Programmer Manual Group Syntax Related Commands Returns Command Descripti
29. specified settings file AWGControl STOP IMMediate Stops the output of a waveform or a sequence Calibration Group Commands Use the following calibration commands to calibrate the arbitrary waveform generator Table 2 9 Calibration group commands and their descriptions Command Description CAL Performs an internal calibration of the arbitrary waveform generator and returns the status CALibration ALL Performs a full calibration of the arbitrary waveform generator Diagnostic Group Commands Use the following diagnostic commands to control self test diagnostic routines 2 12 AWG5000 and AWG7000 Series Programmer Manual Command Groups Table 2 10 Diagnostic group commands and their descriptions Command Description DlAGnostic DATA Returns the result of a self test DIAGnostic lMMediate Executes selected self test routines DIAGnostic SELect Selects the self test routines IST Executes a self test AWG5000 and AWG7000 Series Programmer Manual 2 13 Command Groups Display Group Commands Use the following display commands to set the display state of waveform and sequence windows on the instrument Table 2 11 Display group commands and their descriptions Command Description DISPlay WINDow 1 2 STATe Minimizes or restores the sequence or waveform window of the arbitrary waveform generator Event Group Commands Use the following event commands to configure
30. to 8 bits 10 sets the DAC resolution to 10 bits The value of n indicates the channel number At RST this returns 8 lt NRI gt SOURCE1 DAC RESOLUTION 10 sets the channel 1 resolution to 10 bits SOURce n DELay ADJust 2 82 This command and guery sets or returns the delay in seconds of the analog output NOTE The effect of this command can be seen only in non seguence mode This command does not change the waveform display on the user interface AWG5000 and AWG7000 Series Programmer Manual Group Syntax Related Commands Arguments Returns Examples Command Descriptions Source SOURCe n DELay ADJust lt NR3 gt SOURce n DELay ADJust SOURce n DELay POINts SOURce n PDELay HOLD SOURce n PHASe ADJust lt NR3 gt At RST this returns 0 s lt NR3 gt SOURCE1 DELAY ADJUST 20PS sets the analog output delay for channel 1 to 20 picoseconds SOURce n DELay POINts Group Syntax Related Commands Arguments Returns AWG5000 and AWG7000 Series Programmer Manual This command and guery sets or returns the delay in points of the analog output NOTE The effect of this command can be seen only in non seguence mode This command does not change the waveform display on the user interface Source SOURce n DELay POINts lt NR3 gt SOURce n DELay POINts SOURce n DELay ADJust SOURce n PDELay HOLD SOURce n WAVeform
31. type of event occurs on the instrument the corresponding bit is set You cannot write to this register The ESER is an eight bit enable register that masks the SESR You can set this mask and take AND with the SESR to determine whether or not the ESB bit in the Status Byte Register SBR should be set As shown in the following figure when an event occurs a signal is sent to the SESR and the event is recorded in the Event Queue 1 If the corresponding bit in the ESER is also enabled 2 the ESB bit in the SBR is set to one 3 When output is sent to the Output Queue the MAV bit in the SBR is set to one 4 When a bit in the SBR is set to one and the corresponding bit in the SRER is enabled 5 the MSS bit in the SBR is set to one and a service request is generated 6 Standard Event Status Register f i I f 8 E Read wing ESR SESR PON ME EXE ODE NE OPE Event Cannot be written Bent gueue Event Status Enable Register it 6 5 PON SER Read using ESE Write using ESE Status Byte Register SBR Read using S TB Cannot be written From the Questionable status blod From the Operation 5 status block 7 5 5 4 3 2 OSS ESB MAV GSS EAV Service Request Enable Register SRER Read using SRE Write using SRE AWG5000 and AWG7000 Series Programmer Manual 3 9 Status and Event Reporting Synchronizing Execution All commands used in the arb
32. will provide a replacement in exchange for the defective product Parts modules and replacement products used by Tektronix for warranty work may be new or reconditioned to like new performance All replaced parts modules and products become the property of Tektronix In order to obtain service under this warranty Customer must notify Tektronix of the defect before the expiration of the warranty period and make suitable arrangements for the performance of service Customer shall be responsible for packaging and shipping the defective product to the service center designated by Tektronix with shipping charges prepaid Tektronix shall pay for the return of the product to Customer if the shipment is to a location within the country in which the Tektronix service center is located Customer shall be responsible for paying all shipping charges duties taxes and any other charges for products returned to any other locations This warranty shall not apply to any defect failure or damage caused by improper use or improper or inadequate maintenance and care Tektronix shall not be obligated to furnish service under this warranty a to repair damage resulting from attempts by personnel other than Tektronix representatives to install repair or service the product b to repair damage resulting from improper use or connection to incompatible equipment c to repair any damage or malfunction caused by the use of non Tektronix supplies or d to service a product
33. 30 1110 so RS gt N E 14 1E 30 2E 46 3E 62 4E 78 5E 7E 126 17 37 57 LA15 77 UNL 117 TA15 137 177 1111 SI US 1 0 iced F 15 1F als ar 3F 63 4F 79 5F 95 mr D I ve ADDRESSED UNIVERSAL LISTEN TALK SECONDARY ADDRESSES COMMANDS COMMANDS ADDRESSES ADDRESSES OR COMMANDS KEY als PPC GPIB code with ATN asserted Tektronix ENG lt ASCII character hex 5 z decimal IEEE STD 488 1 1987 AWG5000 and AWG7000 Series Programmer Manual ISO STD 646 2973 A 1 Appendix A Character Charts A 2 AWG5000 and AWG7000 Series Programmer Manual Appendix B GPIB Interface Specifications GPIB Interface Specifications Interface Functions This appendix lists and describes the GPIB functions and messages that the arbitrary waveform generator implements Interface Functions Interface Messages The following table lists the GPIB interface functions this instrument implements Each function is briefly described Table B 1 GPIB interface function implementation Interface function Implemented subset Capability Description Acceptor Handshake AH AH1 Complete Enables a listening device to coordinate data reception The AH function delays data transfer initiation or termination until the listening device is ready to receive the next data byte Source Handshake SH SH1 Complete Enables a talking device to support the coordination of data transfer
34. 51 43 67 53 83 63 99 73 115 4 spc 24 DCL 44 LA4 64 LA20 104 TA4 124 TA20 144 SM 164 SA20 0100 EOT DC4 4 D T d t 4 4 14 20 24 36 34 52 44 68 54 84 64 100 74 116 25 PPU 45 LA5 105 TA5 125 TA21 145 SAS 165 SA21 0101 NAK E U e u 15 20 25 37 45 69 55 85 65 101 75 117 6 26 46 LA6 66 LA22 106 TA6 126 TA22 146 SA6 166 SA22 0110 ACK SYN amp 6 F V f H 6 6 16 22 26 38 36 54 46 70 56 86 66 102 76 118 7 27 47 LA7 67 LA23 107 TAT 127 TA23 147 SA7 167 SA23 0 1 11 BEL ETB 7 G W g w 7 7 17 23 27 39 37 55 47 n 57 87 67 103 77 119 10 GET 30 SPE 50 LA8 70 LA24 110 TA8 130 TA24 150 SA8 170 SA24 1000 BS CAN 8 H X h x 8 8 18 24 28 40 38 56 48 72 58 88 68 104 78 120 11 TCT 31 SPD 51 LA9 71 LA25 111 TAS 131 TA25 151 SA9 171 SA25 1001 HT EM 9 l Y i y 9 9 19 25 29 41 39 57 49 73 59 89 69 105 79 121 12 32 52 Lato 72 LA26 112 Taio 132 172 SA26 1010 LF SUB J z A 10 1A 26 2A 42 3A 58 4A 74 5A 7A 122 18 33 53 LAM 73 LA27 113 TAI 133 173 SA27 1011 VT ESC K B 1 1B 27 2B 43 3B 59 4B 75 5B 7B 123 14 34 54 LA12 74 LA28 114 TAi2 134 174 SA28 1100 FF FS lt L i c 12 1C 28 2C 44 3C 60 4C 76 5C 7C 124 15 35 55 LA13 75 LA29 115 TAI3 135 175 SA29 1101 CR GS M D 13 1D 29 2D 45 3D 61 4D 77 5D 7D 125 16 36 56 LA14 76 LA30 116 TAi4 136 176 SA
35. 65 536 At RST this returns 1 The value of n is an index number of sequence lt NRI gt SEQUENCE ELEMENT LOOP COUNT 100 sets the element loop count to 100 SEQuence ELEMent n LOOP INFinite Group Syntax Related Commands Arguments Returns Examples This command and query sets or returns the infinite looping state for a sequence element When an infinite loop is set on an element the sequencer continuously executes that element To break the infinite loop either issue the AWGControl STOP IMMediate command or change the run mode to Continuous by using AWGControl RMODe command Sequence SEOuence ELEMent n LOOP INFinite lt loop_state gt SEQuence ELEMent n LOOP INFinite SEOuence ELEMent n LOOP COUNt SEQuence LENGth lt loop_state gt lt Boolean gt 0 indicates OFF 1 indicates ON At RST this returns 0 The value of lt n gt is an index number of sequence lt NRI gt SEQUENCE ELEMENTL LOOP INFINITE 1 sets the infinite flag to ON AWG5000 and AWG7000 Series Programmer Manual 2 69 Command Descriptions SEGuence ELEMent n SUBSeguence Group Syntax Related Commands Arguments Returns Examples This command and guery sets or returns the subseguence for a seguence element The AWG5012B AWG5000C and AWG7000C option 09 series instruments support Subseguence 6699 The subsequence name can be a null string this sequence the command returns
36. ALL parameter does not delete predefined waveforms SLIST SUBSEOUENCE DELETE MYTEST deletes the subsequence named mytest AWG5000 and AWG7000 Series Programmer Manual Command Descriptions SLISt SUBSeguence ELEMent n LOOP COUNt Group Syntax Arguments Returns Examples This command and guery sets or returns the loop count for the specified subseguence element The loop count is an integer Subseguence SLISt SUBSeguence ELEMent n LOOP COUNt subseq name NR1 SLISt SUBSequence ELEMent n LOOP COUNt subseq name lt NR1 gt At RST this returns 0 lt NRI gt SLIST SUBSEQUENCE ELEMENTS LOOP COUNT MYTEST 11 sets the loop count for the index element five of the subsequence named mytest to 11 SLIST SUBSEQUENCE ELEMENT5 LOOP COUNT MYTEST might return 11 which indicates that the loop count for the index element five of the sequence named mytest is set to 11 SLISt SUBSeguence ELEMent n WAVeform n Group Syntax This command and guery sets or returns the waveform for an element of the subseguence The value of n 1 2 3 4 based on the model If suffix is not specified the value of n is 1 The value of n indicates which channel will output the waveform when the sequence is run NOTE The waveform name can be a null string However a sequence with as one of its elements cannot be run Subsequence SLISt SUBSequ
37. ATalog Query Only Group Syntax Related Commands Arguments Returns Examples MMEMory CDIRectory Group Syntax This guery returns the current contents and state of the mass storage media Mass memory MMEMory CATalog lt msus gt MMEMory CDIRectory MMEMory MSIS lt msus gt mass storage unit specifier lt string gt lt NR1 gt lt NR1 gt lt file_entry gt The first lt NR1 gt indicates the total amount of storage currently used in bytes The second lt NR1 gt indicates the free space of mass storage in bytes lt file_entry gt gt lt file name gt lt file_type gt lt file_size gt file name gt is the exact name of the file lt file_type gt is DIR for directory otherwise it is blank lt file_size gt lt NR1 gt is the size of the file in bytes MMEMORY CATALOG might return the following response 484672 3878652 SAMPLEl AWG 2948 aaa txt 1024 ddd DIR O zzz awg 2948 This command and query sets or returns the current directory of the file system on the arbitrary waveform generator The current directory for the programmatic interface is different from the currently selected directory in the Windows Explorer on the instrument Mass memory MMEMory CDIRectory lt directory_name gt MMEMory CDIRectory AWG5000 and AWG7000 Series Programmer Manual 2 53 Command Descriptions Related Commands Arguments Returns Examples MMEMory DATA Group
38. ATe Delt onge De VOLTagel LEVell IMMediate OF FSet AwGSControl DDUTput n STATe 4 wGControl ENHanced SEQuence JMODe AiwGControl EVENt DJUMp DEFine 4wGControl EVEN JMODe AwGControl EVEN SOF Tw arel IMMediate AwGControl EVEN TABLel IMMediate AwGControl INTerleave ADJustment AMPLitude AwGControl INTerleave ADJustment PHASe AwbGControl lMTerleave 5TATe AWGControlINTerleave ZERoina AwbControl RMODe AwGContol RRATel AwGControl HRATe HOLD AwGControl RSTate AwGControl RUNLIMMediate AwGControl SEQuencer POSition AwGControl SEQuencer TYPE AwGControl SNAMe AwGControl SREStore AwGControl SS Ve AwGControl STOPEIMMediate Calibration CAL CALibration ALL Diagnostic TST DlAGnosite DATA DlAGnosite IMMediate DlAGnostic SELect Displa DISPlay WiINDow 12 STATe Event EVEN IMMediate EVENt IMPedance EVEN JTIMing EVEN LEVell EVEN POLaritu Instrument INSTrument COUPIe SOURce Mass Memor MMEMory CATalog MMEMory CDIRectoryl MMEMory DATAL MMEMory DELete MMEMory IMPort MMEMory IMPort PARameter FREQuencyl UPDatell STATel MMEMory IMPort PARameter LEVel UPDate CHANnell MMEMory IMPort P amp Rameter LEVell UPDatell STATel 7 MMEMory IMPort PARameter LE Vell UPDate TYPE MMEMory IMPort PARameter NORMalize MMEMory IMPort PARameter RESampling FREQuenc MMEMory IMPort PARameter RESamplingl STATe MMEMory MD
39. AWG5000 and AWG7000 Series Arbitrary Waveform Generators Programmer Manual IANA M Tektronix 077 0061 05 AWG5000 and AWG7000 Series Arbitrary Waveform Generators Programmer Manual www tektronix com Tektronix 077 0061 05 S Copyright Tektronix All rights reserved Licensed software products are owned by Tektronix or its subsidiaries or suppliers and are protected by national copyright laws and international treaty provisions Tektronix products are covered by U S and foreign patents issued and pending Information in this publication supersedes that in all previously published material Specifications and price change privileges reserved TEKTRONIX and TEK are registered trademarks of Tektronix Inc AWG5000 and AWG7000 Series Programmer Online Help Supports AWG software V4 2 part number 076 0146 05 August 22 2011 Contacting Tektronix Tektronix Inc 14150 SW Karl Braun Drive P O Box 500 Beaverton OR 97077 USA For product information sales service and technical support In North America call 1 800 833 9200 Worldwide visit www tektronix com to find contacts in your area Warranty Tektronix warrants that this product will be free from defects in materials and workmanship for a period of one 1 year from the date of shipment If any such product proves defective during this warranty period Tektronix at its option either will repair the defective product without charge for parts and labor or
40. B GPIB Interface Specifications Table B 2 AWG standard interface messages cont Message GPIB Description PPC No Parallel Poll Configure PPC Causes the PPD No listen addressed device to respond to the secondary commands Parallel Poll Enable PPE No PPE and Parallel Poll Disable PPD which PPU No are placed on the bus following the PPC command PPE enables a device with parallel poll capability to respond on a particular data line PPD disables the device from responding to the parallel poll SDC Yes Select Device Clear SDC Clears or initializes all listen addressed devices SPD Yes SPE Yes Serial Poll Enable SPE Puts all bus devices that have a service request function into the serial poll enabled state In this state each device sends the controller its status byte instead of its normal output after the device receives its talk address on the data lines This function may be used to determine which device sent a service request TCT No Take Control TCT Allows the controller in charge to pass control of the bus to another controller on the bus UNL Yes E UNT Yes Listen Addresses Yes S Talk Addresses Yes s B 4 AWG5000 and AWG7000 Series Programmer Manual Appendix C SCPI Conformance Information All commands in the arbitrary waveform generator are based on SCPI Version 1999 0 The following tables list the SCPI commands this arbitrary waveform generator su
41. CPI SCPI 1933 0 Status CLS ESE rm LO D 2 SEI STB STATus OPER ation CONDition 3 09 Cn 09 cn Cn Sy 4 a 4 Pr r r r r HHAH c lt c ic c c ieluaimo CICD u mu Mimi rmi mi mi cjn CoD D S8 amp amp la ojo Hel Ej ale me mol Led E O 2 PIS le DO m EE STATus QUEStionable EVENt Synchronization OPC Wal System IDN Nal KEE E E ll SYSTemDATE 0 O NN SYSTemEHRerENEXTI No SYSTemKLOCK NN SYSTem TIMER NN SYSTemVERSion CH BORE U TRiGgerl SEGuencelIMMediate yd TRiGgerl SEGuence IMPedancel D TRiGgerl SEGuencel LEVell yd TRiGgeSEQuence MODE TAlGgerl SEGuence POL aritu D TRiGgerl SEQuence SLOPe yd TAlGgerl SEQuence SUURcel yd TRAlGgerl SEQuence TIMer H TRlGgerl SEQuence wVALue 1 Waveform WLISCNAME 0 0 ooo WLIScSIeE O O 0 Jo e WLISrWAVeformDATA 1 WLIStWAVeform DELete 1 1 1 1 1 1 1 WLIStwWAVeformLENGth o o wWLIStwWAVeformMARKerDATA 1 1 1 1 1 WLISrWAVefomNEW 1 1 Jo WLIStWAVeform PREDefined 1 o 1 1 1 WLIStWAVeformTSTamp i 1 1 WLISu WAVeform TYPE o e AWG5000 and AWG7000 Series Programmer Manual C 3 Appendix C SCPI Conformance Information C 4 AWG5000 and AWG7000 Series Programmer Manual Appendix D Raw S
42. Control INTerleave ADJustment AMPLitude Sets or returns the interleave adjustment amplitude AWGControl INTerleave ADJustment PHASe AWGControl INTerleave S TATe Sets or returns the interleave adjustment phase Enables or disables the interleave state for channels AWGControl INTerleave ZERoing Sets or removes the zeroing option for the interleave mode AWGControl RMODe AWG5000 and AWG7000 Series Programmer Manual Sets or returns the run mode of the arbitrary waveform generator 2 11 Command Groups Table 2 8 Control group commands and their descriptions cont Command Description AWGControl RRATe Sets or returns the repetition rate of the arbitrary waveform generator AWGControl RRATe HOLD Sets or returns the hold property of repetition rate AWGControl RS Tate Returns the state of the arbitrary waveform generator or sequencer AWGControl RUN IMMediate Initiates the output of a waveform or a sequence AWGControl SEQuencer POSition Returns the current position of the sequencer AWGControl SEQuencer TYPE Returns the type of the arbitrary waveform generator s sequencer AWGControl SNAMe Returns the current setup file name of the arbitrary waveform generator AWGControl SREStore Restores the arbitrary waveform generator s setting from a specified settings file AWGControl SSAVe Saves the arbitrary waveform generator s setting to a
43. Ction UISERC SOUR ce n COMBine FEED SOUR ce n MARKerl12 DELayl SOURce n DELayl ADJust SOUR ce n DELay POINts SOLIRce n DlGital VOLT agel LEVell IMMediatell AMPLitudel SOLIRce n DIGital VOLT agel LEVell IMMediate HIGH SOLIRce n DlGitral VOLT agel LE Vell IMMediate LO W SOLIRce n DiGital VOLT agel LEVell IMMediate OFF Ser SOLIRce n MARKer 12 VOLTagel LEVell MMediatel AMPLitude SOLIRce n MARKer 1l 2 VOLTae LE Vel lM Mediate HIGH SOURPce n MAPKer 12 VOL Taae LEVel lMMediate LOW SOLIRce n MARKer 1l2 VOLTaae LEVel lMMediate OFF Se SOLIRce n PDEL av HOLD SOLIRce n PHASe ADJust SOLIRce n SKEWwT SOLIRce n VDLTaae LEVel lMMediate AMPLitudel SOLIRce n V OLT aae LEVel lM Mediate HIGH M__ SOLIRce n VDLT aae LE Vel lM Mediate LOW M__ SOLIRce n VDLT ael LEVel lM Mediate OFF Sew M__ SOLIRce n Ww AVeform i Subsequence SEQuence ELEMentIn SUBSequence 1 1 1 SLISCNAME TT SUIS SIZE SLIStSUBSequence DELete TT SLISt SUBSequence ELEMentin LOOP COUNt TT SLISc SUBSeguence ELEMent n WAVeform n IT _ l_ a SLISt SUBSequence NEW SLISt SUBSequence LENGth SLISt SUBSeguence T5Tamp C 2 AWG5000 and AWG7000 Series Programmer Manual Appendix C SCPI Conformance Information Group Command S
44. D4 D3 D2 DI DO DAC 14 bitM2 M1 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 DO DAC Floating data format is the same as the IEEE 754 single precision format It occupies 4 bytes per waveform data point It stores normalized data without any scaling When the waveform in real data format is output the data is rounded off to the nearest integer value and clipped to fit the DAC range The waveforms in the real format retains normalized values The format for the waveform analog data in the real format is IEEE754 single precision The real data format is shown in the following table Table 2 26 Real data format Byte offset 3 Byte offset 2 Byte offset 1 Byte offset 0 IEEE754 single precision format 32 bits Byte offset 4 7 6 5 4 3 2 1 0 M2 M1 AWG5000 and AWG7000 Series Programmer Manual 2 23 Command Groups Byte Order During Transfer Transferring Waveforms in 2 24 Chunks DAC resolution affects the way hardware interprets the bits in the waveform Therefore it is necessary to reload waveforms once the DAC resolution is modified To understand how to change the DAC resolution see the SOURce n DAC RESolution command To understand how to load a waveform into hardware memory see the SOURce n WAVeform command Waveform data is always transferred in LSB first format When transferring large waveforms it is convenient to send waveform data in chunks This allows better memory management and enables y
45. E AWG5000 and AWG7000 Series Programmer Manual Related Commands Arguments Returns Examples Command Descriptions TRIGger SEOuence SOURce lt trigger_type gt SYNChronous AS YNchronous SYNChronous does not lower trigger jitter ASYNchronous lowers trigger jitter At RST this returns ASYNchronous SYNC ASYN TRIGGER SEQUENCE MODE ASYNCHRONOUS sets the trigger timing to asynchronous type TRIGger SEQuence POLarity Group Syntax Related Commands Arguments Returns Examples This command and query sets or returns the trigger input polarity It is used to set polarity in gated mode Trigger TRIGger SEQuence POLarity POSitive NEGative TRIGger SEOuence POLarity AWGControl RMODe TRIGger SEOuence LEVel POSi tive means the gate signal is activated when the external trigger signal is greater more Positive than the trigger level NEGative means the gate signal is activated when the external trigger signal is less more Negative than the trigger level At RST this returns POSitive POS NEG TRIGGER SEQUENCE POLARITY NEGATIVE selects the Negative polarity AWG5000 and AWG7000 Series Programmer Manual 2 105 Command Descriptions TRIGger SEQuence SLOPe Group Syntax Related Commands Arguments Returns Examples This command and query sets or returns the trigger slope It is used to set polarity in modes other than gated mode Trigger TRIGger SEQu
46. ENEE Ee ENEE Uns 2 3 Command Entry ieu uyd AG IO FO DW Ud GYDD Gy RA EES dU 2 3 Parameter KEE 2 5 SCPI Commands and Queries LLY LL i eo LL YL LL nee LE esee LL DG LL Y Y FY dd uod 2 9 Command Groups eie Rd ENNEN FWY NG GNU DADGAN cantata SE NNN i reet DN 2 11 Control group commande 2 11 Calibration Group Commande 2 12 Diagnostic Group Commande 2 12 Display Group Commande ee ose ete aou sr ee de agere Eee RH ENEE fees reo 2 14 Event Group Commands u eiu y dubie WR IF E Md DF dn ge ee aad eau 2 14 Instrument Group Commande 2 14 Mass Memory Group Commandes 2 14 Output Group Commande 2 15 Sequence Group e EL EE 2 16 Source Group Commande 2 17 Status Gro p Command aa pede oo DRA NEES donde O Od NGR RE Cede vue ME O EE ADY 2 19 Subseguence Group Commande 2 20 Synchronization Group Commande 2 20 System Group ee E 2 21 Trigger Group Conmmiands ececeeeco cete eebe DRDD FD ROD NEE a ede nS 2 21 Waveform Group Commands l YY YY HYR RL YRR FL FFR FE eese em senses 2 22 AWG5000 and AWG7000 Series Programmer Manual i Table of Contents Command DescriptiOnS eror rr iae pred s REF seat GRAY EE EEn EE ER ARY YU BER FERENT GA o fyd 2 25 Status and Events Status and Event Reporting eod ER REESEN sande needs sense EA Te oes ORE o PE EE FE ENEE FRO 3 1 Status Reporting Struct re 2c EENS Ze ANH OND Pese e EE ao Tol ed A ge dane EAFODD senses dE E 3 1 ftd ER YNYR RYAN EE NENNEN EENS NEE eee 3 2 e EE 3 3 Sta
47. IRector MMEMory MSIS AWG400 AWG500 AWG600 700 Note ee eee ear Lo E ee Lo l Ree jJ e AWG400 AWGSOD onl Po Po E WE Ln Ln L_ d LS Lo E A Po See Note SEQuence instead of ENHanced o D m Arguments are different except for ALL Drive letter instead of MAIN or FLOPp AWG5000 and AWG7000 Series Programmer Manual F 1 Appendix F Compatibility with Other Instruments AWG5000 AWG7000 Series Command Group AWG400 AWG500 AWG600 700 Note Output 1 QLUTPur nEFILTerLPASs FREQuencul See Note i Valid values depending on models DOUTPutnIESTATelY ra 1 Sequence i SEQuence ELEMentin GOTO INDex SEGuence ELEMeninEGOTO STATe 0 i SEGuence ELEMent n JTAR get NDles A 1 SEGuence ELEMent n JTAR get TYPE E 1 SEGuence ELEMentdnELOOP COUN RE T SEGuence ELEMentnELOOP INFinite 1 i SEGuence ELEMent n Twat 1 SEDuence ELEMent n AV eform n I H SEQuence JUMPEIMMediate target H SEQuence LENGth II i Source EE Es i SOLIRce n COMBine FEED Parameter varies depending on models SOURce Ml FREGuencyEC WI Fixed 5 i SOURce Tll ROSCillator F REGuency 1 H LT UR SOUR cel ROSCillator TYPE SOLIRce n DAC RESolution SOLIRce n DEL av ADJust SOLIRce n DEL av DONS SOLIRce n l DIGital VOLTage LEVell lMMediate HIGH
48. MEMory lMPort PARameter FREOuency UPDate STATe Sets or queries FREQuency parameter that decides whether frequency is modified during waveform import MMEMory IMPort PARameter LE Vell UPDate CHANnel Sets or queries the channel of which the amplitude and offset values are selected to be updated during import MMEMory MPort PARameter LEVel UPDate STATe Sets or gueries LEVel parameter that decides whether amplitude and offsets are modified during waveform import MMEMory IMPort PARameter LE Vell UPDate TYPE MMEMory lMPort PARameter NORMalize Sets or gueries the data to be imported It also sets or gueries which data s amplitude and offset values are selected for update during RSA file import Sets or gueries whether waveform data are to be normalized MMEMory IMPort PARameter RESampling FREQuency Sets or queries the sampling rate parameter for resampling MMEMory lMPort PARameter RESampling Sets or gueries the resampling state for STATe waveform import MMEMory MDIRectory Creates a new directory in the current path on the mass storage system MMEMory MSIS Selects a mass storage device used by all MMEMory commands Output Group Commands Use the following output commands to set or return the characteristics of the output port of the arbitrary waveform generator AWG5000 and AWG7000 Series Programmer Manual 2 15 Command Groups Table 2 15 Output group commands a
49. N 2 25 AWGControl APPLication STATe 2 25 AWGControl CLOCk DRATe 2 26 AWGControl CLOCk PHASe ADJust 2 27 AWGControl CLOCk SOURCce 2 27 AWGControl COM Pile 2 28 AWGControl CONFigure CNUMber 2 28 AWGControl DC n VOLTage LE Vel IM Mediate OFFSet 2 30 AWGControl DC n STATe 2 29 AWGControl DOUTput n STATe 2 30 AWGControl ENHanced SEQuence JMODe 2 31 AWGControl EVENt DJUMp DEFine 2 32 AWGControl EVENt JMODe 2 32 AWGControl EVENt SOF Tware IMMediate 2 33 AWGControl EVENt TABLe IMMediate 2 33 AWGGControl INTerleave ADJustment AMPLitude 2 34 AWGControl INTerleave A DJustment PHASe 2 35 AWGControl INTerleave ZERoing 2 36 AWGGControl INTerleave STATe 2 35 AWGControl RMODe 2 37 AWGControl RRATe 2 38 AWGControl RRATe HOLD 2 39 AWGControl RSTate 2 39 AWGControl RUN IMMediate 2 40 AWGControl SEQuencer POSition 2 40 AWGControl SEQuencer TYPE 2 41 AWGControl SNAMe 2 41 AWGControl SREStore 2 42 AWGControl SSAVe 2 42 AWGControl STOP MMediate 2 43 C CAL 2 43 CALibration ALL 2 44 CLS 2 44 D DIAGnostic DATA 2 45 DIAGnostic SELect 2 46 AWG5000 and AWG7000 Series Programmer Manual DIAGnostic IMMediate 2 45 DISPlay WINDow 1 2 STATe 2 47 E ESE 2 47 ESR 2 48 EVENt IMPedance 2 49 EVENt JTIMing 2 49 EVENt LEVel 2 50 EVENt POLarity 2 50 EVENt IMMediate 2 48 IDN 2 51 INSTrument COUPle SOURce 2 52 MEMory CATalog 2 53 EMory CDIR
50. NDex command to take effect the GOTO state must be set to ON Seguence AWG5000 and AWG7000 Series Programmer Manual Syntax Related Commands Arguments Returns Examples Command Descriptions SEOuence ELEMent n GOTO STATe lt goto_state gt SEQuence ELEMent n GOTO STATe SEQuence ELEMent n GOTO INDex SEQuence LENGth lt goto_state gt lt Boolean gt 0 indicates OFF 1 indicates ON At RST this returns 0 The value of lt n gt is an index number of sequence lt NRI gt SEQUENCE ELEMENTL GOTO STATE 1 sets the GOTO state to ON SEGuence ELEMent n JTARget lNDex Group Syntax Related Commands Arguments Returns Examples AWG5000 and AWG7000 Series Programmer Manual This command and guery sets or returns the target index for the seguencer s event jump operation Note that this will take effect only when SEQuence ELEMent n JTARget TYPE is set to INDex Sequence SEOuence ELEMent n JTARget INDex lt target gt SEQuence ELEMent n JTARget INDex SEQuence ELEMent n JTARget TYPE SEOuence LENGth lt target gt lt NRI gt lt n gt is an index number of sequence lt NRI gt SEQUENCE ELEMENT1 JTARGET INDEX 10 sets the jump target index to 10th element 2 67 Command Descriptions SEQuence ELEMent n JTARget TYPE Group Syntax Related Commands Arguments Returns Examples This command and query sets or returns the event jump target type f
51. O file Run Mode is changed to Seguence If you specify a WFM or PAT file while the Run Mode is Seguence Run Mode is changed to Continuous When you import a seguence file SEO for the AWG400 500 600 700 series using this command all the user defined waveforms are deleted before the import operation Source SOURce n FUNCtion USER waveform file name msus SOURce n FUNCtion USER WLISt NAME waveform file name lt string gt Value of n indicates the channel number At RST this returns C file name SOURCEl FUNCTION USER SAMPLE1 WFM loads samplel wfm into waveform list and also sets it as the output waveform of channell SOURce n MARKer 1 2 DELay This command and guery sets or returns the marker delay Marker delay is independent for each channel AWG5000 and AWG7000 Series Programmer Manual 2 87 Command Descriptions Group Syntax Related Commands Arguments Returns Examples In the AWG7000 Series when DAC resolution is changed to 10 bits marker output is not available However marker related parameters can be modified using SCPI commands Source SOURce n MARKer 1 2 DELay lt NR3 gt SOURce n MARKer 1 2 DELay SOURce n DAC RESolution lt NR3 gt The value of n indicates the channel number At RST this returns 0 lt NR3 gt SOURCE1 MARKER1 DELAY 20PS sets the marker delay of channell to 20 picoseconds SOURCE1
52. PREDefined True or false based on whether the waveform is predefined WLISt WAVeform RESAmple Resamples a waveform that exists in the waveform list of the current setup WLISt WAVeform TS Tamp Returns the time stamp of the waveform WLISt WAVeform TYPE Returns the type of the waveform AWG5000 and AWG7000 Series Programmer Manual Command Groups Waveform Data Format The instrument support two types of waveform data Integer format and Floating Point format Integer format is useful when you want to transfer data faster It also speeds up restoring data from AWG setup file AWG file thereby making loading faster Loading data into hardware memory is also faster in the integer format because the integer format is the same as the hardware data format and no conversion is necessary Floating point format is helpful while editing the waveform because it gives more resolution for editing operations The integer data format is shown in the following table It occupies two bytes per waveform data point In the figure D refers a data bit and M refers to a marker bit Note that in the 10 bit DAC resolution marker bits are ignored However the bit settings of the marker are not altered and are restored when you switch back to the 8 bit mode Table 2 25 Integer data format Byte offset 1 Byte offset 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 8 bit M2 M1 D7 D6 D5 D4 D3 D2 D1 DO DAC 10 bit D9 D8 D7 D D5
53. Rce Group This command and guery sets or returns the clock source When the clock source is internal the arbitrary waveform generator s internal clock is used to generate the clock signal If the clock source is external the clock signal from an external oscillator is used Control AWG5000 and AWG7000 Series Programmer Manual 2 27 Command Descriptions Syntax Related Commands Arguments Returns Examples AWGControl CLOCk SOURCe source AWGControl CLOCk SOURCe AWGControl APPLication STATe lt source gt EXTernalllNTernal EXTernal specifies that the clock signal from external oscillator is used INTernal specifies that the clock signal is generated internally At RST this value is set to INTernal EXT INT AWGCONTROL CLOCK SOURCE EXTERNAL sets the clock source to EXTernal AWGCONTROL CLOCK SOURCE returns EXT AWGControl COMPile No Query Form Group Syntax Arguments Examples This command executes the commands in the specified equation file This command executes the WPL contents of the specified file name returning when the commands in the file have been executed Control AWGControl COMPile filename lt fi lename gt lt string gt AWGCONTROL COMPILE SIN EOU compiles the eguation file named sin egu AWGControl CONFigure CNUMber Query Only Group 2 28 This query returns the number of channels available on the instrument It returns the
54. Related Commands Arguments Returns Examples SOURce n SKEW Group Syntax Related Commands 2 92 This command and guery sets or returns the phase of the analog output NOTE The effect of this command can be seen only in non seguence mode This command does not change the waveform display on the user interface Source SOURce n PHASe ADJust lt NR3 gt SOURce n PHASe ADJust SOURce n DELay ADJust SOURce n DELay POINts SOURce n PDELay HOLD lt NR3 gt At RST this returns 0 degree lt NR3 gt SOURCE1 PHASE ADJUST 180 sets the analog output phase for channel 1 to 180 degrees This command and query sets or returns the skew for the waveform associated with a channel Source SOURce n SKEW lt NR3 gt SOURCe n SKEW None AWG5000 and AWG7000 Series Programmer Manual Arguments Returns Examples Command Descriptions lt NR3 gt 100 ps to 100 ps It can be changed by a minimum of 1 ps at a time The value of n indicates the channel number At RST this returns 0 s lt NR3 gt SOURCE2 SKEW 75PS sets the skew for channel2 to 75 ps SOURCE2 SKEW might return 7 50000000E 011 indicating that the skew is 75 ps SOURce n VOLTage LEVel lMMediate AMPLitude Group Syntax Related Commands Arguments Returns Examples This command and guery sets or returns the amplitude for the waveform associated with a cha
55. Reporting Standard Event Status Register Read using ESR SESR Cannot be written Event Status Enable Register E SER Read using ESE Write using ESE Status Byte Register SBR Read using STB From the Questionable status blod Cannot be written From the Operation status block T 4 3 2 088 MAV GSS EAW Service Request Enable Register SRER Read using SRE Write using SRE Event Status Enable Register ESER The ESER is made up of bits defined exactly the same as bits 0 through 7 in the SESR Use this register to designate whether or not the SBR ESB bit should be set when an event has occurred and to determine if the corresponding SESR bit is set To set the SBR ESB bit when the SESR bit has been set set the ESER bit corresponding to that event To prevent the ESB bit from being set reset the ESER bit corresponding to that event Use the ESE command to set the bits of the ESER Use the ESE query to read the contents of the ESER 7 6 5 4 3 2 1 0 PON CME EXE DDE QYE OPC Service Request Enable Register SRER The SRER is made up of bits defined exactly the same as bits 0 through 7 in the SBR Use this register to define which events will generate service requests The SRER bit 6 cannot be set Also the RQS is not maskable The generation of a service request with the GPIB interface involves changing the SRQ line to LOW and making a service request to t
56. SIS Group Syntax Related Commands Arguments Returns Examples OPC Group Syntax Related Commands AWG5000 and AWG7000 Series Programmer Manual Command Descriptions lt directory_name gt lt string gt specifies a new directory MMEMORY MDIRECTORY WAVEFORM makes the directory WAVEFORM This command and query selects or returns a mass storage device used by all MMEMory commands lt msus gt specifies a drive using a drive letter The drive letter can represent hard disk drives network drives DVD CD RW drives or USB memory Mass memory MMEMOry MSIS lt msus gt MMEMory MSIS None lt msus gt mass storage unit specifier lt string gt lt msus gt mass storage unit specifier lt string gt At RST this values is C MMEMORY MSIS might return the following response X This command is used to ensure that the first command is complete before the second command is issued Always returns one on this instrument Synchronization OPC OPC WAI 2 63 Command Descriptions Returns Examples OPT Query Only Group Syntax Related Commands Returns Examples lt NRI gt lt NR1 gt 1 when all pending operations are finished OPC might return to indicate that all pending OPC operations are finished This command returns the implemented options for the arbitrary waveform generator System OPT None lt opt gt lt opt
57. TB 2 99 SYSTem DATE 2 100 SYSTem ERRor NEXT 2 100 SYSTem KLOCKk 2 101 SYSTem TIME 2 102 SYSTem VERSion 2 102 T TRG 2 103 TRIGger SEOuence IMPedance 2 103 TRIGger SEOuence LEVel 2 104 TRIGger SEOuence MODE 2 104 TRIGger SEOuence POLarity 2 105 TRIGger SEOuence SLOPe 2 106 TRIGger SEOuence SOURce 2 106 TRIGger SEOuence TIMer 2 107 TRIGger SEOuence WVALue 2 107 TRIGger SEOuence IMMediate 2 103 AWG5000 and AWG7000 Series Programmer Manual Index TST 2 108 WLISt WAVeform LENGth 2 112 WLISt WAVeform MARKer DATA 2 113 W WLISt WAVeform NEW 2 114 WLISt WAVeform NORMalize 2 114 WLISt WAVeform PREDefined 2 115 WLISt WAVeform RESAmple 2 115 WLISt WAVeform TSTamp 2 116 WLISt WAVeform TYPE 2 117 WAI 2 108 WLISt NAME 2 109 WLISt SIZE 2 109 WLISt WAVeform DATA 2 110 WLISt WAVeform DELete 2 111 AWG5000 and AWG7000 Series Programmer Manual Index 3
58. TWAIT 1 sets the wait trigger state to ON SEGuence ELEMent n WAVeform m Group Syntax Related Commands This command and guery sets or returns the waveform for a seguence element NOTE The value ofn indicates index number of sequence The value of m 1 2 3 4 is based on the model If the suffix is omitted 1 is assumed The value of m indicates the channel that will output the waveform when the seguence is run The length of all the waveforms specified for a seguence element must be egual Seguence SEQuence ELEMent n wAVeform m 1 2 314 wfm name SEQuence ELEMent n wAVeform m 1 2 3 4 SEQuence LENGth AWGS5000 and AWG7000 Series Programmer Manual 2 71 Command Descriptions Arguments Returns Examples lt wfm_name gt lt string gt lt wfm_name gt SEQUENCE ELEMENTL WAVEFORM1 TRIANGLE1000 sets the Triangle1000 waveform into the first element of the sequence SEQUENCE ELEMENT20 WAVEFORM1 might return Sine1000 indicating that the waveform named Sine1000 is assigned to index number 20 of the channel 1 sequence SEGuence JUMP lMMediate No Query Form Group Syntax Related Commands Arguments Examples SEQuence LENGth 2 72 Group This command forces the sequencer to jump to the specified element index This is called a Force jump This command does not require an event for executing the jump Also the Jump target specified for event ju
59. Te is set to 1 Mass memory MMEMory IMPort PARameter LEVel UPDate CHANnel lt NR1 gt MMEMory IMPort PARameter LEVel UPDate CHANnel MMEMory IMPort MMEMory IMPort PARameter LEVel UPDate STATe lt NR1 gt At RST the value is 1 1 2 3 4 MMEMORY IMPORT PARAMETER LEVEL UPDATE CHANNEL 1 sets the channel 1 amplitude and offset values to be updated when importing waveform data AWG5000 and AWG7000 Series Programmer Manual Command Descriptions MMEMory IMPort PARameter LEVel UPDate S TATe Group Syntax Related Commands Arguments Returns Examples This command sets or queries the LEVel parameter which determines whether amplitude and offsets are modified during waveform import If this value is set the instrument amplitude and offset are automatically updated during waveform import Mass memory MMEMory IMPort PARameter LEVel UPDate STATe state MMEMory IMPort PARameter LEVel UPDate STATe MMEMory IMPort lt state gt lt Boolean gt 0 indicates OFF 1 indicates ON At RST this returns 1 lt Boolean gt MMEMORY IMPORT PARAMETER LEVEL UPDATE STATE 1 the instrument will automatically modify the amplitude and offset when importing the waveform data MMEMory IMPort PARameter LEVel UPDate TYPE Group Syntax This commands sets or queries the data to be imported It also sets or queries which data s amplitude and offset values are selected for update du
60. UNCtion USER an SES SOLIRce n l MAPKer12 DELav O SOURcel n I PDEL ay HOLD PHASe SOLIRce n PHASe ADJust O degree SOURceln SKEW Os SOUR ce n VOLTagel LEVell IMMediatel AMPLitude 1V Vppl SOURcel n I VOLTagel LEVell IMMediate HIGH 05v SOURcel n I VOLTagel LEVell IMMediate LOW 05Vv SOLIRce n VOLT agel LE Vell IMMediate OFF Ser ov SOLIlRce n W AV eform Subsequence SL SUBSeguence ELEMent n Ww AVeform n Group Command Default setting Synchronization OPC NA NA Trigger N NA TAlGgerl SEQuencel IMMediate NA TRIGger SEQuence IMPedancel 1KOhm TAlGgerl SEQuencel LEVel 14 ASYNchronous TAlGgerl SEGuence PDLaritu POSitive TAlGgerl SEGuence SLOPe POSitive TAlGgerl SEDuence SOUR cel EXTernal TRIGger SEGuence TiMer 100 ms TAlGgerl SEGuence w V ALue FIRSt Waveform E 2 AWG5000 and AWG7000 Series Programmer Manual Appendix F Compatibility with Other Instruments The following tables list the compatibility of the commands with other Tektronix arbitrary waveform generators like the AWG400 AWG500 AWG600 and AWG700 Series AWG5000 AWG7000 Series Command Group AWGControl AWGControl APPLication RUN 4 wGControl APPLication STATe 4 wGControl CLOCk DRAT el A wGControl CLOCk PHASe ADJust 4 wGControl CLOCk SOURce A wGControl COMPile 4 wGControl CONF igure CNUMber AwGControl DC n ST
61. VE ADJUSTMENT PHASE 120 sets the interleave adjustment phase to 120 degrees AWGCONTROL INTERLEAVE ADJUSTMENT PHASE returns 1 20000000E 002 indicating that the interleave adjustment phase is 120 degrees AWGControl INTerleave STATe This command and query sets or returns the interleave state for channels This is available only on the AWG7000 series with option 06 instruments When Interleave is ON the output of CH1 and CH2 are mixed at the output circuit to achieve twice the sampling rate When interleave state is switched on then m Sampling rate is set to the nearest valid value Waveform remains as before m Sequence pointing to CH2 waveform becomes Empty m Channel count becomes 1 m Coupled channels lose the coupled state AWG5000 and AWG7000 Series Programmer Manual 2 35 Command Descriptions Group Syntax Related Commands Arguments Returns Examples NOTE Switching the interleave state from ON to OFF will not restore the sequence CH2 waveforms Also once the coupled state is lost it is not restored Marker data cannot be interleaved Only even marker data is output when the interleave state is ON Control AWGControl INTerleave STATe lt state gt AWGControl INTerleave STATe AWGControl INTerleave ZERoing lt state gt lt Boolean gt 0 indicates OFF 1 indicates ON At RST this returns 0 lt state gt AWGCONTROL INTERLEAVE STATE 1 sets the instrument
62. VXIH 1 Server LAN Use Vxl 11 Server Control in the Task Tray to Start Stop VXl 11 Server Raw Socket LAN On PortNumber 4 000 Off 3 Change the GPIB Address to a unique address 4 Click OK button AWG5000 and AWG7000 Series Programmer Manual Documentation To read about Installation and Operation overviews Documentation Review the following table to locate more information about this product Use these documents Read the Quick Start User Manual for general information about how to use your instrument In depth Operation and User Interface Help Access the user online help from the Help menu for information on virtually all controls and elements on screen Online help includes detailed instructions for using instrument functions Programmer Commands Access the programmer online guide from the Help menu The programmer guide includes the syntax of remote commands Specifications and Performance Verification Procedures Read the Technical Reference documents for specifications and the performance verification procedures These documents are available on the Documentation CD Service Procedures Read the Service Manuals to service the instrument to the module level The manuals are available on the Tektronix Web site www Tektronix com manuals AWG5000 and AWG7000 Series Programmer Manual 1 9 Sample Program Sample Program The sample program illustrates methods use to contr
63. WG5000 AVG7000 Series Command Group AWG400 AWG500 AWG600 700 Note Status H CLS v ESE Y i ESR Z SRE STB D SIATus OPEB ation 08 E ILL LLun STATus DPER ation EMABIe Y v n H STATus OPERation EVENT D i STATus PRESet D i STATus QUEStionable CONDition D 1 STATus GUEStionable ENABle 7 P 1 STATus QUEStionable EVEN E H Synchronization C Wo IOC 5 i WAI v i System ees EE IDN D OPT D RAST D SYStTem DATEL D SYSTem ERRorl NEXT Y H SYSTemKLOCk P f SYSTem TIME P SYSTem VERSion Y H Trigger aes i TRG Y H ABORt v H TAlGgerl SEQuencell IMMediate a H TRIGaer SEOuence lMPedance a H TAlGgerl SEQuencel LEVel a H TRIGaer SEOuence MODE H TAlGgerl SEOuence POLaritu a H TAlGgerl SEQuence SLOPel v 1 TAlGgerl SEQuence SOURce a 1 TRIGaer SEOuence TIMer a 1 TRiGagerf SEQuence w VALue H Waveform L WLISc NAME D WLISt SIZE WLIS WAVeform DATA nl 1 WLISt WAVeform DELete 11 1 WLISt WAVeform LENGth CT WLISEWAVeform MARKerDATAU i f WLISt WAVeform NEW Ll JJ H WLISt WAVeform PREDefined l1 _ H WLISt WAVeform TSTamp _ _ H WLECWAVelomTYPET ULL AWGS5000 and AWG7000 Series Programmer Manual F 3 Appendix F Compatibility with Other Instruments F 4 AWG5000 and AWG7000 Series Programmer Manual Index A ABORt 2 25 AWGControl APPLication RU
64. _type gt NONE indicates that the imported data is not normalized FSCale indicates that the imported data is normalized with full DAC range ZREFerence indicates that the imported data is normalized with offset preserved AWG5000 and AWG7000 Series Programmer Manual Returns Examples Command Descriptions At RST this returns NONE NONE FSC ZREF MMEMORY IMPORT PARAMETER NORMALIZE NONE will not normalize the imported data MMEMory IMPort PARameter RESampling FREQuency Group Syntax Related Commands Arguments Returns Examples This command sets or queries the sampling rate parameter for resampling The specified sampling rate is applied to imported waveform NOTE This command will take effect only when the MMEMory IMPort PARameter FREOuency UPDate STATe command is set to True Resampling setting is ignored if the MMEMory IMPort PARameter FREQuency UPDate STATe command is set to False Mass memory MMEMory IMPort PARameter RESampling FREQuency lt NR3 gt MMEMory IMPort PARameter RESampling FREOuency MMEMory IMPort MMEMory IMPort PARameter FREOuency UPDate STATe MMEMory IMPort PARameter RESampling STATe lt NR3 gt At RST this returns the maximum sampling rate for the non interleaved mode lt NR3 gt MMEMORY IMPORT PARAMETER RESAMPLING FREQUENCY 1 2E 9 sets the resampling freguency to 1 2 GHz MMEMory IMPort PARameter RESampling STATe This comman
65. a 224 Control AWGControl CLOCK DRATe lt divider_rate gt AWGControl CLOCK DRATe AWGControl CLOCk SOURce lt divider_rate gt lt NRI gt At RST this returns the minimum value lt NRI gt AWG5000 and AWG7000 Series Programmer Manual Examples Command Descriptions AWGCONTROL CLOCK DRATE 8 sets the divider rate to 8 AWGCONTROL CLOCK DRATE returns 8 AWGControl CLOCk PHASe ADJust AWG7000B and AWG7000C Series only Group Syntax Arguments Returns Examples This command and query sets or returns the clock phase adjust It is used to adjust the internal clock phase of the instrument to synchronize or align timing with external devices When the sampling rate is below 375 MS s the instrument may take a few minutes to execute the command or to set the sampling rate Spurious in the output signal may increase if you set the clock phase to any value other than 0 zero with the interleave in On state Control AWGControl CLOCK PHASe ADJust lt NR3 gt AWGControl CLOCk PHASe ADJust lt NR3 gt The setting range of NR3 is 72 000 degrees 200 clocks and the resolution is 0 1 degree At RST this returns 0 degree lt NR3 gt AWGCONTROL CLOCK PHASE ADJUST 120 sets the clock phase adjustment value to 120 degrees AWGCONTROL CLOCK PHASE ADJUST returns 1 20000000E 002 indicating that the clock phase adjustment value is 120 degrees AWGControl CLOCk SOU
66. alent to TRG Trigger TRIGger SEOuence IMMediate TRG TRIGGER SEOUENCE IMMEDIATE generates the trigger event TRIGger SEGuence lMPedance Group Syntax Related Commands This command and guery sets or returns the trigger impedance It applies only to the external trigger Trigger TRIGger SEOuence IMPedance lt impedance gt TRIGger SEOuence IMPedance None AWG5000 and AWG7000 Series Programmer Manual 2 103 Command Descriptions Arguments Returns Examples lt impedance gt lt NR3 gt the value will be 50 and 1000 At RST this returns 1000 Q lt NR3 gt TRIGGER SEQUENCE IMPEDANCE 50 selects 50 Q impedance for the external trigger input TRIGger SEGuence LEVel Group Syntax Related Commands Arguments Returns Examples This command and guery sets or returns the trigger input level threshold Trigger TRIGger SEOuence LEVel lt NR3 gt TRIGger SEOuence LEVel TRIGger SEQuence SOURce lt NR3 gt At RST this returns 1 4 V lt NR3 gt TRIGGER SEQUENCE LEVEL 200MV sets the trigger level to 200 mV TRIGger SEQuence MODE AWG7000B and AWG7000C Series only Group Syntax 2 104 This command and guery sets or returns the trigger timing It is used in the Triggered or Seguence mode Trigger timing can be set when the external trigger source is selected Trigger TRIGger SEOuence MODE lt trigger_type gt TRIGger SEOuence MOD
67. ands Returns Examples Control AWGControl RSTate AWGControl RMODe AWGControl RUN IMMediate lt NR1 gt 0 indicates that the instrument has stopped 1 indicates that the instrument is waiting for trigger 2 indicates that the instrument is running AWGCONTROL RSTATE might return 0 if the instrument waveform generation is stopped AWGControl RUN IMMediate No Query Form Group Syntax Related Commands Examples This command initiates the output of a waveform or a sequence This is equivalent to pressing Run Stop button on the front panel The instrument can be put in the run state only when output waveforms are assigned to channels Control AWGControl RUN IMMediate AWGControl STOP IMMediate SOURce n WAVeform AWGCONTROL RUN puts the instrument in the run state AWGControl SEGuencer POSition Guery Only Group Syntax 2 40 This guery returns the current position of the seguencer Control AWGControl SEQuencer POSition AWG5000 and AWG7000 Series Programmer Manual Related Commands Returns Examples Command Descriptions AWGControl SEQuencer TY PE NRI At RST this value is 1 AWGCONTROL SEQUENCER POSITION might return 100 AWGControl SEQuencer TYPE Query Only Group Syntax Related Commands Returns Examples This query returns the type of the arbitrary waveform generator s sequencer The sequence is executed by the hardware seque
68. ands to control miscellaneous instrument functions Table 2 22 System group commands and their descriptions Command Description IDN Returns identification information for the arbitrary waveform generator OPT Returns the implemented options for the arbitrary waveform generator RST Resets the arbitrary waveform generator to its default state SYSTem DATE Sets or returns the system date SYSTem ERRor NEXT Retrieves and returns data from the error and event queues SYSTem KLOCk Locks or unlocks the keyboard and front panel of the arbitrary waveform generator SYSTem TIME Sets or returns the system time SYSTem VERSion Returns the SCPI version number to which the command conforms Trigger Group Commands Use the following trigger commands synchronize the arbitrary waveform generator actions with events Table 2 23 Trigger group commands and their descriptions Command Description TRG Generates a trigger event ABORt Stops waveform generation when the AWG is in gated mode ABORt Stops waveform generation when the AWG is in gated mode TRIGger SEGuence lMMediate Generates a trigger event TRIGger SEGuence lMPedance Sets or returns the trigger impedance TRIGger SEOuence LEVel Sets or returns the trigger input level threshold TRIGger SEQuence MODE Sets or returns the trigger timing TRIGger SEGuence POLarity Sets or returns the trigger input polarity TRIGger SEOuenc
69. ce ELEMent n TWAit Infinite loop flag 0 SEGuence ELEMent n LOOP INFinite Loop count 1 SEGuence ELEMent n LOOP COUNt Event Jump Type OFF SEQuence ELEMent n J TARget TYPE Event Jump target index 1 SEQuence ELEMent n J TARget INDex Go To target Index 1 SEQuence ELEMent n GOTO INDex To learn how to use the commands to create a sequence refer to the individual command descriptions Source Group Commands Use the following source commands to set and query the waveform or marker output parameter Table 2 18 Source group commands and their descriptions Command Description SOURce 1 FREQuency CW FlXed Sets or returns the sampling frequency of the arbitrary waveform generator SOURce 1 ROSCillator xF REQuency Selects the reference oscillator frequency SOURce 1 ROSCillator MULTiplier Sets or returns the reference oscillator multiplier rate SOURce 1 ROSCillator SOURce Selects the reference oscillator source SOURce 1 ROSCillator TYPE Selects the type of the reference oscillator AWG5000 and AWG7000 Series Programmer Manual 2 17 Command Groups 2 18 Table 2 18 Source group commands and their descriptions cont Command Description SOURce n COMBine FEED Adds the signal from an external input to the output of the channel SOURce n DAC RESolution Sets or returns the DAC resolution SOURce n DELay ADJust Sets or returns the delay in seconds of th
70. ce specifications that may be helpful when using remote commands to control the instrument AWGS5000 and AWG7000 Series Programmer Manual 1 1 Remote Control Remote Control The instrument support GPIB interface and LAN interface To set the GPIB address use the System Menu gt GPIB LAN Configuration menu GPIB Interface The GPIB enables up to 15 devices including the controller to be connected for concurrent use With the arbitrary waveform generator connected to an external computer via GPIB use the computer to remotely control your instrument With the instrument use the GPIB interface as a controller See the GPIB Parameters for information on GPIB parameters LAN Interface The instrument accept two types of Ethernet LAN connections one is simple Raw Socket connection and the other is VXI 11 protocol See the LAN Parameters for information on LAN parameters 1 2 AWG5000 and AWG7000 Series Programmer Manual GPIB Parameters GPIB Parameters To use the GPIB the instrument require you to configure the GPIB mode and the GPIB address m Talk Listen Select this mode to remotely control your instrument using an external computer as the controller m Off Bus Select this mode to electronically disconnect the instrument from the GPIB bus m Address This address is a number that allows the software to identify each device connected to the GPIB bus Specify a unique number from 0 to 30 for each d
71. ces in the instruments When the instrument runs a sequence it outputs the waveforms in the order defined in the sequence To run a sequence the instrument must be first put in the Sequence mode This can be done by using either the instrument interface or the AWGControl RMODe SEOuence command Once the instrument is in the Seguence mode it uses either the hardware or the software seguencer to execute the seguence Ouery the current sequencer type using the AWGControl SEOuencer TYPE command However it is not possible to select the seguencer type AWG5000 and AWG7000 Series Programmer Manual Command Groups There is only one sequence defined for an instrument This is common to all channels Refer to the AWG7000 and AWG5000 Series Arbitrary Waveform Generators Quick Start User Manuals for a discussion on sequencing waveforms Creating and Working with To create a sequence programmatically first set the sequence length using Sequences SEQuence LENGth command This creates a sequence of specified length At this stage all elements of the sequence will have their parameters set to default values The default values are as follows Table 2 17 Sequence element parameters and their default values Sequence element Remote command to query or set parameter name Default value the parameter CH 1 Waveform u SEQuence ELEMent n WAVeform m CH 2 Waveform u SEGuence ELEMent n WAVeform m Trigger Wait State 0 SEGuen
72. ck m OlRegister Output register read back OIlALevel Output analog level OIMLevel Output Marker level for AWG7000 series only m O2Register Output2 register read back m O2ALevel Output2 analog level P O2MLevel Output2 marker level for AWG7000 series only NOTE Some of the selections are not available depending on the available options and the number of channels Diagnostic DIAGnostic SELect ALL FPANel AREGister DTIMing A1Memory A2Memory A34emory A4Memory CREGi ster CPLock OTRegister OlALevel O1MLevel O2Register O2ALevel O2MLevelj DIAGnostic SELect DIAGnostic IMMediate AWG5000 and AWG7000 Series Programmer Manual Returns Examples Command Descriptions ALL FPAN AREG DTIM A1M A2M A3M A4M CREG CPL O1R O1AL O1ML O2R O2AL O2ML DIAGNOSTIC SELECT FPANEL selects the front panel read write access test DISPlay WINDow 1 2 STATe Group Syntax Related Commands Arguments Returns Examples ESE Group This command minimizes or restores the seguence or waveform window of the arbitrary waveform generator This command only minimizes or restores the display area it does not close the window There is no maximizing WINDow Seguence window WINDow2 Waveform window Display DISPlay wINDow 1 2 STATe display state DISPlay wINDow 1 2 STATe None lt display_state gt lt Boolean gt 0 indicates False minimizes the
73. count of channels even when they are disabled However interleaved channels are not included in the count Control AWG5000 and AWG7000 Series Programmer Manual Syntax Related Commands Returns Examples Command Descriptions AWGControl CONFigure CNUMber None NRI Returns 1 2 or 4 depending on the model AWGCONTROL CONFIGURE CNUMBER might return 2 AWGControl DC n STATe Group Syntax Related Commands Arguments Returns Examples This commands and query sets or returns the output state of one of the four DC outputs Use this command to turn off or turn on the DC outputs The value of n 1 2 3 4 The output state is common for all DC outputs Therefore irrespective of the value used for n in the command all DC outputs are switched on or switched off at once Control AWGControl DC n STATe state AWGContro l DC n STATe AWGControl DC n VOLTage LEVel IMMediate OFFSet lt state gt lt Boolean gt 0 indicates OFF 1 indicates ON At RST this returns 0 lt state gt AWGCONTROL DC1 STATE 1 sets the DC1 output to On AWG5000 and AWG7000 Series Programmer Manual 2 29 Command Descriptions AWGControl DC n VOLTage LEVel IMMediate OFFSet Group Syntax Related Commands Arguments Returns Examples This command and query sets or returns the DC output level The value of n 1 2 3 4 Control AwGControl DC n VOLTage LEV
74. cy 2 78 SOURce 1 ROSCillator MULTiplier 2 79 SOURce 1 ROSCillator SOURce 2 79 SOURce 1 ROSCillator TYPE 2 80 SOURce n COMBine FEED 2 81 SOURce n DAC RESolution 2 81 SOURce n DELay POINts 2 83 SOURce n DELay ADJust 2 82 SOURce n DIGital VOLTage LEVel IMMediate HIGH 2 84 SOURce n DIGital VOLTage LE Vel IMMediate LOW 2 85 SOURce n DIGital VOLTage LEVel IMMediate OFFSet 2 86 SOURce n DIGital VOLTage LEVel IMMediate AMPLitude 2 84 SOURce n FUNCtion USER 2 87 Index 2 SOURce n MARKer 1 2 DELay 2 87 SOURce n MARKer 1 2 VOLTage L E Vel IMMediate HIGH 2 89 SOURce n MARKer 1 2 VOLTage LEVel IMMediate LOW 2 90 SOURce n MARKer 1 2 VOLTage LEVel IMMediate OFFSet 2 90 SOURce n MARKer 1 2 VOLTage LEVel IMMediate AMPLitude 2 88 SOURce n PDELay HOLD 2 91 SOURce n PHASe ADJust 2 92 SOURce n SKEW 2 92 SOURce n VOLTage LEVVel I MMediate HIGH 2 94 SOURce n VOLTage LEVel IMMediate LOW 2 94 SOURce n VOLTage LEVel IMMediate OFFSet 2 95 SOURce n VOLTage LEVel IMMediate AMPLitude 2 93 SOURce n WAVeform 2 95 SRE 2 96 STATus OPERation CONDition 2 97 STATus OPERation ENABle 2 97 STATus OPERation EVENt 2 97 STATus PRESet 2 98 STATus QUEStionable CONDition 2 98 STATus OUEStionable ENABIe 2 98 STATus QUEStionable EVENt 2 99 S
75. d sets or queries the resampling state for waveform import This command is effective only when the following conditions are met AWGS5000 and AWG7000 Series Programmer Manual 2 61 Command Descriptions Group Syntax Related Commands Arguments Returns Examples m Waveform data to be imported must have sampling rate information m MMEMory IMPort PARameter FREOuency UPDate STATe command must be set to True Use this command to set the resampling state on or off If you set the resampling state on resampling is automatically invoked when importing waveform data The guery form of this command returns the resampling state of the instrument Mass memory MMEMory IMPort PARameter RESampling STATe lt state gt MMEMory IMPort PARameter RESampling STATe MMEMory IMPort MMEMory IMPort PARameter FREOuency UPDate STATe MMEMory IMPort PARameter RESampling FREQuency lt state gt lt Boolean gt 0 indicates False 1 indicates True At RST this returns 0 lt Boolean gt MMEMORY IMPORT PARAMETER FREQUENCY UPDATE STATE 1 invokes resampling automatically MMEMory MDIRectory No Query Form Group Syntax Related Commands 2 62 This command creates a new directory in the current path on the mass storage system Mass memory MMEMory MDIRectory lt directory_name gt MMEMory CDIRectory MMEMory MSIS AWG5000 and AWG7000 Series Programmer Manual Arguments Examples MMEMory M
76. e EOI asserted concurrently with the last data byte The instrument always terminates messages with LF and EOI It allows white space before the terminator For example it allows CR LF Parameters are indicated by angle brackets such as lt file name gt There are several different types of parameters as listed in the following table The parameter type is listed after the parameter Some parameter types are defined specifically for the instrument command set and some are defined by SCPI Table 2 4 Parameter types their descriptions and examples Parameter type Description Example Arbitrary block A block of data bytes 512234xxxxx where 5 indicates that the following 5 digits 12234 specify the length of the data in bytes xxxxx indicates actual data or fOxxxxx lt LF gt lt amp EOl gt Boolean Boolean numbers or values ON or 0 OFF or 0 Discrete A list of specific values MINimum MAXimum NR1 numeric Integers 0 1 15 1 NR2 numeric Decimal numbers 1 2 3 141 6 5 NR3 numeric Floating point numbers 3 1415E 9 NRf numeric Flexible decimal numbers See NR1 NR2 and NR3 that may be type NR1 NR2 examples in this table or NR3 String Alphanumeric characters Testing 1 2 3 must be within quotation marks You can also use MINimum and MAXimum keywords in the commands with the Numeric parameter Set the minimum value or the maximum value using these keywords and query these values AWG5000 a
77. e OFFSet Sets the marker offset SOURce n PDELay HOLD Sets or returns which parameter is retained when sampling rate or waveform length is changed SOURce n PHASe ADJust Sets or retums the phase of the analog output SOURce n SKEW Sets or returns the skew for the waveform associated with a channel AWG5000 and AWG7000 Series Programmer Manual Command Groups Table 2 18 Source group commands and their descriptions cont Command Description SOURce n VOLTage LEVel lMMediate AMPLitude Sets or returns the amplitude for the waveform associated with a channel SOURce n VOLTage LEVel IMMediate HIGH Sets or returns the high voltage level for the waveform associated with a channel SOURce n VOLTage LEVel IMMediate LOW Sets or returns the low voltage level for the waveform associated with a channel SOURce n VOLTage LEVel IMMediate OFFSet Sets or returns the offset for the waveform associated with a channel SOURce n WAVeform Status Group Command Sets or returns the output waveform from the current waveform list for each channel when Run Mode is not Seguence The external controller uses the status commands to coordinate operation between the arbitrary waveform generator and other devices on the bus The status commands set and guery the registers gueues of the arbitrary waveform generator event status reporting system For more
78. e SLOPe Sets or returns the trigger slope TRIGger SEGuence SOURce Sets or returns the trigger source AWG5000 and AWG7000 Series Programmer Manual 2 21 Command Groups Table 2 23 Trigger group commands and their descriptions cont Command Description TRIGger SEOuence TlMer Sets or returns the internal trigger rate trigger interval TRIGger SEQuence WVALue Sets or returns the output data position of a waveform while the instrument is in the waiting for trigger state Waveform Group Commands 2 22 Use the following waveform commands to create and transfer waveforms between the instrument and the external controller Table 2 24 Waveform group commands and their descriptions Command Description WLIStNAME Returns the waveform name of an element in the waveform list WLISt SIZE Returns the size of the waveform list WLISt WAVeform DATA Transfers waveform data from external controller into the waveform list or from the waveform list to the external control program WLISt WAVeform DELete Deletes the waveform from the currently loaded setup WLISt WAVeform LENGth Returns the size of the waveform WLISt WAVeform MARKer DATA Sets or queries the waveform marker data WLISt WAVeform NEW Creates a new empty waveform in the waveform list of current setup WLISt WAVeform NORMalize Normalizes a waveform that exists in the waveform list of the current setup WLISt WAVeform
79. e analog output SOURce n DELay POINts Sets or returns the delay in points of the analog output SOURce n DIGital VOLTage LEVel IMMediate AMPLitude Sets or returns the amplitude of digital output SOURce n DIGital VOLTage LEVell IMMediate HIGH Sets or returns the high digital output SOURce n DIGital VOLTage LEVel IMMediate L OW Sets or returns the low digital output SOURce n DIGital VOLTage LEVel IMMediate OFFSet Sets or returns the offset of digital output SOURce n VOLTage LEVel lMMediate AMPLitude Sets or returns the amplitude of digital output SOURce n MARKer 1 2 VOLTage LEVel I MMediate HIGH Sets or returns the high digital output SOURce n DIGital VOLTage LEVel IMMediate L OW Sets or returns the low digital output SOURce n DIGital VOLTage LEVel IMMediate OFFSet Sets or returns the offset of digital output SOURce n FUNCtion USER Sets or returns the waveform to waveform memory SOURce n MARKer 1 2 DELay Sets or returns the marker delay SOURce n MARKer 1 2 VOLTage LEVel lMMediate AMPLitude Sets the marker amplitude SOURce n MARKer 1 2 VOLTage LEVel lMMediate HlGH Sets the marker high level SOURce n MARKer 1 2 VOL Tage LEVel IMMediate LOW Sets the marker low level SOURce n MARKer 1 2 VOLTage LEVel IMMediat
80. e contents of the SESR The contents of the SESR are cleared after they are read If an SESR bit is set events are stacked in the Error Event Queue Retrieve the event code with the following command sequence ESR SYSTem ERRor NEXT If you omit the ESR query the SESR bit will remain set even if the event disappears from the Error Event Queue AWG5000 and AWG7000 Series Programmer Manual 3 7 Status and Event Reporting Operation Status Block This block is used to report on the status of several operations being executed by the arbitrary waveform generator The block is made up of three registers the Operation Condition Register OCR the Operation Event Register OEVR and the Operation Enable Register OENR Refer to the Operation Status Block shown in the figure in section Status Reporting Structure When the instrument achieves a certain status the corresponding bit is set to the OCR You cannot write to this register OCR bits that have changed from false reset to true set status are set in the OEVR The function of the OENR is to mask the OEVR You can set this mask and take AND with the OEVR to determine whether or not the OSS bit in the Status Byte Register SBR should be set As shown in the following figure a signal is sent to the OEVR 1 when an event occurs If the corresponding bit in the OENR is also enabled 2 the OSS bit in the SBR is set to one 3 Read using STATus OPERation EVENt 2 Canno
81. ead of using the scaled explicit point input value format lt NR3 gt SI units are units that conform to the System International d Unites standard For example use the input format 200 mV or 1 0 MHz instead of 200 0E 3 or 1 0E 6 respectively to specify voltage or frequency AWG5000 and AWG7000 Series Programmer Manual 2 7 Command Syntax 2 8 Omit the unit when you describe commands but include the SI unit prefix Enter both uppercase and lowercase characters The following list shows examples of units you can use with the commands V for voltage V HZ for frequency Hz OHM for impedance ohm S for time s DBM for power ratio PCT for VPP for Peak to Peak Voltage V p p UIPP for Peak to Peak Unit is UI UI p p UIRMS for RMS Unit is UI UIrms SPP for Peak to Peak Unit is second s p p SRMS for RMS Unit is second srms V NS for SLEW s unit V ns In the case of angles use RADian and DEGree The default unit is RADian The SI prefixes which must be included are shown in the following table You can enter both uppercase and lowercase characters Table 2 7 SI prefixes and their indexes SI prefix 1 Corresponding power EX 1018 PE 1015 T 1012 G 109 MA 108 K 103 M 10 3 U2 10 6 N 10 9 P 10 12 F 10 15 A 10 18 Note that the prefix m M indicates 10 3 when the decimal numeric argument denotes voltage or time but indicates 106 when it denotes frequ
82. ectory 2 53 EMory DATA 2 54 Mory DELcte 2 55 Mory EXPort 2 55 Mory IMPort 2 56 Mory IMPort PARameter FREQuency PDate STATe 2 57 Mory IMPort PARameter LEVel UPDate HANnel 2 58 Mory IMPort PARameter LEVel UPDate TYPE 2 59 Mory IMPort PARameter LEVel UPDate STATe 2 59 Mory IMPort PARameter NORMalize 2 60 Mory IMPort PARameter RESampling FREQuency 2 61 Mory IMPort PARameter RESampling STATe 2 61 MEMory MDIRectory 2 62 MEMory MSIS 2 63 G SEEEE Chahta So lt tr lt lt ti m lt tr O ss Zg gg amp g 5 Ssesesess z OPC 2 63 OPT 2 64 Index 1 Index OUTPut n FILTer LPASs FREOuency 2 64 OUTPut n STATe 2 65 R RST 2 65 S SEQuence ELEMent n GOTO INDex 2 66 SEQuence ELEMent n GOTO S TATe 2 66 SEQuence ELEMent n JTARget INDex 2 67 SEQuence ELEMent n JTARget TYPE 2 68 SEQuence ELEMent n LOOP COUNt 2 68 SEOuence ELEMent n LOOP INFinite 2 69 SEOuence ELEMent n SUBSeguence 2 70 SEQuence ELEMent n TWAit 2 70 SEQuence ELEMent n WAVeform m 2 71 SEOuence JUMP IMMediate 2 72 SEOuence LENGth 2 72 SLISt NAME 2 73 SLISt SIZE 2 74 SLISt SUBSequence DELete 2 74 SLISt SUBSeguence ELEMent n LOOP COUNt 2 75 SLISt SUBSequence ELEMent n WAVeform n 2 75 SLISt SUBSeguence LENGth 2 76 SLISt SUBSeguence NEW 2 76 SLISt SUBSeguence TSTamp 2 77 SOURce 1 FREOuency CW FIXed 2 77 SOURce 1 ROSCillator FREOuen
83. eform General Information section for the detailed format specification Waveform AWG5000 and AWG7000 Series Programmer Manual Syntax Related Commands Arguments Returns Examples Command Descriptions WLISt wAVeform DATA lt wfm_name gt lt StartiIndex gt lt Size gt lt block_data gt WLISt WAVeform DATA lt wfm_name gt lt StartIndex gt lt Size gt WLISt WAVeform NEW WLISt WAVeform MARKer DATA StartIndex Size lt block_data gt lt wfm_name gt lt string gt lt StartIndex gt lt NRl gt lt Size gt lt NRI gt lt block_data gt lt IEEE 488 2 block gt lt block_data gt WLIST WAVEFORM DATA Testwfm 0 1024 42048xxxx this transfers waveform data to a waveform called TestWfm created earlier using the WLISt WAVeform NEW command The data size is 1024 points 2048 bytes and the start index is 1 the first data point Note that the IEEE 488 2 block header depends on the type of the data being transferred If it is integer type the total bytes will be twice the size of the waveform and if it is a real waveform the total bytes will be five times the size of the waveform WLISt WAVeform DELete No Query Form Group This command deletes the waveform from the currently loaded setup NOTE The waveform will be deleted even if it is a part of the sequence The sequence element corresponding to the deleted waveform will have WFMID EMPTY When ALL is specified all
84. el IMMediate OFFSet offset AwGControl DC n VOLTage LEVel IMMediate OFFSet AWGControl DC n STATe lt offset gt lt NR3 gt the value will be between 3 0 V to 5 0 V At RST this returns 0 V lt NR3 gt AWGCONTROL DC1 VOLTAGE OFFSET 1 0V sets the DC1 level to 1 0 V AWGCONTROL DC1 VOLTAGE OFFSET might return 1 00000000E 000 AWGControl DOUTput n STATe Group Syntax Related Commands 2 30 This command enables the raw DAC waveform outputs for the specified channel The query form of this command returns the status of raw DAC waveform output for the specified channel When the state is ON offset and filter settings for the channel are ignored This command is not supported on the instruments with Option 02 or Option 06 Control AwGControl DOUTput n STATe state AwGControl DOUTput n STATe SOURce n VOLTage LEVel IMMediate OFFSet OUTPut n FILTer LPASs FREOuency AWG5000 and AWG7000 Series Programmer Manual Arguments Returns Examples Command Descriptions lt state gt lt Boolean gt 0 indicates OFF 1 indicates ON At RST this returns 0 lt state gt AWGCONTROL DOUTPUT1 STATE 1 causes the instrument to output raw DAC waveform from Channel 1 AWGControl ENHanced SEQuence JMODe Group Syntax Arguments Returns Examples This command and query sets or returns the jump mode This command is available for the AWG5012B
85. el 1 output on This command resets the arbitrary waveform generator to its default state System RST None AWG5000 and AWG7000 Series Programmer Manual 2 65 Command Descriptions Examples RST resets the instrument SEQuence ELEMent n GOTO INDex Group Syntax Related Commands Arguments Returns Examples This command and query sets or returns the target index for the GOTO command of the sequencer After generating the waveform specified in a sequence element the sequencer jumps to the element specified as GOTO target This is an unconditional jump If GOTO target is not specified the sequencer simply moves on to the next element Ifthe Loop Count is Infinite the GOTO target which is specified in the element is not used For this command to work the SEQuence ELEMent n GOTO STATe must be ON and the sequence element must exist Note that the first element of a sequence is taken to be 1 not 0 Sequence SEQuence ELEMent n GOTO INDex target SEQuence ELEMent n GOTO INDex SEQuence ELEMent n GOTO STATe SEQuence LENGth lt target gt lt NRI gt lt target gt SEQUENCE ELEMENTL GOTO INDEX 6 causes the sequencer to jump to sixth element after executing the first element SEQUENCE ELEMENT 1 GOTO INDEX might return 6 SEGuence ELEMent n GOTO STATe Group 2 66 This command and guery sets or returns the GOTO state of the seguencer For the SEQuence ELEMent n GOTO I
86. ence SLOPe POSitive NEGative TRIGger SEOuence SLOPe TRIGger SEOuence SOURce POSitive means that the event occurs on the rising edge of the external trigger signal NEGative means that the event occurs on the falling edge of the external trigger signal At RST this returns POSitive POS NEG TRIGGER SEOUENCE SLOPE NEGATIVE selects the Negative slope TRIGger SEGuence SOURce Group Syntax Related Commands Arguments 2 106 This command and query sets or returns the trigger source Trigger TRIGger SEQuence SOURce INTernal ExTernal TRIGger SEQuence SOURCe TRIGger SEQuence LEVel TRIGger SEQuence POLarity TRIGger SEOuence SLOPe TRIGger SEQuence TIMer INTernal selects internal clock as the trigger source EXTernal selects external clock as the trigger source At RST this returns EXTernal AWG5000 and AWG7000 Series Programmer Manual Returns Examples Command Descriptions INT EXT TRIGGER SEQUENCE SOURCE INTERNAL selects the internal clock as the trigger source TRIGger SEOuence TlMer Group Syntax Related Commands Arguments Returns Examples This command and guery sets or returns the internal trigger rate trigger interval Trigger TRIGger SEOuence TIMer lt NR3 gt TRIGger SEOuence TIMer TRIGger SEOuence SOURce lt NR3 gt At RST this returns 100 ms lt NR3 gt TRIGGER SEOUENCE TIMER 5MS sets the internal trigger rate to 5
87. ence ELEMent n wAVeform n subseq name wfm name SLISt SUBSequence ELEMent n wAVeform n X subseq name AWG5000 and AWG7000 Series Programmer Manual 2 75 Command Descriptions Related Commands Arguments Returns Examples SLIS NAME SLISt SUBSequence NEW lt subseq_name gt lt string gt lt wfm_name gt lt string gt lt wfm_name gt SLIST SUBSEQUENCE ELEMENT5 WAVEFORM2 MYTEST SINE360 sets the waveform Sine360 to the fifth index element of the CH2 subsequence named mytest SLIST SUBSEQUENCE ELEMENT5 WAVEFORM2 MYTEST might return Sine360 which indicates that the waveform named Sine360 is assigned to index element five of the CH2 subsequence named mytest SLISt SUBSequence LENGth Group Syntax Arguments Returns Examples This command and query sets or returns the size of the subsequence Subsequence SLISt SUBSequence LENGth subseqg name NR1 SLISt SUBSequence LENGth subseq name lt subseq_name gt lt string gt lt NR1 gt SLIST SUBSEOUENCE LENGTH MYTEST 101 changes the length of the subseguence named mytest to 101 SLIST SUBSEOUENCE LENGTH MYTEST might return 101 which indicates that the length of the subseguence named mytest is 101 SLISt SUBSequence NEW No Query Form Group 2 76 This command creates a new subseguence Subseguence AWG5000 and AWG7000 Series Pr
88. ency Note that the prefix u U is used instead of p AWG5000 and AWG7000 Series Programmer Manual Command Syntax Since M m can be interpreted as 1E 3 or 1E6 depending on the units use mV for V and MHz for Hz The SI prefixes need units correct 10MHz 10E 6Hz 10E 6 incorrect 10M SCPI Commands and Queries The arbitrary waveform generator uses a command language based on the SCPI standard The SCPI Standard Commands for Programmable Instruments standard was created by a consortium to provide guidelines for remote programming of instruments These guidelines provide a consistent programming environment for instrument control and data transfer This environment uses defined programming messages instrument responses and data formats that operate across all SCPI instruments regardless of manufacturer The SCPI language is based on a hierarchical or tree structure that represents a subsystem see following figure The top level of the tree is the root node it is followed by one or more lower level nodes TRIGger Rontnode Lower level SEQuence nodes TI LEVel POLarity SOURce You can create commands and gueries from these subsystem hierarchy trees Commands specify actions for the instrument to perform Oueries return measurement data and information about parameter settings AWG5000 and AWG7000 Series Programmer Manual 2 9 Command Syntax 2 10 AWG5000 and AWG7000 Series Programmer Manua
89. er DT DT1 Complete B 2 AWG5000 and AWG7000 Series Programmer Manual Appendix B GPIB Interface Specifications Table B 1 GPIB interface function implementation cont Implemented Interface function subset Capability Description Controller C C0 None Enables a device that has this capability to send its address universal commands and addressed commands to other devices over the interface Electrical Interface E2 Three state driver Identifies the electrical interface driver type The notation E1 means the electrical interface uses open collector drivers E2 means the electrical interface uses three state drivers Interface Messages The following table lists the standard interface messages the arbitrary waveform generator supports Each function is briefly described Table B 2 AWG standard interface messages Description Device Clear DCL Will clear initialize all devices on the bus that have a device clear function whether or not the controller has addressed them Group Execute Trigger GET Triggers all applicable devices and causes them to initiate their programmed actions Message GPIB DCL Yes GET Yes GTL Yes LLO Yes Go To Local GTL Causes the listen addressed device to switch from remote to local front panel control Local Lockout LLO Disables the return to local function AWG5000 and AWG7000 Series Programmer Manual B 3 Appendix
90. error Query Errors Table 3 8 Query errors Error code Error message 400 Query error 410 Query INTERRUPTED 420 430 Query UNTERMINATED Query DEADLOCKED 440 Query UNTERMINATED after indefinite response Power On Event Table 3 9 Power On event Error code Error message 500 Power on AWG5000 and AWG7000 Series Programmer Manual 3 15 Messages and Codes User request Event Table 3 10 User request event Error code Error message 600 User request Request Control Event Table 3 11 Request control event Error code Error message 700 Request control Operation Complete Event Table 3 12 Operation complete event Error code Error message 800 Operation complete 3 16 AWG5000 and AWG7000 Series Programmer Manual Appendices Appendix A Character Charts B7 1 B6 1 B5 1 BITS NUMBERS B4 B3 B2 B1 CONTROL SYMBOLS UPPER CASE LOWER CASE 20 40 LAO 60 LA16 100 TAO 120 TA16 140 SAO 160 SA16 0000 DLE SP 0 P p 10 16 20 32 30 48 40 64 50 80 60 96 70 112 1 GTL 21 LLO 41 Lat 61 LA17 101 Tat 121 TA17 141 SA1 161 SA17 0001 SOH DC1 1 A Q a q 1 AU 17 21 33 31 49 41 65 51 81 et 97 71 113 42 LA2 62 LA18 102 TA2 122 TA18 142 SA2 162 SA18 0010 a 2 B R b r 22 34 32 50 42 66 52 82 62 98 72 114 3 23 63 Laig 103 TA3 123 Taig 143 SA3 163 SA19 0011 ETX DCH 3 c S c s 3 3 13 19 33
91. est failed DIAGNOSTIC DATA might return 0 which indicates that the diagnostics completed without any errors DIAGnostic IMMediate Group Syntax Related Commands Returns Examples This command executes the selected self test routines The query form of this command executes the selected self test routines and returns the results Diagnostic DIAGnostic IMMediate DIAGnostic IMMediate DIAGnostic DATA DIAGnostic SELect NRI 0 indicates no error 330 indicates that the self test failed DIAGNOSTIC IMMEDIATE executes the self test routines DIAGNOSTIC IMMEDIATE executes the self test routines After the self test routines finish the results of the self tests are returned AWGS5000 and AWG7000 Series Programmer Manual 2 45 Command Descriptions DIAGnostic SELect 2 46 Group Syntax Related Commands This command selects the self test routines The guery form of this command returns the selected test routine The following selections are available m ALL m FPANel Front panel read write access test DTIMing Data timing measurement for AWG5000 series only m AREGister AWG register read back AlMemory CH1 waveform memory test m A2Memory CH2 waveform memory test P A3Memory CH3 waveform memory test for AWG5000 series only m A4Memory CH4 Waveform memory test for AWG5000 series only m CREGister Clock register read back m CPLock PLL Lock unlo
92. eters can be modified using SCPI commands Source SOURce n MARKer 1 2 VOLTage LEVel IMMediate OFFSet lt NR3 gt SOURce n MARKer 1 2 VOLTage LEVel IMMediate OFFSet AWG5000 and AWG7000 Series Programmer Manual Related Commands Arguments Returns Examples Command Descriptions SOURce n DAC RESolution SOURce n MARKer 1 2 VOLTage LEVel IMMediate HIGH SOURce n MARKer 1 2 VOLTage LEVel IMMediate LOW lt NR3 gt The value of n indicates the channel number At RST this returns 0 5 V lt NR3 gt SOURCE1 MARKER1 VOLTAGE OFFSET 1 0 sets the offset channell markerl to 1 V SOURce n PDELay HOLD Group Syntax Related Commands Arguments Returns Examples This command and guery sets or returns the parameter that is retained when sampling rate or waveform length is changed NOTE The effect of this command can be seen only in non seguence mode Source SOURce n PDELay HOLD PHASe DELay POINt SOURce n PDELay HOLD SOURce n DELay ADJust SOURce n DELay POINts SOURce n PHASe ADJust PHASe DELay POINt At RST this returns PHASe PHAS DEL POIN SOURCE1 PDELAY HOLD PHASE will retain the channel 1 phase value when the instrument sampling rate or waveform length is changed AWGS5000 and AWG7000 Series Programmer Manual 2 91 Command Descriptions SOURce n PHASe ADJust AWG5000 Series only Group Syntax
93. evice GPIB L VC AWGS5000 and AWG7000 Series Programmer Manual 1 3 LAN Parameters LAN Parameters In the instrument set parameters to start or stop a process that communicates through LAN The instrument can communicate with LAN using the following methods m VXI 11 Server LAN VXI 11 protocol is used through TekVISA To use this protocol TekVISA must also be installed on the remote controller PC m Raw Socket LAN TCP IP protocol is used Use the GPIB LAN Configuration option to set the socket communication On and Off Specify the port number for the Raw Socket interface This port number must be assigned to the application software or the Ethernet driver on the external controller By default the instrument are specified to automatically acquire an IP address by DHCP Refer to Windows documentation regarding network related parameters For Tek VISA refer to the Tek VISA manual AWG5000 and AWG7000 Series Programmer Manual Connecting to the Instrument using GPIB Connecting to the Instrument using GPIB Your instrument has a 24 pin GPIB connector on its rear panel This connector has a D type shell and conforms to IEEE Std 488 1 1987 Attach an IEEE Std 488 1 1987 GPIB cable to this connector and to your controller as shown in the following figure AWG5000 and AWG7000 Se
94. gt lt opt gt lt opt gt 0 01 02 03 06 08 OPT might return 0 to indicate that no option is installed in the instrument OUTPut n FILTer LPASs FREOuency Group Syntax Related Commands Arguments 2 64 This command and query sets or returns the low pass filter frequency of the filter INFinity is same as Through no filter This command is not available on instruments with option 02 or option 06 Output oUTPut n FILTer LPASs FREQuency lt NR3 gt INFinity OUTPut n FILTer LPASS FREQuency AWGControl DOUTput n STATe lt NR3 gt At RST this value returns 9 9e37 INFinity AWG5000 and AWG7000 Series Programmer Manual Returns Examples OUTPut n STATe Group Syntax Related Commands Arguments Returns Examples RST No Query Form Group Syntax Related Commands Command Descriptions lt NR3 gt OUTPUTL FILTER LPASS FREQUENCY 200MHZ sets the cutoff frequency of the low pass filter for CH 1 to 200 MHz This command and query sets or returns the output state of the arbitrary waveform generator Setting the output state of a channel to ON will switch on its analog output signal and marker Output ourPut n STATe output state OoUTPut n STATe None output state Boolean O sets the channel output to False OFF 1 sets the channel output to True ON At RST this returns 0 lt NRI gt OUTPUT1 STATE ON turns the chann
95. he controller The result Is that a status byte for which an RQS has been set is returned in response to serial polling by the controller 3 6 AWGS5000 and AWG7000 Series Programmer Manual Status and Event Reporting Use the SRE command to set the bits of the SRER Use the SRE query to read the contents of the SRER Bit 6 must be set to 0 7 6 5 4 3 2 1 0 OSS ESB MAN QSS EV Questionable Enable Register QENR Queues Output Queue Error Event Queue None of the bits in the Questionable Enable Register are used There are two types of queues in the status reporting system output queues and error event queues The output queue is a FIFO first in first out queue that holds response messages to queries awaiting retrieval When there are messages in the queue the SBR MAV bit is set The output queue is emptied each time a command or query is received so the controller must read the output queue before the next command or query is issued If this is not done an error occurs and the output queue is emptied however the operation proceeds even if an error occurs The event queue is a FIFO queue which stores events as they occur in the instrument If more than 100 events are stored the 100th event is replaced with event code 350 Queue Overflow The oldest error code and text are retrieved by using one of the following queries SYSTem ERRor NEXT First issue the ESR query to read th
96. ine1024 sine1024 txt txt exports a waveform named sine1024 to a text file sine1024 txt with analog data MMEMory IMPort No Query Form 2 56 This command imports a file into the arbitrary waveform generator s setup as a waveform NOTE If the waveform name already exists it will be overwritten without warning The file name can contain a path and drive letter The supported file formats are ISF TDS3000 and DPO4000 waveform format TDS TDS5000 TDS6000 TDS7000 DPO7000 DPO70000 DSA70000 Series waveform TXT Text file with analog data TXTS Text file with 8 bit DAC resolution TXT10 Text file with 10 bit DAC resolution TXT14 Text file with 14 bit DAC resolution AWG5000 and AWG7000 Series Programmer Manual Command Descriptions WFM AWG400 AWG500 AWG600 AWG700 Series waveform PAT AWG400 AWG500 AWG600 AWG700 Series pattern file TFW AFG3000 Series waveform file format IOT RSA3000 Series waveform file format TIO RSA6000 Series waveform file format Group Mass memory Syntax MMEMory IMPort lt wfm_name gt lt filename gt lt type gt Related Commands MMEMory IMPort PARameter FREOuency UPDate STATe MMEMory IMPort PARameter LEVel UPDate CHANnel MMEMory IMPort PARameter LEVel UPDate STATe MMEMory IMPort PARameter NORMalize Arguments lt wfm_name gt lt filename gt lt type gt lt wfm_name gt lt string gt lt fi 1ename gt lt string gt type
97. information about registers and queues see Status and Event reporting section Table 2 19 Status group commands and their descriptions Command Description CLS Clears all event registers and queues ESE Sets or queries the status of Event Status Enable Register ESER ESR Returns the status of Standard Event Status Register SESR SRE Sets or queries the bits in Service Request Enable Register SRER STB Returns the contents of Status Byte Register SBR STATus OPERation CONDition Returns the contents of the Operation Condition Register OCR STATus OPERation ENABle Sets or returns the mask for the Operation Enable Register OENR STATus OPERation EVENt Returns the contents of Operation Event Register OEVR STATus PRESet STATus QUEStionable CONDition Sets the OENR and QENR registers Returns the status of the Questionable Condition Register QCR AWG5000 and AWG7000 Series Programmer Manual 2 19 Command Groups Table 2 19 Status group commands and their descriptions cont Command Description STATus QUEStionable ENABle Sets or returns the mask for Questionable Enable Register QENR STATus QUEStionable EVENt Returns the status of the Questionable Event QEVR Register and clears it Subsequence Group Commands Use the following subsequence commands to define and edit a subsequence Table 2 20 Subsequence group commands and the
98. ir descriptions Command Description SEGuence ELEMent n SUBSeguence Sets or returns the subseguence for a seguence element SLISt SUBSeguence DELete Deletes the subseguence from the currently loaded setup SLISt SUBSeguence NEW Creates a new subseguence SLISt SUBSeguence LENGth Sets or returns the size of the subseguence SLISt SUBSeguence TSTamp Returns the time stamp of the subseguence SLISENAME Returns the name of the subsequence corresponding to the specified index in the subsequence list SLISt SIZE Returns the size of the subsequence list SLISt SUBSeguence ELEMent n LOOP COUNt Sets or returns the loop count for the specified subsequence element SLISt SUBSeguence ELEMent n WAVeform n Sets or returns the waveform for an element of the subseguence Synchronization Group Commands 2 20 The external controller uses the synchronization commands to prevent external communication from interfering with arbitrary waveform generator operation Table 2 21 Synchronization group commands and their descriptions Command Description OPC Ensures the completion of the first command before the second command is issued WAI Prevents the arbitrary waveform generator from executing further commands until all pending commands are executed AWG5000 and AWG7000 Series Programmer Manual Command Groups System Group Commands Use the following system comm
99. is documentation represents these arguments as follows Table 2 6 String symbol and meaning Symbol Meaning lt QString gt Quoted string of ASCII text AWG5000 and AWG7000 Series Programmer Manual Command Syntax A quoted string can include any character defined in the 7 bit ASCII character set Follow these rules when you use quoted strings 1 Use the same type of quote character to open and close the string For example this is a valid string 2 You can mix quotation marks within a string as long as you follow the previous rule For example this is an acceptable string 3 You can include a quote character within a string simply by repeating the quote cc For example here is a mark 4 Strings can have upper or lower case characters 5 If you use a GPIB network you cannot terminate a quoted string with the END message before the closing delimiter 6 A carriage return or line feed embedded in a quoted string does not terminate the string but is treated as just another character in the string 7 The maximum length of a quoted string returned from a query is 1000 characters Here are some invalid strings m Invalid string argument quotes are not of the same type P test lt EOI gt termination character is embedded in the string Units and SI Prefix If the decimal numeric argument refers to voltage frequency impedance or time express it using SI units inst
100. itrary waveform generator are designed to be executed in the order in which they are sent from the external controller The following synchronization commands are included to ensure compliance with the SCPI standard m WAI m OPC m OPC 3 10 AWG5000 and AWG7000 Series Programmer Manual Messages and Codes Messages and Codes Messages and Codes Error and event codes with negative values are SCPI standard codes Error and event codes with series number positive values are unique to the arbitrary waveform generator The following table lists event code definitions When an error occurs find its error class by checking for the code range in tables that are organized by event class Table 3 3 Definition of event codes Event class Code range Description No error 0 No event or status Command errors 100 to 199 Command syntax errors Execution errors 200 to 299 Command execution errors Device specific errors 300 to 399 Internal device errors Query errors 400 to 499 System event and query errors Power on events 500 to 599 Power on events User request events 600 to 699 User request events Request control events 700 to 799 Request control events Operation complete events 800 to 899 Operation complete events Extended device specific 1 to 32767 Device dependent device errors errors Reserved other than those listed Not used above Other error messages include Table 3 4 Other e
101. ker data NOTE This command returns or sends only marker data for the waveform Each marker data occupies one bit Two most significant bits of each byte are used for marker1 and marker2 bit 6 for marker and bit 7 for marker2 For more information about the waveform data format refer to the AWG Reference gt Waveform General Information section of the User Online Help You will have to use bit masks to obtain the actual value When used on a waveform with n data points you get only n bytes each byte having values for both markers Block data can be sent in batches using Size and Startlndex parameters This command has a limit of 650 000 000 bytes of data If this limit is insufficient consider the following alternatives B Use a more efficient file encoding WFM or PAT when sending data Use instrument commands for direct control WLISt WAVeform DATA FREQ VOLT and so on Use Ethernet ftp http or file sharing to transfer the file Waveform WLISt WAVeform MARKer DATA lt wfm_name gt lt StartiIndex gt lt Size gt lt block_data gt WLISt wAVeform MARKer DATA lt wfm_name gt lt StartIndex gt lt Size gt None lt wfm_name gt lt string gt lt StartIndex gt lt NR1 gt Size NRI block data IEEE 488 2 block block data AWGS5000 and AWG7000 Series Programmer Manual 2 113 Command Descriptions Examples WLIST WAVEFORM MARKER DATA mywa
102. l Command Groups Control group commands Use the following commands to control operating modes Table 2 8 Control group commands and their descriptions Command Description AWGControl APPLication RUN Executes the specified application AWGControl APPLication STATe Returns the running state of the specified application AWGControl CLOCk DRATe Sets or returns the divider rate for the external oscillator AWGControl CLOCk PHASe ADJust Sets or returns the clock phase adjust AWGControl CLOCk SOURce Sets or returns the clock source AWGControl COMPile Executes the commands in the specified eguation file AWGControl CONFigure CNUMber Returns the number of channels available on the instrument AWGControl DC n STATe Sets or returns the DC state AWGControl DC n VOLTage LEVel IMMediate OFFSet sets or returns the DC output level AWGControl DOUTput n STATe Outputs the raw waveform in the DAC of the specified channel AWGControl ENHanced SEQuence JMODe Sets or returns the jump mode AWGControl EVENt DJUMp DEFine Associates an event pattern with the jump target for Dynamic Jump AWGControl EVENt JMODe Sets or returns the event jump mode AWGControl EVENt SOFTware lMMediate Executes the seguencer jump to the specified element index AWGControl EVENt TABLe lMMediate Generates an event forcibly in the table jump mode AWG
103. loaded this mode is the same as the triggered mode This command and query sets or returns the repetition rate of the arbitrary waveform generator Control AWGControl RRATe repetition rate AWGControl RRATe SOURce 1 FREOuency CW FIXed AWG5000 and AWG7000 Series Programmer Manual Arguments Returns Examples Command Descriptions lt repetition_rate gt lt NR3 gt At RST this value is 10 MHz lt NR3 gt AWGCONTROL RRATE 1000000 sets the repetition rate to IMHz AWGCONTROL RRATE returns 1E 6 AWGControl RRATe HOLD Group Syntax Related Commands Arguments Returns Examples This command and query sets or returns the hold property of repetition rate Setting this to ON keeps the repetition rate of the instrument constant even when the waveform size changes This causes the sampling rate to change When this is OFF the repetition rate changes when the waveform length changes Control AWGControl RRATe HOLD lt hold_state gt AWGControl RRATe HOLD AWGControl RRATe lt hold_state gt lt Boolean gt 0 indicates OFF 1 indicates ON At RST this returns 0 NRI AWGCONTROL RRATE HOLD 1 sets the instrument repetition rate to Hold AWGControl RSTate Query Only This query returns the run state of the arbitrary waveform generator or the sequencer AWG5000 and AWG7000 Series Programmer Manual 2 39 Command Descriptions Group Syntax Related Comm
104. lt level gt lt NR3 gt Range is between 5 V and V At RST this returns 1 4 V lt NR3 gt EVENT LEVEL 1 0V sets the level to 1 volt This command and guery sets or returns the polarity of event signal The Event Jump is the function to change the seguencing of the waveform by an event signal AWG5000 and AWG7000 Series Programmer Manual Group Syntax Related Commands Arguments Returns Examples IDN Query Only Group Syntax Related Commands Returns Command Descriptions Event EVENt POLarity POSitive NEGative EVENt POLarity EVENt IMMediate EVENt IMPedance EVENt JTIMing EVENt LEVel POSitive indicates that event jump occurs when the instrument receives a positive pulse NEGative indicates that event jump occurs when the instrument receives a negative pulse At RST this returns POSitive POS NEG EVENT POLARITY NEGATIVE sets the event polarity to negative This command returns identification information for the arbitrary waveform generator System IDN None lt Manufacturer gt lt model gt lt serial number gt lt Firmware version gt lt Manufacturer gt TEKTRONIX lt Model gt AWG7122C AWG7082C AWG7121B AWG7122B AWG7061B AWG7062B AWG5012C AWG5014C AWG5002C AWG5012B AWG5014B AWG5002B AWG5004B lt Serial number gt XXXXXXX indicates an actual serial number lt Firmware version gt SCPI 99 0 FW x x x x x x x x is system s
105. ments Returns Examples 2 86 This command and query sets or returns the offset of digital output This command is available only for AWG5000B and AWG5000C instruments with option 03 Source SOURce n DIGital VoLTage LEVel IMMediate OFFSet lt NR3 gt SOURCe n DIGital VOLTage LEVel IMMediate OFFSet SOURce n DIGital VOLTage LEVel MMediate HIGH SOURce n DIGital VOLTage LEVel IMMediate LOW SOURce n DIGital VOLTage LEVel IMMediate AMPLitude lt NR3 gt The value of n indicates the channel number At RST this returns 0 5 V lt NR3 gt SOURCEL DIGITAL VOLTAGE LEVEL IMMEDIATE OFFSET 1 0 sets the digital output amplitude level to 1 0 volts AWG5000 and AWG7000 Series Programmer Manual Command Descriptions SOURce n FUNCtion USER This command and guery sets or returns the waveform to waveform memory Group Syntax Related Commands Arguments Returns Examples Use this command to directly load an AWG400 500 600 700 series waveform WFM pattern file PAT or seguence SEO file from mass memory to a specified channel However when loading a sequence file the SOURce s suffix is ignored The waveform is internally converted to the AWG5000 AWG7000 series format and inserted into the current waveform list To successfully load a waveform the waveform name should conform to AWG5000 AWG7000 series waveform naming conventions If you specify the SE
106. mma is used between arguments of multiple argument commands Optionally there may be white space characters before and after the comma lt Space gt A white space character is used between a command header and the related argument Optionally a white space may consist of multiple white space characters Commands cause the instrument to perform a specific function or change one of the settings Commands have the structure Header Space Argument Comma Argument A command header consists of one or more mnemonics arranged in a hierarchical or tree structure The first mnemonic is the base or root of the tree and each subsequent mnemonic is a level or branch off the previous one Commands at a higher level in the tree may affect those at a lower level The leading colon always returns you to the base of the command tree Queries cause the instrument to return status or setting information Queries have the structure Header lt Header gt lt Space gt lt Argument gt lt Comma gt lt Argument gt AWG5000 and AWG7000 Series Programmer Manual Command Syntax Clearing the Instrument Use the Device Clear DCL or Selected Device Clear SDC GPIB functions to clear the Output Queue and reset the instrument to accept a new command or query Refer to your GPIB library documentation for further details about the Device Clear operation Command Entry Rules The following rules appl
107. mp is not used here Sequence SEQuence JUMP IMMediate target None lt target gt lt NRI gt SEQUENCE JUMP IMMEDIATE 10 forces the sequencer to jump to index number 10 This command and query sets or returns the sequence length Use this command to create an uninitialized sequence You can also use the command to clear all sequence elements in a single action by passing 0 as the parameter However this action cannot be undone so exercise necessary caution Also note that passing a value less than the sequence s current length will cause some sequence elements to be deleted at the end of the sequence For example if SEOuence LENGth returns 200 and you subsequently send SEOuence LENGth 21 all sequence elements except the first 20 will be deleted Sequence AWG5000 and AWG7000 Series Programmer Manual Syntax Related Commands Arguments Returns Examples Command Descriptions SEOuence LENGth lt NRl gt SEOuence LENGth None lt NR1 gt At RST this returns 0 lt NRI gt SEQUENCE LENGTH 10 creates a sequence of 10 elements initializing all sequence parameters to default values SEQUENCE LENGTH will now return 10 SEQUENCE LENGTH 12 will append two elements to the end of the above created sequence and initialize the new elements parameters However it does not change the already existing elements SEOUENCE LENGTH O will delete the sequence SLISt NAME Query Only Group S
108. ncer whenever possible Control AWGControl SEQuencer TYPE None HARDware indicates that the instrument is in the hardware sequencer mode SOF Tware indicates that the instrument is in the software sequencer mode At RST this value is HARDware AWGCONTROL SEQUENCER TYPE might return HARD if the instrument is in the hardware sequencer mode AWGControl SNAMe Query Only Group Syntax Related Commands This query returns the current setup file name of the arbitrary waveform generator The response contains the full path for the file including the disk drive Control AWGControl SNAMe AWGControl SSAVe AWGControl SREStore AWG5000 and AWG7000 Series Programmer Manual 2 41 Command Descriptions Returns Examples lt file_name gt lt msus gt lt file_name gt lt string gt lt msus gt mass storage unit specifier lt string gt At RST this values is C AWGCONTROL SNAME might return the following response my project awg setup al awg D AWGControl SREStore No Query Form Group Syntax Related Commands Arguments Examples This command restores the arbitrary waveform generator s setting from a specified settings file The drive may be a local or a network drive If the full path is not specified the file will be stored in the current path Control AWGControl SREStore lt file_name gt lt msus gt AWGControl SNAMe AWGControl SSAVe
109. nd AWG7000 Series Programmer Manual 2 5 Command Syntax Block Arbitrary Block Quoted String 2 6 Several instrument commands use a block argument form see the following table Table 2 5 Block symbols and their meanings Symbol Meaning lt NZDig gt A nonzero digit character in the range of 1 9 lt Dig gt lt Dig gt A digit character in the range of 0 9 lt DChar gt A character with the hexadecimal equivalent of 00 through FF 0 through 255 decimal that represents actual data lt Block gt A block of data bytes defined as Blocks lt NZDig gt lt Dig gt lt Dig gt lt DChar gt 0 lt DChar gt lt terminator gt An arbitrary block argument is defined as lt NZDig gt lt Dig gt lt Dig gt lt DChar gt or 0 lt DChar gt lt terminator gt lt NZDig gt specifies the number of lt Dig gt elements that follow Taken together the lt NZDig gt and lt Dig gt elements form a decimal integer that specifies how many lt DChar gt elements follow 0 means that the lt Block gt is an indefinite length block The lt terminator gt ends the block NOTE The arbitrary waveform generators do not support the indefinite format a block starts with 0 Some commands accept or return data in the form of a quoted string which is simply a group of ASCII characters enclosed by a single quote or double quote 7 For example this is a quoted string Th
110. nd their descriptions Command Description OUTPut n FILTer LPASs FREQuency Sets or returns the low pass filter frequency of the filter OUTPut n STATe Sets or returns the output state of the arbitrary waveform generator Seguence Group Commands 2 16 Seguence Commands Use the following seguence commands to define and edit a seguence Table 2 16 Seguence group commands and their descriptions Command Description SEQuence ELEMent n GOTO INDex Sets or retrieves the target index for the GOTO command of the sequencer SEQuence ELEMent n GOTO STATe Sets or retrieves the GOTO state of the sequencer SEGuence ELEMent n JTARget lNDex Sets or retrieves the target index for the seguencer s event jump operation SEGuence ELEMent n JTARget TYPE Sets or gueries the target type for the jump SEQuence ELEMent n LOOP COUNt Sets or queries the loop count SEQuence ELEMent n LOOP INFinite Sets or returns the infinite looping state for a sequence element SEGuence ELEMent n WAN Sets or returns the wait trigger state for an element on or off SEQuence ELEMent n WAVeform m Sets or retums the waveform for a sequence element SEQuence JUMP IMMediate Executes the sequencer jump to the specified element index SEQuence LENGth Sets or returns the sequence length The following set of commands provides ways to create and edit the waveform sequen
111. nnel Source SOURce n voLTage LEVel IMMediate AMPLitude lt NR3 gt SOURce n voLTage LEVel IMMediate AMPLitude None lt NR3 gt in the range 50 mV to 2V pk pk The value of n indicates the channel number At RST this returns 1 Vpp lt NR3 gt SOURCE1 VOLTAGE AMPLITUDE 1 5 sets the amplitude of channell to 1 5 volts SOURCE1 VOLTAGE AMPLITUDE might return 1 5 AWG5000 and AWG7000 Series Programmer Manual 2 93 Command Descriptions SOURce n VOLTage LEVel IMMediate HIGH Group Syntax Related Commands Arguments Returns Examples This command and query sets or returns the high voltage level for the waveform associated with a channel The command is not available on instruments with the Option 02 or Option 06 installed Source SOURce n voLTage LEVel IMMediate HIGH lt NR3 gt SOURce n voL Tage LEVe1 IMMediate HIGH SOURce n VOLTage LE Vel IMMediate LOW lt NR3 gt The value of n indicates the channel number At RST this returns 0 5 V lt NR3 gt SOURCE1 VOLTAGE HIGH 0 75 sets the channell s high to 0 75 volts SOURce n VOLTage LEVel IMMediate LOW Group Syntax Related Commands Arguments 2 94 This command and query sets or returns the low voltage level for the waveform associated with a channel The command is not available on instruments with Option 02 or Option 06 installed Source SOURCe n VOLTage
112. nstrument s hard disk When used on a directory this command succeeds only if the directory is empty Mass memory MMEMory DELete lt file_name gt lt msus gt MMEMory CDIRectory MMEMory MSIS lt fi 1e_name gt lt string gt msus mass storage unit specifier lt string gt MMEM DEL SETUP1 AWG deletes SETUP1 AWG in the current directory MMEM DEL my proj awg test awg D deletes D my proj awg test awg regardless of the current directory and the current msus MMEMory EXPort No Query Form This command exports a waveform file from the arbitrary waveform generator setup NOTE If the waveform name already exists it will be overwritten without warning The file name can contain a path and drive letter The supported file formats are TXT Text file with analog data TXTS Text file with 8 bit DAC resolution TXT10 Text file with 10 bit DAC resolution AWG5000 and AWG7000 Series Programmer Manual 2 55 Command Descriptions Group Syntax Related Commands Arguments Examples TXT14 Text file with 14 bit DAC resolution AWG5000 Series only WFM AWG400 AWG500 AWG600 AWG700 Series waveform Mass memory MMEMory EXPort lt wfm_name gt lt filename gt lt type gt None lt wfm_name gt lt fi lename gt lt type gt lt wfm_name gt lt string gt lt fi lename gt lt string gt type TXT TXT8 TXT10 TXT14 WEM MMEMORY EXPORT s
113. o an external controller using WLISt WAVeform DATA command Group Waveform Syntax WLISt WAVeform PREDefined wfm name Related Commands None Arguments lt wfm_name gt lt string gt Returns lt state gt gt lt Boolean gt Examples WLIST WAVEFORM PREDEFINED Sine3600 might return 1 indicating that it is a predefined waveform WLISt WAVeform RESAmple No Query Form This command resamples a waveform that exists in the waveform list of the current setup Group Waveform Syntax WLISt WAVeform RESAmple wfm name Size AWGS5000 and AWG7000 Series Programmer Manual 2 115 Command Descriptions Related Commands Arguments Examples None lt wfm_name lt string gt lt Size gt lt NRI1 gt WLIST WAVEFORM RESAMPLE Untitled25 1024 resamples the waveform titled Untitled25 if it exists to 1024 points WLISt WAVeform TSTamp Query Only 2 116 Group Syntax Related Commands Arguments Returns This query returns the time stamp of the waveform NOTE Time stamp is updated whenever the waveform is created or changed It is not updated when it is renamed The command returns date as a string in the form yyyy mm dd hh mm ss a white space between date and time Time stamp for predefined waveforms is null string Waveform WLISt WAVeform TSTamp lt wfm_name gt None lt wfm_name gt lt string gt yyyy mm dd hh mm ss is the waveform
114. ocket Specification TCP IP is used as the network protocol and the port number is variable Commands can be sent from the application program through the TCP IP socket interface and queries can be received through the interface The following lists the differences between the GPIB interface and the Raw Socket interface m The Line Feed LF code is needed as a terminator at the end of a message m The IEEE 488 1 standard for example Device Clear or Service Request is not supported m The Message Exchange Control Protocol in the IEEE 488 2 is not supported However common commands such as ESE and the event handling features are supported The Indefinite format the block start at 0 in the lt ARBITRARY BLOCK PROGRAM DATA gt of the IEEE 488 2 is not supported AWG5000 and AWG7000 Series Programmer Manual D 1 Appendix D Raw Socket Specification D 2 AWG5000 and AWG7000 Series Programmer Manual Appendix E Factory Initialization Settings The following tables list the default settings for the each command Group Command Default setting AWGControl NA NA AwGControl CLOCk DRATe 1 AWGT121BIAWGTI22B and AWGS012BIAWGSO14B 2 AWGTOBTBIAWGTOB2B and AWGSOD2BIAWCGSODdB degree INTernal NA I a ord AwGControl GH POT oel L AwGControl DC n UE Ce AwGControl DDUTput n STATe 0 LOGic AWGControlINTerleavel STATS AwGControl BMODe AWGControl ARAT el 4 vGControl STOPL IMMediate NA
115. oftware version AWG5000 and AWG7000 Series Programmer Manual 2 51 Command Descriptions Examples IDN might return the following response TEKTRONIX AWG7122B B010123 SCPI 99 0 Fw 3 0 136 602 INSTrument COUPle SOURce 2 52 Group Syntax Related Commands Arguments Returns Examples This command and query sets or returns the coupled state for a channel NOTE When coupling is done CHI can be coupled to CH2 CH3 and CH4 CH3 can be coupled to CH4 Other combinations are not allowed When ALL is used all other channels get the parameters of CH1 When coupling is done CHI parameters are copied to CH2 parameters and CH3 parameters to CH4 parameters This cannot be changed On two channel models ALL is eguivalent to PAIR On one channel models only NONE is available In four channel models when PAIR is used CH1 is coupled to CH2 and CH3 is coupled to CH4 in one action Not all parameters are coupled When the coupling is active setting the coupling state to NONE will remove the coupling Instrument INSTrument COUPle SOURCe lt state gt INSTrument COUPle SOURCe None lt state gt NONE PAIR ALL NONE PAIR CH1 to CH2 and CH3 to CH4 ALL CHI to CH2 CH3 and CH4 lt state gt INSTRUMENT COUPLE SOURCE ALL couples the CH1 parameters and CH2 parameters if the instrument is a two channel model AWG5000 and AWG7000 Series Programmer Manual Command Descriptions MMEMory C
116. ogrammer Manual Syntax Arguments Examples Command Descriptions SLISt SUBSequence NEW lt subseq_name gt lt length gt lt subseq_name gt lt string gt SLIST SUBSEQUENCE NEW MYTEST 100 creates a subsequence named mtest of length 100 SLISt SUBSequence TSTamp Query Only Group Syntax Related Commands Arguments Returns Examples This query returns the time stamp of the subsequence Time stamp is updated whenever the subsequence is created or changed It is not updated when it is renamed It returns date as a string in the form yyyy mm dd hh mm ss a white space between data and time Subsequence SLISt SUBSequence TSTamp lt subseq_name gt SLISt SUBSeguence TSTamp SLISt NAME SLISt SUBSequence NEW lt subseg_name gt lt string gt lt string gt SLIST SUBSEOUENCE TSTAMP MYTEST returns the time stamp of the subseguence named mytest SOURce 1 FREOuency CW FIXed This command and guery sets or returns the sampling freguency of the arbitrary waveform generator Sampling freguency can be set when the internal clock source is selected and one of the following conditions is met Internal is selected as Reference Source External is selected as Reference Source and Fixed is selected as External Reference Type CW and FIXed are aliases and have the same effect AWG5000 and AWG7000 Series Programmer Manual 2 77 Command Descriptions Group
117. ol the arbitrary waveform generator This program sends waveform data and then starts waveform generation Access the sample program from Windows Start menu Select All Programs gt Tektronix gt AWG gt Examples This program is also included on the Document CD 1 10 AWG5000 and AWG7000 Series Programmer Manual Syntax and Commands Command Syntax Syntax Overview Control the operations and functions of the instrument through the GPIB and LAN interface using commands and queries The related topics listed below describe the syntax of these commands and queries The topics also describe the conventions that the instrument uses to process them See the Command Groups topic for a listing of the commands by command group or use the index to locate a specific command Refer to the following table for the symbols that are used Table 2 1 Syntax symbols and their meanings Symbol Meaning lt gt Defined element zz Is defined as Exclusive OR Group one element is required Optional can be omitted Previous elements can be repeated Comment Command and Query Structure Overview Messages Commands consist of set commands and query commands usually called commands and queries Commands modify instrument settings or tell the instrument to perform a specific action Queries cause the instrument to return data and status information Most commands have both a set form and a query form The quer
118. ons Note that the QENR is not used in the arbitrary waveform generator Status STATUS QUEStionable ENABle lt NRl gt STATUS QUEStionable ENABle STATus OUEStionable CONDition STATus QUEStionable EVENt lt NRI gt STATus OUEStionable EVENt Query Only Group Syntax Related Commands Returns Examples STB Guery Only Group Syntax Related Commands AWG5000 and AWG7000 Series Programmer Manual This guery returns the status of the OEVR register and clears it Status STATUus OUEStionable EVENt STATus OUEStionable CONDition STATus QUEStionable ENABle lt NRI gt STATUS QUESTIONABLE EVENT might return 32 which indicates that the QEVR contains the binary number 00000000 00100000 This query returns the contents of Status Byte Register Status STB CLS ESE ESR SRE 2 99 Command Descriptions Returns Examples SYSTem DATE Group Syntax Related Commands Arguments Returns Examples lt NRI gt STB might return 96 which indicates that the SBR contains the binary number 0110 0000 This command and query sets or returns the system date When the values are nonintegers they are rounded off to nearest integral values System SYSTem DATE lt year gt lt month gt day SYSTem DATE None lt year gt lt NRf gt Four digit number lt month gt lt NRf gt from 1 to 12 lt day gt lt NRf gt from 1 to 31 lt year gt l
119. ontroller Query errors occur for one of the following reasons W An attempt was made to retrieve messages from the output queue though the output queue is empty or in pending status m The output queue messages have been cleared though they have not been retrieved 1 Not used 0 Operation Complete OPC This bit is set with the results of the execution of the oPC command It indicates that all pending operations have been completed AWG5000 and AWG7000 Series Programmer Manual Status and Event Reporting Operation Enable Register OENR None of the bits in the Operation Enable Register are used Operation Condition Register OCR None of the bits in the Operation Condition Register are used Operation Event Register OEVR None of the bits in the Operation Event Register are used Questionable Condition Register QCR None of the bits in the Questionable Condition Register are used Enable Registers There are four types of enable registers m Event Status Enable Register ESER B Service Request Enable Register SRER Operation Enable Register OENR m Questionable Enable Register QENR Each bit in the enable registers corresponds to a bit in the controlling status register By setting and resetting the bits in the enable register you can determine whether or not events that occur will be registered to the status register and queue AWGS5000 and AWG7000 Series Programmer Manual 3 5 Status and Event
120. or the jump Generate an event in one of the following ways m By connecting an external cable to instrument rear panel for external event m By pressing the Force Event button on the front panel m By sending the EVENt IMMediate remote command Seguence SEQuence ELEMent n JTARget TYPE INDex NEXT OFF SEOuence ELEMent n JTARget TYPE SEOuence ELEMent n JTARget INDex SEOuence LENGth INDex This enables the seguencer to jump to an index set using SEOuence ELEMentl JTARget INDex command NEXT This enables the seguencer to jump to the next seguence element SEOuence ELEMentl JTARget INDex setting is ignored OFF This enables the seguencer to turn off the event jump state In this state even if the event occurs the seguencer ignores it AT RST this value is OFF The value of n is an index number of sequence IND NEXT OFF SEQUENCE ELEMENTL JTARGET TYPE INDEX sets the jump target to INDex SEGuence ELEMent n LOOP COUNt Group Syntax 2 68 This command and guery sets or returns the loop count Loop count setting for an element is ignored if SEQuence ELEMent n LOOP INFinite is set to ON Seguence SEQuence ELEMent n LOOP COUNt NR1 SEQuence ELEMent n LOOP COUNt AWG5000 and AWG7000 Series Programmer Manual Related Commands Arguments Returns Examples Command Descriptions SEQuence ELEMent n LOOP INFinite SEOuence LENGth lt NR1 gt The value ranges between 1 and
121. ou to stop the transfer before it is completed It also helps the external controller to report the progress of the operation to the user The WLISt WAVeform DATA command accepts parameters that makes it possible for control programs to send data in any chunk size The Size parameter of this command sets the chunk size The StartIndex parameter sets the first data point of each chunk Note that using StartIndex and Size it is also possible to transfer only a part of the waveform Though it is possible to transfer any arbitrary sized waveform data to an AWG5000 or AWG7000 Series instrument up to an allowed upper limit there are certain conditions to load the waveform to hardware waveform memory or sequence memory See the SOURce n WAVeform and SEQuence ELEMent n WAVeform m commands to understand the waveform sizes that are allowed in each case AWG5000 and AWG7000 Series Programmer Manual Command Descriptions ABORt No Query Form Group Syntax Related Commands Examples This command stops waveform generation when the arbitrary waveform generator is in gated mode This is equivalent to releasing the Trig button on the front panel when the instrument is in gated mode Trigger ABORt TRIGger SEOuence IMMediate TRG ABORT resets the trigger system AWGControl APPLication RUN No Query Form Group Syntax Related Commands Arguments Examples This command executes the specified application Cont
122. pports Group SCPI SCPI 1933 0 AWGControl AwGContokAPPLicaionRUN O o N AWGCenwol APPlicaionBIATe o E AWGCenrolCLOCkDRATel OO NM AWGCenrelCLOCkPHASeADUs o NM AWGControlCLOCk SOURce o 3 NN AWGConrmekCOMPile NM AWGControl CONFigue CNUMber __ N AWwGControlDC n VOLTageL LEVel lMMediate OFF Set 1 4 AwGCentwekDC n STATeY ooo NM AWGControl DOUTput n E STATelY HN AwGCentekENHanced SEQuence MODe DI AWGControlEVEN DJUMp DEFine o o o o So N AwGConrokEVENcJMODe o ooo o N AwGContokEVENcSOFTware IMMediate o NW AWGContro EVENE TABLel MMediate o o o NM AWwGControl INTerleave ADJustmentAMPLiude TN AwGContollMTerleaeeADJusument PHASe O AwGContoklNTeleave ZERoing JAWwGContoliNTerleave STATel AwGConrotRMODe 0 00 00 0 0 AWGControl RRATel S AwGConrotRRATeHOLD O AwGConrokRHSTate o AwGConrotRUNELIMMediate Io AWwGControl SEQuencerPOSition I AwGContokSEQuencerTYPE CT AwGConrolSNAMe 0 o e AwGConrolSREStere Il AwGConrokSSAVe CT 0 yo AwGControl STDP IMMediate CAL CALibration ALLI F yo lat FL EEDD ur E l nster DAT il 0 Calibration Diagnostic OlAGnosite IMMediate DlAGnostic SELect Displa DISPlayl wINDow 12 STATe lt state gt M__ Event A JEVENtIMPedance o S EVEN Titre TC J Kessel
123. r CAL performs an internal calibration and returns results For example it might return 0 which indicates that the calibration completed without any errors AWG5000 and AWG7000 Series Programmer Manual 2 43 Command Descriptions CALibration ALL This command does a full calibration of the arbitrary waveform generator In its guery form the command does a full calibration and returns a status indicating the success or failure of the operation CALibration ALL is eguivalent to CAL Group Calibration Syntax CALibration ALL CALibration ALL Related Commands CAL Returns calibration error code NRI 0 indicates no error 340 error Examples CALIBRATION ALL performs an internal calibration CALIBRATION ALL performs an internal calibration and returns results For example it might return 0 which indicates that the calibration completed without any errors CLS No Query Form This command clears all event registers and queues Group Status Syntax CLS Related Commands None Examples CLS clears all the event registers and queues 2 44 AWGS5000 and AWG7000 Series Programmer Manual Command Descriptions DIAGnostic DATA Query Only Group Syntax Related Commands Returns Examples This command returns the results of a self test Diagnostic DIAGnostic DATA DIAGnostic IMMediate DIAGnostic SELect NRI 0 indicates no error 330 indicates that the self t
124. ries Programmer Manual 1 5 Setting Up GPIB Communication Setting Up GPIB Communication Setting the GPIB Address Before setting up your instrument for remote communications using the electronic physical GPIB interface you should familiarize yourself with the following GPIB requirements m A unique device address must be assigned to each device on the bus No two devices can share the same device address m No more than 15 devices can be connected to any one line m One device should be connected for every 6 feet 2 meters of cable used No more than 65 feet 20 meters of cable should be used to connect devices to a bus At least two thirds of the devices on the network should be powered on while using the network m Connect the devices on the network in a star or linear configuration Do not use loop or parallel configurations To function correctly your instrument must have a unique device address The default settings for the GPIB configuration are GPIB Address 1 GPIB Mode Talk Listen AWG5000 and AWG7000 Series Programmer Manual Setting Up GPIB Communication To change the GPIB address settings do the following 1 Select GPIB LAN Configuration from the System menu AWG5000 and AWG7000 Series Programmer Manual 1 7 Setting Up GPIB Communication 1 8 2 The GPIB LAN Configuration dialog box is displayed GPIB LAN Configuration x GPIB 8 Talk Listen Address 1 v Off Bus
125. ries Programmer Manual 2 101 Command Descriptions SYSTem TIME Group Syntax Related Commands Arguments Returns Examples This command and query sets or returns the system time When the values are nonintegers they are rounded off to nearest integral values System SYSTem TIME hour minute second SYSTem TIME None hour lt minute gt lt second gt lt hour gt lt NRf gt from 0 to 23 lt minute gt lt NRf gt from 0 to 59 lt second gt lt NRf gt from 0 to 59 lt hour gt lt minute gt lt second gt SYSTEM TIME 11 23 58 sets the time SYSTem VERSion Query Only Group Syntax Related Commands Returns Examples 2 102 This command returns the SCPI version number to which the command conforms System SYSTem VERSion None NR2 YYYY V where YYYY represents the year version and V represents an approved revision number for that year SYSTEM VERSION might return 1999 0 AWG5000 and AWG7000 Series Programmer Manual TRG No Query Form Group Syntax Related Commands Examples Command Descriptions This command generates a trigger event This is equivalent to pressing Trig button on front panel Trigger TRG TRIGger SEOuence IMMediate TRG generates a trigger event TRIGger SEOuence lMMediate No Query Form Group Syntax Related Commands Examples This command generates a trigger event This is equiv
126. ring RSA file import This command is effective only when MMEMory IMPort PARameter LE Vel UPDate STATe is set to True and IQT or TIO is selected as the lt Type gt for the MMEMory IMPort command Mass memory MMEMory IMPort PARameter LEVel UPDate TYPE Type MMEMory IMPort PARameter LEVel UPDate TYPE AWG5000 and AWG7000 Series Programmer Manual 2 59 Command Descriptions Related Commands Arguments Returns Examples MMEMory IMPort MMEMory IMPort PARameter LEVel UPDate STATe lt Type gt IDATa QDATa IDATa indicates that the instrument imports I data QDATa indicates that the instrument imports O data At RST the value is IDATa IDAT QDAT MMEMORY IMPORT PARAMETER LEVEL UPDATE TYPE IDATA sets I data to be imported while importing an RSA file MMEMory IMPort PARameter NORMalize Group Syntax Related Commands Arguments 2 60 This command sets or queries if the imported data is normalized during text data import operation m The imported waveform data is normalized based on the option set in this command m When ZREFerence is selected the offset is preserved during normalization operation m IfFSCale is selected offset is lost and full scale of the DAC is used for normalization NONE will not normalize the data Mass memory MMEMory IMPort PARameter NORMalize NONE FSCale ZREFerence MMEMory IMPort PARameter NORMalize MMEMory IMPort lt Normalization
127. rol AwGControl APPLication RUN lt application_name gt AWGControl APPLication STATe lt application_name gt lt string gt specifies the application to be executed AWGCONTROL APPLICATION RUN SERIALXPRESS runs the Serial Xpress application AWGControl APPLication STATe Query Only Group This query returns the running state of the specified application Control AWG5000 and AWG7000 Series Programmer Manual 2 25 Command Descriptions Syntax Related Commands Arguments Returns Examples AwGControl APPLication STATe lt application_name gt AWGControl APPLication RUN lt application_name gt lt string gt lt Boolean gt 0 indicates False 1 indicates True AWGCONTROL APPLICATION STATE SERIALXPRESS might return indicating that the SerialXpress application is running AWGControl CLOCk DRATe Group Syntax Related Commands Arguments Returns 2 26 This command and query sets or returns the divider rate for the external oscillator Divider rate is applicable only when the reference oscillator source is external Only 1 2 4 8 are valid values Errors for the AWG5000 series are 222 and 224 The 222 which is out of range is produced when a value is greater than 32 and less than or egual to 256 Any non power of 2 value creates a 224 error For the AWG7000 series there is no out of range error and any non power of 2 and greater than 256 produces
128. rol INTerleave ADJustment AMPLitude Group Syntax Related Commands Arguments Returns Examples 2 34 This command and query sets or returns the interleave adjustment amplitude This command is available only for Option 06 This setting is only valid when the interleave state is On Control AWGControl INTerleave ADJustment AMPLitude lt NR3 gt AWGControl INTerleave ADJustment AMPL i tude AWGControl INTerleave STATe AWGControl INTerleave ZERoing lt NR3 gt Range is between 0 5 Vpp to 1 0 Vpp when Zeroing is OFF 0 25 Vpp to 0 5 Vpp when Zeroing is ON At RST this returns 0 Vpp lt NR3 gt AWGCONTROL INTERLEAVE ADJUSTMENT AMPLITUDE 1 sets the interleave adjustment amplitude to 1 volts AWGCONTROL INTERLEAVE ADJUSTMENT AMPLITUDE returns 0 00000000E 000 indicating that the interleave adjustment amplitude is 0 volts AWG5000 and AWG7000 Series Programmer Manual Command Descriptions AWGControl INTerleave ADJustment PHASe Group Syntax Related Commands Arguments Returns Examples This command and query sets or returns the interleave adjustment phase This command is available only for Option 06 This setting is only valid when the interleave state is On Control AWGControl INTerleave ADJustment PHASe NR3 AWGControl INTerleave ADJustment PHASe AWGControl INTerleave STATe lt NR3 gt At RST this returns 0 degree lt NR3 gt AWGCONTROL INTERLEA
129. rror codes and messages Error code range Operation 3000 Sequence editing 4000 Waveform editing 5000 Sequence Waveform loading 6000 Other 8000 Hardware AWG5000 and AWG7000 Series Programmer Manual 3 11 Messages and Codes Command Errors Command errors are returned when there is a syntax error in the command Table 3 5 Command errors Error code Error message 100 Command error 101 Invalid character 102 Syntax error 103 Invalid separator 104 Data type error 105 GET not allowed 108 Parameter not allowed 109 Missing parameter 110 Command header error 111 Header separator error 112 Program mnemonic too long 113 Undefined error 114 Header suffix out of range 115 Unexpected number of parameters 120 Numeric data error 121 Invalid character in number 123 Exponent too large 124 Too many digits 128 Numeric data not allowed 130 Suffix error 131 Invalid suffix 134 Suffix too long 138 Suffix not allowed 140 Character data error 141 Invalid character data 144 Character data too long 148 Character data not allowed 150 String data error 151 Invalid string data 158 String data not allowed 160 Block data error 161 Invalid block data 168 Block data not allowed 170 Expression error 3 12 AWGS5000 and AWG7000 Series Programmer Manual Messages and Codes
130. s SOURce n DAC RESolution SOURce n MARKer 1 2 VOLTage LEVel IMMediate LOW Arguments lt NR3 gt The value of n indicates the channel number At RST this returns 1 V Returns lt NR3 gt Examples SOURCE1 MARKER1 VOLTAGE HIGH 0 75 sets the marker high to 0 75 volts AWG5000 and AWG7000 Series Programmer Manual 2 89 Command Descriptions SOURce n MARKer 1 2 VOLTage LEVel IMMediate LOW Group Syntax Related Commands Arguments Returns Examples This command sets the marker low level In the AWG7000 Series when the DAC resolution is changed to 10 bits marker output is not available However marker related parameters can be modified using SCPI commands Refer to the User Online Help for the setting range of marker high and marker low Source SOURcCe n MARKer 1 2 VOLTage LEVel IMMediate Low lt NR3 gt SOURce n MARKer 1 2 VOLTage LEVel IMMediate LOw SOURce n DAC RESolution SOURce n MAR Ker 1 2 VOLTage LEVel IMMediate HIGH lt NR3 gt The value of n indicates the channel number At RST this returns 0 V lt NR3 gt SOURCE1 MARKER1 VOLTAGE LOW 0 5 sets the marker low to 0 5 volts SOURce n MARKer 1 2 VOLTage LEVel IMMediate OFFSet 2 90 Group Syntax This command sets the marker offset In the AWG7000 Series when the DAC resolution is changed to 10 bits marker output is not available However marker related param
131. sion error 261 Math error in expression 270 Macro error 271 Macro syntax error 272 Macro execution error 273 Illegal macro label 274 Macro parameter error 275 Macro definition too long 276 Macro recursion error 277 Macro redefinition not allowed 278 Macro header not found 280 Program error 281 Cannot create program 282 Illegal program name 283 Illegal variable name 284 Program currently running 285 Program syntax error 286 Program runtime error 290 Memory use error 291 Out of memory 292 Referenced name does not exist 293 Referenced name already exists 294 Incompatible type Device specific Errors These error codes are returned when an internal instrument error is detected This type of error can indicate a hardware problem 3 14 AWG5000 and AWG7000 Series Programmer Manual Messages and Codes Table 3 7 Device specific errors Error code Error message 300 Device specific error 310 System error 311 Memory error 312 PUD memory lost 313 314 Calibration memory lost Save recall memory lost 315 Configuration memory lost 320 Storage fault 321 Out of memory 330 Self test failed 340 Calibration failed 350 Queue overflow 360 Communication error 361 Parity error in program message 362 Framing error in program message 363 Input buffer overrun 365 Time out
132. t be written omamen FEE EP T T fad F FT Tal OENR Read using STATus OPERation ENABle Write using STATus OPE Ration ENABIe Operation Event Register 7 3 o dm mp FP fm F fe To the OSS bit in the SBR Questionable Status Block 3 8 This block reports on the status of signals and data such as the accuracy of entered data and signals generated by the instrument The register configuration and process flow are the same as for the Questionable Status Block As shown in the following figure when an event occurs a signal is sent to the OEVR 1 If the corresponding bit in the QENR is also enabled 2 the QSS bit in the SBR is set to one 3 Operation Event Register 45 14 13 12 n 10 9 B OEVR ph Read using STATus OPERation EVENt 2 Cannot be written q od 4 1 Operation Enable Register i GR VV a i gt 2 s 2 E OENR Read using STATus OPERation ENABIe d Write using STATus OPERation ENABle Ce To the OSS hit in the SAR AWG5000 and AWG7000 Series Programmer Manual Status and Event Reporting Standard Event Status Block This block is used to report power on off command error and command execution status The block has two registers the Standard Event Status Register SESR and the Event Status Enable Register ESER Refer to the Standard Event Status Block shown in the figure in section Status Reporting Structure The SESR is an eight bit status register When an error or other
133. t month gt lt day gt SYSTEM DATE 2008 6 20 sets the date to June 20 2008 SYSTem ERRor NEXT Query Only Group Syntax Related Commands Returns 2 100 This command retrieves and returns data from the error and event queues System SYSTem ERRor NEXT None lt Error event number gt lt error event description device dependant info gt AWG5000 and AWG7000 Series Programmer Manual Examples SYSTem KLOCk Group Syntax Related Commands Arguments Returns Examples Command Descriptions 0 No Error Error event number lt NR1 gt error event description lt string gt SYSTEM ERROR NEXT might return the following response 102 Syntax error possible invalid suffix SOUR FREO 2V This response indicates that the unit is invalid This command locks or unlocks the keyboard and front panel of the arbitrary waveform generator System SYSTem KLOCk lt state gt SYSTem KLOCk None lt state gt lt Boolean gt O indicates False The front panel and keyboard are unlocked 1 indicates True The front panel and keyboard are locked At RST this returns 0 NOTE When you manually set the Touch Screen button to OFF on the front panel the RST will not reset to 0 lt NRI gt SYSTEM KLOCK ON locks the front panel and keyboard SYSTEM KLOCK might return 1 which indicates that the front panel and keyboard are locked AWG5000 and AWG7000 Se
134. time stamp Where yyyy refers to a four digit year number mm refers to two digit month number from 01 to 12 dd refers to two digit day number in the month bh refers to two digit hour number mm refers to two digit minute number ss refers to two digit second number AWG5000 and AWG7000 Series Programmer Manual Examples Command Descriptions WLIST WAVEFORM TSTAMP Sine might return the date and time the Sine waveform was created or last modified WLIST WAVEFORM TSTAMP DC might return because DC is a predefined waveform WLISt WAVeform TYPE Query Only Group Syntax Related Commands Arguments Returns Examples This guery returns the type of the waveform Waveform WLISt WAVeform TYPE lt wfm_name gt WLISt WAVeform NEW lt wfm_name gt lt string gt INT REAL WLIST WAVEFORM TYPE Rampl000 might return REAL AWG5000 and AWG7000 Series Programmer Manual 2 117 Command Descriptions 2 118 AWG5000 and AWG7000 Series Programmer Manual Status and Events Status and Event Reporting Status Reporting Structure The arbitrary waveform generator status reporting functions conform to IEEE 488 2 and SCPI standards Use the status reporting function to check for instrument errors and to identify the types of events that have occurred on the instrument The status reporting function is separated into three functional blocks m Standard Event Status m Opera
135. tion Status Questionable Status The operations processed in these three blocks are summarized in status bytes which provide the error and event data The following figure is a diagram of the instrument s status reporting function AWG5000 and AWG7000 Series Programmer Manual 3 1 Status and Event Reporting Registers 3 2 Questiora bk Status Block FREQuency P 5 Gu sticnalle Comftion Register QCR Questionable Event Register QEYR Questionable Enable Regster QENR Ope ratio n Status Block Erro d Event Operdion Condition Register OCR Operdion Evert Register OEVR Operation E nable Register OENR Status Byte Register SBR Standard E vert Status Register 5 eg amp Service Re quest Enable Register SRER Event Status Enable Register ESER There are two main types of registers m Status Registers store data relating to instrument status These registers are set by the arbitrary waveform generator m Enable Registers determine whether to set events that occur in the instrument to the appropriate bits in the status registers and event queues You can set this register AWG5000 and AWG7000 Series Programmer Manual Status and Event Reporting Status Registers There are six types of status registers m Status Byte Register SBR m Standard Event Status Register SESR m Operation Condition Register OCR m Operation Event Register OEVR m Questionable Condition Register OCR
136. to interleave mode AWGControl INTerleave ZERoing 2 36 Group This command and query sets or returns the state for zeroing when in the interleave mode NOTE This command is available only on the AWG7000 series with option 06 instruments Setting Zeroing to ON will change the amplitude setting range when interleaving is done When Zeroing is OFF amplitude is not affected by the interleave state Setting the zeroing state to ON is a trade off between bandwidth and signal quality Control AWG5000 and AWG7000 Series Programmer Manual Syntax Related Commands Arguments Returns Examples AWGControl RMODe Group Syntax Related Commands Arguments Command Descriptions AWGControl INTerleave ZERoing lt state gt AwGControl INTerleave ZERoing AWGControl INTerleave STATe lt state gt lt Boolean gt 0 indicates OFF 1 indicates ON At RST this returns 0 lt state gt AWGCONTROL INTERLEAVE ZEROING 1 turns on the zeroing function This command and query sets or returns the run mode of the arbitrary waveform generator Control AWGControl RMODe CONTinuous TRIGgered GATed SEOuence ENHanced AwGControl RMODe AWGControl RUN IMMediate AWGControl STOP IMMediate TRG SOURce n FUNCtion USER CONTinuous sets Run Mode to Continuous TRIGgered sets Run Mode to Triggered GATed sets Run Mode to Gated SEQuence sets Run Mode to Sequence ENHanced is provided
137. ts Examples This command executes the seguencer jump to the specified element index Control AWGControl EVENt SOFTware IMMediate lt target gt SEOuence JUMP IMMediate lt target gt lt NRI gt AWGCONTROL EVENT SOFTWARE IMMEDIATE 10 forces the sequencer to jump to index number 10 AWGControl EVENt TABLe lMMediate No Query Form This command forcibly generates an event in the Table Jump mode This command is available for the AWG5012B AWG5000C and AWG7000C with option 09 If the instrument with option 09 is not in the Table Jump mode this command will generate a setting conflict error To set the Jump mode use the AWGControl ENHanced SEQuence JMODe command This command is provided for compatibility with the AWG400 500 600 700 series instruments The same functionality can be invoked by the EVENt IMMediate command NOTE The Table Jump definition cannot be created or edited using a remote command or the screen interface The Table Jump definition is derived from the 7 SEQ file Refer to the User Online Help for more information on the Table Jump definition and SEO file format AWG5000 and AWG7000 Series Programmer Manual 2 33 Command Descriptions Group Syntax Related Commands Examples Control AWGControl EVENt TABLe IMMediate AWGControl ENHanced SEQuence JMODe EVENt IMMediate AWGCONTROL EVENT TABLE IMMEDIATE generates an event signal for Table Jump AWGCont
138. tus Byte Register SBR ueu cen re pde SERI aestu men o mr e rie FFON slats 3 3 Standard Event Status Register GbSbR sess meme mene 3 4 Operation Enable Register OENR c cece cece cece RR FL Ime me eme me enne 3 5 Operation Condition Register OCH 3 5 Operation Event Register OENR FE eme e esse nennen 3 5 Questionable Condition Register OCH 3 5 Enable RegIsters iu iau and EN WEE Dd td Dd dd EU AY A iw 3 5 Event Status Enable Register ESER YY YY YR FER RE me eee nene 3 6 Service Request Enable Register GSRER YY YY YRR FL RR eem e eee 3 6 Questionable Enable Register OENR YY Y YY AR FL mme meme een 3 7 QUCHIES deet dE d SE AE Seege 3 7 Operation Status Block tnr rH GAN OE eI ERR TN ae PRO ENEE cota stone 3 8 Questionable Status Block 3 8 Standard Event Status Block 3 9 Synchronizing eent seet e emer e NE et oem Eie etae DAU NG HR GR 3 10 Messages and Codes cce eere reete sean o Rau NADD EWN O Ra e eeh EXE ees 3 11 Messages and Codes ed YRRU ep RES SER ENERO DRE Eae E Re AU Ne Ai ARA YA deur RR UO Enn 3 11 Command Errors 1 21 pt dunk snare Eon PER LEE SERT YDDAU ERU THU RV GW busta Gn bn RE ida 3 12 Execution Errors saga SE S EE e EE AER SE 3 13 Deyvice specific EITOIS eii dnd pensas geed MAC nA DO DDR Edel 3 14 Query usc RR OG DC UU Cafod DR gedet A 3 15 Power On Ewent Ge eee etri ne beer arcae A EENEG 3 15 Userreguest EVent IIu deeg E EE Eege SEENEN Ee 3 16 Request Control Event ewein e
139. ual Related Commands Arguments Returns Examples Command Descriptions SOURce n DIGital VOLTage LEVel IMMediate LOW SOURce n DIGital VOLTage LEVel IMMediate AMPLitude SOURce n DIGital VOLTage LEVel I MMediate OFFSet lt NR3 gt The value of n indicates the channel number At RST this returns 1 V lt NR3 gt SOURCE1 DIGITAL VOLTAGE LEVEL IMMEDIATE HIGH 1 4 sets the digital output high level to 1 4 volts SOURce n DIGital VOLTage LEVel IMMediate LOW AWG5000 Series only Group Syntax Related Commands Arguments Returns Examples This command and guery sets or returns the low digital output This command is available only for AWG5000B and AWG5000C instruments with option 03 Source SOURce n DIGital VoLTage LEVel IMMediate LOW lt NR3 gt SOURce n DIGital VoLTage LEVel IMMediate LOW SOURce n DIGital VOLTage LEVel IMMediate HIGH SOURce n DIGital VOLTage LEVel IMMediate AMPLitude SOURce n DIGital VOLTage LEVel IMMediate OFFSet lt NR3 gt The value of n indicates the channel number At RST this returns 0 V lt NR3 gt SOURCE1 DIGITAL VOLTAGE LEVEL IMMEDIATE LOW 0 5 sets the digital output high level to 0 5 volts AWG5000 and AWG7000 Series Programmer Manual 2 85 Command Descriptions SOURce n DIGital VOLTage LEVel IMMediate OFFSet AWG5000 Series only Group Syntax Related Commands Argu
140. uments Returns Examples This command and guery sets or returns the ROSCillator multiplier rate This parameter is valid only when Clock Source is Internal and Reference Source is External and External Reference Type is Variable Source soURce 1 ROSCillator MULTiplier lt NR1 gt SOURce 1 ROSCillator MULTiplier SOURce 1 ROSCillator SOURce SOURce 1 ROSCillator TYPE lt NR1 gt At RST this returns 1 lt NRI gt SOURCE1 ROSCILLATOR MULTIPLIER 10 sets the multiplier rate to 10 SOURCE1 ROSCILLATOR MULTIPLIER might return 10 SOURce 1 ROSCillator SOURce Group This command selects the reference oscillator source INTernal means that the reference freguency is derived from the internal precision oscillator EXTernal means the reference freguency is derived from an external signal supplied through the Reference Clock Input connector Source AWG5000 and AWG7000 Series Programmer Manual 2 79 Command Descriptions Syntax Related Commands Arguments Returns Examples SOURce 1 ROSCillator SOURce INTernal ExTernal SOURce 1 ROSCillator SOURCe SOURce 1 ROSCillator FREOuency SOURce 1 ROSCillator TYPE lt INTernal EXTernal gt INTernal The reference frequency is derived from the internal precision oscillator EXTernal The reference frequency is derived from an external signal supplied through the reference clock input At RST this returns INTernal
141. user defined waveforms in the list are deleted in a single action Note that there is no UNDO action once the waveforms are deleted Use caution before issuing this command If the deleted waveform is currently loaded into waveform memory it is unloaded If the RUN state of the instrument is ON the state is turned OFF If the channel is on it will be switched off Waveform AWG5000 and AWG7000 Series Programmer Manual 2 111 Command Descriptions Syntax Related Commands Arguments Examples WLISt WAVeform DELete lt wfm_name gt ALL WLISt SIZE lt wfm_name gt lt string gt WLIST WAVEFORM DELETE ALL deletes all user defined waveforms from the currently loaded setup The ALL parameter does not delete predefined waveforms WLIST WAVEFORM DELETE Testl deletes a waveform called Testl WLISt WAVeform LENGth Query Only This query returns the size of the waveform The returned value represents data Group Syntax Related Commands Arguments Returns Examples 2 112 points not bytes Waveform WLISt wAVeform LENGth WLISt WAVeform NEW lt wfm_name gt lt string gt lt NRI gt lt wfm_name gt WLIST WAVEFORM LENGTH Sine 360 might return 360 AWG5000 and AWG7000 Series Programmer Manual Command Descriptions WLISt WAVeform MARKer DATA Group Syntax Related Commands Arguments Returns This command sets or queries the waveform mar
142. utput queue and can be retrieved 3 Questionable Summary Status QSS AWG5000 and AWG7000 Series Programmer Manual 3 3 Status and Event Reporting Table 3 1 SBR bit functions cont Bit Function 2 Event Queue Available EAV 1 0 Not used Standard Event Status Register SESR 3 4 The Standard Event Status Register SESR is made up of 8 bits Each bit records the occurrence of a different type of event shown in following figure The contents of this register are returned when the ESR query is used The following figure shows the bit values of the SESR 7 6 5 4 3 2 1 0 PON CME EXE DDE QYE _ OPC The following table lists the SESR bit functions Table 3 2 SESR bit functions Bit Function 7 Power On PON Indicates that the instrument was powered on 6 Not used 5 Command Error CME Indicates that a command error has occurred while parsing was in progress 4 Execution Error EXE Indicates that an error occurred during the execution of a command Execution errors occur for one of the following reasons m A value designated in the argument is outside the allowable range of the instrument or is in conflict with the instrument s capabilities m The conditions for execution differed from those essentially required 3 Device Specific Error DDE An instrument error has been detected 2 Query Error QYE Indicates that a query error has been detected by the output queue c
143. ve Source SOURce n COMBine FEED ESIGnal SOURce n COMBine FEED None ESIGnal Adds the input from the external signal Removes the signal feed At RST this returns 7 The value of n is 1 2 3 or 4 depending on the number of channels available Specifying as input cancels the setting ESIG SOURCE1 COMBINE FEED ESIGNAL adds an external signal to the channel 1 output signal SOURce n DAC RESolution This command and guery sets or returns the DAC resolution AWG5000 and AWG7000 Series Programmer Manual 2 81 Command Descriptions Group Syntax Related Commands Arguments Returns Examples NOTE DAC supports 8 bit and 10 bit resolutions only for AWG7000 Series instruments When the resolution changes to 10 bit marker data will not be available AWG5000 Series instruments support only 14 bit resolution Therefore this command will have no effect for these instruments DAC resolution is independent for each channel in AWG7000 Series instruments Source SOURCe n DAC RESolution lt NRl gt SOURce n DAC RESolution SOURce n MARKer 1 2 DELay SOURce n MARKer 1 2 VOL Tage LEVel IMMediate HIGH SOURce n MARKer 1 2 VOLTage LEVel IMMediate AMPLitude SOURce n MARKer 1 2 VOLTage LEVel IMMediate LOW SOURce n MARKer 1 2 VOLTage LEVel IMMediate OFFSet lt NR1 gt 8 sets the DAC resolution
144. veform 0 1000 41000 WLIST WAVEFORM MARKER DATA mywWaveform 0 1000 WLISt WAVeform NEW No Query Form Group Syntax Related Commands Arguments Examples This command creates a new empty waveform in the waveform list of current setup Waveform WLISt WAVeform NEW wfm name Size Type WLISt WAVeform DATA lt wfm_name gt lt string gt Size NRI lt Type gt REAL INTeger WLIST WAVEFORM NEW Test1 1024 INTEGER creates a new integer waveform called Test with 1024 points WLISt WAVeform NORMalize No Query Form Group Syntax Related Commands Arguments 2 114 This command normalizes a waveform that exists in the waveform list of the current setup Waveform WLISt WAVeform NORMalize wfm name Type None lt wfm_name gt lt string gt lt Type gt FSCale ZREFerence AWG5000 and AWG7000 Series Programmer Manual Command Descriptions Examples WLIST WAVEFORM NORMALIZE Untitled25 FSC normalizes the waveform titled Untitled25 if it exists using full scale WLISt WAVeform PREDefined Query Only This query returns true or false based on whether the waveform is predefined NOTE Predefined waveforms have fixed length and name Therefore renaming or deleting them is not possible Creating a new waveform with the same name as the predefined waveform is not possible Data of a predefined waveform can be transferred t
145. window display 1 indicates True restores the window display At RST this value is 0 for window and 1 for window2 lt NRI gt DISPLAY WINDOW1 STATE 0 minimizes the sequence window This command sets or queries the status of Event Status Enable Register Status AWG5000 and AWG7000 Series Programmer Manual 2 47 Command Descriptions Syntax Related Commands Arguments Returns Examples ESR Query Only Group Syntax Related Commands Returns Examples ESE lt NRl gt ESE CLS ESR SRE STB lt NR1 gt lt NRI gt ESE 177 sets the ESER to 177 binary 10110001 which sets the PON CME EXE and OPC bits This query returns the status of Standard Event Status Register Status ESR CLS ESE SRE STB lt NRI gt ESR might return 181 which indicates that the SESR contains the binary number 10110101 EVENt IMMediate No Query Form Group 2 48 This command generates a forced event This is used to generate the event when the sequence is waiting for an event jump See SEQuence ELEMent n JTARget TY PE This is equivalent to pressing the Force Event button on the front panel of the instrument Event AWG5000 and AWG7000 Series Programmer Manual Syntax Related Commands Examples EVENt IMPedance Group Syntax Related Commands Arguments Returns Examples EVENt JTIMing Group Syntax AWG5000 and AWG7000 Series Programmer Manual
146. y Only Group Syntax Related Commands Arguments Returns Examples This query returns the waveform name of an element in the waveform list This query can be used to query the waveform name in the waveform list Waveform WLISt NAME lt Index gt None lt Index gt lt NRI1 gt lt string gt lt wfm_name gt is the waveform name specified by lt index gt WLIST NAME 21 might return untitled21 WLISt SIZE Query Only Group Syntax Related Commands Returns Examples AWG5000 and AWG7000 Series Programmer Manual This query returns the size number of waveforms of the waveform list Names of both predefined and user created waveforms are stored in a single list The maximum size depends on the length of each waveform Waveform WLISt SIZE WLISt WAVeform NEW lt NRI gt At RST this returns the number of predefined waveforms WLIST SIZE might return 25 when user defined waveform list is empty 2 109 Command Descriptions WLISt WAVeform DATA 2 110 Group This command transfers waveform data from the external controller into the waveform list or from the waveform list to the external control program NOTE Before transferring data to the instrument a waveform must be created using the WLISt WAVeform NEW command Use this command to set both analog and marker data To set only the marker data use the WLISt WAVeform MARKer DATA command Using StartIndex
147. y form of the command differs from the set form by its question mark on the end For example the set command AWGControl RRATE has a query form AWGControl RRATE Not all commands have both a set and a query form Some commands have only set and some have only query A command message is a command or query name followed by any information the instrument needs to execute the command or query Command messages may contain five element types defined in the following table AWG5000 and AWG7000 Series Programmer Manual 2 1 Command Syntax Commands Queries Table 2 2 Message symbols and their meanings Symbol Meaning lt Header gt This is the basic command name If the header ends with a question mark the command is a query The header may begin with a colon character If the command is concatenated with other commands the beginning colon is required Never use the beginning colon with command headers beginning with a star lt Mnemonic gt This is a header subfunction Some command headers have only one mnemonic If a command header has multiple mnemonics a colon character always separates them from each other lt Argument gt This is a quantity quality restriction or limit associated with the header Some commands have no arguments while others have multiple arguments A lt space gt separates arguments from the header A lt comma gt separates arguments from each other lt Comma gt A single co
148. y when entering commands You can enter commands in upper or lower case m You can precede any command with white space characters White space characters include any combination of the ASCH control characters 00 through 09 and OB through 20 hexadecimal 0 through 9 and 11 through 32 decimal m The instrument ignores commands consisting of any combination of white space characters and line feeds Abbreviating You can abbreviate many instrument commands Each command in this documentation shows the abbreviations in capitals For example enter the command MMEMory CATalog simply as MMEM CAT AWG5000 and AWG7000 Series Programmer Manual 2 3 Command Syntax 2 4 Concatenating Terminating Use a semicolon to concatenate any combination of set commands and queries The instrument executes concatenated commands in the order received When concatenating commands and queries follow these rules 1 Separate completely different headers by a semicolon and by the beginning colon on all commands except the first one For example the commands TRIGger IMPedance 50 and AwGControl RMODe TRIGgered can be concatenated into the following single command TRIGger IMPedance 50 AWGControl RMODE TRIGgered 2 If concatenated commands have headers that differ by only the last mnemonic abbreviate the second command and eliminate the beginning colon For example concatenate the commands TRIGger SOURCE EXTernal and TRIGger POLarity NEGative into
149. yntax Related Commands Arguments Returns Examples The query returns the name of the subsequence corresponding to the specified index in the subsequence list Subsequence SLISt NAME lt Index gt SLISt SIZE lt Index gt lt NR1 gt lt NRI gt SLIST NAME 3 returns the name of the third subsequence in the subsequence list provided the subsequence list has three or more elements AWG5000 and AWG7000 Series Programmer Manual 2 73 Command Descriptions SLISt SIZE Query Only Group Syntax Related Commands Returns Examples This query returns the size of the subsequence list Subsequence SLISt SIZE SLISt NAME lt NRI gt SLIST SIZE returns the number of existing subsequences SLISt SUBSequence DELete No Query Form Group Syntax Related Commands Arguments Examples 2 74 This command deletes the subsequence from the currently loaded setup NOTE The subsequence will be deleted even if it is a part of the sequence When a subsequence is deleted in the main sequence the string EMPTY will replace the previous subseq_name When you specify ALL all the subsequences in the subsequence list are deleted in a single action Subsequence SLISt SUBSequence DELete lt subseq_name gt ALL SLISt NAME SLISt SUBSequence NEW lt subseq_name gt lt string gt SLIST SUBSEQUENCE DELETE ALL deletes all the subsequence from the currently loaded setup The

Download Pdf Manuals

image

Related Search

Related Contents

manual de usuario    Epson Stylus Pro 7880  Vidikron Vision 10 User's Manual  Supermicro AOC-PG-I2+  Amazing Scope Suite User Manual v1.0  (荒茶生産)(PDF:16KB)  ITA Um K4-5.indd  第339号 - 全国中小建築工事業団体連合会  Untitled  

Copyright © All rights reserved.
Failed to retrieve file