Home
Programmer Manual - Steven M. Anlage Research Page
Contents
1. 2 3 Parameter Types nuzni min eaa N anes accuidanetesamnaaeed cad etwsdeevads cont oseetaed cannmeaseaaes 2 5 SCPI Commands and Queries seese riepen cece een E KONEET esee esee nsn 2 9 Command Groups oc sender ins sdeantoadavessdsuveawsalsgucune dee ed eu ERR ERR NIDR US be SUA IR ire e A 2 11 Control group commdands eiccoe sees ese x rere EE p preda pe ed Rene ni TEENE EEE eda 2 11 Calibration Group Commands sssssssssssssssssssssesse eese ehe me eese een 2 12 Diagnostic Group Commands sss se ee eme eene 2 12 Display Group Commands sssssssssssssssssssssse ee messe ese he eese 2 13 Event Group Commands es a den peo eoe bend ip eet vede dau eine Rowen ues 2 13 Instrument Group Commands ccc cece cece ene eee mense nee eene 2 13 Mass Memory Group Commands n se essere sesers esee ee eee 2 13 Output Group Commands 0 ccc cece ccc eee ene ene nnn A ne nee ene he eese nennen 2 14 Sequence Group Commands ccccceenecenencceceeeeeaeeeeeeneeeeeeeeeeeeneeeeeeeeneneeteneegs 2 14 Source Group Commands ics irer ccc cece diniatan ene ee ee he he ehe senes eene 2 16 Status Group Command s 5 erede de e eee EE e dune coeds Y RER E EAR e RENE E Cop Ge bes E 2 18 Synchronization Group Commands ssssssssssssssssssssssese ee ee enm mese 2 19 System Group Command ca cce tor trt en Eee ge e e BORNE EEEO EEEE FEE deum dine 2 19 Trigger Group Comm
2. AWG5000 AWG7000 Series Command Group AwWG400 AWG500 AWG600 700 Note Output nl OUTPut n FILTer LP amp Ss F REQuencu See Note Valid values depending on models QUTPut n STATe Sequence SEQuence ELEMent n GOTO NDes SEQuence ELEMent n GOTO STATe SEQuence ELEMent n JT ARgetINDes SEQuence ELEMent n JTARget TYPE T LJ SEQuence ELEMent n LOOP COUNK ee ee SEQuence ELEMent n LOOP INFinite ee Lo oJ SEQuence ELEMent n Tw Ait LJ SEGuence ELEMent n w A Veform n ESS eS SS SEQuence JUMPLIMMediate target SEQuence LENGth Source SOuRce n COMBine FEED SOURce 1 FREQueneuy C wl Fixed SOuRce 1 ROSCillatorF REQuencu SOURce 1 ROSCillator ULTiplier SOuRce 1 ROSCillator SOURce SOURce 1 ROSCillatorT YPE SOURce n DAC RESolution SOURce n DEL au AD Just SOURce n DELay POINts SOURce n DiGital VOLTage LEV el IMMediate HIGH SOURce n DiGital VOLTage LEVel IMMediate LOW SOURce n DiGital VOLTage LEVel MMediate AMPLitude SOURce n DiGital VOLTage LEVel IMMediate OF FSet SOURce n ENABle SOURce n F UNCtion U SER SOuRce n MARKer tl2 DEL au Parameter varies depending on models or z E 2 2 o 2 SOURce n MARKer 1l2 VOLTage LEVel IMMediate AMPLitude ee O SOURce n MAR Ker 112 VOLTage LEVel IMMediate HIGH v awes0en SOURce n MAPKer tl2 VOLT age L EV
3. B 4 AWGS000B and AWG7000B 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 supports Group SCPI 1999 0 SCPI 1999 0 AWGControl A OC n VOLTage LEVel IMMediate OFFSet Mediate cer TYPE re ST at UN AWGControl SEQuencer POSition Calibration CALibration ALL Diagnostic Displa DISPlay vINDow IIZ ESTATe state Event wGControl AWwGControl ARATe HOLD AWwGControl e AWwGControkRi mil wGControl S n wGControl S tol EVENtLEVel EVENtPOLaritu Instrument INSTrument COUPle SQURce Mass Memor MMEMorn CATalog MMEMory COlRectoryl MMEMory DATA MEMor t MMEMory IMPort P 4Rameter NORMalize MI MDlRec MMEMory MSIS 4 2 MMEMon IMPort PARameter LEvel UPDate STATe or AWGS000B and AWG7000B Series Programmer Manual C 1 Appendix C SCPI Conformance Information Not defined SCPI 1999 0 Se uence SEGuence ELEMent n GOTOINDen TN EQwnceELEMem njaOTOSTATe SEQuenceELEMent nJJTARgetiNDew gEQuenceELEMem n TARgetTYPE SEQuence ELEMent nJLOOP COUNY N SEGuence ELEMent n LOOP INFinite TN ggueneeELEMem nyTWAk Q ooo p EQuenceELEMem n wAVefom n o gEQuenceJUMP IMMediate etarget SEQuenceLENGth ooo S N SOURee u R
4. 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 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 B 1 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
5. AWGS5000B and AWG7000B Series Programmer Manual 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 IMMediate 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 sets or returns the low digital output This command is available only for AWG5012B and AWG5002B 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 AWGS000B and AWG7000B Series Programmer Manual 2 71 Command Descriptions SOURce n DIGital VOLTage LEVel IMMediate OFFSet AWG5000 Series o
6. Arguments Returns Examples Command Descriptions 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 S TATe lt target gt lt NRI gt lt target gt SEQUENCE ELEMENT1 GOTO INDEX 6 will cause the sequencer to jump to sixth element after executing the first element SEQUENCE ELEMENT GOTO INDEX will return 6 SEQuence ELEMent n GOTO STATe Group Syntax Related Commands Arguments This command sets or retrieves the GOTO state of the sequencer For the SEQuence ELEMent n GOTO INDex command to take effect the GOTO state must be set to true Sequence SEQuence ELEMent n GOTO STATe goto state SEQuence ELEMent n GOTO STATe SEQuence ELEMent n GOTO INDex lt goto_state gt lt Boolean gt 0 indicates False 1 indicates True At RST this returns 0 The value of lt n gt is an index number of sequence AWGS000B and AWG7000B Series Programmer Manual 2 57 Command Descriptions Returns Examples NRI SEQUENCE ELEMENT1 GOTO STATE 1sets the GOTO state to ON SEQuence ELEMent n JTARget INDex Group Syntax Related Commands Arguments Returns Examples This command sets or retrieves the target index for the sequencer s event jump operation Note that this will take effect only when SEQuence ELEMent n JTARget TYPE is set
7. O2MLevel Output2 marker level for AWG7000 series only Diagnostic DIAGnostic SELect ALL FPANel AREGister DTIMing AlMemory A2Memory A3Memory A4Memory CREGister CPLock O1Register OlALevel Ol1MLevel O2Register O2ALevel O2MLevel DIAGnostic SELect DIAGnostic IMMediate ALL FPAN AREG DTIM AIM A2M A3M A4M CREG CPL OIR O1AL OIML O2R O2AL O2ML AWGS5000B and AWG7000B Series Programmer Manual Examples Command Descriptions 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 Syntax Related Commands This command minimizes or restores the sequence 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 WINDowl Sequence 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 window display 1 indicates True restores the window display At RST this value is 1 lt NRI gt DISPLAY WINDOW1 STATE 0 minimizes the sequence window This command sets or queries the status of Event Status Enable Register Status ESE NR1 ESE CLS ESR
8. OFFSet lt NR1 gt 8 sets the DAC resolution 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 68 This command sets or returns the delay in seconds of the analog output NOTE The effect of this command can be seen only in non sequence mode This command does not change the waveform display on the user interface AWGS5000B and AWG7000B 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 AWGS5000B and AWG7000B Series Programmer Manual This command sets or returns the delay in points of the analog output NOTE The effect of this command can be seen only in non sequence 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 SSOURc
9. While setting the parameter it is case insensitive 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 The value of n is 1 2 3 or 4 depending on the number of channels available Specifying as input cancels the setting ESIG 6699 SOURCE1 COMBINE FEED ESIGNAL adds an external signal to the channel 1 output signal SOURce n DAC RESolution This command sets or returns the DAC resolution AWGS000B and AWG7000B Series Programmer Manual 2 67 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 NR1 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
10. B Operation Event Register OEVR Questionable Condition Register QCR 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 queue SESR and service requests The contents of this register are returned when the STB query is used The following figure shows the bit values of the SBR 6 7 ROS 5 4 3 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 RQS bit and indicates to the controller that a service request has occurred that the GPIB bus SRQ is LOW The RQS 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 request 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 Ava
11. Executes a self test 2 12 AWGS000B and AWG7000B Series Programmer Manual Command Groups Display Group Commands You can use the following display commands to set the display state of waveform and sequence windows on the AWG5000 and AWG7000 series 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 You can use the following event commands to configure 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 You can 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 COUPle SOURce Sets or returns the coupled state for a channel Mass Memory Group Commands You can use the following mass memory commands to read write data from to hard disk on the instrument AWGS000B and AWG7000B Series Programmer Manual 2 13 Command Groups
12. 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 MMEMory IMPort PARameter F REQuency UPDate STATe Sets or queries FREquency parameter that decides whether frequency is modified during waveform import MMEMory IMPort PARameter LEVel UPDate CHANnel Sets or queries the channel of which the amplitude and offset values are selected to be updated during import MMEMory IMPort PARameter LEVel UPDate STATe Sets or queries LEVel parameter that decides whether amplitude and offsets are modified during waveform import MMEMory IMPort PARameter NORMalize Sets or queries whether waveform data are to be normalized 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 You can use the following output commands to set or return the characteristics of the output port of t
13. WLISt WAVeform NEW NRI At RST this returns the number of predefined waveforms WLIST SIZE might return 20 when user defined waveform list is empty AWGS5000B and AWG7000B Series Programmer Manual Command Descriptions WLISt WAVeform DATA Group Syntax Related Commands Arguments 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 NEWcommand Using StartIndex and Size part of a waveform can be transferred at a time Very large waveforms can be transferred in chunks 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
14. ve Raw Socket LAN On PortNumber 4 000 Off AWGS000B and AWG7000B Series Programmer Manual 1 7 Setting Up GPIB Communication 3 Change the GPIB Address to a unique address 4 Click OK button 1 8 AWGS5000B and AWG7000B Series Programmer Manual Documentation Documentation In addition to this AWG5000 and AWG7000 Series Programmer Online Guide the following documentation is included with this instrument AWGS5000 or AWG7000 Series Arbitrary Waveform Generators Quick Start User Manual The Quick Start User Manual has information about installing and operating your instrument AWGS5000 and AWG7000 Series Arbitrary Waveform Generators User Online Help The User Online Help system is integrated with the User Interface application that ships with this product The online help provides in depth operation and user interface help AWGS5000 or AWG7000 Series Arbitrary Waveform Generators Specifications and Performance Verification Technical Reference Manual The technical reference manual is a PDF only manual it includes both the specifications and the performance verification procedure m AWGS5000 and AWG7000 Series Service Manual is a PDF only manual it includes procedures to service the instrument to the module level The service manual is available on the Tektronix Web site www tektronix com manuals AWGS000B and AWG7000B Series Programmer Manual 1 9 Sample Program Sample Program The sample p
15. ADJust Sets or returns the delay in seconds of the analog output SOURce n DELay POINts Sets or returns the delay in points of the analog output SOURce n DIGital VOLTage LEVell IMMediate AMPLitude Sets or returns the amplitude of digital output AWGS5000B and AWG7000B Series Programmer Manual Command Groups Table 2 18 Source group commands and their descriptions cont Command Description SOURce n DIGital VOLTage LEVel IMMediate HIGH Sets or returns the high digital output SOURce n DIGital VOLTage LEVel IMMediate LOW 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 IMMediate AMPLitude Sets or returns the amplitude of digital output SOURce n MARKer 1 2 VOLTage LEVel IMMediate HIGH Sets or returns the high digital output SOURce n DIGital VOLTage LEVel IMMediate LOW Sets or returns the low digital output SOURce n DIGital V OLTage LEVel IMMediate OFFSet Sets or returns the offset of digital output SOURce n FUNCtion USER SOURce n MARKer 1 2 DELay Sets or returns the waveform to waveform memory Sets or returns the marker delay SOURce n MARKer 1 2 VOLTage LEVell IMMediate AMPLitude Sets the marker amplitude SOURce n MARKer 1 2 V
16. 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 AWGContro l RUN IMMediate AWGControl STOP MMediate SOURce n WAVeform AWGCONTROL RUN puts the instrument in the run state AWGControl SEQuencer POSition Query Only Group Syntax Related Commands Returns 2 34 This query returns the current position of the sequencer Control AWGControl SEQuencer POSi tion AWGControl SEQuencer TY PE NRI At RST this value is 1 AWGS5000B and AWG7000B Series Programmer Manual Examples Command Descriptions 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 sequencer 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 AW
17. LENGth 2 97 WLISt WAVeform MARKer DATA 2 97 WLISt WAVeform PREDefined 2 99 WLISt WAVeform TS Tamp 2 99 WLIStWAVeform TYPE 2 100 WLISt NAME 2 94 WLISt SIZE 2 94 WLISt WAVeform DATA 2 95 WLISt WAVeform NEW 2 98 AWGS5000B and AWG7000B Series Programmer Manual
18. LEVel IMMediate HIGH This command 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 Group Source Syntax SoURce n vorTage LEVe1l IMMediate HIGH lt NR3 gt soURce n voL Tage LEVve1 IMMediate HIGH Related Commands SOURce n VOLTage LE Vel IMMediate LOW Arguments lt NR3 gt The value of n indicates the channel number At RST this returns 0 5 V Returns lt NR3 gt Examples SOURCE1 VOLTAGE HIGH 0 75 sets the channell s high to 0 75 volts SOURce n VOLTage LEVel IMMediate LOW This command 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 Group Source AWGS000B and AWG7000B Series Programmer Manual 2 79 Command Descriptions Syntax Related Commands Arguments Returns Examples soURce n voLTage LEVel IMMediate LOW lt NR3 gt SOURce n voL Tage LEVe1 IMMediate LOw None lt NR3 gt The value of n indicates the channel number At RST this returns 0 5 V lt NR3 gt SOURCE1 VOLTAGE LOW 0 25 sets the channell low to 0 25 volts SOURce n VOLTage LEVel IMMediate OFFSet Group Syntax Related Commands Arguments Returns Examples 2 80 This command sets or returns the offset for the
19. MARKer 1 2 VOLTage LEVel IMMediate AMPLitude NR3 SoURce n MARKer 1 2 VOLTage LEVe1 IMMediate AMPLi tude SOURce n DAC RESolution lt NR3 gt The value of n indicates the channel number At RST this returns 1 Vpp lt NR3 gt SOURCEL MARKER1 VOLTAGE AMPLITUDE O 5v sets the channel markerlamplitude to 0 5 volts SOURCE1 MARKERL VOLTAGE AMPLITUDE will return 0 5 volts SOURce n MARKer 1 2 VOL Tage LEVel IMMediate HIGH 2 74 Group Syntax 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 Source SoURce n MARKer 1 2 VOLTage LEVel IMMediate HIGH lt NR3 gt AWGS5000B and AWG7000B Series Programmer Manual Related Commands Arguments Returns Examples Command Descriptions SOURCe n MARKer 1 2 VOLTage LEVel IMMediate HIGH SOURce n DAC RESolution SOURce n MARKer 1 2 VOLTage LEVel IMMediate LOW lt NR3 gt The value of n indicates the channel number At RST this returns 1 V lt NR3 gt SOURL MARK1 VOLT HIGH 0 75 sets the marker high to 0 75 volts SOURce n MARKer 1 2 VOLTage LEVel IMMediate LOW Group Syntax Related Commands Arguments Retur
20. MEMory IMPort PARameter LEVel UPDate HANnel 2 51 Mory IMPort PARameter LEVel UPDate STATe 2 51 Mory IMPort PARameter NORMalize 2 52 Mory CATalog 2 46 Mory CDlIRectory 2 47 Mory DATA 2 48 Mory DELete 2 48 Mory IMPort 2 49 Mory MDIRectory 2 53 Mory MSIS 2 53 So Sssc e558 O sS5S55558585 Z S S55 mmummmmdmg OPC 2 54 OPT 2 54 OUTPut n FILTer LPASs FREQuency 2 55 OUTPut n STATe 2 55 R RST 2 56 S SEQuence ELEMent n GOTO INDex 2 56 SEQuence ELEMent n GOTO STATe 2 57 SEQuence ELEMent n JTARget INDex 2 58 SEQuence ELEMent n JTARget TY PE 2 58 SEQuence ELEMent n LOOP COUNt 2 59 Index 1 Index SEQuence ELEMent n LOOP INFinite 2 60 SEQuence ELEMent n TWAit 2 60 SEQuence ELEMent n WAVeform 2 61 SEQuence JUMP IMMediate 2 62 SEQuence LENGth 2 62 SOURce 1 FREQuency CW FIXed 2 63 SOURce 1 ROSCillator FR EQuency 2 64 SOURce 1 ROSCillator MULTiplier 2 65 SOURce 1 ROSCillator SOURce 2 65 SOURce 1 ROSCillator TYPE 2 66 SOURce n COMBine FEED 2 67 SOURce n DAC RESolution 2 67 SOURce n DELay POINts 2 69 SOURce n DELay ADJust 2 68 SOURce n DIGital VOLTage LEVel IMMediate HIGH 2 70 SOURce n DIGital VOLTage LEVel IMMediate LOW 2 71 SOURce n DIGital VOLTage LEVel IMMediate OFFSet 2 72 SOURce n DIGital VOLTage LEVel IMMediate AMPLitude 2 70 SOURce n FUNCtion USE
21. Returns Examples This command returns the SCPI version number to which the command conforms System SYSTem VERSion None lt NR2 gt YYYY V where YYYY represents the year version and V represents an approved revision number for that year SYSTEM VERSION might return 1999 0 AWGS000B and AWG7000B Series Programmer Manual 2 87 Command Descriptions TRG No Query Form Group Syntax Related Commands Examples This command generates a trigger event This is equivalent to pressing Trig button on front panel Trigger TRG TRIGger SEQuence IMMediate TRG generates a trigger event TRIGger SEQuence IMMediate No Query Form Group Syntax Related Commands Examples This command generates a trigger event This 1s equivalent to TRG Trigger TRIGger SEQuence IMMediate TRG TRIGGER SEQUENCE IMMEDIATE generates the trigger event TRIGger SEQuence IMPedance Group Syntax Related Commands 2 88 This command sets or returns the trigger impedance It applies only to the external trigger Trigger TRIGger SEQuence IMPedance impedance TRIGger SEQuence IMPedance None AWGS5000B and AWG7000B Series Programmer Manual Arguments Returns Examples Command Descriptions lt impedance gt lt NR3 gt At RST this returns 1 kQ lt NR3 gt TRIGGER SEQUENCE IMPEDANCE 50 selects 50 impedance for the external trigger input
22. 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 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 AWGS5000B and AWG7000B Series Programmer Manual Related Commands Returns Examples Command Descriptions None lt opt gt opt 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 F REQuency Group Syntax Related Commands Arguments Returns Examples OUTPut n STATe Group This command 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 lt NR3 gt OUTPUT1 FILTER LPASS FREQUENCY 200MHZ sets the cutoff frequency of t
23. 1 Interface Messages ove eoe HD LEER pon Ee Es ULH EEE REC AR NE E B 3 ii AWG5000B and AWG7000B Series Programmer Manual Table of Contents Appendix C SCPI Conformance Information 0 ce eee ec cece cence eee e mene C 1 Appendix D Raw Socket Specification sess ene eene sese D 1 Appendix E Factory Initialization Settings cc cece ccc e cece ence eee e meme E 1 Appendix F Compatibility with Other Instruments c ccc cece cece cece nee mme emen F 1 AWGS000B and AWG7000B Series Programmer Manual iii Table of Contents iv AWGS5000B and AWG7000B Series Programmer Manual Getting Started Introduction This online programmer guide provides you with the information you need to use commands for remotely controlling your instrument With this information you can 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 a TekVISA 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 info
24. AWGControl CLOCk SOURce Sets or returns the clock source AWGControl CONFigure CNUMber Returns the number of channels available on the instrument AWGControl DC n S TATe Sets or returns the DC state AWGControl DC n VOL Tage L EVel IMMediate OFFSet Sets or returns the DC output offset AWGControl DOUTput n S TATe Outputs the raw waveform in the DAC of the specified channel AWGControl EVENt SOF Tware IMMediate Executes the sequencer jump to the specified element index AWGControl INTerleave ADJustment AMPLitude Sets or returns the interleave adjustment amplitude AWGControl INTerleave ADJustment PHASe Sets or returns the interleave adjustment phase AWGControl INTerleave S TATe Enables or disables the interleave state for channels AWGControl INTerleave ZERoing Sets or removes the zeroing option for the interleave mode AWGControl RMODe Sets or returns the run mode of the arbitrary waveform generator AWGControl RRATe Sets or retums 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 SE
25. 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 6699 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 BW 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 you can express it using SI units instead 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 you can 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 AWGS000B and AWG7000B Series Programmer Manual 2 7 Command Syntax 2 8 You can omit the unit when you describe commands but you mu
26. OLTage LEVel IMMediate HIGH Sets the marker high level SOURce n MARKer 1 2 VOLTage LEVell MMediate LOW Sets the marker low level SOURce n MARKer 1 2 VOLTage LEVel IMMediate OFFSet Sets the marker offset SOURce n PDELay HOLD SOURce n PHASe ADJust Sets or returns which parameter is retained when sampling rate or waveform length is changed Sets or returns the phase of the analog output SOURce n SKEW Sets or returns the skew for the waveform associated with a channel SOURce n VOLTage LEVel IMMediate 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 AWGS5000B and AWG7000B Series Programmer Manual 2 17 Command Groups Table 2 18 Source group commands and their descriptions cont Command Description SOURce n VOL Tage L EVel IMMediate Sets or returns the offset for the waveform OFFSet associated with a channel SOURce n WAVeform Sets or retums the output waveform from the current waveform list for each channel when Run Mode is not Sequence Status Group Command The external controller uses the status commands to coor
27. SRE STB AWGS000B and AWG7000B Series Programmer Manual 2 41 Command Descriptions Arguments Returns Examples ESR Query Only Group Syntax Related Commands Returns Examples 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 NRI ESR might return 181 which indicates that the SESR contains the binary number 10110101 EVENt IMMediate No Query Form Group Syntax Related Commands 2 42 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 TYPE This is equivalent to pressing the Force Event button on the front panel of the instrument Event EVENt IMMediate EVENt IMPedance EVENt JTIMing EVENt LEVel EVENt POLarity AWGS5000B and AWG7000B Series Programmer Manual Examples EVENt IMPedance Group Syntax Related Commands Arguments Returns Examples EVENt JTIMing Group Syntax Related Commands Arguments AWGS5000B and AWG7000B Series Programmer Manual Command Descriptions EVENT IMMEDIATE generates the event signal This command sets or returns the impedance of the external event input Valid values are 50 ohm or 1 kohm Event EVENt IMPedance ohms EVENt IM
28. TRIGger SEQuence LEVel POSitive 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 AWGS5000B and AWG7000B Series Programmer Manual Command Descriptions TRIGger SEQuence SLOPe Group Syntax Related Commands Arguments Returns Examples This command sets or returns the trigger slope It is used to set polarity in modes other than gated mode Trigger TRIGger SEQuence SLOPe POSitive NEGative TRIGger SEQuence SLOPe TRIGger SEQuence 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 SEQUENCE SLOPE NEGATIVE selects the Negative slope TRIGger SEQuence SOURce Group Syntax Related Commands Arguments This command sets or returns the trigger source Trigger TRIGger SEQuence SOURce INTernal EXTernalj TRIGger SEQuence SOURCe TRIGger SEQuence LEVel TRIGger SEQuence POLarity TRIGger SEQuence SLOPe TRIGger SEQuence TIMer INTernal selects internal clock as the trigger source Ex
29. UPDate STATe state MMEMory IMPort PARameter FREQuency UPDate STATe Related Commands MMEMory IMPort Arguments lt State gt lt Boolean gt O indicates False 1 indicates True At RST this returns 1 Returns lt state gt 2 50 AWGS5000B and AWG7000B Series Programmer Manual Examples Command Descriptions 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 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 STATe 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 LE Vel 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 MMEMory IMPort PARameter LEVel UPDate STATe Group This command sets or queries the LEVel parameter which dete
30. and AWG7000B Series Programmer Manual 3 9 Status and Event Reporting Synchronizing Execution All commands used in the arbitrary 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 AWG5000B and AWG7000B Series Programmer Manual Messages and Codes Messages and Codes AWGS5000B and AWG7000B Series Programmer Manual Messages and Codes Error and event codes with negative values are SCPI standard codes Error and event codes with positive values are unique to the arbitrary waveform generator series number The following table lists event code definitions When an error occurs you can 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 errorscell 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 co
31. byte The minimum size of the waveform must be 1 and the maximum size depends on the instrument model and configuration Refer to the User Online Help AWG Reference gt Waveform General Information section for the detailed format specification Waveform WLISt wAVeform DATA lt wfm_name gt lt StartIndex 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 StartiIndex Size block data lt wfm_name gt lt string gt AWGS000B and AWG7000B Series Programmer Manual 2 95 Command Descriptions Returns Examples StartIndex NRI Size NRI block data IEEE 488 2 block block data WLIST WAVEFORM DATA Testwfm 0 1024 442048xxxx this transfers waveform data to a waveform called TestWfm created earlier using the WLISt WwAVeform 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 2 96 Group Syntax Related Commands Arguments This command deletes the waveform from the currently loaded setup NOTE The waveform w
32. caution Also note that passing a value AWGS5000B and AWG7000B Series Programmer Manual Command Descriptions less than the sequence s current length will cause some sequence elements to be deleted at the end of the sequence For example if SEQuence LENGth returns 200 and you subsequently send SEQuence LENGth 21 all sequence elements except the first 20 will be deleted Group Sequence Syntax SEQuence LENGth lt NR1 gt SEQuence LENGth Related Commands None Arguments lt NR1 gt At RST this returns 0 Returns lt NRI gt Examples 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 SEQUENCE LENGTH 0 will delete the sequence SOURce 1 FREQuency CW FIXed This command sets or returns the sampling frequency of the arbitrary waveform generator Sampling frequency can be set when the internal clock source is selected and one of the following conditions is met m 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 Note that the frequency of the waveform output by the instrument is calculated a
33. 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 you can use the computer to remotely control your AWG5000 and AWG7000 Series With the AWG5000 and AWG7000 Series you can use the GPIB interface as a controller See the GPIB Parameters for information on GPIB parameters LAN Interface The AWG5000 and AWG7000 Series 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 AWGS000B and AWG7000B Series Programmer Manual GPIB Parameters GPIB Parameters To use the GPIB the AWG5000 and AWG7000 Series require you to configure the GPIB mode and the GPIB address m Talk Listen Select this mode to remotely control your AWG5000 and AWG7000 Series using an external computer as the controller m Off Bus Select this mode to electronically disconnect the AWG5000 and AWG7000 Series from the GPIB bus m Address This address is a number that allows the software to identify each device connected to the GPIB bus You must specify a unique number from 0 to 30 for each device AWGS000B and AWG7000B Series Programmer Manual 1 3 LAN Parameters LAN Parameters In the AWG5000 and AWG7000 Series set parameters to start
34. have both a set form and a query form The query 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 Messages 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 AWGS000B and AWG7000B Series Programmer Manual 2 1 Command Syntax Commands Queries Table 2 2 Message symbols and their meanings Symbol Meaning Header 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 argument
35. jump target to INDex SEQuence ELEMent n LOOP COUNt Group Syntax Related Commands Arguments Returns This command will set or query the loop count Loop count setting for an element is ignored if SEQuence ELEMent n LOOP INFinite is set to TRUE Sequence SEQuence ELEMent n LOOP COUNt lt NR1 gt SEQuence ELEMent n LOOP COUNt SEQuence ELEMent n LOOP INFinite lt NR1 gt The value ranges between 1 and 65 536 At RST this returns 1 The value of n is an index number of sequence NRI AWGS000B and AWG7000B Series Programmer Manual 2 59 Command Descriptions Examples 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 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 SEQuence ELEMent n LOOP INFinite loop state SEQuence ELEMent n LOOP INFinite SEQuence ELEMent n LOOP COUNt lt loop_state gt lt Boolean gt 0 indicates False OFF 1 indicates True ON At RST this returns 0 The value of lt n gt is an index number of sequence lt NRI gt SEQUEN
36. not used in the arbitrary waveform generator Status STATus OPERation EVENt STATus OPERation CONDition STATus OPERation ENABle NRI STATus PRESet No Query Form Group Syntax Related Commands Examples This command sets the OENR and QENR registers Status STATUS PRESet None STATUS PRESET resets the SCPI enable registers STATus QUEStionable CONDition Query Only Group Syntax Related Commands Returns AWGS5000B and AWG7000B Series Programmer Manual This query returns the status of the Questionable Condition Register Note that the QCR is not used in the arbitrary waveform generator Status STATUS QUEStionable CONDition STATus QUEStionable ENABle STATus QUEStionable EVENt lt NRI gt 2 83 Command Descriptions STATus QUEStionable ENABle Group Syntax Related Commands Returns This command sets or returns the mask for Questionable Enable Register Note that the QENR is not used in the arbitrary waveform generator Status STATUS QUEStionable ENABle lt NR1 gt STATUS QUEStionable ENABle STATus QUEStionable CONDition STATus QUEStionable EVENt lt NRI gt STATus QUEStionable EVENt Query Only Group Syntax Related Commands Returns Examples STB Query Only Group Syntax 2 84 This query returns the status of the QEVR register and clears it Status STATus QUEStionable EVENt STATus QUEStionable CONDiti
37. 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 used through TekVISA To use this protocol Tek VISA must also be installed on the remote controller PC amp Raw Socket LAN TCP IP protocol is used Use the GPIB LAN Configuration option to set the socket communication On and Off You can 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 AWG5000 and AWG7000 Series are specified to automatically acquire an IP address by DHCP Refer to Windows documentation regarding network related parameters For TekVISA refer to the TekVISA manual J 7 CE We 1 4 AWGS000B and AWG7000B 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 AWGS000B and AWG7000B Series 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 physic
38. the end of message terminator must be the END message 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 Parameter Types Parameters are indicated by angle brackets such as file name 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 AWG5000 and AWG7000 series 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 21012234567890 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 NR2n NR3 examples that may be type NR1 NR2 in this table or NR3 String Alphanumeric characters Testing 1 2 3 must be within quotation marks About MIN MAX You can use MINimum and MAXimum keywords in addition to Numeric in the commands with the Numeric parameter You can set the minimum value or the maximum value by using these keywords You can query the minimum value or the maximum value at that time AWGS000B and AW
39. used When path contains only the file name current path is assumed Mass memory MMEMOry DATA file name block data MMEMOry DATA file name MMEMory CDlIRectory MMEMory MSIS file name block data Block data IEEE 488 2 data block file name string having filename and path MMEMORY DATA FILEI 4241024XXXXX loads data into the file FILEI MMEMory DELete No Query Form Group 2 48 This command deletes a file or directory from the instrument s hard disk When used on a directory this command succeeds only if the directory is empty Mass memory AWGS5000B and AWG7000B Series Programmer Manual Syntax Related Commands Arguments Examples Command Descriptions MMEMOry DELete file name msus MMEMory CDIRectory MMEMory MSIS lt fi1le_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 IMPort No Query Form 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
40. 34 54 LA12 74 LA28 114 TAi2 134 174 SA28 1100 FF FS L i c 12 1C 28 2C 44 3C 60 4C 76 5C 7C 124 15 35 55 LA13 75 LA29 115 TA13 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 SA30 1110 so RS gt N E 14 1E 30 2 46 3E 62 4E 78 5E 7E 126 17 37 57 LA15 77 UNL 117 TA15 137 177 1111 SI US 0 iced F 15 tF at 2F 47 3F 63 4F 79 sF 95 z O toy ADDRESSED UNIVERSAL LISTEN TALK SECONDARY ADDRESSES COMMANDS COMMANDS ADDRESSES ADDRESSES OR COMMANDS KEY als PPC3 GPIB code with ATN asserted Tektronix ENQ lt ASCII character hex 5 5X decimal IEEE STD 488 1 1987 AWGS5000B and AWG7000B Series Programmer Manual ISO STD 646 2973 A 1 Appendix A Character Charts A 2 AWGS000B and AWG7000B Series Programmer Manual Appendix B GPIB Interface Specifications GPIB Interface Specifications Interface Functions AWGS5000B and AWG7000B Series Programmer Manual 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
41. AWG5000B and AWG7000B Series Arbitrary Waveform Generators Programmer Manual NIAAA A N TOTON Tektronix 077 0061 00 AWG5000B and AWG7000B Series Arbitrary Waveform Generators Programmer Manual www tektronix com 077 0061 00 Tektronix Copyright Tektronix Inc All rights reserved 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 Inc P O Box 500 Beaverton OR 97077 TEKTRONIX and TEK are registered trademarks of Tektronix Inc AWG5000 and AWG7000 Series Programmer Online Help part number 076 0146 00 Contacting Tektronix Tektronix Inc 14200 SW Karl Braun Drive P O Box 500 Beaverton OR 97077 USA For product information sales service and technical support n North America call 1 800 833 9200 Worldwide visit www tektronix com to find contacts in your area Warranty 2 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 will provide a replacement in exchange for the defective product Parts modules and replacement products used by Tektronix for warrant
42. CE ELEMENTL LOOP INFINITE 1 sets the infinite flag to True ON SEQuence ELEMent n TWAit 2 60 Group This command sets or returns the wait trigger state for an element You can send a trigger signal in three ways By using an external trigger signal By pressing the Force Trigger button on the front panel m By sending the TRG remote command Sequence AWGS5000B and AWG7000B Series Programmer Manual Syntax Related Commands Arguments Returns Examples Command Descriptions SEQuence ELEMent n TWAit Boolean SEQuence ELEMent n TWAit None wait trigger state Boolean 0 indicates False OFF 1 indicates True ON At RST this returns 0 In the OFF state the sequencer ignores trigger signals The value of n 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 TWAIT 1 sets the wait trigger state to ON SEQuence ELEMent n WAVeform Group This command sets or returns the waveform for a sequence 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 sequence is run The length of all the wavef
43. E 1 Appendix E Factory Initialization Settings OUTPut n FILTer L P ASs FREQuencu DUTPu n STATeJ O DOUTPut n STATe 10 GHz 10 MHz 1 INTernal Fixed 8 Os 0 points Source SOURce n FUNCtion USER t an a SOUR ce n MARKer t2 DELay 0 Cea E E9UReefn PHA SAO ooo Meer SUREeRIYOLTERREYSEPAWegRS AMPURE O Vp SQUFenIVOLTageLLEVeEMVedatej HGH 8 8 oov 05V sURexo YOL Tagel EveljiMmMedarejorr s fov La Group Command amp o Defaut setting Synchronization NA NA Trigger TRlGge SEQuenceLEVel M Waveform AWGS5000B and AWG7000B 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 AWGS00 AWG600 and AWG700 Series AWG5000 AWG7000 Series Command Group AWG400 AWG500 AWG600 700 Note AWGControl pnm AWwGControLCLOCKkDRATe JJ AWGControkCLOCk PHASe ADJust a O OE AWGControkCLOCKk SOURce v lawas00 AwG500 onl AWGControkCONFigure CNUMber E 3 AWGControLDC n STATe Lo LLL YI AWGControkDC n VOLT age LEVel IMIVediate OFF Set f DEDE AWwGControlDOUTput n STATe v ee ee AWGControLEVENt SOF Tware IMMediate AWGControkINTerleave ADJustment AMPLitude hcc c 4wGControl iNTerleave 4OJustment PHASe
44. Error QYE Indicates that a query error has been detected by the output queue controller Query errors occur for one of the following reasons m Anattempt 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 AWGS5000B and AWG7000B 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 registe
45. G7000B Series Programmer Manual 2 5 Command Syntax 2 6 Block Quoted String 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 lt Block gt A block of data bytes defined as Block lt NZDig gt lt Dig gt lt Dig gt lt DChar gt 0 lt DChar gt lt terminator gt lt NZDig gt specifies the number of lt Dig gt elements that follow Taken together the lt Dig gt elements form a decimal integer that specifies how many lt DChar gt elements follow 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 For example this is a quoted string This documentation represents these arguments as follows Table 2 6 String symbol and meaning Symbol Meaning QString gt Quoted string of ASCII text AWGS5000B and AWG7000B 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
46. GCONTROL SEQUENCER TYPE might return HARD if the instrument is in the hardware sequencer mode AWGControl SNAMe Query Only Group Syntax Related Commands Returns 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 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 AWGS000B and AWG7000B Series Programmer Manual 2 35 Command Descriptions Examples AWGCONTROL SNAME might return the following response LE NmyNprojectNawgNsetupNal 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 file name msus AWGControl SNAMe AWGControl SSAVe lt file name gt lt string gt msus mass storage unit specifier lt string gt AWGCONTROL SRESTORE Setupl Awg AWGControl SSAVe No Query Form Group Syntax Related Commands Arguments 2 36 This command saves the arbitrary waveform genera
47. I gt Returns 1 2 or 4 depending on the model AWGCONTROL CONFIGURE CNUMBER might return 2 AWGControl DC n STATe This commands sets or returns the output state of the DC outputs Use this command to turn off or turn on the DC outputs The value of n2 1 2 3 4 AWGS000B and AWG7000B Series Programmer Manual 2 25 Command Descriptions Group Syntax Related Commands Arguments Returns Examples 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 AWGControl DC n STATe AWGControl DC n VOLTage LE Vel IMMediate OFFSet state Boolean O indicates False 1 indicates True At RST this returns 0 lt state gt AWGCONTROL DC1 STATE 1 sets the DC1 output to On AWGControl DC n VOLTage LEVel IMMediate OFFSet Group Syntax Related Commands Arguments 2 26 This command sets or returns the DC output level The value of n 1 2 3 4 Control AwGControl DC n voLTage LEVel 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 AWGS5000B and AWG7000B Series Programmer Manual Command Descriptions Returns lt NR3 gt Examples AWGCON
48. LD 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 2 77 Command Descriptions SOURce n SKEW Group Syntax Related Commands Arguments Returns Examples This command sets or returns the skew for the waveform associated with a channel Source SOURce n SKEW lt NR3 gt SOURCe n SKEW None lt NR3 gt 100 ps to 100 ps It can be changed by a minimum of Ips 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 will return 7 50000000E 011 indicating that the skew is 75 ps SOURce n VOLTage LEVel IMMediate AMPLitude Group Syntax Related Commands Arguments 2 78 This command sets or returns the amplitude for the waveform associated with a channel Source SOURCe n VOLTage LEVel IMMediate AMPLitude lt NR3 gt SOoURce 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 AWGS5000B and AWG7000B Series Programmer Manual Command Descriptions At RST this returns 1 Vpp Returns lt NR3 gt Examples SOURCE1 VOLTAGE AMPLITUDE 1 5 sets the amplitude of channell to 1 5 volts SOURCE1 VOLTAGE AMPLITUDE will return 1 5 SOURce n VOLTage
49. OH DC1 1 A Q a q 1 5 17 2 38 31 49 41 65 51 81 et 97 71 113 42 LA2 62 LA18 102 TA2 122 TA18 142 SA2 162 SA18 0010 s 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 DC3 3 c S c s 3 3 13 19 33 51 43 67 53 83 63 99 73 115 4 spc 24 DCL 44 LM 64 LA20 104 Tas 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 LAS 105 Tas 125 TAM 145 SAS 165 SA21 0101 NAK E U e u 15 21 25 37 45 69 55 85 65 101 75 117 6 26 46 Lae 66 LA22 106 Tae 126 TA22 146 SA6 166 SA22 0110 ACK SYN amp 6 F V f v 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 5 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 Lag 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 11 1B 27 2B 43 3B 59 4B 75 5B 7B 128 n
50. OSCilatorFREQuenew TN p SOURee ROSCilorMULTpler SOURee ROSCilorTYPEQ SOURee a DACRESohtion S N SOUReen FUNCuonusERG TN pSOUReen MaPKeiyDELa TN SOURee n DELa ADJusto o p deser el POME ERE E Source SOURce n PDELay HOLD RN SOURee npPHasepaDuusg o v 0 SOURee SKEwC o d p OURce n VOLTage LEVe MMedise AMPLimdeo Sooo s SOUReenpvaVetom o Status C 2 AWGS000B and AWG7000B Series Programmer Manual Group System Waveform Appendix C SCPI Conformance Information SCPI 1999 0 SCPI 1999 0 Synchronization SYSTem DATE TRiGger SEGuence IMPedance O S A TRlGge SEQuenee MODE o o N TRlGge SEQuence POLar o JN TRlGge SEQuence WVALue S JN VLISENAME 0 wusesizE 0000000000000 p wuStwAVefomDATAQ 000000 0 A wiStwAVefommDELete oo N LWLISt WAveformLENGth oo N wiiScwAVeformMARKerDATA o o O N WLIStWAVefom NEW o o JN WLiStwWAveform PPREDefined o O OS p WLiStwAveform TSTamp o A wLiStWAVeform TYPE oS NA AWG5000B and AWG7000B Series Programmer Manual C 3 Appendix C SCPI Conformance Information C 4 AWGS5000B and AWG7000B Series Programmer Manual Appendix D Raw Socket 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 interfac
51. Pedance 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 sets or returns the jump timing Refer to the User Online Help for more information on jump timing Event EVENt JTIMing jump type EVENt JTIMing EVENt IMMediate EVENt IMPedance EVENt LEVel EVENt POLarity jump type SYNChronous ASYNchronous SYNChronous indicates jump occurs immediately 2 43 Command Descriptions Returns Examples EVENt LEVel Group Syntax Related Commands Arguments Returns Examples EVENt POLarity Group Syntax 2 44 ASYNchronous indicates jump occurs after the signal generation is finished At RST this returns ASYNchronous SYNC ASYN EVENT JTIMING ASYNchrounous sets the jump to asynchronous type This command sets or returns the event level Event EVENt LEVel level EVENt LEVel EVENt IMMediate EVENt IMPedance EVENt JTIMing EVENt POLarity lt level gt lt NR3 gt Range is between 5 V and 5 V At RST this returns 1 4 V lt NR3 gt EVENT LEVEL 1 0V sets the level to 1 volt This command sets or returns the polarity of event signal The Event Jump is the function to change the sequencing of the waveform by an event signal Event EVENt POLarity POSitive NEGativ
52. Quencer TYPE Returns the type of the arbitrary waveform generator s sequencer AWGS5000B and AWG7000B Series Programmer Manual 2 11 Command Groups Table 2 8 Control group commands and their descriptions cont Command Description 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 specified settings file AWGControl STOP IMMediate Stops the output of a waveform or a sequence Calibration Group Commands You can 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 You can use the following diagnostic commands to control self test diagnostic routines Table 2 10 Diagnostic group commands and their descriptions Command Description DlAGnostic DATA Returns the result of a self test DIAGnostic MMediate Executes selected self test routines DIAGnostic SELect Selects the self test routines TST
53. R 2 72 SOURce n MARKer 1 2 DELay 2 73 SOURce n MARKer 1 2 VOLTage L E Vel IMMediate HIGH 2 74 SOURce n MARKer 1 2 VOLTage L E Vel IMMediate LOW 2 75 SOURce n MARKer 1 2 VOLTage L E Vel IMMediate OFFSet 2 76 SOURce n MARKer 1 2 VOLTage L E Vel IMMediate AMPLitude 2 74 SOURce n PDELay HOLD 2 76 SOURce n PHASe ADJust 2 77 SOURce n VOLTage LE Vel IM Mediate HIGH 2 79 SOURce n VOLTage LE Vel IM Mediate LOW 2 79 SOURce n VOLTage LE Vel IM Mediate OFFSet 2 80 SOURce n VOLTage LE Vel IMMediate AMPLitude 2 78 SOURce n WAVeform 2 81 Index 2 SOURce n SKEW 2 78 SRE 2 81 STATus OPERation CONDition 2 82 STATus OPERation ENABle 2 82 STATus OPERation EVENt 2 82 STATus QUEStionable CONDition 2 83 STATus QUEStionable ENABle 2 84 STATus QUEStionable EVENt 2 84 STATus PRESet 2 83 STB 2 84 SYSTem ERRor NEXT 2 85 SYSTem DATE 2 85 SYSTem KLOCKk 2 86 SYSTem TIME 2 87 SYSTem VERSion 2 87 T TRG 2 88 TRIGger SEQuence IMPedance 2 88 TRIGger SEQuence LEVel 2 89 TRIGger SEQuence MODE 2 89 TRIGger SEQuence POLarity 2 90 TRIGger SEQuence SLOPe 2 91 TRIGger SEQuence SOURce 2 91 TRIGger SEQuence TIMer 2 92 TRIGger SEQuence WVALue 2 92 TRIGger SEQuence IMMediate 2 88 TST 2 93 W WAI 2 93 WLISt WAVeform DELete 2 96 WLISt WAVeform
54. 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 WFM AWG400 AWG500 AWG600 AWG700 Series waveform PAT AWG400 AW G500 AWG600 AW G700 Series pattern file TFW AFG3000 Series waveform file format AWGS000B and AWG7000B Series Programmer Manual 2 49 Command Descriptions Group Mass memory Syntax MMEMory IMPort lt wfm_name gt lt filename gt lt type gt Related Commands MMEMory IMPort PARameter FREQuency 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 lename gt lt string gt type ISF TDS TXT TXT8 TXT10 TXT14 WFM PAT TFW Examples MMEMORY IMPORT sine1024 sinel024 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 FREQuency
55. TL Yes Go To Local GTL Causes the listen addressed device to switch from remote to local front panel control LLO Yes Local Lockout LLO Disables the return to local function AWG5000B and AWG7000B Series Programmer Manual B 3 Appendix 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 UNT Yes Listen Addresses Yes Talk Addresses Yes
56. TRIGger SEQuence LEVel Group Syntax Related Commands Arguments Returns Examples This command sets or returns the trigger input level threshold Trigger TRIGger SEQuence LEVel lt NR3 gt TRIGger SEQuence LEVe1 TRIGger SEQuence SOURce NR3 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 Series only Group Syntax This command sets or returns the trigger timing It is used in the Triggered or Sequence mode Trigger timing can be set when the external trigger source is selected Trigger TRIGger SEQuence MODE trigger type TRIGger SEQuence MODE AWGS000B and AWG7000B Series Programmer Manual 2 89 Command Descriptions Related Commands Arguments Returns Examples TRIGger SEQuence SOURce lt trigger_type gt SYNChronous ASYNchronous 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 2 90 This command sets or returns the trigger input polarity It is used to set polarity in gated mode Trigger TRIGger SEQuence POLarity POSitive NEGative TRIGger SEQuence POLari ty AWGControl RMODe
57. TROL 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 SOURce 2 24 Group Syntax This command 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 AWGControl CLOCk SOURCe source AWGControl CLOCKk SOURCe AWGS5000B and AWG7000B Series Programmer Manual Related Commands Arguments Returns Examples Command Descriptions AWGControl CLOCk DRATe lt source gt EXTernal INTernal 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 CONFigure CNUMber Query Only Group Syntax Related Commands Returns Examples This query returns the number of channels available on the instrument It returns the count of channels even when they are disabled However interleaved channels are not included in the count Control AwGControl CONFigure CNUMber None lt NR
58. TROL DC1 VOLTAGE OFFSET 1 0V sets the DCI level to 1 0 V AWGCONTROL DC1 VOLTAGE OFFSET will return 1 0 V AWGControl DOUTput n STATe 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 Group Control Syntax X AwGControl DOUTput n STATe state AWGControl DOUTput n STATe Related Commands SOURce n VOLTage LEVel IMMediate OFFSet OUTPut n FILTer LPASs FREQuency Arguments lt state gt lt Boolean gt O indicates False 1 indicates True At RST this returns 0 Returns lt State gt Examples AWGCONTROL DOUTPUT1 STATE 1 causes the instrument to output raw DAC waveform from Channel 1 AWGControl EVENt SOFTware IMMediate No Query Form This command executes the sequencer jump to the specified element index Group Control AWGS000B and AWG7000B Series Programmer Manual 2 27 Command Descriptions Syntax Related Commands Arguments Examples AwWGControl EVENt SOFTware IMMediate target SEQuence JUMP IMMediate lt target gt lt Numeric gt AWGCONTROL EVENT SOFTWARE IMMEDIATE 10 forces the sequencer to jump to index number 10 AWGControl INTerleave ADJustment AMPLitude Grou
59. Te Group Syntax Related Commands Arguments Returns Examples This command 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 Control AWGControl CLOCk DRATe divider rate AWGControl CLOCk DRATe AWGControl CLOCk SOURce lt divider_rate gt lt NRI gt At RST this returns the minimum value lt NRI gt AWGCONTROL CLOCK DRATE 8 sets the divider rate to 8 AWGCONTROL CLOCK DRATE returns 8 AWGS000B and AWG7000B Series Programmer Manual 2 23 Command Descriptions AWGControl CLOCk PHASe ADJust AWG7000B Series only Group Syntax Arguments Returns Examples This command sets or returns the clock phase adjust It is used to adjust the internal clock phase of the instrument in order to synchronize or align timing with external devices When 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 AWGCON
60. Ternal INT EXT SOURCE1 ROSCILLATOR SOURCE INTERNAL selects the internal clock source SOURce 1 ROSCillator TYPE Group Syntax Related Commands Arguments Returns 2 66 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 ROSCillator TYPE SOURce 1 ROSCillator FREQuency SOURce 1 ROSCillator SOURce FIXed VARiable FIXed Selects a reference source whose frequency is fixed to 1OMHz 20MHz or 100MHz Select one of these frequencies using the SOURce 1 ROSCillator FREQuency command VARiable Selects a reference source whose frequency is not fixed At RST this returns FIXed FIX VAR AWGS5000B and AWG7000B Series Programmer Manual Examples Command Descriptions SOURCE1 ROSCILLATOR SOURCE EXTERNAL TYPE FIXED FREQUENCY 20MHZ this selects a fixed frequency external reference oscillator whose frequency is 20 MHz Selects the internal clock source 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
61. Ternal selects external clock as the trigger source At RST this returns EXTernal AWGS000B and AWG7000B Series Programmer Manual 2 91 Command Descriptions Returns Examples INT EXT TRIGGER SEQUENCE SOURCE INTERNAL selects the internal clock as the trigger source TRIGger SEQuence TIMer Group Syntax Related Commands Arguments Returns Examples This command sets or returns the internal trigger rate trigger interval Trigger TRIGger SEQuence TIMer lt NR3 gt TRIGger SEQuence TIMer TRIGger SEQuence SOURce lt NR3 gt At RST this returns 100 ms lt NR3 gt TRIGGER SEQUENCE TIMER 5MS sets the internal trigger rate to 5 ms TRIGger SEQuence WVALue Group Syntax Related Commands 2 92 This command 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 SEQuence wvALue FIRSt LAST TRIGger SEQuence wVvALue TRIGger SEQuence SOURce AWGS5000B and AWG7000B Series Programmer Manual Command Descriptions Arguments X 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 SEQUENCE WVALUE LAST selects the last value as the output level TST Query Only This query execute
62. 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 marker to 1 V SOURce n PDELay HOLD Group 2 76 This command 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 sequence mode Source AWGS5000B and AWG7000B Series Programmer Manual Syntax Related Commands Arguments Returns Examples Command Descriptions SOURCe n PDELay HOLD PHASe DELay POINt SOURCe n PDELay HOLD SOURce n DELay ADJust SSOURce 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 SOURce n PHASe ADJust AWG5000 Series only Group Syntax Related Commands Arguments Returns Examples AWGS5000B and AWG7000B Series Programmer Manual This command sets or returns the phase of the analog output NOTE The effect of this command can be seen only in non sequence mode This command does not change the waveform display on the user interface Source SOURCe n PHASe ADJust NR3 SOURce n PHASe ADJust SOURce n DELay ADJust SSOURce n DELay POINts SOURce n PDELay HO
63. Veform TYPE AWGS000B and AWG7000B Series Programmer Manual F 3 Appendix F Compatibility with Other Instruments F 4 AWGS000B and AWG7000B Series Programmer Manual Index A ABORt 2 23 AWGControl CLOCk DRATe 2 23 AWGControl CLOCk PHASe ADJust 2 24 AWGControl CLOCk SOURCce 2 24 AWGControl CONFigure CNUMber 2 25 AWGControl DC n VOLTage LE Vel IMMediate OFFSet 2 26 AWGControl DC n STATe 2 25 AWGControl DOUTput n STATe 2 27 AWGControl EVENt SOF Tware IMMediate 2 27 AWGControl INTerleave ADJustment AMPLitude 2 28 AWGControl INTerleave ADJustment PHASe 2 28 AWGControl INTerleave ZERoing 2 30 AWGControl INTerleave STATe 2 29 AWGControl RRATe HOLD 2 33 AWGControl RUN IMMediate 2 34 AWGControl SEQuencer POSition 2 34 AWGControl SEQuencer TYPE 2 35 AWGControl STOP MMediate 2 37 AWGControl RMODe 2 31 AWGControl RRATe 2 32 AWGControl RSTate 2 33 AWGControl SNAMe 2 35 AWGControl SREStore 2 36 AWGControl SSAVe 2 36 C CAL 2 37 CALibration ALL 2 37 CLS 2 38 D DIAGnostic MMediate 2 39 DIAGnostic DATA 2 38 DIAGnostic SELect 2 40 DISPlay WINDow 1 2 STATe 2 41 E ESE 2 41 ESR 2 42 AWGS5000B and AWG7000B Series Programmer Manual EVENt IMMediate 2 42 EVENtIMPedance 2 43 EVENt JTIMing 2 43 EVENt LEVel 2 44 EVENt POLarity 2 44 l IDN 2 45 INSTrument COUPle SOURce 2 46 MEMory IMPort PARameter FREQuency UPDate STATe 2 50
64. al 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 B No more than 15 devices can be connected to any one line amp 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 m GPIB Mode Talk Listen To change the GPIB address settings do the following 1 Select GPIB LAN Configuration from the System menu AWGS5000B and AWG7000B Series Programmer Manual Setting Up GPIB Communication System Help NW o cmm Slop Channel Skew Interleave ARMIN ert Forco Jump To Calibration Diagnostics Service Mode Preferences Option Installation 2 The GPIB LAN Configuration dialog box is displayed GPIB LAN Configuration x GPIB 8 Talk Listen Address Off Bus VXIH1 Server LAN Use VXIH 1 Server Control in the Task Tray to Start Stop VXIH 1 Server
65. ands 0 ccc cece enn n ese ee messe eene nee 2 20 Waveform Group Commands 0 ccc cece cece ence een een ene ee ee eee ene 2 20 AWGS000B and AWG7000B Series Programmer Manual i Table of Contents Command Descriptions cc eror rr iae orte s i E EAE EEE EEn SERE ER EE NUR EFE REN ERR T T pd 2 23 Status and Events Status and Event Report ng 5 vise cc eedssannsae he EO rere Ee Te oes Conadadanesneceoiundesdotasvens 3 1 Status Reporting Struct re 2c edere re D dened Pese e chess Tol ed A I go dane SEEK senses cousdaans 3 1 REGIStCTS MESE 3 2 Status Re pistei Sirico niesna rii aE eE 3 3 Stat s Byte Register SBR desee cen re pde SERI aestu men de nad e rie Ve dedi eds 3 3 Standard Event Status Register SESR sess meme mee 3 4 Operation Enable Register OENR c cece cece cece ener Ime me eme me enne 3 5 Operation Condition Register OCR esses e mene e mener eene 3 5 Operation Event Register OEVR issssssssssssssssssssesee e eme e esse nennen 3 5 Questionable Condition Register QCR sss eee emen 3 5 Enable GISEU COPPREE 3 5 Event Status Enable Register ESER sessessesessessesessessoseosessoseosessoseoseososeosessereose 3 6 Service Request Enable Register SRER cssssssssssssssssssssee eem e eee 3 6 Questionable Enable Register QENR sss mme meme een 3 7 dd P 3 7 Operatio
66. d Commands Arguments Returns Examples This command 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 sSoURce 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 will return 10 SOURce 1 ROSCillator SOURce Group This command selects the reference oscillator source INTernal means that the reference frequency is derived from the internal precision oscillator EXTernal means the reference frequency is derived from an external signal supplied through the Reference Clock Input connector Source AWGS000B and AWG7000B Series Programmer Manual 2 65 Command Descriptions Syntax Related Commands Arguments Returns Examples souRce 1 ROSCillator sOURce INTernal ExTernal souURce 1 RosCillator SOURce SOURce 1 ROSCillator FREQuency SOURce 1 ROSCillator T YPE 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 IN
67. device dependant info 0 No Error Error event number NR 1 error event description lt string gt SYSTEM ERROR NEXT might return the following response 102 syntax error possible invalid suffix SOUR FREQ 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 state SYSTem KLOCk None lt State gt lt Boolean gt 0 indicates False The front panel and keyboard are unlocked 1 indicates True The front panel and keyboard are locked At RST this returns 0 NRI SYSTEM KLOCK ON locks the front panel and keyboard SYSTEM KLOCK might return 1 which indicates that the front panel and keyboard are locked AWGS5000B and AWG7000B Series Programmer Manual SYSTem TIME Group Syntax Related Commands Arguments Returns Examples Command Descriptions This command 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 minute second 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
68. dinate operation between the arbitrary waveform generator and other devices on the bus The status commands set and query the registers queues of the arbitrary waveform generator event status reporting system For more 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 Sets the OENR and QENR registers STATus QUEStionable CONDition Returns the status of the Questionable Condition Register QCR 2 18 AWGS000B and AWG7000B Series Programmer Manual 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 Ques
69. e EVENt POLarity AWGS5000B and AWG7000B Series Programmer Manual Related Commands Arguments Returns Examples IDN Query Only Group Syntax Related Commands Returns Examples Command Descriptions EVENt IMMediate EVENt IMPedance EVENt JTIMing EVENt LEVel POSi tive 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 Manufacturer model serial number gt lt Firmware version lt Manufacturer gt TEKTRONIX lt Model gt AWG7121B AWG7122B AWG7061B AWG7062B AWG5012B AWG5014B AWG5002B AWG5004B Serial number gt XXXXXXX indicates an actual serial number Firmware version gt SCPI 99 0 FW x x x x x x 1s system software version IDN might return the following response TEKTRONIX AWG7122B B010123 SCPI 99 0 Fw 3 0 AWGS000B and AWG7000B Series Programmer Manual 2 45 Command Descriptions INSTrument COUPle SOURce This command 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 us
70. e and queries can be received through the interface The following lists the differences between the GPIB interface and the Raw Socket interface 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 B 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 AWGS000B and AWG7000B Series Programmer Manual D 1 Appendix D Raw Socket Specification D 2 AWGS000B and AWG7000B Series Programmer Manual Appendix E Factory Initialization Settings The following tables list the default settings for the each command Group Command Default setting AWGControl AWwGControl CLOCk DRATe 1 AWG7121BIAWG7122B and AWG5012B AWG5O14B 2 AWGTO6IBIAWG 062B and AWGB O2BIAWGBSOD4BE 0 degree INTernal 120r4 0 0 NA 0 Vpp 0 degree 0 0 CONTinuous 10 MHz 0 0 NA 1 HARDware AwGControSNAMe SNAMe an Ce NA NA NA NA CALibration ALL NA Calibration Diagnostic Displa OlSPlay wiINDow 2 STATe 1 Event i INSTrument COUPle SOURce NONE Instrument Mass Memor AWGS000B and AWG7000B Series Programmer Manual
71. e command to query or set the parameter CH 1 Waveform db SEQuence ELEMent n WAVeform CH 2 Waveform o SEQuence ELEMent n WAVeform Trigger Wait State 0 SEQuence ELEMent n TWAit Infinite loop flag 0 SEQuence ELEMent n LOOP INFinite Loop count 1 SEQuence ELEMent n LOOP COUNt Event Jump Type OFF SEQuence ELEMent n JTARget TYPE Event Jump target index 1 SEQuence ELEMent n JTARget 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 2 16 You can 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 FIXed Sets or returns the sampling frequency of the arbitrary waveform generator SOURce 1 ROSCillator FREQuency 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 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
72. e figure in section Status Reporting Structure The SESR is an eight bit status register When an error or other 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 Standard Event Status Register f generated 6 Read using ESR SESR 6 js 4 s 2 H Jo PON CME EXE DDE GE OPC Event Cannot be written Bent queue 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 AWGS000B
73. e interleave state for channels This is available only on the AWG7000 series with option 06 instruments The query form of this command returns the interleave state of the instrument 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 m Waveform remains as before m Sequence pointing to CH2 waveform becomes Empty m Channel count becomes 1 Coupled channels lose the coupled state 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 AWGS000B and AWG7000B Series Programmer Manual 2 29 Command Descriptions Syntax Related Commands Arguments Returns Examples AWGControl INTerleave STATe state AWGControl INTerleave STATe AWGControl INTerleave ZERoing lt state gt lt Boolean gt O indicates False 1 indicates True At RST this returns 0 lt state gt AWGCONTROL INTERLEAVE STATE 1 sets the instrument to interleave mode AWGControl INTerleave ZERoing Group Syntax Related Commands Arguments 2 30 This command turns the zeroing on and off for the interleave mode NOTE This command is available only on
74. e n PDELay HOLD SOURce n WAVeform NR3 At RST this returns 0 points lt NR3 gt 2 69 Command Descriptions Examples SOURCE1 DELAY POINTS 20 sets the analog output delay for channel 1 to 20 points SOURce n DIGital VOLTage LEVel IMMediate AMPLitude AWG5000 Series only Group Syntax Related Commands Arguments Returns Examples This command sets or returns the amplitude of digital output This command is available only for AWG5012B and AWGS5002B instruments with option 03 Source SOURce n DIGital VOLTage LEVel IMMediate AMPL i tude lt NR3 gt SOURcCe 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 lt NR3 gt The value of n indicates the channel number At RST this returns 1 Vp lt NR3 gt SOURCE1L DIGITAL VOLTAGE LEVEL IMMEDIATE AMPLITUDE 1 4 sets the digital output amplitude level to 1 4 volts SOURce n DIGital VOLTage LEVel IMMediate HIGH AWG5000 Series only Group Syntax 2 70 This command sets or returns the high digital output This command is available only for AWG5012B and AWGS5002B instruments with option 03 Source SOURCe n DIGital VOLTage LEVel IMMediate HIGH lt NR3 gt SOURce n DIGital VvoLTage LEVel IMMediate HIGH
75. e 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 error Table 3 8 Query errors Error code Error message 400 Query error 410 Query INTERRUPTED 420 Query UNTERMINATED Messages and Codes Power On Event User request Event Request Control Event Table 3 8 Query errors cont Error code Error message 430 Query DEADLOCKED 440 Query UNTERMINATED after indefinite response Table 3 9 Power On event Error code Error message 500 Power on Table 3 10 User request event Error code Error message 600 User request 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 AWGS5000B and AWG7000B 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 S
76. ed all other channels get the parameters of CH1 When coupling is done CH1 parameters are copied to CH2 parameters and CH3 parameters to CH4 parameters This cannot be changed On two channel models ALL is equivalent 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 Group Instrument Syntax INSTrument COUPle SOURCe state INSTrument COUPle SOURCe Related Commands None Arguments state NONE PAIR ALL NONE PAIR CHI to CH2 and CH3 to CHA ALL CHI to CH2 CH3 and CH4 Returns lt state gt Examples INSTRUMENT COUPLE SOURCE ALL couples the CH1 parameters and CH2 parameters if the instrument is a two channel model MMEMory CATalog Query Only This query returns the current contents and state of the mass storage media 2 46 AWGS000B and AWG7000B Series Programmer Manual Group Syntax Related Commands Arguments Returns Examples MMEMory CDlRectory Group Syntax Related Commands Arguments Command Descriptions Mass memory MMEMory CATalog msus MMEMory CDIRectory MMEMory MSIS msus 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 amou
77. el IMMediate LOW vy _ AWG400 onl SOURce n MARKer fI2 VOLT age LEVell IMMediate OFFSet Do o po 2 O OE SOuRce n PDEL av HOLD SOuRce n PHASe ADJust SOURce n SKEW SOURce n VOLTage LEVel IMMediate AMPLitude SOURce n VOLT age LEVel IMMediate HIGH SOURce n VOLTage LEVel IMMediate LOW SOURce n VOLTage LEVel IMMediate OF FSet SOURce n WwAVeform Status CLS ESE ESR SRE STB STATus OPERation CONDition STATus OPERation ENABle STATus OPERation EVENt STATus PRESet STATus QUEStionable CONDition STATus QUEStionable EMABIe STATus QUEStionable EVENt F 2 AWGS000B and AWG7000B Series Programmer Manual Appendix F Compatibility with Other Instruments AWG5000 AWG7000 Series Command Group AWG400 AWG500 AWG600 700 Note Synchronization OPC WAI System IDN OPT RST SYSTem DATE SYSTem ERRor NEXT SYSTem KLOCk SYSTem TIME SYSTem VERSion Trigger TRG ABORt TRiGger SEQuence IMMediate TRiGger SEQuence MPedance TRiGger SEQuence LEVel TRiGger SEQuence MODE TAlGger SEQuence POLarity TRiGger SEQuence SLOPe TRiGger SEQuence SOURce TRiGger SEQuence TiMer TRiGger SEQuence wVALue Waveform WLISt NAME WLISt SIZE WLISt wAVeform DATA WLISt WAVeform DELete WLISt WwAVeform LENGth WLISt WAVeformMARKer DATA WLISt WAVeform NEW WLISt W AVeform PREDefined WLISt wAVeform TSTamp WLISt WA
78. es Programmer Manual 2 99 Command Descriptions Syntax Related Commands Arguments Returns Examples WLISt wAVeform TSTamp wfm name None lt wfm_name gt lt string gt yyyy mm dd hh mm ss is the waveform 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 hh refers to two digit hour number mm refers to two digit minute number ss refers to two digit second number WLIST WAVEFORM TSTAMP Sine will return the date and time the Sine waveform was created or last modified WLIST WAVEFORM TSTAMP DC will return because DC isa predefined waveform WLISt WAVeform TYPE Query Only Group Syntax Related Commands Arguments Returns Examples 2 100 This query 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 Ramp1000 will return REAL AWGS5000B and AWG7000B 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
79. es a full calibration and returns a status indicating AWGS000B and AWG7000B Series Programmer Manual 2 37 Command Descriptions Group Syntax Related Commands Returns Examples CLS No Query Form Group Syntax Related Commands Examples the success or failure of the operation CALibration ALL is equivalent to CAL Calibration CALibration ALL CALibration ALL CAL calibration error code NRI 0 indicates no error 340 error 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 This command clears all event registers and queues Status CLS None CLS clears all the event registers and queues DIAGnostic DATA Query Only Group 2 38 This command returns the results of a self test Diagnostic AWGS5000B and AWG7000B Series Programmer Manual Syntax Related Commands Command Descriptions DIAGnostic DATA DIAGnostic IMMediate DIAGnostic SELect Returns lt NRI gt 0 indicates no error 330 indicates that the self test failed Examples DIAGNOSTIC DATA might return 0 which indicates that the diagnostics completed without any errors DIAGnostic IMMediate The DIAGnostic MMediate command executes the selected self test routines The DIAGnostic IMMediate command executes
80. etition rate AWGControl RRATe SOURce 1 FREQuency CW FIXed repetition rate gt lt NR3 gt lt NR3 gt AWGS5000B and AWG7000B Series Programmer Manual Command Descriptions Examples AWGCONTROL RRATE 1000000 sets the repetition rate to IMHz AWGCONTROL RRATE returns 1E 6 AWGControl RRATe HOLD This command sets or returns the hold property of repetition rate Setting this to True keeps the repetition rate of the instrument constant even when the waveform size changes This causes the sampling rate to change When this is False the repetition rate changes when the waveform length changes Group Control Syntax AWGControl RRATe HOLD hold state AWGContro l RRATe HOLD Related Commands AWGControl RRATe Arguments lt hold_state gt lt Boolean gt O indicates False 1 indicates True At RST this returns 0 Returns lt NRI1 gt Examples 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 Group Control Syntax AwGControl RsTate Related Commands AWGControl RMODe AWGControl RUN IMMediate AWGS000B and AWG7000B Series Programmer Manual 2 33 Command Descriptions Returns Examples lt NRI gt 0 indicates that the instrument has stopped 1 indicates that the instrument is waiting for trigger 2 indicates that the instrument is running
81. form DATA lt wfm_name gt lt string gt lt S1ze gt lt NRI gt lt Type gt REAL INTeger WLIST WAVEFORM NEW Test1 1024 INTeger creates a new integer waveform called Test with 1024 points AWGS5000B and AWG7000B Series Programmer Manual Command Descriptions WLISt WAVeform PREDefined Query Only Group Syntax Related Commands Arguments Returns Examples 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 to an external controller using WLISt WAVeform DATA command Waveform WLISt wAVeform PREDefined wfm name None lt wfm_name gt lt string gt lt state gt lt Boolean gt WLIST WAVEFORM PREDEFINED Sine3600 will return 1 indicating that it is a predefined waveform WLISt WAVeform TSTamp Query Only Group 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 AWGS000B and AWG7000B Seri
82. format When transferring large waveforms it is convenient to send waveform data in chunks This allows better memory management and enables you 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 commands to understand the waveform sizes that are allowed in each case AWGS5000B and AWG7000B 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 SEQuence IMMediate TRG ABORT resets the trigger system AWGControl CLOCk DRA
83. 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 Trigger DT DT1 Complete B 2 AWGS5000B and AWG7000B Series Programmer Manual Appendix B GPIB Interface Specifications Table B 1 GPIB interface function implementation cont Implemented Interface function subset Capability Description Controller C co 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 Message GPIB Description DCL Yes 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 GET Yes Group Execute Trigger GET Triggers all applicable devices and causes them to initiate their programmed actions G
84. h Sets or returns the sequence length The following set of commands provides ways to create and edit the waveform sequences in AWG5000 and AWG7000 Series instruments When the instrument runs a sequence it outputs the waveforms in the order defined in the sequence Sequence Commands 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 SEQuence command Once the instrument is in the Sequence mode it uses either the hardware or the software sequencer to execute the sequence You can query the current sequencer type using the AWGControl SEQuencer TYPE command However it is not possible to select the sequencer type There is only one sequence defined for an instrument This is common to all channels Refer to the AWG5000 and AWG7000 Series Arbitrary Waveform Generators User Manual for a detailed discussion on sequencing waveforms To create a sequence programmatically first set the sequence length using 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 Creating and Working with Sequences AWGS000B and AWG7000B Series Programmer Manual 2 15 Command Groups Table 2 17 Sequence element parameters and their default values Sequence element parameter name Default value Remot
85. he low pass filter for CH 1 to 200 MHz This command 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 AWGS000B and AWG7000B Series Programmer Manual 2 55 Command Descriptions Syntax Related Commands Arguments Returns Examples RST No Query Form Group Syntax Related Commands Examples oUTPut n STATe output state oUTPut 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 NRI OUTPUT1 STATE ON turns the channel 1 output on This command resets the arbitrary waveform generator to its default state System RST None RST resets the instrument SEQuence ELEMent n GOTO INDex 2 56 This command sets or retrieves 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 true AWGS5000B and AWG7000B Series Programmer Manual Group Syntax Related Commands
86. he arbitrary waveform generator Table 2 15 Output group commands and 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 Sequence Group Commands 2 14 You can use the following sequence commands to define and edit a sequence AWGS5000B and AWG7000B Series Programmer Manual Command Groups Table 2 16 Sequence 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 SEQuence ELEMent n JTARget INDex Sets or retrieves the target index for the sequencer s event jump operation SEQuence ELEMent n J TARget TYPE Sets or queries 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 SEQuence ELEMent n TWAit Sets or returns the wait trigger state for an element on or off SEQuence ELEMent n WAVeform Sets or returns the waveform for a sequence element SEQuence JUMPT IMMediate Executes the sequencer jump to the specified element index SEQuence LENGt
87. iculty 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 Table of Contents Getting Started WMtrOGUCHON TRE 1 1 Remote Control H 1 2 GPIB Parameters esce ne n n NEAR URINAM RURCO EI ARP CINA P OI EN NB PERDE A DUE ET SN Aude 1 3 IE Bic ITI SIT DI U E EMTSMM 1 4 Connecting to the Instrument using GPIB sess me ee me eene 1 5 Setting Up GPIB Communication sssssssssssessssssses ese eee ee ee senses 1 6 Documentation P 1 9 Sample WUV EINE OE T D 0 00 L5 L7 one O EEE E EE E 1 10 Syntax and Commands Command Syntax eei RI M NEOD rid riu eM IQ EA MO CH E ERI EO E AREA 2 1 Syntax Overview T ETT 2 1 Command and Query Structure 2 0 0 0 cece cece enn nnn nnn enn ne ees 2 1 Clearing the Instrument 5 5 eco et hed a ee EEEE te o ve seansanenennneeuan erede ma etd 2 3 Command Enty va TT
88. ilable Bit MAV This bit indicates that a message has been placed in the output queue and can be retrieved 3 Questionable Summary Status QSS AWGS000B and AWG7000B 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 power to the instrument is 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 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
89. ill 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 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 Ifthe 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 WLISt wAVeform DELete lt wfm_name gt ALL WLISt SIZE lt wfm_name gt lt string gt AWGS5000B and AWG7000B Series Programmer Manual Examples Command Descriptions 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 Test1 deletes a waveform called Test1 WLISt WAVeform LENGth Query Only Group Syntax Related Commands Arguments Returns Examples This query returns the size of the waveform The returned value represents data points not bytes Waveform WLISt wAVeform LENGth wfm name WLISt WAVeform NEW lt wfm_name gt lt string gt lt NRI gt WLIST WAVEFORM LENGTH Sine 360 will return 360 WLISt WAVeform MARKer DATA This command sets or queries the waveform marker data NOTE This comma
90. ined waveform called Sine100 into channell memory SOURCE1 WAVEFORM will return Sine100 This command sets or queries the bits in Service Request Enable register Status SRE NR1 SRE CLS ESE ESR STB lt NR1 gt lt NRI gt 2 81 Command Descriptions Examples 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 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 CONDi tion STATus OPERation ENABle STATus OPERation EVENt NRI STATus OPERation ENABle Group Syntax Related Commands Arguments Returns This command 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 NR1 gt STATUS OPERation ENAB1e STATus OPERation CONDition STATus OPERation EVENt lt NR1 gt lt NRI gt STATus OPERation EVENt Query Only 2 82 This query returns the contents of Operation Event Register AWGS5000B and AWG7000B Series Programmer Manual Group Syntax Related Commands Returns Command Descriptions Note that the OEVR is
91. iptions Normalization type 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 At RST this returns NONE NONE FSC ZREF MMEMORY IMPORT PARAMETER NORMALIZE NONE will not normalize the imported data MMEMory MDiRectory No Query Form Group Syntax Related Commands Arguments Examples MMEMory MSIS Group Syntax This command creates a new directory in the current path on the mass storage system Mass memory MMEMory MDIRectory directory name MMEMory CDIRectory MMEMory MSIS lt directory_name gt lt string gt specifies a new directory MMEMORY MDIRECTORY WAVEFORM makes the directory WAVEFORM This command selects 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 AWGS000B and AWG7000B Series Programmer Manual 2 53 Command Descriptions Related Commands Arguments Returns Examples OPC Group Syntax Related Commands Returns Examples OPT Query Only Group Syntax 2 54 None msus mass storage unit specifier lt string gt lt msus gt mass storage unit specifier
92. is separated into three functional blocks BW Standard Event Status B Operation 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 AWGS000B and AWG7000B Series Programmer Manual 3 1 Status and Event Reporting Registers 3 2 Questio rable Statua Book FREQuency P 5 l Questicnakle Comftion Register QCR Questionable Event Register QEYR Questionable Enable Regster QENR Ope ratio n Status Bbck Erro d Event Operaion Condition Register OCR Operdion Evert Register OEVR Operation E nable Register OENR Status Byte Register SBR Standard E vert Status Register 5 eg 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 AWGS5000B and AWG7000B 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 Operation Condition Register OCR
93. mple you can concatenate the commands TRIGger SOURCE EXTernal and TRIGger POLarity NEGative into a single command SOURCe EXTernal NEGative The longer version works equally well TRIGger SOURCE EXTernal TRIGger POLarity NEG Never precede a star command with a semicolon or colon 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 Set commands and queries may be concatenated in the same message For example AWGControl RMODe SEQuence SEQuence LENGth is a valid message that sets the run mode to Sequence The message then queries the length of the sequence Concatenated commands and queries are executed in the order received Here are some invalid concatenations TRIGger SOURce INTernal AwGControl RMODe TRIGgered no colon before AWGControl TRIGger SOURce INTernal TRIGger POLarity NEG extra colon before TRIGger SOURce INTernal POLarity NEG instead This documentation uses lt EOM gt end of message to represent a message terminator AWGS5000B and AWG7000B Series Programmer Manual Command Syntax Table 2 3 Message terminator and meaning Symbol Meaning EOM Message terminator For messages sent to the instrument
94. mplete events Extended device specific 1 to 32767 Device dependent device errors errors Reserved other than those listed above Not used Other error messages include Table 3 4 Other error codes and messages Error code range Operation 3000 Sequence editing 4000 Waveform editing 5000 Sequence Waveform loading Messages and Codes Command Errors Table 3 4 Other error codes and messages cont Error code range Operation 6000 Other 8000 Hardware 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 AWG5000B and AWG7000B Series Pr
95. n Returns the SCPI version number to which the command conforms Trigger Group Commands You can use the following trigger commands synchronize the arbitrary waveform generator actions with events Table 2 22 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 SEQuencej MMediate Generates a trigger event TRIGger SEQuence IMPedance Sets or returns the trigger impedance TRIGger SEQuence LEVel Sets or returns the trigger input level threshold TRIGger SEQuence MODE Sets or returns the trigger timing TRIGger SEQuence POLarity Sets or returns the trigger input polarity TRIGger SEQuence SLOPe Sets or returns the trigger slope TRIGger SEQuence SOURce Sets or returns the trigger source TRIGger SEQuence TIMer 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 You can use the following waveform commands to create and transfer waveforms between the instrument and the external controller 2 20 AWGS000B and AWG7000B Series Programmer Manual Command Groups Table 2 23 Waveform group commands and their descriptions C
96. n Status Block tnr rH re OE eI ERR Sae RAO PRO ERES STU Te exu cota stone 3 8 Questionable Status Block ssssssssssssssssssssssssse e eee e ee eme esee esse ess 3 8 Standard Event Status Block 2 0 0 0 0 cece ccc E E ee eee ee eee 3 9 Synchronizing EXECULION esere enose e eerte e emer e NE et oem Eie etae e e EEEE ENEE 3 10 Messages and Codes cce eere reete sean o Rau En peu oed tu d Ee Ra erui a Medien EXE ees 3 11 Messages and Codes esce ep RES SER ENERO DRE Eae E Re SA Ne Ai EE deur RR UO Enn 3 11 Command Errors 1 21 pt dunk snare Eon PER LEE SERT EE Tode e ER TU ERU THU RV RU busta E bn RE ida 3 12 Execution Errors P AADSBER 3 13 Device speolfic ESFOIS Li ecncadsccann dnd pensas ree obese nudae ta vada deeds e eio NE lebe dein 3 15 Query usc EUU EUEEUMT 3 15 Power On Event 2 iti eee etri net pex OAE E E E arcae eme diio Eee EE 3 16 Userrequest Eyni EE 3 16 Request Control Event me secte e end eR E aN RR a EEEa A ue PME EE 3 16 Operation Complete Event ccccccceccce ence ence eee een en eee ee e hne ehe e e rennen 3 16 Appendices Appendix A Character Charts eec reete Eee denne eren esed dain Feed nen i eee dU e ipe A 1 Appendix B GPIB Interface Specifications ssssssssssssssssssssssssee eee e eee mene B 1 GPIB Interface Specifications csse eem ese meses esses B 1 Interface Functions on erm TE REA AS EEE EEE Een Ed FIF UINEST HR NUNCA SEIS B
97. nd Descriptions WLISt NAME lt file_name gt lt string gt Value of n indicates the channel number lt file_name gt SOURCE1 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 Group Syntax Related Commands Arguments Returns Examples This command sets or returns the marker delay Marker delay is independent for each channel 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 NR3 The value of n indicates the channel number At RST this returns 0 lt NR3 gt SOURCE1 MARKER1 DELAY 20PS sets the markerl delay of channell to 20 picoseconds SOURCE1 MARKER1 DELAY will return 2 00000000E 011 indicating 20 ps AWGS000B and AWG7000B Series Programmer Manual 2 73 Command Descriptions SOURce n MARKer 1 2 VOLTage LEVel IMMediate AMPLitude Group Syntax Related Commands Arguments Returns Examples 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
98. nd 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 4 Rootnode Lower level SEQuence nodes op LEVel POLariy SOURce You can create commands and queries from these subsystem hierarchy trees Commands specify actions for the instrument to perform Queries return measurement data and information about parameter settings AWGS000B and AWG7000B Series Programmer Manual 2 9 Command Syntax 2 10 AWGS000B and AWG7000B Series Programmer Manual Command Groups Control group commands You can use the following commands to control operating modes Table 2 8 Control group commands and their descriptions Command Description AWGControl CLOCk DRATe Sets or returns the divider rate for the external oscillator AWGControl CLOCk PHASe ADJust Sets or returns the clock phase adjust
99. nd 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 marker 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 StartIndex parameters AWGS000B and AWG7000B Series Programmer Manual 2 97 Command Descriptions Group Syntax Related Commands Arguments Returns Examples Waveform WLISt WAVeform MARKer DATA wfm name Startindex Size block data WLISt WAVeform MARKer DATA lt wfm_name gt lt StartiIndex gt lt Size gt None lt wfm_name gt lt string gt lt StartiIndex gt lt NRI1 gt Size NRI block data IEEE 488 2 block block data WLIST WAVEFORM MARKER DATA mywaveform 0 1000 41000 WLIST WAVEFORM MARKER DATA myWaveform 0 1000 WLISt WAVeform NEW No Query Form Group Syntax Related Commands Arguments Examples 2 98 This command creates a new empty waveform in the waveform list of current setup Waveform WLISt wAVeform NEW wfm name Size Type WLISt WAVe
100. nly Group Syntax Related Commands Arguments Returns Examples This command sets or returns the offset of digital output This command is available only for AWG5012B and AWGS5002B 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 LE Vel IM Mediate 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 SOURCE1L DIGITAL VOLTAGE LEVEL IMMEDIATE OFFSET 1 0 sets the digital output amplitude level to 1 0 volts SOURce n FUNCtion USER Group Syntax 2 72 This command sets or returns the waveform to waveform memory m Use this command to directly load a waveform or pattern file for the AWG400 500 600 700 Series from mass memory to a specified channel 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 Source SOURce n FUNCtion USER file name msus SOURce n FUNCtion USER AWGS5000B and AWG7000B Series Programmer Manual Related Commands Arguments Returns Examples Comma
101. ns 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 SOURce 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 MARKer 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 AWGS000B and AWG7000B Series Programmer Manual 2 75 Command Descriptions Examples SOUR1 MARK1 VOLT LOW 0 5 sets the markerl low to 0 5 volts SOURce n MARKer 1 2 VOLTage LEVel IMMediate OFFSet Group Syntax Related Commands Arguments Returns Examples 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 parameters can be modified using SCPI commands Source SOURce n MARKer 1 2 VOLTage LEVel IMMediate OFFSet lt NR3 gt SOURCe n MARKer 1 2 VOL Tage LEVe1 IMMediate OFFSet SOURce n DAC RESolution SOURce n MARKer 1 2 VOLTage LEVel IMMediate HIGH SOURce n MARKer 1 2 VOLTage LEVel IMM ediate LOW lt NR3 gt
102. nt 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 lt 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 SAMPLE1 AWG 2948 aaa txt 1024 ddd DIR O zzz awg 2948 This command 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 directory name MMEMory CDIRectory None lt directory_name gt lt string gt AWGS000B and AWG7000B Series Programmer Manual 2 47 Command Descriptions Returns Examples MMEMory DATA Group Syntax Related Commands Arguments Returns Examples directory name MMEMORY CDIRECTORY AWG WORKO changes the current directory to AWG WORKO This command 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
103. o AWGControklNTerleave STATe f 3 AWw GControllNTerleave ZERoing 15 7 AWw GControlEMODe See Note SEQuence instead of ENHanced AWGControtRRATe mi eee AWGControtRRATe HOLD EE AWGControkRSTate ear d nur AWGControRUN IMMediate AWwGControl SEQuencer POSition a eee AWGControkSEQuencer TYPE Lo T Y AWGContro SNAMe OO ee AWGControkSREStore AWGControkSSAVe AWGControkSTOP IMMediate Calibration y CAL CALibration ALL Diagnostic D y y TST DIAGnosite DATA DlAGnosite IMMediate o 5 m OlAGnostic SELect Arguments are different except for ALL Displa i f DISPlayp WwiNDow 12 STATE EE EE eee Event C es E EVEN M Mediate o EVENtIMPedancel l l j EVENE JTIMing e CENE a EVENtLEVel l l1 y y EVENtPOLarity L es Instrument ee es INSTrument COUPIe SOURcel l l y Mass Memor p e MMEMoryCATalog MMEMory CDIRectorul MMEMoryDATAL MMEMory DELete MMEMoryIMPort Ll ll MMEMory IMPort PARameter FREQuencu UPDate ST A Te EE MMEMoryiMPort PARameterLEVel UPDate CHANnel MMEMoryiMPort PARameter LEVell UPDate STATe p E i 9 MMEMorulMPort P ARameterNORMalize S 1d IMIMEMory MDIRector MMEMory MSIS See Note Drive letter instead of MAIN or FLOP py AWGS000B and AWG7000B Series Programmer Manual F 1 Appendix F Compatibility with Other Instruments
104. ogrammer Manual Messages and Codes Table 3 5 Command errors cont Error code Error message 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 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 AWGS000B and AWG7000B Series Programmer Manual 3 13 Messages and Codes Table 3 6 Execution errors cont Error code Error message 226 Lists not same length 230 Data corrupt or stale 231 Data questionable 232 Invalid format 233 Invalid version 240 Hardware err
105. ommand Description WLISt NAME 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 WLIStWAVeform 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 PREDefined True or false based on whether the waveform is predefined WLISt WAVeform TSTamp Returns the time stamp of the waveform WLISt WAVeform TYPE Returns the type of the waveform Waveform Data Format The AWG5000 and AWG7000 Series 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 1s 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 figure It occupies
106. on Command Entry Rules The following rules apply 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 ofthe ASCII control characters 00 through 09 and OB through 20 hexadecimal 0 through 9 and 11 through 32 decimal B 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 you can enter the command MMEMory CATalog simply as MMEM CAT AWGS000B and AWG7000B Series Programmer Manual 2 3 Command Syntax Concatenating Terminating 2 4 You can concatenate any combination of set commands and queries using a semicolon The instrument executes concatenated commands in the order received When concatenating commands and queries you must 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 If concatenated commands have headers that differ by only the last mnemonic you can abbreviate the second command and eliminate the beginning colon For exa
107. on STATus QUEStionable ENABle NRI 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 AWGS5000B and AWG7000B Series Programmer Manual Related Commands Returns Examples SYSTem DATE Group Syntax Related Commands Arguments Returns Examples Command Descriptions CLS ESE ESR SRE NRI STB might return 96 which indicates that the SBR contains the binary number 0110 0000 This command 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 lt 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 This command retrieves and returns data from the error and event queues System SYSTem ERRor NEXT None AWGS000B and AWG7000B Series Programmer Manual 2 85 Command Descriptions Returns Examples SYSTem KLOCk 2 86 Group Syntax Related Commands Arguments Returns Examples Error event number gt error event description
108. or 241 Hardware missing 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 Expression 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 AWGS5000B and AWG7000B Series Programmer Manual Device specific Errors Query Errors AWGS5000B and AWG7000B Series Programmer Manual Messages and Codes Table 3 6 Execution errors cont Error code Error message 293 Referenced name already exists 294 Incompatible type These error codes are returned when an internal instrument error is detected This type of error can indicate a hardware problem 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 Calibration memory lost 314 Sav
109. orms specified for a sequence element must be equal Sequence AWGS000B and AWG7000B Series Programmer Manual 2 61 Command Descriptions Syntax Related Commands Arguments Returns Examples SEQuence ELEMent n wAVeform 1 2 3 4 wfm name SEQuence ELEMent n wAVeform 1 2 3 4 None 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 SEQuence JUMP IMMediate No Query Form Group Syntax Related Commands Arguments Examples SEQuence LENGth 2 62 This command executes the sequencer jump to the specified element index This is called Force jump This jump does not require an event for executing the jump Also the Jump target specified for event jump 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 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
110. p Syntax Arguments Returns Examples This command sets or returns the interleave adjustment amplitude This command is available for Option 06 This setting value is used while the interleave state is On Control AWGControl INTerleave ADJustment AMPLitude lt NR3 gt AWGControl INTerleave ADJustment AMPLi tude lt NR3 gt 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 AWGControl INTerleave ADJustment PHASe 2 28 This command sets or returns the interleave adjustment phase This command is available for Option 06 This setting value is used while the interleave state is On AWGS5000B and AWG7000B Series Programmer Manual Group Syntax Arguments Returns Examples Command Descriptions Control AWGControl INTerleave ADJustment PHASe lt NR3 gt AWGControl INTerleave ADJustment PHASe NR3 At RST this returns 0 degree lt NR3 gt AWGCONTROL INTERLEAVE 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 Group This command enables or disables th
111. r and queue AWGS000B and AWG7000B Series Programmer Manual 3 5 Status and Event Reporting Standard Event Status Register Read wing 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 You can 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 You can 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
112. request with the GPIB interface involves changing the SRQ line to LOW and making a service request to the 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 AWGS5000B and AWG7000B 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 MAV QSS ENV 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 ret
113. rieved by using one of the following queries SYSTem ERRor NEXT First issue the ESR query to read the 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 AWGS000B and AWG7000B 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 i
114. rmation 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 You can 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 Miscellaneous This topic contains miscellaneous information such as a table of the factory initialization default settings and GPIB interface specifications that may be helpful when using remote commands to control the instrument AWGS000B and AWG7000B Series Programmer Manual 1 1 Remote Control Remote Control The AWGS5000 and AWG7000 Series support GPIB interface and LAN interface To set the GPIB address you can use the System Menu
115. rmines 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 AWGS000B and AWG7000B Series Programmer Manual 2 51 Command Descriptions Syntax Related Commands Arguments Returns Examples MMEMory IMPort PARameter LEVel UPDate STATe state MMEMOry IMPort PARameter LEVel UPDate STATe MMEMory IMPort lt state gt lt Boolean gt O indicates False 1 indicates True 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 NORMalize Group Syntax Related Commands 2 52 This command sets or queries if the imported data is normalized during text data import operation 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 NORMa lize MMEMory IMPort AWGS5000B and AWG7000B Series Programmer Manual Arguments Returns Examples Command Descr
116. rogram illustrates methods you can use to control the arbitrary waveform generator This program sends waveform data and then starts waveform generation You can 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 AWGS5000B and AWG7000B Series Programmer Manual Syntax and Commands Command Syntax Syntax Overview You can 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 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
117. s AWGS000B and AWG7000B Series Programmer Manual 2 63 Command Descriptions Group Syntax Related Commands Arguments Returns Examples SamplingFreguency Output Frequency NumberOfPoints The minimum number of points in a waveform for AWG5000 and AWG7000 Series is 1 Source SoURce 1 FREQuency CW FIXed lt NR3 gt SoURce 1 FREQuency CW FrIXed SOURce n WAVeform AWGControl INTerleave STATe NR3 The value must be between 10 MHz to 10 GHz At RST this returns 1 0000000E 10 lt NR3 gt SOURCE1 FREQUENCY 10MHZ sets the frequency to 10 MHz SOURce 1 ROSCillator FREQuency Group Syntax Related Commands Arguments 2 64 This command selects the reference oscillator frequency 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 FREQuency lt NR3 gt SoURce 1 ROSCillator FREQuency SOURce 1 ROSCillator SOURce SOURce 1 ROSCillator TYPE lt NR3 gt At RST this returns 10 MHz AWGS5000B and AWG7000B 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 will return 1 00000000E 7 SOURce 1 ROSCillator MULTiplier Group Syntax Relate
118. s 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 WAI Related Commands OPC AWGS000B and AWG7000B Series Programmer Manual 2 93 Command Descriptions Examples WAI prevents the execution of any commands or queries until all pending operations complete WLISt NAME Query 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 Index 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 2 94 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
119. s also enabled 2 the OSS bit in the SBR is set to one 3 Read using STA amp Tus OPERation EVENt Cannot be written omamen FEE EP TT P T RT T TT E OENR Read using ST amp Tus OPERation ENABle Write using STATus OPE Ration ENABle Operation Event Register 7 3 o dm Se fe PP P fm Tothe OSS bit inthe 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 QEVR 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 Z 4 1 Operation Enable Register i Mus Li i gt i s 2 E OENR Read using STATus OPERation ENABle d Write using STATus OPERation ENABle N To the OSS hit in the SAR AWGS5000B and AWG7000B 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 th
120. s from each other lt Comma gt A single comma 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 Space Argument Comma Argument AWGS5000B and AWG7000B Series Programmer Manual Command Syntax Clearing the Instrument You can clear the Output Queue and reset the instrument to accept a new command or query by using the Device Clear DCL or Selected Device Clear SDC GPIB functions Refer to your GPIB library documentation for further details about the Device Clear operati
121. st include the SI unit prefix You can 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 95 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 you can 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 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 frequency Note that the prefix u U is used instead of p AWGS5000B and AWG7000B 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 1OMHz 10E 6Hz 10E 6 incorrect 10M SCPI Commands and Queries The arbitrary waveform generator uses a comma
122. strument 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 AWGS000B and AWG7000B Series Programmer Manual 2 31 Command Descriptions AWGControl RRATe Group Syntax Related Commands Arguments Returns 2 32 Table 2 25 Mode options and their descriptions Argument Subhead 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 sequence 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 m 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 loaded this mode is the same as the triggered mode This command sets or returns the repetition rate of the arbitrary waveform generator Control AWGControl RRATe rep
123. 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 AWGControl INTerleave ZERoing state AwGControl INTerleave ZERoing AWGControl INTerleave STATe lt state gt lt Boolean gt O indicates False 1 indicates True At RST this returns 0 AWGS5000B and AWG7000B Series Programmer Manual Returns Examples AWGControl RMODe Group Syntax Related Commands Arguments Returns Examples Command Descriptions lt state gt AWGCONTROL INTERLEAVE ZEROING turns on the zeroing function This command sets or returns the run mode of the arbitrary waveform generator Control AWGControl RMODe CONTinuous TRIGgered GATed SEQuence 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 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 CONT TRIG GAT SEQ AWGCONTROL RMODE TRIGgered sets the in
124. the selected self test routines and returns the results Group Diagnostic Syntax DIAGnostic IMMediate Related Commands Returns Examples 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 AWGS000B and AWG7000B Series Programmer Manual 2 39 Command Descriptions DIAGnostic SELect 2 40 Group Syntax Related Commands Returns This command selects the self test routines The query form of this command returns the selected test routine The following selections are available B ALL 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 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 amp CPLock PLL Lock unlock 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
125. tionable Event QEVR Register and clears it Synchronization Group Commands The external controller uses the synchronization commands to prevent external communication from interfering with arbitrary waveform generator operation Table 2 20 Synchronization group commands and their descriptions Command Description OPC Ensures the completion of the first command before the second command is issued WAI System Group Commands Prevents the arbitrary waveform generator from executing further commands until all pending commands are executed You can use the following system commands to control miscellaneous instrument functions Table 2 21 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 AWGS5000B and AWG7000B Series Programmer Manual 2 19 Command Groups Table 2 21 System group commands and their descriptions cont Command Description SYSTem TIME Sets or returns the system time SYSTem VERSio
126. to INDex Sequence SEQuence ELEMent n JTARget INDex target SEQuence ELEMent n JTARget INDex SEQuence ELEMent n JTARget TYPE lt target gt lt NRI gt lt n gt is an index number of sequence lt NRI gt SEQUENCE ELEMENTL JTARGET INDEX 10 sets the jump target index to 10th element SEQuence ELEMent n JTARget TYPE Group 2 58 This command sets or queries the event jump target type for the jump You can generate an event in three ways By connecting an external cable to instrument rear panel for external event m By pressing the Force Event button on the front panel By sending the EVENt IMMediate remote command Sequence AWGS5000B and AWG7000B Series Programmer Manual Syntax Related Commands Arguments Returns Examples Command Descriptions SEQuence ELEMent n JTARget TYPE INDex NEXT OFF SEQuence ELEMent n JTARget TYPE SEQuence ELEMent n JTARget INDex INDex This enables the sequencer to jump to an index set using SEQuence ELEMent1 JTARget INDex command NEXT This enables the sequencer to jump to the next sequence element SEQuence ELEMent1 JTARget INDex setting is ignored OFF This enables the sequencer to turn off the event jump state In this state even if the event occurs the sequencer 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
127. tor 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 file name msus AWGControl SREStore AWGControl SNA Me lt file name gt lt string gt msus mass storage unit specifier lt string gt AWGS5000B and AWG7000B Series Programmer Manual Examples Command Descriptions 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 CALibration ALL This command stops the output of a waveform or a sequence Control AWGContro STOP IMMediate AWQGControl RUN IMMediate AWGCONTROL STOP IMMEDIATE stops the output of a waveform This query 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 NRI 0 indicates no error CAL performs an internal calibration and returns results For example it might return 0 which indicates that the calibration completed without any errors This command does a full calibration of the arbitrary waveform generator In its query form the command do
128. 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 24 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 bt M2 M1 D7 D6 DS D4 D3 D2 D1 DO DAC AWGS000B and AWG7000B Series Programmer Manual 2 21 Command Groups Byte Order During Transfer Transferring Waveforms in Chunks 2 22 Table 2 24 Integer data format cont byte offset 1 byte offset 0 10 bit D9 D8 D7 D6 D5 D4 D3 D2 D1 DO DAC 14 bitM2 M1 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 DO DAC Floating data format 1s 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 1s output the data is rounded off to the nearest integer value and clipped to fit the DAC range 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 1s always transferred in LSB first
129. waveform associated with a channel The command is not available on instruments with Option 02 or Option 06 installed Source SoURce n vorTage LEVe1l IMMediate OFFSet lt NR3 gt SOURCe n voL Tage LEVe1 IMMediate OFFSet SOURce n VOLTage LE Vel IM Mediate HIGH SOURce n VOLTage LEVel IMMediate LOW AWGControl DOUTput n STATe lt NR3 gt 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 AWGS5000B and AWG7000B Series Programmer Manual Command Descriptions SOURce n WAVeform Group Syntax Related Commands Arguments Returns Examples SRE Group Syntax Related Commands Arguments Returns AWGS5000B and AWG7000B Series Programmer Manual This command 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 FUNCtion USER command Source soURce n WAVeform wfm name SoURce 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 predef
130. y 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 that has been modified or integrated with other products when the effect of such modification or integration increases the time or diff
Download Pdf Manuals
Related Search
Related Contents
Voir fiche technique LBHydra User Manual (Version 0.1) Extrait du livret d`identité du logement Bedienungsanleitung Moffat turbofan 300 User's Manual Please Click here to the Instructions PDF File Manual do Utilizador do Nokia 1202/1203 Philips Headset for iPhone with remote and mic SHH9506 Canon 3 Camera Accessories User Manual ASUS CR8213 User's Manual Copyright © All rights reserved.
Failed to retrieve file