Tektronix TDS520C - Manuals
Tektronix TDS520C – Manual in PDF format online.
Manuals:
Manual Tektronix TDS520C
Summary
WARRANTY Tektronix warrants that this product will be free from defects in materials and workmanship for a period of three (3) yearsfrom the date of shipment. If any such product proves defective during this warranty period, Tektronix, at its option, eitherwill repair the defective product without c...
TDS Family Oscilloscope Programmer Manual i Table of Contents Getting Started Overview of the Manual 1–1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting Up Remote Communications 1–3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Sy...
Table of Contents ii TDS Family Oscilloscope Programmer Manual Programming Examples Compiling the Example Programs 4–2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Appendices Appendix A: Character Charts A–1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . App...
Table of Contents TDS Family Oscilloscope Programmer Manual iii List of Figures Figure 1–1: Common Message Elements 1–1 . . . . . . . . . . . . . . . . . . . . . . . Figure 1–2: Functional Groupings and an Alphabetical List of Commands 1–2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...
Table of Contents iv TDS Family Oscilloscope Programmer Manual List of Tables Table 2–1: BNF Symbols and Meanings 2–1 . . . . . . . . . . . . . . . . . . . . . . . . Table 2–2: Command Message Elements 2–2 . . . . . . . . . . . . . . . . . . . . . . . Table 2–3: Comparison of Header Off and On Respo...
TDS Family Oscilloscope Programmer Manual vii Preface This programmer manual covers the TDS 420A, 430A, 460A, 510A, 520C,540C, 620B, 644B, 680B, 684B, 724C, 754C, & 784C. It also covers AdvancedDSP Math (optional on the TDS420A, 430A, 460A, 510A, 520C, 540C, 620B,& 680B), the RS-232/Centroni...
Preface viii TDS Family Oscilloscope Programmer Manual Default Model This manual documents the TDS 400A, TDS 510A, TDS 500C, TDS 600B, &TDS 700C Digitizing Oscilloscopes. Take special note of the followingconventions: H Some TDS models have two auxiliary channels called AUX 1 and AUX 2,instead o...
TDS Family Oscilloscope Programmer Manual 1–1 Getting Started You can write computer programs that remotely set the oscilloscope front panelcontrols or that take measurements and read those measurements for furtheranalysis or storage. To help you get started with programmng the oscilloscope, this se...
Getting Started 1–2 TDS Family Oscilloscope Programmer Manual Zoom Zoom Commands Grouped in Functional Areas Commands Listed Alphabetically ACQuire? (Query Only) Syntax: . . . Group: . . . Examples: . . . ACQuire:MODe S G E ACQuire:NUMACq? (Query Only) S G E Acquisition Commands ACQuire:MODeACQuire:...
Getting Started TDS Family Oscilloscope Programmer Manual 1–3 TDS Example Programs Figure 1–4: The Disk That Accompanies This Manual Setting Up Remote Communications Even the best instrument control program will not do much if the instrument isnot connected to the controller. The digitizing oscillos...
Getting Started 1–4 TDS Family Oscilloscope Programmer Manual If needed, you can stack GPIB connectors as shown in Figure 1–6. Figure 1–6: How to Stack GPIB Connectors Observe these rules when you use your digitizing oscilloscope with a GPIBnetwork: H Assign a unique device address to each device on...
Getting Started TDS Family Oscilloscope Programmer Manual 1–5 GPIB Device GPIB Device GPIB Device GPIB Device GPIB Device GPIB Device GPIB Device Figure 1–7: Typical GPIB Network Configurations Appendix C: Interface Specifications gives more information on the GPIBconfiguration of the digitizing osc...
TDS Family Oscilloscope Programmer Manual 2–1 Command Syntax You can control the digitizing oscilloscope through the GPIB interface usingcommands and queries. This section describes the syntax these commands andqueries use. It also describes the conventions the digitizing oscilloscope uses toprocess...
Command Syntax 2–2 TDS Family Oscilloscope Programmer Manual A command message is a command or query name followed by any informationthe digitizing oscilloscope needs to execute the command or query. Commandmessages may contain five element types, defined in Table 2–2 and shown in theexample in Figu...
Command Syntax TDS Family Oscilloscope Programmer Manual 2–3 A command header consists of one or more mnemonics arranged in a hierarchi-cal or tree structure. The first mnemonic is the base or root of the tree and eachsubsequent mnemonic is a level or branch off the previous one. Commands at ahigher...
Command Syntax 2–4 TDS Family Oscilloscope Programmer Manual Clearing the TDS Family Oscilloscope You can clear the Output Queue and reset the digitizing oscilloscope to accept anew command or query by using the Device Clear (DCL) GPIB command. Command Entry The following rules apply: H You can ente...
Command Syntax 2–6 TDS Family Oscilloscope Programmer Manual H DISPlay:INTENsity:TEXt 80;:*TRG (colon before a star ( * ) command) H APPMenu:LABel:BOTTOM1 "foo";LABel:BOTTOM2 "fee" (levels of the mnemonics are different — either remove the second use of LABel: or place :APPMenu: in f...
Command Syntax 2–8 TDS Family Oscilloscope Programmer Manual Symbol Meaning <wfm> Can be CH<x> , MATH<x> or REF<x> Argument Types The argument of a command may be in one of several forms. The individualdescriptions of each command tell which argument types to use with thatcom...
Command Syntax TDS Family Oscilloscope Programmer Manual 2–9 "this is a valid string" 3. You can mix quotation marks within a string as long as you follow the previous rule: "this is an'acceptable' string" 4. You can include a quote character within a string simply by repeating the q...
Command Syntax 2–10 TDS Family Oscilloscope Programmer Manual Figure 2–2 provides a diagram of block argument use. ALIas:DEFINE SETUp1",#231AUTOSet EXECute;:SELect:REF1 ON Block Header Specifies Number of Length Digits that Follow Specifies Data Length Block Argument Figure 2–2: Block Argument ...
Command Syntax TDS Family Oscilloscope Programmer Manual 2–11 Figure 2–3: Typical Syntax Diagrams
TDS Family Oscilloscope Programmer Manual 2–13 Command Groups This section lists TDS Family Oscilloscope commands in two ways. It firstpresents them by functional groups. It then lists them alphabetically. Thefunctional group list starts below. The alphabetical list provides more detail oneach comma...
Command Groups 2–14 TDS Family Oscilloscope Programmer Manual Alias Commands Alias commands let you define your own commands as a sequence of standardcommands. This is useful when you use the same commands each time youperform a certain task, such as setting up measurements. Table 2–5 lists thesecom...
Command Groups TDS Family Oscilloscope Programmer Manual 2–15 Calibration and Diagnostic Commands Calibration and Diagnostic commands let you start the self-calibration anddiagnostic routines that are built into the oscilloscope. The diagnostic testoperation includes selecting the test sequence, exe...
Command Groups 2–16 TDS Family Oscilloscope Programmer Manual Table 2–8: Cursor Commands (Cont.) Header Description !## Positions paired cursors. Also, returns settings !## Return horizontal distance between 1 st and 2 nd paired cursors !## Return horizontal position of 1 st paired cursor !## Return...
Command Groups 2–18 TDS Family Oscilloscope Programmer Manual Table 2–9: Display Commands (Cont.) Header Description DISplay:STYle Set waveform dots, vector, infinite persistence,or variable persistence DISplay:TRIGBar Control the display of the trigger bar/s onscreen DISplay:TRIGT Control the displ...
Command Groups TDS Family Oscilloscope Programmer Manual 2–19 Table 2–10: File System Commands (Cont.) Header Description FILESystem:RMDir Delete named directory FILESystem:WRITEFile (TDS 500C & 700C) Copy from GPIB port to file Hardcopy Commands Hardcopy commands let you control the format of h...
Command Groups 2–20 TDS Family Oscilloscope Programmer Manual Table 2–12: Histogram Commands (Cont.) Header Description HIStogram:BOXPcnt (TDS 500C & 700C) Define the left, top, right, and bottom positionsof the histogram box, in percentage coordi-nates. HIStogram:COUNt (TDS 500C & 700C) Zer...
Command Groups 2–22 TDS Family Oscilloscope Programmer Manual Limit Test Commands The Limit Test commands let you automatically compare each incomingwaveform against a template waveform. You set an envelope of limits around awaveform and let the digitizing oscilloscope find the waveforms that fall o...
Command Groups TDS Family Oscilloscope Programmer Manual 2–23 Mask Commands Mask commands control standard masks, user-defined masks, and testing againstmasks. A mask is a polygonal region on the screen. Every vertical line on thescreen intersects the polygon in zero, one, or two places, but never i...
Command Groups 2–24 TDS Family Oscilloscope Programmer Manual Table 2–15: Mask Commands (Cont.) Header Description "' (TDS 500C & 700C) Define points in a mask, in percentagecoordinates % (TDS 500C & 700C) Select which trace will be compared againstthe mask(s), when counting is turned on...
Command Groups 2–26 TDS Family Oscilloscope Programmer Manual Table 2–16: Measurement Commands (Cont.) Header Description MEASUrement:MEAS<x>:TYPe The measurement to be taken MEASUrement:MEAS<x>:UNITS? Return units to use for measurement MEASUrement:MEAS<x>:VALue? Return measuremen...
Command Groups 2–28 TDS Family Oscilloscope Programmer Manual Save and Recall Commands Save and Recall commands allow you to store and retrieve internal waveformsand settings. When you “save a setup,” you save all the settings of the digitizingoscilloscope. When you then “recall a setup,” the digiti...
Command Groups TDS Family Oscilloscope Programmer Manual 2–29 Table 2–20: Status and Error Commands Header Description ALLEv? Return all events BUSY? Return scope status *CLS Clear status DESE Device event status enable *ESE Event status enable *ESR? Return standard event status register EVENT? Retu...
Command Groups 2–30 TDS Family Oscilloscope Programmer Manual Table 2–21: Trigger Commands Header Description TRIGger Force trigger event; Return parameters TRIGger:DELay Delay trigger level to 50% TRIGger:DELay:BY Delay by time or events TRIGger:DELay:EDGE? Return delay trigger parameters TRIGger:D...
Command Groups TDS Family Oscilloscope Programmer Manual 2–37 Vertical Commands Vertical commands control the display of channels and of main and referencewaveforms. Table 2–22 lists these commands. The SELect:<wfm> command also selects the waveform many commands in other command groups use. Y...
Command Groups 2–38 TDS Family Oscilloscope Programmer Manual Waveform Commands Waveform commands let you transfer waveform data points to and from thedigitizing oscilloscope. Waveform data points are a collection of values thatdefine a waveform. One data value usually represents one data point in t...
Command Groups TDS Family Oscilloscope Programmer Manual 2–39 values range from 0 to 255. When the byte width is two, the values range from–32768 to 32767. The defined binary formats also specify the order in which the bytes aretransferred. The four binary formats are RIBinary, RPBinary, SRIbinary, ...
Command Groups 2–40 TDS Family Oscilloscope Programmer Manual Each waveform that you transfer has an associated waveform preamble thatcontains information such as the horizontal scale, the vertical scale, and othersettings in place when the waveform was created. Refer to the WFMPrecommands starting ...
Command Groups TDS Family Oscilloscope Programmer Manual 2–41 Waveform commands also work with extended-acquisition-length mode. Thismode lets the oscilloscope acquire extended acquisition lengths of 2M, 4M, and8M while maintaining waveform record lengths limited to 500K. In other words, the acquisi...
Command Groups TDS Family Oscilloscope Programmer Manual 2–43 Table 2–24: Waveform Commands Header Description CURVe Transfer waveform data DATa The format and location of the waveformdata that is transferred with the CURVecommand DATa:DESTination Destination for waveforms sent to digitizingoscillos...
Command Groups TDS Family Oscilloscope Programmer Manual 2–45 Zoom Commands Zoom commands let you expand and position the waveform display horizontallyand vertically without changing the time base or vertical settings. Table 2–25lists these commands. Table 2–25: Zoom Commands Header Description ZOOm...
TDS Family Oscilloscope Programmer Manual 2–47 Command Descriptions You can use commands to either set instrument features or query instrumentvalues. You can use some commands to do both, some to only set, and some toonly query. This manual marks set only commands with the words “No QueryForm” inclu...
Command Descriptions 2–48 TDS Family Oscilloscope Programmer Manual When extended-acquisition-length mode is on, this command can still set andreturn values. However, this acquire:autosave feature will not actually workwhile extended-acquisition-length mode is on. Acquisition ACQuire:AUTOSAve { OFF ...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–55 ACQuire:STOPAfter Tells the digitizing oscilloscope when to stop taking acquisitions. This isequivalent to setting Stop After in the Acquire menu. When extended-acquisition-length mode is on, this command can still set andreturn val...
Command Descriptions 2–56 TDS Family Oscilloscope Programmer Manual NOTE . If you set the acquisition system to single sequence, envelope mode, and set the number of envelopes to infinity, the digitizing oscilloscope will envelope amaximum of 2001 acquisitions. ACQUIRE:STOPAFTER RUNSTop sets the osc...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–57 ALIas:CATalog? (Query Only) Returns a list of the currently defined alias labels, separated by commas. If noaliases are defined, the query returns the string "" . Alias ALIas:CATalog? ? ALIas : CATalog <QString>[,<Q...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–63 <NR1> 0 specifies the number of data points. Table 2–26 shows the number of data points supported for reference locations by TDS model. In the TDS 500Cand 600B all invalid values less than the maximum will be forced to the nex...
Command Descriptions 2–64 TDS Family Oscilloscope Programmer Manual APPMenu? APPMenu <Space> ? ACTivate ACTivate displays the Application menu. Use the CLEARMenu command to deactivate the Application menu. Once the Application menu is activated, whenever a front-panel menu button ispressed an ...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–67 Application Menu APPMenu, APPMenu:LABel APPMenu:TITLe <QString> APPMenu:TITLe? TITLe <Space> <QString> ? APPMenu : <QString> is the side menu title and can include any of the characters shown in the TDS Chara...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–69 Table 2–27: Commands that Affect BUSY? Response Operation Command Single sequence acquisition ACQuire:STATE ON orACQuire:STATE RUN (when ACQuire:STOPAfter is set to SEQuence) Hardcopy output HARDCopy STARt might return , indicating ...
Command Descriptions 2–74 TDS Family Oscilloscope Programmer Manual Table 2–28: Offset Ranges for the TDS 400A, 510A, 540C, 600B, 754C, & 784C (AllChannels) and the TDS 520C & 724C (Channel 1 & Channel 2) using a 1xProbe CH<x>:SCAle OFFSet Range 1 mV/div – 99.5 mV/div ± 1 V 100 mV/...
Command Descriptions 2–76 TDS Family Oscilloscope Programmer Manual ? PROBECal CH : <x> FAIl signifies that probe cal has failed for the selected channel. INIT signifies the probe cal has not yet been run for the selected channel PASS signifies that probe cal has passed for the selected channe...
Command Descriptions 2–78 TDS Family Oscilloscope Programmer Manual CH<x>:VOLts Sets or queries the vertical gain of the specified channel. This command isidentical to the CH<x>:SCAle command and is included for compatibilitypurposes. Only CH<x>:SCAle is returned in response to a C...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–85 CURSOR:MODE? might return :TRACK showing the two cursors move in unison. CURSor:PAIred Positions the paired cursors. Also, returns the current paired cursor settings. In extended-acquisition-length mode, the cursors are limited to t...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–97 is the curve data. <newline> is a single byte newline character at the end of thedata. See the GETWFM.C or GETWFM.BAS examples in the accompanying disk for more specifics. <asc curve> is the waveform data in ASCII format...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–99 DATa:DESTination Sets or queries the reference memory location for storing waveform data that istransferred into the digitizing oscilloscope by the CURVe command. Thiscommand is identical to the DATa:TARget command. Waveform DATa:DE...
Command Descriptions 2–100 TDS Family Oscilloscope Programmer Manual specifies the ASCII representation of signed integer ( ) data. If this is the value at power-on, the WFMPre values for BN_Fmt, BYT_Or, andENCdg are set as RP, MSB, and ASC respectively. specifies signed integer data-point represent...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–101 Table 2–30: DATa and WFMPre Parameter Settings ATa N g e i g WFMPre Settings DATa:ENCdg Setting :ENCdg :BN_Fmt :BYT_Or ASCIi ASC N/A N/A RIBinary BIN RI MSB RPBinary BIN RP MSB SRIbinary BIN RI LSB SRIbinary BIN RP LSB DATA:ENCDG R...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–105 DATa : WIDth ? <Space> <NR1> <NR1> = 1 specifies that there is 1 byte (8 bits) per point. This format is useful when the acquisition mode is set to SAMple, ENVelope, or PEAKdetect (onebyte per point). If used for ...
Command Descriptions 2–120 TDS Family Oscilloscope Programmer Manual BACKGround SCROLLBAR GRAticule COLLision DISplay : COLOr PALEtte : : TEXt REF MATH CH3 ZONe CH1 CH2 CH4 SCROLLTEXT BOLd MONo NORMal HARDCopy : <Space> <NR1> <NR1> ? <NR1> , , HISTOMask BACKGround specifies t...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–123 Table 2–31: XY Format Pairs X-Axis Source Y-Axis Source Ch 1 Ch 2 Ch 3 (or AUX 1) (All models except TDS 430A) Ch 4 (or AUX 2) (All models except TDS 430A) Ref 1 Ref 2 Ref 3 Ref 4 YT sets the display to a voltage versus time format...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–125 DISplay:INStavu:STYle TDS 500C & 700C Only Selects how the data is displayed with InstaVu. Display DISplay:INStavu:STYle { DOTs | VECtors } DISplay:INStavu:STYle? <Space> ? DOTs VECtors STYle INStavu : DISplay : DOTs disp...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–129 DISplay:MODe TDS 500C & 700C Only Selects whether or not to turn on InstaVu. Display DISplay:MODe { INStavu | NORMal } DISplay:MODe? MODe DISplay : <Space> ? NORMal INStavu INStavu turns on InstaVu. This mode can help you...
Command Descriptions 2–132 TDS Family Oscilloscope Programmer Manual LONG displays, as the indicator, a horizontal line in the center of the graticule for each displayed trigger signal. DISPLAY:TRIGBAR LONG sets the display to show a long trigger indicator bar (or bars). DISplay:TRIGT Controls the d...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–137 FILESystem:COPy (No query form) File System Only Copies a named file or files to a new file. The new file may be in a totallyseparate directory than the old file. Also, you can use wild card characters (*.*)to copy multiple files w...
Command Descriptions 2–140 TDS Family Oscilloscope Programmer Manual FILESYSTEM:DELWARN OFF disables the front-panel delete warning. FILESYSTEM:DELWARN? might return 0 indicating the front-panel warning is disabled. FILESystem:DIR (Query only) File System Only Returns a list of quoted strings. Each ...
Command Descriptions 2–142 TDS Family Oscilloscope Programmer Manual FILESYSTEM:MKDIR NEATPICS" creates the directory named NEATPICS on the current drive. FILESystem:OVERWrite File System Only Turns on or off the file-overwrite protection. Turning on file-overwrite protectionprevents writing ov...
Command Descriptions 2–148 TDS Family Oscilloscope Programmer Manual <file path> FILEName : HARDCopy ? <Space> <file path> specifies that the hardcopy is sent to the named file. <file path> is a quoted string that defines the file name and path. Input the file path using thef...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–149 HARDCopy:FORMat? RLE PCXCOLOR INTERLeaf LASERJet THInkjet FORMat : HARDCopy <Space> ? TIFf EPSOn HPGl PCX EPSColor EPSImage EPSMono BMPCOLOR DESKJETC BMP DPU411 DPU412 EPSCOLImg DESKJET HARDCopy:FORMat { BMP | BMPCOLOR | DESK...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–151 HARDCopy:LAYout Selects the printing orientation. This is equivalent to setting Layout in theHardcopy menu. Hardcopy HARDCopy:LAYout { LANdscape | PORTRait } HARDCopy:LAYout? LAYout : <Space> ? LANdscape HARDCopy PORTRait LAN...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–153 HARDCOPY:PORT? might return GPIB as the selected hardcopy output port. HDR This command is identical to the HEADer query and is included for compatibili-ty with older Tektronix instruments. Miscellaneous HDR { <NR1> | OFF | O...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–155 HIStogram:BOX TDS 500C & 700C Only Defines the left, top, right, and bottom positions of the histogram box, in sourcewaveform coordinates. Histogram HIStogram:BOX <NR3> , <NR3> , <NR3> , <NR3> HORizontal...
Command Descriptions 2–156 TDS Family Oscilloscope Programmer Manual HIStogram:BOXPcnt TDS 500C & 700C Only Defines the left, top, right, and bottom positions of the histogram box, inpercentage coordinates. The upper left has the value 0,0 and the lower right hasthe value 100, 100 when the horiz...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–163 HORizontal:DELay? (Query Only) Returns all horizontal delayed time base parameters. The commands HORizon-tal:DELay:SECdiv and HORizontal:DELay:SCAle are identical so onlyHORizontal:DELay:SCAle will be returned. Horizontal HORizonta...
Command Descriptions 2–174 TDS Family Oscilloscope Programmer Manual Horizontal DISplay:INTENSITy:CONTRast HORizontal:MODe { DELAYEd | INTENSIFied | MAIn } HORizontal:MODe? INTENSIFied MODe <Space> ? DELAYEd : MAIn HORizontal DELAYEd means that the selected waveform is horizontally scaled rela...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–175 "!! ! "! is from 0 to 100, and is the percent of the waveform that is displayed left of the center graticule. In extended-acquisition-length mode, it is the percent of the acquisition that isdisplayed left of the center gra...
Command Descriptions 2–176 TDS Family Oscilloscope Programmer Manual Table 2–32: Record Length Values (<NR1>) Configuration TDS 420A,TDS 430A,TDS 460A TDS 510A,TDS 520C,TDS 724C TDS 600B TDS 540C,TDS 754C,TDS 784C Standard 500,1000,2500,5000,15000,30000 500,1000,2500,5000,1500050000 500,1000,2...
Command Descriptions 2–188 TDS Family Oscilloscope Programmer Manual LIMit:TEMPLate:TOLerance:VERTical Sets or queries the amount, in units of vertical divisions, by which the sourcewaveform is varied vertically when creating the destination waveform. Limit Test LIMit:COMPARE:CH<x> LIMit:TEMPL...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–191 0.0E+0,0.0E+0;:MASK:MASK8:POINTSP 0.0E+0,0.0E+0;:MASK:STAN OC1;DIS 1;COUN:STATE 0;:MASK:FILT ENA;AUTOS:OFFSETA 1;MOD MAN;:MASK:SOU CH1;TBP 0.0E+0 MASK:AUTOSet:MODe TDS 500C & 700C Only Controls whether or not an autoset will au...
Command Descriptions 2–198 TDS Family Oscilloscope Programmer Manual MASK ? <NR1> MASK : NR_Pt : <NR1> is 1 to 8. The default is 0. MASK:MASK3:NR_PT? might return: MASK:MASK:NR_PT 5 MASK:MASK<n>:POINTS TDS 500C & 700C Only Defines points in the specified mask, in user coordinat...
Command Descriptions 2–206 TDS Family Oscilloscope Programmer Manual <source> refers to a signal channel. Valid choices are: CH1 , CH2 , CH3 , CH4 , REF1 , REF2 , REF3 , or REF4 . (The TDS 410A does not include CH3 and CH4 .) <window> refers to an FFT window. Valid choices are: RECTangul...
Command Descriptions 2–208 TDS Family Oscilloscope Programmer Manual OFF turns off waveform averaging. AVErage turns on waveform averaging. MATH1:PROCESSING OFF ensures that waveform averaging is not in use on math waveform 1. MATH1:PROCESSING AVERAGE turns on waveform averaging on math waveform 1. ...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–219 MEASUrement:MEAS<x>? (Query Only) Returns all measurement parameters for the displayed measurement specified by<x>. Measurement MEASUrement:MEAS<x>? : MEASUrement MEAS <x> ? MEASUREMENT:MEAS3? might return: ...
Command Descriptions 2–232 TDS Family Oscilloscope Programmer Manual MEASUrement:REFLevel:ABSolute:HIGH Sets or queries the high reference level, and is the 100% reference level whenMEASUrement:REFLevel:METHod is set to ABSolute. This command isequivalent to setting the Reference Levels in the Measu...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–241 0 34 84 480 134 184 234 284 334 384 434 0 24 74 124 174 224 274 324 374 424 474 524 640 Figure 2–5: Message Window Coordinates MESSage:SHOW Clears the contents of the message window and displays the new message in thewindow. Displa...
Command Descriptions 2–244 TDS Family Oscilloscope Programmer Manual complete discussion of the use of these registers and the output queue, see page3–1. Status and Error BUSY?, *WAI The *OPC command allows you to synchronize the operation of the digitizingoscilloscope with your application program....
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–245 *OPT? OPT? Might return: 13:Rs232/cent,1M:extended record length, 2F:math pack,05:video trigger,0,CD:color display . PASSWord (No Query Form) Enables the *PUD and NEWpass set commands. Sending PASSWord withoutany arguments disables...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–247 Miscellaneous PASSWord *PUD <Block> *PUD? *PUD ? <Space> <Block> <Block> is a string containing up to 100 characters. *PUD #229This instrument belongs to me stores the string “This instrument belongs to me” ...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–249 DELEte:SETUp, FACtory, *RCL, *RST, *SAV, SAVe:SETUp RECAll:SETUp { FACtory | <NR1> | <file path> } <file path> <Space> RECAll : FACtory SETUp <NR1> FACtory selects the factory setup. <NR1> is a v...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–251 Status and Error FACtory, *PSC, *RCL, RECAll:SETUp, *SAV, SAVe:SETUp *RST returns the instrument settings to the factory defaults (see Appendix D:Factory Initialization Settings). The *RST command does not alter the following: H Th...
Command Descriptions 2–252 TDS Family Oscilloscope Programmer Manual BAUd : <Space> ? RS232 <NR1> <NR1> where <NR1> can be 300, 600, 1200, 2400, 4800, 9600 or 19200. RS232:BAUD 9600 sets the transmission rate to 9600 baud. RS232:HARDFlagging RS-232/Centronics Hardcopy Interfa...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–257 Save and Recall DELEte:SETUp, RECAll:SETUp, *RCL, *SAV SAVe:SETUp { <NR1> | <file path> } <NR1> SAVe : SETUp <Space> <file path> <NR1> is a value in the range from 1 to 10 and specifies a locatio...
Command Descriptions 2–258 TDS Family Oscilloscope Programmer Manual DELEte:WAVEform, SAVE:WAVEform:FILEFormat SAVe:WAVEform <wfm>,{ REF<x> | <file path> } <file path> <wfm> SAVe : WAVEform <Space> REF <x> , <wfm> is CH<x>, MATH<x>, or REF&...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–263 The power-on default for SRER is 0 if is 1. If is 0, the SRER maintains its value through a power cycle. sets the bits in the SRER to 00110000 binary. might return a value of , showing that the bits in the SRER have the binary valu...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–265 Trigger TRIGger FORCe TRIGger? TRIGger FORCe ? <Space> FORCe creates a trigger event. If TRIGger:STATE is REAdy, the acquisition will complete, otherwise this command will be ignored. This is equivalent to pressingthe front-p...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–271 TRIGGER:DELAY:EVENTS:COUNT 4 specifies that the delayed trigger will occur four trigger events after the maintrigger. TRIGGER:DELAY:EVENTS:COUNT? might return 2 , indicating that two events must occur after the main trigger before ...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–273 TRIGger:MAIn Sets the main trigger level and returns the current main trigger parameters. Trigger TRIGger:MAIn SETLevel TRIGger:MAIn? TRIGger : MAIn SETLevel ? <Space> SETLevel sets the main trigger level to half way between ...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–289 TRIGGER:MAIN:LEVEL 0.5 sets the main trigger level to 0.5 V. TRIGger:MAIn:LOGIc? (Query Only) Not on TDS 400A Returns all main logic trigger parameters. Trigger TRIGger:MAIn:LOGIc? : MAIn TRIGger : ? LOGIc TRIGGER:MAIN:LOGIC? might...
Command Descriptions 2–294 TDS Family Oscilloscope Programmer Manual MOREThan LESSThan FALSe <Space> ? TRUe : MAIn TRIGger LOGIc : : PATtern WHEn : TRUe specifies the trigger to occur when the pattern becomes true. FALSe specifies the trigger to occur when the pattern becomes false. LESSThan s...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–323 TRIGger:MAIn:VIDeo? (Query Only) Option 05 Only Returns the main video trigger parameters. Trigger TRIGger:MAIn:VIDeo? TRIGger : : VIDeo MAIn ? TRIGGER:MAIN:VIDEO? might return: NTS;CH1;NEGA;NUMER;2;1;COLO;COLO;787; 59.94E+0;1050;2...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–337 SECAm specifies mode for SECAM signals. TRIGGER:MAIN:VIDEO:PAL MONO specifies non-color PAL signals. TRIGger:MAIn:VIDeo:SCAN TDS 400A Option 05 Only Sets or queries the video trigger scan parameters. This is equivalent to using the...
Command Descriptions 2–344 TDS Family Oscilloscope Programmer Manual VERBose Sets and queries the Verbose State that controls the length of keywords on queryresponses. Keywords can be both headers and arguments. This command doesnot affect IEEE Std 488.2-1987 Common Commands (those starting with ana...
Command Descriptions 2–346 TDS Family Oscilloscope Programmer Manual WFMPre ? The format of the response is: BYT_Nr <NR1>;BIT_Nr <NR1>;ENCdg { ASC | BIN }; BN_Fmt { RI | RP };BYT_Or { LSB | MSB }; <wfm>:WFID <Qstring>;NR_PT <NR1>;PT_FMT { ENV | Y }; XUNit <QString>...
Command Descriptions 2–348 TDS Family Oscilloscope Programmer Manual WFMPre:BYT_Nr <NR1> WFMPre:BYT_Nr? ? <Space> <NR1> WFMPre : BYT_Nr <NR1> is the number of bytes per point and can be 1 or 2. WFMPRE:BYT_NR 2 specifies that there are 2 bytes per waveform data point. WFMPre:B...
Command Descriptions 2–350 TDS Family Oscilloscope Programmer Manual specifies that the waveform is transmitted as maximum and minimum point pairs. Only y values are explicitly transmitted. Absolute coordinates are givenby: X n XZEro XINcr (n–PT_Off) Y n max YZEro YMUlt (y n max YOFf) Y n min YZEro ...
Command Descriptions 2–352 TDS Family Oscilloscope Programmer Manual <NR3> is the vertical offset in digitizing levels. WFMPre:YZEro (No Query Form) Specifies the offset voltage for the reference waveform specified by theDATa:DESTination command. Waveform WFMPre:YZEro <NR3> WFMPre : YZEr...
Command Descriptions TDS Family Oscilloscope Programmer Manual 2–355 WFMPre:<wfm>:PT_Fmt? <Space> ? ENV PT_Fmt Y WFMPre : : <wfm> ENV specifies that the waveform is transmitted as minimum and maximum point pairs. Only y values are explicitly transmitted. Absolute coordinates are gi...
Command Descriptions 2–360 TDS Family Oscilloscope Programmer Manual WFMPre:<wfm>:YZEro Sets or queries the vertical (Y-axis) offset voltage. On input <wfm> alwaysdefaults to the reference location specified by DATa:DESTination regardless ofwhat is sent. Waveform WFMPre:<wfm>:YZEro...
TDS Family Oscilloscope Programmer Manual 3–1 Status and Events The digitizing oscilloscope provides a status and event reporting system for theGPIB interface. This system informs you of certain significant events that occurwithin the digitizing oscilloscope. The digitizing oscilloscope status handl...
Status and Events 3–2 TDS Family Oscilloscope Programmer Manual PON URQ CME EXE DDE QYE RQC OPC 7 6 5 4 3 2 1 0 Figure 3–1: The Standard Event Status Register (SESR) Table 3–1: SESR Bit Functions Bit Function 7 (MSB) PON (Power On). Shows that the digitizing oscilloscope was powered on. Thecompletio...
Status and Events TDS Family Oscilloscope Programmer Manual 3–3 Table 3–2: SBR Bit Functions Bit Function 7 (MSB) Not used. 6 RQS (Request Service), obtained from a serial poll. Shows that the digitizingoscilloscope requests service from the GPIB controller. 6 MSS (Master Status Summary), obtained f...
Status and Events 3–4 TDS Family Oscilloscope Programmer Manual PON URQ CME EXE DDE QYE RQC OPC 7 6 5 4 3 2 1 0 Figure 3–4: The Event Status Enable Register (ESER) The Service Request Enable Register (SRER) — is shown in Figure 3–5. It controls which bits in the SBR generate a Service Request and ar...
Status and Events TDS Family Oscilloscope Programmer Manual 3–5 Queues The digitizing oscilloscope status and event reporting system contains twoqueues: the Output Queue and the Event Queue. The digitizing oscilloscope stores query responses in the Output Queue. Itempties this queue each time it rec...
Status and Events 3–6 TDS Family Oscilloscope Programmer Manual Event Handling Sequence Figure 3–6, on page 3–6, shows how to use the status and event handlingsystem. In the explanation that follows, numbers in parentheses refer to numbersin Figure 3–6. Device Event Status Enable Register (DESER) Re...
Status and Events TDS Family Oscilloscope Programmer Manual 3–7 When output is sent to the Output Queue, the MAV bit in the SBR is set toone (5). When a bit in the SBR is set to one and the corresponding bit in the SRER isenabled (6), the MSS bit in the SBR is set to one and a service request isgene...
Status and Events 3–8 TDS Family Oscilloscope Programmer Manual Processing Time Acquiring Waveform Data Figure 3–7: Command Processing Without Using Synchronization To ensure the digitizing oscilloscope completes waveform acquisition beforetaking the measurement on the acquired data, you can synchro...
Status and Events TDS Family Oscilloscope Programmer Manual 3–9 /* Take amplitude measurement on acquired data */ Though *WAI is one of the easiest ways to achieve synchronization, it is also themost costly. The processing time of the digitizing oscilloscope is slowed since itis processing a single ...
Status and Events 3–10 TDS Family Oscilloscope Programmer Manual Serial Poll Method. Enable the OPC bit in the Device Event Status Enable Register (DESER) and the Event Status Enable Register (ESER) using the DESEand *ESE commands. When the operation is complete, the OPC bit in theStandard Event Sta...
Status and Events 3–12 TDS Family Oscilloscope Programmer Manual Messages Tables 3–3 through 3–9 list all the programming interface messages thedigitizing oscilloscope generates in response to commands and queries. For most messages, a secondary message from the digitizing oscilloscope givesmore det...
Status and Events 3–14 TDS Family Oscilloscope Programmer Manual Table 3–5 lists the execution errors that are detected during execution of acommand. In these error messages, you should read “macro” as “alias.” Table 3–5: Execution Error Messages – EXE Bit 4 Code Message 200 Execution error 201 Inva...
Status and Events TDS Family Oscilloscope Programmer Manual 3–17 Table 3–5: Execution Error Messages – EXE Bit 4 (Cont.) Code Message 2301 Cursor error, Off-screen 2302 Cursor error, cursors in different frames 2311 Group requested has not been selected or has been deleted Table 3–6 lists the device...
Status and Events 3–18 TDS Family Oscilloscope Programmer Manual Table 3–7: System Event Messages (Cont.) Code Message 440 Query UNTERMINATED after indefinite response (QYE bit 2 set) 450 Right menu button #1 pushed (URQ bit 6 set) 451 Right menu button #2 pushed (URQ bit 6 set) 452 Right menu butto...
Status and Events TDS Family Oscilloscope Programmer Manual 3–19 Table 3–8: Execution Warning Messages – EXE Bit 4 (Cont.) Code Message 544 Measurement warning, Uncertain edge 545 Measurement warning, Invalid in minmax 546 Measurement warning, Need 3 edges 547 Measurement warning, Clipping positive/...
TDS Family Oscilloscope Programmer Manual 4–1 Programming Examples The example programs illustrate methods you can use to control the digitizingoscilloscope from the GPIB interface. The disk that comes with this manualcontains listings for these programs written in Microsoft QuickBASIC 4.5 andMicros...
Programming Examples 4–2 TDS Family Oscilloscope Programmer Manual H GETWFM : reads a waveform from an oscilloscope and stores it in a file. H CURSOR : uses cursors to measure waveform parameters. H TL : a talker-listener program. Compiling the Example Programs The example programs diskette contains...
Programming Examples 4–4 TDS Family Oscilloscope Programmer Manual hard disk C, you want to store the examples in drive C, and the examplesdiskette is in drive B, you might type: mkdir examples cd examples copy b:\q-basic\*.* . 4. For this installation, you will also want to copy QBDECL.BAS and QBIB...
Programming Examples TDS Family Oscilloscope Programmer Manual 4–5 is a collection of input/output routines used by the other programs and is included for proper file compilation. 6. Run the program by simply typing the program name. To run , type: To run , type: To run , type: To run , type: To run...
TDS Family Oscilloscope Programmer Manual A–1 Appendix A: Character Charts The characters in Table A–1 are available for the digitizing oscilloscope.Numbers in the lower left corners are character widths in pixels. Table A–1: The TDS Character Set 0 1 2 3 4 5 6 7 0 NUL 0 0 12 16 space 5 32 0 10 48 @...
Appendix A: Character Charts A–2 TDS Family Oscilloscope Programmer Manual Table A–2: ASCII & GPIB Code Chart B7 B6 B5 T 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 BITS B4 B3 B2 B1 CONTROL NUMBERS SYMBOLS UPPER CASE LOWER CASE 0 0 0 0 0 NUL 0 0 20 DLE 10 16 40 LA0 SP 20 32 60 LA16 0 30 48 1...
TDS Family Oscilloscope Programmer Manual B–1 Appendix B: Reserved Words The following is a list of the reserved words of the digitizing oscilloscope. Donot use these words for aliases. Capital letters identify the required minimumspelling. Hint: Use the full spelling for the most robost code as the...
TDS Family Oscilloscope Programmer Manual C–1 Appendix C: Interface Specifications This appendix describes details of the GPIB remote interface of the digitizingoscilloscope. Normally, you will not need this information to use the digitizingoscilloscope, but the information is useful when connecting...
Appendix C: Interface Specifications C–2 TDS Family Oscilloscope Programmer Manual H DT1 (Device Trigger). When acting as a listener, the digitizing oscilloscoperesponds to the GET (Group Execute Trigger) interface message. H C0 (Controller). The digitizing oscilloscope cannot control other devices....
TDS Family Oscilloscope Programmer Manual D–1 Appendix D: Factory Initialization Settings The factory initialization settings provide you a known state for the digitizingoscilloscope. Factory initialization sets values as shown in Table D–1. Table D–1: Factory Initialization Settings Control Changed...
TDS Family Oscilloscope Programmer Manual Glossary–1 Glossary ASCII Acronym for the American Standard Code for Information Interchange.Controllers transmit commands to the digitizing oscilloscope using ASCIIcharacter encoding. Address A 7-bit code that identifies an instrument on the communication b...
Glossary Glossary–2 TDS Family Oscilloscope Programmer Manual Real-time sampling A sampling mode where the digitizing oscilloscope samples fast enough tocompletely fill a waveform record from a single trigger event. Use real-timesampling to capture single-shot or transient events. GPIB Acronym for G...
TDS Family Oscilloscope Programmer Manual Index–1 Index Numbers 2 + 2 channel operation, viii A Abbreviating, command, 2–4ACQUIRE?, 2–47ACQUIRE:AUTOSAVE, 2–47ACQUIRE:MODE, 2–48ACQUIRE:NUMACQ?, 2–50ACQUIRE:NUMAVG, 2–51ACQUIRE:NUMENV, 2–52ACQUIRE:REPET, 2–53ACQUIRE:STATE, 2–54ACQUIRE:STOPAFTER, 2–55Ac...
Index Index–2 TDS Family Oscilloscope Programmer Manual CH<x>:PROBE?, 2–75CH<x>:PROBECAL?, 2–75CH<x>:PROBEFUNC:EXTATTEN, 2–76CH<x>:PROBEFUNC:EXTDBATTEN, 2–76CH<x>:SCALE, 2–77CH<x>:VOLTS, 2–78Channel, command mnemonic, 2–7CH<x>, command mnemonic, 2–7Clear Sta...
Index TDS Family Oscilloscope Programmer Manual Index–3 CURSOR:FUNCTION, 2–80CURSOR:HBARS?, 2–80CURSOR:HBARS:DELTA?, 2–81CURSOR:HBARS:POSITION<x>, 2–81CURSOR:HBARS:POSITION<x>PCNT, 2–82CURSOR:HBARS:SELECT, 2–83CURSOR:HBARS:UNITS, 2–83CURSOR:MODE, 2–84CURSOR:PAIRED, 2–85CURSOR:PAIRED:HDEL...
Index Index–4 TDS Family Oscilloscope Programmer Manual DISPLAY:COLOR:PALETTE:PERSISTENCE, 2–117DISPLAY:COLOR:PALETTE:REGULAR, 2–117DISPLAY:COLOR:PALETTE:RESETALL, 2–118DISPLAY:DATE/TIME. See DISPLAY:CLOCKDISPLAY:FILTER, 2–121DISPLAY:FORMAT, 2–122DISPLAY:GRATICULE, 2–123DISPLAY:INSTAVU:PERSISTENCE, ...
Index TDS Family Oscilloscope Programmer Manual Index–5 HARDCOPY:PALETTE, 2–151HARDCOPY:PORT, 2–152 HARDCOPY:FILENAME, 2–147HARDCOPY:FORMAT, 2–148HARDCOPY:LAYOUT, 2–151HARDCOPY:PALETTE, 2–151HARDCOPY:PORT, 2–152HDR, 2–153HEADER, 2–153Header Command, 2–2, 2–153Included in query response, 2–153, 2–344...
Index Index–6 TDS Family Oscilloscope Programmer Manual L Limit test command group, 2–22Limit Test commands LIMIT:BELL, 2–181LIMIT:COMPARE:CH<x>, 2–181LIMIT:COMPARE:MATH<x>, 2–182LIMIT:HARDCOPY, 2–183LIMIT:STATE, 2–184LIMIT:TEMPLATE, 2–185LIMIT:TEMPLATE:DESTINATION, 2–185LIMIT:TEMPLATE:S...
Index TDS Family Oscilloscope Programmer Manual Index–7 MEASUREMENT:MEAS<x>: DELAY:EDGE2, 2–221 MEASUREMENT:MEAS<x>: DELAY:SOURCE1, 2–224 MEASUREMENT:MEAS<x>: DELAY:SOURCE2, 2–224 MEASUREMENT:MEAS<x>: STATE, 2–225MEASUREMENT:MEAS<x>: TYPE, 2–226MEASUREMENT:MEAS<x>...
Index Index–8 TDS Family Oscilloscope Programmer Manual Messages, Status and error, 1–2Miscellaneous, LOCK, 2–188Miscellaneous command group, 2–26Miscellaneous commands AUTOSET, 2–67BELL, 2–68DATE, 2–105*DDT, 2–106FACTORY, 2–136HDR, 2–153HEADER, 2–153*IDN?, 2–180*LRN?, 2–189NEWPASS, 2–243PASSWORD, 2...
Index TDS Family Oscilloscope Programmer Manual Index–9 RS232:HARDFLAGGING, 2–252RS232:PARITY, 2–253RS232:SOFTFLAGGING, 2–253RS232:STOPBITS, 2–254*RST, 2–250Rules, command forming, 2–1Runt trigger, 2–304, 2–307, 2–308, 2–309, 2–310, 2–311, 2–312 S *SAV, 2–255Save and recall command group, 2–28Save a...
Tektronix Manuals
-
Tektronix SG 5010
Manual
-
Tektronix Z340LTA
Manual
-
Tektronix 7834
Manual
-
Tektronix 070-9180-01
Manual
-
Tektronix 11403A
Manual
-
Tektronix 550
Manual
-
Tektronix ps 501
Manual
-
Tektronix CSA 803A
Manual
-
Tektronix P6015
Manual
-
Tektronix 016-1249-00
Manual
-
Tektronix SG 505
Manual
-
Tektronix 016-1414-00
Manual
-
Tektronix AM700
Manual
-
Tektronix 016-1335-00
Manual
-
Tektronix 1705A
Manual
-
Tektronix 784A
Manual
-
Tektronix 2445
Manual
-
Tektronix TLA7XXX
Manual
-
Tektronix 524A
Manual
-
Tektronix 016-1341-00
Manual