TDS640A Programmer EN
TDS640A Programmer EN
Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of the
Rights in Technical Data and Computer Software clause at DFARS 252.227-7013, or subparagraphs (c)(1) and (2) of the
Commercial Computer Software – Restricted Rights clause at FAR 52.227-19, as applicable.
Tektronix products are covered by U.S. and foreign patents, issued and pending. Information in this publication supercedes
that in all previously published material. Specifications and price change privileges reserved.
Tektronix warrants that this product will be free from defects in materials and workmanship for a period of three (3) years
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.
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; or c) 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
difficulty of servicing the product.
THIS WARRANTY IS GIVEN BY TEKTRONIX WITH RESPECT TO THIS PRODUCT IN LIEU OF ANY
OTHER WARRANTIES, EXPRESSED 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
Overview of the Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–1
Setting Up Remote Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–3
Programming Examples
Compiling the Example Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–2
Appendices
Appendix A: Character Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A–1
Appendix B: Reserved Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B–1
Appendix C: Interface Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . C–1
GPIB Function Subsets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C–1
Interface Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C–2
Appendix D: Factory Initialization Settings . . . . . . . . . . . . . . . . . . . . . D–1
Glossary and Index
List of Figures
List of Tables
This programmer manual covers the TDS 410A, 420A, 460A, 520A, 524A,
540A, 544A, 620A, 640A, 644A, 684A, 744A, & 784A. It also covers Advanced
DSP Math (optional on the TDS420A, 460A, 520A, 540A, 620A, & 640A), the
RS-232/Centronics Interface (optional on the TDS 410A, 420A, 460A, 520A,
540A, 620A, & 640A), and the Option 05 Video Trigger. This manual provides
information on operating your oscilloscope using the General Purpose Interface
Bus (GPIB) interface.
Related Manuals
Table i lists other documentation for the TDS 410A, 420A, 460A, 520A, 524A,
540A, 544A, 620A, 640A, 644A, 684A, 744A, & 784A digitizing oscilloscopes.
You can write computer programs that remotely set the oscilloscope front panel
controls or take measurements and read those measurements for further analysis
or storage.
To help you get started with programmng the oscilloscope, this section includes
the following:
H Overview of the Manual – summarizes the type of programming information
contained in each major section of this manual.
H Setting Up Remote Communications – describes how to physically connect
the oscilloscope to a controller and set the appropriate front panel controls.
Syntax and Commands The Syntax and Commands section (Section 2) describes the structure and
content of the messages your program sends to the digitizing oscilloscope.
Figure 1–1 shows a syntax diagram and command parts as described in the
Command Syntax subsection.
Syntax Diagram
Section 2 also describes the effect of each command and provides examples of
how you might use it. The Command Groups subsection provides a list by
functional area. The Command Descriptions subsection arranges commands
alphabetically (Figure 1–2).
Status and Events The program may request information from the oscilloscope. The oscilloscope
provides information in the form of status and error messages. Figure 1–3
illustrates the basic operation of this system.
The Status and Events section (Section 3) starting on page 3–1 describes how to
use service requests (SRQs) and various event messages in your programs.
GPIB Cable
Figure 1–3: Service Requests (SRQs) Provide for Event (Interrupt) Driven Programs
Programming Examples The Programming Examples section (Section 4) starting on page 4–1 describes
some example digitizing oscilloscope programs and how to compile them. The
disks that come with this manual (Figure 1–4) have an executable and a
Microsoft QuickBASIC 4.5 and a Microsoft QuickC 2.5 source code version of
each program.
TDS Example
Programs
TDS Example
Programs
GPIB Requirements Observe these rules when you use your digitizing oscilloscope with a GPIB
network:
H Assign a unique device address to each device on the bus. No two devices
can share the same device address.
H Do not connect more than 15 devices to any one bus.
H Connect one device for every 2 meters (6 feet) of cable used.
H Do not use more than 20 meters (65 feet) of cable to connect devices to a
bus.
H Turn on at least two-thirds of the devices on the network while using the
network.
H Connect the devices on the network in a star or linear configuration as shown
in Figure 1–7. Do not use loop or parallel configurations.
Setting the GPIB You need to set the GPIB parameters of the digitizing oscilloscope to match the
Parameters configuration of the bus. Once you have set these parameters, you can control the
digitizing oscilloscope through the GPIB interface.
1. Press the UTILITY (SHIFT DISPLAY) button to display the Utility menu.
2. Press the System button in the main menu until it highlights the I/O
selection in the pop-up menu. See Figure 1–8.
3. Press the Port button in the main menu until it highlights the GPIB
selection in the pop-up menu. See Figure 1–9.
4. Press the Configure button in the main menu to display the GPIB Configu-
ration side menu. See Figure 1–9.
5. Press the Talk/Listen Address side menu button, and set the GPIB address
using either the general purpose knob or, if available, the keypad.
Figure 1–9: Selecting the GPIB Address in the GPIB Configuration Side Menu
You can control the digitizing oscilloscope through the GPIB interface using
commands and queries. This section describes the syntax these commands and
queries use. It also describes the conventions the digitizing oscilloscope uses to
process them. The next section, entitled Command Groups, lists the commands
and queries themselves.
You transmit commands to the digitizing oscilloscope using the enhanced
American Standard Code for Information Interchange (ASCII) character
encoding. Appendix A: Character Charts on page A–2 contains a chart of the
ASCII character set.
This manual describes commands and queries using Backus-Naur Form (BNF)
notation and syntax diagrams.
This manual uses the following BNF symbols:
Symbol Meaning
Defined element
Is defined as
Exclusive OR
Group; one element is required
Optional; can be omitted
Previous element(s) may be repeated
Comment
Symbol Meaning
<Header> 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
(*).
<Mnemonic> 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.
<Argument> A quantity, quality, restriction, or limit associated with the
header. Some commands have no argument while others have
multiple arguments. A <Space> separates arguments from the
header. A <Comma> separates arguments from each other.
<Comma> A single comma between arguments of multiple-argument
commands. It may optionally have white space characters
before and after the comma.
<Space> A white space character between command header and
argument. It may optionally consist of multiple white space
characters.
SAVe:WAVEform CH1,REF3
Syntax Diagram
Headers in Query You can control whether the digitizing oscilloscope returns headers as part of the
Responses query response. Use the HEADer command to control this feature. If header is on,
the query response returns command headers and formats itself as a valid set
command. When header is off, the response includes only the values. This may
make it easier to parse and extract the information from the response. Table 2–3
shows the difference in responses.
Command Entry
H You can enter commands in upper or lower case.
H You can precede any command with white space characters. White space
characters include any combination of the ASCII control characters 00
through 09 and 0B through 20 hexadecimal (0 through 9 and 11 through 32
decimal).
H The digitizing oscilloscope ignores commands consisting of any combina-
tion of white space characters and line feeds.
Abbreviating Commands You can abbreviate many digitizing oscilloscope commands. Each command
listing in the Commands section shows the minimum acceptable abbreviations in
capitals. For example, you can enter the command $"% simply as
or !$.
NOTE. Keep in mind that abbreviation rules change over time as new TDS
models get introduced. Thus, for the most robust code, use the full spelling.
Avoid using the command abbreviations.
Concatenating Commands You can concatenate any combination of set commands and queries using a
semicolon (;). The digitizing oscilloscope 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 but the first. For example, the commands &
"
and $" would be concatenated into a
single command:
"
$"
2. If concatenated commands have headers that differ by only the last mnemon-
ic, you can abbreviate the second command and eliminate the beginning
colon. For example, you can concatenate the commands $"
and $" into a single command:
$"
The longer version works equally well:
$"
$"
3. Never precede a star (*) command with a colon:
$"
Any commands that follow will be processed as if the star command was not
there so
ACQuire:MODe ENVelope;*TRG;NUMAVg 10
will set the acquisition mode to envelope and set the number of acquisitions
for averaging to 10.
4. When you concatenate queries, the responses to all the queries are concate-
nated into a single response message. For example, if the display intensity
for text is 80% and for the waveform it is 90%, the concatenated query
DISplay:INTENsity:TEXt?;WAVEform?
will return either :DISPLAY:INTENSITY:TEXT 80;:DISPLAY:INTENSIĆ
TY:WAVEFORM 90 if header is on or 80;90 if header is off.
5. Set commands and queries may be concatenated in the same message. For
example,
ACQuire:MODe NORMal;NUMAVg?;STATE?
is a valid message that sets the acquisition mode to normal. The message
then queries the number of acquisitions for averaging and the acquisition
state. Concatenated commands and queries are executed in the order
received.
Here are some invalid concatenations:
H DISPlay:INTENsity:TEXt 80;ACQuire:NUMAVg 10
(no colon before ACQuire)
H DISPlay:INTENsity:TEXt 80;:WAVEform 90
(extra colon before WAVEform — could use DISPlay:INTENsity:WAVEform
instead)
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 front of LABel:BOTTOM2)
Message Terminators This manual uses <EOM> (End of message) to represent a message terminator.
Symbol Meaning
<EOM> Message terminator
Constructed Mnemonics
Some header mnemonics specify one of a range of mnemonics. For example, a
channel mnemonic can be either CH1, CH2, CH3, or CH4. You use these mnemon-
ics in the command just as you do any other mnemonic. For example, there is a
CH1:VOLts command, and there is also a CH2:VOLts command. In the command
descriptions, this list of choices is abbreviated as CH<x>.
Application Menu When the application menu is displayed, commands may specify which menu
Mnemonics button to use.
Symbol Meaning
BOTTOM<x> A main menu button selector; <x> is 1, 2, 3, 4, 5, 6, or 7.
Main menu buttons are located along the bottom of the display
and are numbered left to right, starting with 1.
RIGHT<x> A side menu button selector; <x> is 1, 2, 3, 4, or 5. Side menu
buttons are located along the right side of the display and are
numbered top to bottom, starting with 1.
Cursor Position When cursors are displayed, commands may specify which cursor of the pair to
Mnemonics use.
Symbol Meaning
POSITION<x> A cursor selector; <x> is either 1 or 2.
Measurement Specifier Commands can specify which measurement to set or query as a mnemonic in the
Mnemonics header. Up to four automated measurements may be displayed with each
displayed waveform. The displayed measurements are specified in this way:
Symbol Meaning
MEAS<x> A measurement specifier; <x> is either 1 [top], 2, 3, or
4[bottom].
Channel Mnemonics Commands specify the channel to use as a mnemonic in the header.
Symbol Meaning
A channel specifier; is either , , , or .
For the TDS 410A, which has only two channels, is either
or .
For the TDS 520A, 524A, and 620A, and represent
the front-panel inputs labeled AUX 1 and AUX 2 respectively.
Math Waveform Commands can specify the mathematical waveform to use as a mnemonic in the
Mnemonics header.
Symbol Meaning
A math waveform specifier; is , , or .
Reference Waveform Commands can specify the reference waveform to use as a mnemonic in the
Mnemonics header.
Symbol Meaning
A reference waveform specifier; is either , , , or .
Waveform Mnemonics In some commands, you can specify a waveform regardless of whether it is a
channel waveform, a math waveform, or a reference waveform. Specify such a
waveform as follows:
Symbol Meaning
Can be , or
Argument Types
The argument of a command may be in one of several forms. The individual
descriptions of each command tell which argument types to use with that
command.
Numeric Arguments Many digitizing oscilloscope commands require numeric arguments. The syntax
shows the format that the digitizing oscilloscope returns in response to a query.
This is also the preferred format when sending the command to the digitizing
oscilloscope though any of the formats will be accepted. This manual represents
these arguments as follows:
Symbol Meaning
<NR1> Signed integer value
<NR2> Floating point value without an exponent
<NR3> Floating point value with an exponent
Quoted String Arguments 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"
Symbol Meaning
<QString> Quoted string of ASCII text
7. A carriage return or line feed imbedded in a quoted string does not terminate
the string, but is treated as just another character in the string.
8. The maximum length of a quoted string returned from a query is 1000
characters.
Here are some invalid strings:
H "Invalid string argument'
(quotes are not of the same type)
H "test<EOI>"
(termination character is embedded in the string)
Block Arguments Several digitizing oscilloscope commands use a block argument form:
Symbol Meaning
<NZDig> A nonzero digit character, in the range 1–9
<Dig> A digit character, in the range 0–9
<DChar> A character with the hex equivalent of 00 through FF
hexadecimal (0 through 255 decimal)
<Block> A block of data bytes, defined as:
<Block> ::=
{ #<NZDig><Dig>[<Dig>...][<DChar>...]
| #0[<DChar>...]<terminator> }
<NZDig> specifies the number of <Dig> elements that follow. Taken together, the
<Dig> elements form a decimal integer that specifies how many <DChar>
elements follow.
Figure 2–2 provides a diagram of block argument use.
Block Argument
Syntax Diagrams
The syntax diagrams in this manual use the following symbols and notation:
H Circles and ovals contain literal elements. You must send most elements
exactly as shown. The command mnemonics are shown in both upper and
lower case to distinguish between complete and abbreviated spellings. These
elements are not case sensitive. You can omit the lower case portion of the
mnemonic.
H Boxes contain the defined elements described earlier in this section, such as
or
.
H Elements are connected by arrows that show the allowed paths through the
diagram and, thus, the orders in which you can send the elements. Parallel
paths show that you must take one and only one of the paths. A path around
a group of elements shows that those elements are optional. Loops show
elements that you can repeat.
Figure 2–3 shows the structure of a few typical syntax diagrams.
This section lists TDS Family Oscilloscope commands in two ways. It first
presents them by functional groups. It then lists them alphabetically. The
functional group list starts below. The alphabetical list provides more detail on
each command and starts on page 2–39.
The TDS Family Oscilloscope GPIB interface conforms to Tektronix standard
codes and formats and IEEE Std 488.2–1987 except where noted.
Acquisition Commands
Acquisition commands affect waveform acquisition. These commands control
mode, averaging, enveloping, and single-waveform acquisition. (Persistence
controls are in the Display Commands section on page 2–14.) Table 2–4 lists
these commands.
Header Description
ACQuire? Return acquisition parameters
ACQuire:AUTOSAve Save waveforms to reference memory
(TDS 7XXA & some 6XXA)
ACQuire:MODe Acquisition mode
ACQuire:NUMACq? Return # of acquisitions obtained
ACQuire:NUMAVg Number of acquisitions for average
ACQuire:NUMEnv Number of acquisitions for envelope
ACQuire:REPEt Repetitive acquisition mode
(TDS 4XXA, 5XXA, & 7XXA)
ACQuire:STATE Start or stop acquisition system
ACQuire:STOPAfter Acquisition control
Alias Commands
Alias commands let you define your own commands as a sequence of standard
commands. This is useful when you use the same commands each time you
perform a certain task, such as setting up measurements. Table 2–5 lists these
commands.
Header Description
Turn the alias state on and off
Return a list of aliases
Create a new alias
Remove an alias
Remove all aliases
Remove a named alias
Turn the alias state on and off
Header Description
Display the application menu
Return or remove all application menu button
labels
Label for a bottom menu button
Label for a side menu button
Create a title for the application menu
Header Description
Perform an internal self-calibration
Return diagnostic tests status
Return diagnostic test sequence results
$$ Acquisition system diagnostic test sequence
$ Diagnostic test sequence for Acquisition,
Processor, Display, and Front panel
$ Processor diagnostic test sequence
$ !& Display system diagnostic test sequence
$ Front panel diagnostic test sequence
Control of diagnostic tests
Cursor Commands
Cursor commands provide control over cursor (caliper) display and readout.
Table 2–8 lists these commands.
Header Description
" Return cursor settings
"$ Cursors on or off; select cursor type
"
"# Return H bar settings
"
"#
Return distance between H bars
"
"#% Position a horizontal cursor
"
"#%$ Position a horizontal cursor in units of % of
(TDS 4XXA) vertical range
"
"#
$ Set which cursor the knob controls
"
"#$# Set H bar units
" Set cursor tracking mode
Header Description
!#
# Positions paired cursors. Also, returns settings
!#
#
Return horizontal distance between 1st and
2nd paired cursors.
!#
# Return horizontal position of 1st paired cursor
!#
# Return horizontal position of 2nd paired cursor
!#
#
' % Position the horizontal paired cursor in units of
(TDS 4XXA) % of record length
!#
#
' Set or return vbar position of the1st or 2nd
paired cursor
!#
#% Select active paired cursor
!#
#
%$ Set paired cursor units
!#
#
Return vertical distance between 1st and 2nd
paired cursors
!##$ Position vertical bar cursors
!##$
Return horizontal distance between cursors
!##$
' Position a vertical cursor
!##$
' % Position a vertical cursor in units of % of
(TDS 4XXA) record length
!##$% Set which cursor the knob controls
!##$
%$ Set vertical cursors to seconds, frequency, or
to lines (with option 05 video on the TDS
5XXA, 6XXA, & 7XXA)
!##$
# (TDS 4XXA) Return unit string for the vertical bar cursor
Display Commands
Display commands let you change the graticule style, change the displayed
intensities, display messages, and clear the menu. Table 2–9 lists these com-
mands.
Header Description
& Clear menus from display
"( Return display settings
"( Control the display of the date/time stamp
Header Description
#)$%& Control collision contrast
(TDS 524A, 544A, 644A, 684A, & 7XXA)
#)$& Sets color for math or ref waveform to the
!&% color of the waveform content
(TDS 524A, 544A, 644A, 684A, & 7XXA)
#)$& Set color for math or ref waveform to specific
(TDS 524A, 544A, 644A, 684A, & 7XXA) color index
#)$
&&
%&! Set current persistence palette to a preset
(TDS 524A, 544A, 644A, 684A, & 7XXA) persistence palette
#)$
&&
'$ Set current palette to a preset palette
(TDS 524A, 544A, 644A, 684A, & 7XXA)
#)$
&&
Reset all palettes to their factory default
(TDS 524A, 544A, 644A, 684A, & 7XXA) settings
#)$
&& Reset a selected palette to its factory default
#&& !
settings
(TDS 524A, 544A, 644A, 684A, & 7XXA)
#)$
&& Set the color of a selected item on a selected
#&& ! & ! palette
(TDS 524A, 544A, 644A, 684A, & 7XXA)
#)
$ Displayed data interpolation
#)& YT or XY display
#)&' Graticule style
#)
&('
%&! InstaVu persistence type – variable or infinite
(TDS 7XXA)
#)
&(' InstaVu waveform dots or vector style
(TDS 7XXA)
#)
&('#$%%& InstaVu variable persistence decay time
(TDS 7XXA)
#)
) Return intensity settings
#)
)%& Waveform intensified zone brightness
(TDS 4X0A, 520A, 540A, 620A, & 640A)
#)
)
Main brightness
(TDS 4X0A, 520A, 540A, 620A, & 640A)
#)
)
& Text brightness
#)
)
"$ Waveform brightness
#) Normal or InstaVu display mode
#)
%&! Variable persistence decay time
Header Description
DISplay:STYle Waveform dots, vector, infinite persistence, or
variable persistence
DISplay:TRIGBar Control the display of the trigger bar/s on
screen
DISplay:TRIGT Control the display of the trigger indicator on
screen
MESSage Remove text from the message window
MESSage:BOX Set size and location of message window
MESSage:SHOw Remove and display text in the message
window
MESSage:STATE Control display of message window
Header Description
FILESystem:COPy Copy file to new file
FILESystem:CWD Set directory path
FILESystem:DELEte Delete named file
FILESystem:DELWarn Set front-panel delete warning
FILESystem:DIR Make directory
FILESystem:FORMat Format named drive
FILESystem:FREESpace Return free space on current drive
FILESystem:MKDir Make new directory
FILESystem:OVERWrite Set file-overwrite protection
FILESystem:PRInt Print file to port
FILESystem:REName Assign new name to file
FILESystem:RMDir Delete named directory
Hardcopy Commands
Hardcopy commands let you control the format of hardcopy output and the
initiation and termination of hardcopies. Table 2–11 lists these commands.
Header Description
HARDCopy Start or terminate hardcopy
HARDCopy:FILEName Select file to send hardcopy data to
(File System only)
HARDCopy:FORMat Hardcopy output format
HARDCopy:LAYout Hardcopy orientation
HARDCopy:PALEtte Select palette to use when making hardcopy
(TDS 524A, 544A, 644A, 684A, 7XXA)
HARDCopy:PORT Hardcopy port for output
Horizontal Commands
Horizontal commands control the time bases of the digitizing oscilloscope. You
can set the time per division (or time per point) of both the main and delay time
bases. You can also set the record lengths. Table 2–12 lists these commands.
You may substitute SECdiv for SCAle in the horizontal commands. This
provides program compatibility with earlier models of Tektronix digitizing
oscilloscopes.
Header Description
HORizontal? Return horizontal settings
HORizontal:CLOck Enable internal or external clocks
(TDS 4XXA only)
HORizontal:CLOck:MAXRate Set maximum external clock rate
(TDS 4XXA only)
HORizontal:DELay? Return delay time base settings
HORizontal:DELay:MODe Delay time base mode
HORizontal:DELay:SCAle Delay time base time per division
HORizontal:DELay:SECdiv Same as HORizontal:DELay:SCAle
HORizontal:DELay:TIMe Delay time
Header Description
HORizontal:DELay:TIMe? Return delay time parameters
HORizontal:DELay:TIMe:RUNSAfter Time to wait in delay-runs-after-main mode
HORizontal:DELay:TIMe:TRIGAfter Time to wait in delay-runs-after-trigger mode
HORizontal:FASTframe:COUNt Select FastFrame count
(TDS 5XXA & 7XXA only)
HORizontal:FASTframe:LENgth Select length of each FastFrame frame
(TDS 5XXA & 7XXA only)
HORizontal:FASTframe:POSition Select FastFrame frame to display
(TDS 5XXA & 7XXA only)
HORizontal:FASTframe:STATE Setup FastFrame acquisition
(TDS 5XXA & 7XXA only)
HORizontal:FITtoscreen Setup waveform compress
(TDS 4XXA, 5XXA, 6XXA, & 7XXA)
HORizontal:MAIn? Return main time per division
HORizontal:MAIn:SCAle Main time base time per division
HORizontal:MAIn:SECdiv Same as HORizontal:MAIn:SCAle
HORizontal:MODe Turn delay time base on or off
HORizontal:POSition Portion of waveform to display
HORizontal:RECOrdlength Number of points in waveform record
HORizontal:ROLL Set roll mode to auto or off
(TDS 4XXA only)
HORizontal:SCAle Same as HORizontal:MAIn:SCAle
HORizontal:SECdiv Same as HORizontal:MAIn:SCAle
HORizontal:TRIGger? Return trigger position
HORizontal:TRIGger:POSition Main time base trigger position
Header Description
#
Ring bell when limit exceeded
#!"% Template to compare waveform to
#!" % Template to compare math waveform to
(TDS 5XXA, 6XXA, & 7XXA)
# !& Make hardcopy when limit exceeded
#
Turn limit testing on or off
#
# Template to compare waveform to
#
#
# Reference storage for template waveform
#
#" Template waveform source
#
#" Tested waveform horizontal tolerance
' #
#
#"
Tested waveform vertical tolerance
Measurement Commands
Measurement commands control the automated measurement system. Table 2–14
lists these commands.
Up to four automated measurements can be displayed on the screen. In the
commands, these four measurement readouts are named
%, where % can
be , , , or .
In addition to the four displayed measurements, the measurement commands let
you specify a fifth measurement, . The immediate measurement has no
front-panel equivalent. Immediate measurements are never displayed. Because
they are computed only when needed, immediate measurements slow the
waveform update rate less than displayed measurements.
Whether you use displayed or immediate measurements, you use the $
query to obtain measurement results.
Measurement commands can set and query measurement parameters. You can
assign some parameters, such as waveform sources, differently for each
measurement readout. Other parameters, such as reference levels, have only one
value, which applies to all measurements.
Header Description
%!"' Return all measurement parameters
%!"' $&#' Take down measurement snapshot
%!"'
Set or query measurement gating
%!"'
Return immediate measurement parameters
%!"'
* Return info on immediate delay measurement
%!"'
* Search direction to use for delay measure-
' #" ments
%!"'
*
Which waveform edge to use for delay
measurements
%!"'
*
Which waveform edge to use for delay
measurements
%!"'
Channel to take measurement from
%!"'
Second channel to take measurement from
(delay or “to” channel)
%!"'
The measurement to be taken
%!"'
'& Return measurement units
%!"'
( Return measurement result
%!"') Return parameters on measurement
%!"')
* Return delay measurement parameters
%!"')
* Search direction to use for delay measure-
' #" ments
%!"')
*
Which waveform edge to use for delay
measurements
%!"')
*
Which waveform edge to use for delay
measurements
%!"') Channel to take measurement from
%!"') Second channel to take measurement from
(delay or “to” channel)
%!"') Turn measurement display on or off
%!"') The measurement to be taken
%!"')
'& Return units to use for measurement
Header Description
MEASUrement:MEAS<x>:VALue? Return measurement result
MEASUrement:METHod Method for calculating reference levels
MEASUrement:REFLevel? Return reference levels
MEASUrement:REFLevel:ABSolute:HIGH The top level for risetime (90% level)
MEASUrement:REFLevel:ABSolute:LOW The low level for risetime (10% level)
MEASUrement:REFLevel:ABSolute:MID Mid level for measurements
MEASUrement:REFLevel:ABSolute:MID2 Mid level for delay measurements
MEASUrement:REFLevel:METHod Method to assign HIGH and LOW
levels: either % or absolute volts
MEASUrement:REFLevel:PERCent:HIGH The top level for risetime (90% level)
MEASUrement:REFLevel:PERCent:LOW The low level for risetime (10% level)
MEASUrement:REFLevel:PERCent:MID Mid level for measurements
MEASUrement:REFLevel:PERCent:MID2 Mid level for delay measurements
MEASUrement:SNAPShot Display measurement snapshot
Miscellaneous Commands
Miscellaneous commands do not fit into other categories. Table 2–15 lists these
commands.
Several commands and queries are common to all 488.2–1987 devices on the
GPIB bus. The 488.2–1987 standard defines them. They begin with a star (*)
character.
Header Description
AUTOSet Automatic instrument setup
BELl Audio alert
*DATE Set date
*DDT Define group execute trigger (GET)
FACtory Reset to factory default
HDR Same as HEADer
HEADer Return command header with query
*IDN? Identification
Header Description
Learn device setting
! Lock front panel (local lockout)
%'' Change password for User Protected Data
$& Access to change User Protected Data
No action; remark only
Same as *LRN?
)& Initialize waveforms and setups
Set time
Perform Group Execute Trigger (GET)
Self-test
$! Unlock front panel (local lockout)
$' Return full command name or minimum
spellings with query
RS-232 Commands
RS-232 commands allow you to utilize the serial communications port (available
with the RS-232/Centronics Hardcopy Interface). Table 2–16 lists these
commands.
Header Description
Return RS-232 parameters
Set baud rate
" # Set hard flagging
(* Set parity
" # Set soft flagging
(' Set # of stop bits
itself to the state it was in when you originally saved that setting. Table 2–17
lists these commands.
Header Description
Return number of allocated and unallocated
data points
Return number of allocated data points
Header Description
Return all events
Return scope status
Clear status
Header Description
Device event status enable
Event status enable
Return standard event status register
Return event code
Return event code and message
Return number of events in queue
Identification
Operation complete
Return installed options
Power-on status clear
Query or set User Protected Data
Reset
Service request enable
Read status byte
Wait to continue
Trigger Commands
Trigger commands control all aspects of digitizing oscilloscope triggering. Table
2–19 lists these commands.
There are two triggers, main and delayed. Where appropriate, the command set
has parallel constructions for each trigger.
You can set the main or delayed triggers to edge mode. Edge triggering lets you
display a waveform at or near the point where the signal passes through a voltage
level of your choosing.
You can also set TDS 5XXA, 6XXA, and 7XXA main triggers to pulse and logic
modes. Pulse triggering lets the oscilloscope trigger whenever it detects a pulse
of a certain width or height. Logic triggering lets you logically combine the
signals on one or more channels. The digitizing oscilloscope then triggers when
it detects a certain combination of signal levels.
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:DELay:EDGE:COUPling Delay trigger coupling
TRIGger:DELay:EDGE:SLOpe Delay trigger slope
TRIGger:DELay:EDGE:SOUrce Delay trigger source
TRIGger:DELay:EVENTS? Return delay trigger event parameters
TRIGger:DELay:EVENTS:COUNt Delay by events count
TRIGger:DELay:LEVel Delay trigger level
TRIGger:DELay:TIMe Time for delay by time
TRIGger:DELay:TYPe Delay trigger, edge
TRIGger:MAIn Main trigger level to 50%
TRIGger:MAIn:EDGE? Return main edge trigger parameters
TRIGger:MAIn:EDGE:COUPling Main trigger coupling
TRIGger:MAIn:EDGE:SLOpe Main trigger slope
TRIGger:MAIn:EDGE:SOUrce Main trigger source
TRIGger:MAIn:HOLDoff? Return main trigger holdoff value
TRIGger:MAIn:HOLDoff:ACTUal? Return main trigger holdoff value in seconds
(TDS 684A & 7XXA)
TRIGger:MAIn:HOLdoff:BY Main trigger holdoff default
(TDS 684A & 7XXA)
TRIGger:MAIn:HOLdoff:TIMe Main trigger holdoff time
(TDS 684A & 7XXA)
TRIGger:MAIn:HOLdoff:VALue Main trigger holdoff value
(Not in TDS 684A & 7XXA)
TRIGger:MAIn:LEVel Main trigger level
TRIGger:MAIn:LOGIc? Returns main logic trigger parameters
(TDS 5XXA, 6XXA, & 7XXA)
TRIGger:MAIn:LOGIc:CLAss Logic trigger input usage
(TDS 5XXA, 6XXA, & 7XXA)
TRIGger:MAIn:LOGIc:FUNCtion Logic trigger input combining
(TDS 5XXA, 6XXA, & 7XXA)
TRIGger:MAIn:LOGIc:INPut? Return main logic trigger input settings
(TDS 5XXA, 6XXA, & 7XXA)
Header Description
TRIGger:MAIn:LOGIc:INPut:CH<x> Logic trigger expected channel state
(TDS 5XXA, 6XXA, & 7XXA)
TRIGger:MAIn:LOGIc:PATtern: Logic trigger expected for channel 4 pattern
INPut:CH4 class
(TDS 5XXA, 6XXA, & 7XXA)
TRIGger:MAIn:LOGIc:PATtern:WHEn Main logic pattern trigger condition
(TDS 5XXA, 6XXA, & 7XXA)
TRIGger:MAIn:LOGIc:PATtern Maximum time the selected pattern may be
:WHEn:LESSLimit true and still generate main logic pattern
(TDS 5XXA, 6XXA, & 7XXA) trigger
TRIGger:MAIn:LOGIc:PATtern Minimum time the selected pattern may be
:WHEn:MORELimit true and still generate main logic pattern
(TDS 5XXA, 6XXA, & 7XXA) trigger
TRIGger:MAIn:LOGIc:SETHold: Clock edge polarity for setup and hold violation
CLOCk:EDGE triggering
(TDS 684A & 7XXA)
TRIGger:MAIn:LOGIc:SETHold: Setup/Hold clock voltage trigger level.
CLOCk:LEVel
(TDS 684A & 7XXA)
TRIGger:MAIn:LOGIc:SETHold: Setup/Hold clock input source
CLOCk:SOUrce
(TDS 684A & 7XXA)
TRIGger:MAIn:LOGIc:SETHold: Setup/Hold data level
DATa:LEVel
(TDS 684A & 7XXA)
TRIGger:MAIn:LOGIc:SETHold: Setup/Hold data input data channel
DATa:SOUrce
(TDS 684A & 7XXA)
TRIGger:MAIn:LOGIc:SETHold: Setup/Hold trigger hold time
HOLDTime
(TDS 684A & 7XXA)
TRIGger:MAIn:LOGIc:SETHold: Setup/Hold trigger set time
SETTime
(TDS 684A & 7XXA)
TRIGger:MAIn:LOGIc:STATE:INPut: Logic trigger expected for channel 4 state
CH4 class
(TDS 5XXA, 6XXA, & 7XXA)
TRIGger:MAIn:LOGIc:STATE:WHEn When the logic trigger occurs (on true or false)
(TDS 5XXA, 6XXA, & 7XXA)
TRIGger:MAIn:LOGIc:THReshold? Return main logic thresholds
(TDS 5XXA, 6XXA, & 7XXA)
Header Description
#
!
$" Logic trigger thresholds
&
(TDS 5XXA, 6XXA, & 7XXA)
#
!
! Logic trigger on combination true or false
(TDS 5XXA, 6XXA, & 7XXA)
#
! Main trigger mode
#
!$ Returns pulse trigger parameters
(TDS 5XXA, 6XXA, & 7XXA)
#
!$$$ Pulse trigger class
(TDS 5XXA, 6XXA, & 7XXA)
#
!$
% Returns glitch trigger parameters
(TDS 5XXA, 6XXA, & 7XXA)
#
!$
%
# Glitch filter on and off
(TDS 5XXA, 6XXA, & 7XXA)
#
!$
% Glitch filter positive, negative, or both
#%'
(TDS 5XXA, 6XXA, & 7XXA)
#
!$
%
% Glitch trigger with differentiation between glitch
(TDS 5XXA, 6XXA, & 7XXA) and valid pulse
#
!$ Return runt trigger parameters
(TDS 5XXA, 6XXA, & 7XXA)
#
!$#%' Runt trigger positive, negative, or both
(TDS 5XXA, 6XXA, & 7XXA)
#
!$$" Return runt trigger thresholds
(TDS 5XXA, 6XXA, & 7XXA)
#
!$ Trigger level switching thresholds
$"
(TDS 684A & 7XXA)
#
!$ Upper limit for runt pulse
$"
(TDS 5XXA, 6XXA, & 7XXA)
#
!$ Lower limit for runt pulse
$"
(TDS 5XXA, 6XXA, & 7XXA)
#
!$ ! Runt pulse width type to check for
(TDS 684A & 7XXA)
#
!$
% Minimum width for valid main pulse runt trigger
(TDS 684A & 7XXA)
#
!$ % Slew rate trigger delta time
(TDS 684A & 7XXA)
Header Description
TRIGger:MAIn:PULse:SLEWRate: Slew rate trigger polarity
POLarity
(TDS 684A & 7XXA)
TRIGger:MAIn:PULse:SLEWRate: Return slew rate value
SLEWRate?
(TDS 684A & 7XXA)
TRIGger:MAIn:PULse:SLEWRate: Upper and lower slew rate trigger thresholds
THReshold:BOTh
(TDS 684A & 7XXA)
TRIGger:MAIn:PULse:SLEWRate: Upper limit for slew rate pulse
THReshold:HIGH
(TDS 684A & 7XXA)
TRIGger:MAIn:PULse:SLEWRate: Lower limit for slew rate pulse
THReshold:LOW
(TDS 684A & 7XXA)
TRIGger:MAIn:PULse:SLEWRate:WHEn Slewing signal type to check for
(TDS 684A & 7XXA)
TRIGger:MAIn:PULse:SOUrce Pulse trigger channel
(TDS 5XXA, 6XXA, & 7XXA)
TRIGger:MAIn:PULse:WIDth? Return trigger pulse width parameters
(TDS 5XXA, 6XXA, & 7XXA)
TRIGger:MAIn:PULse:WIDth:HIGHLimit Pulse trigger maximum pulse width
(TDS 5XXA, 6XXA, & 7XXA)
TRIGger:MAIn:PULse:WIDth:LOWLimit Pulse trigger minimum pulse width
(TDS 5XXA, 6XXA, & 7XXA)
TRIGger:MAIn:PULse:WIDth:POLarity Pulse trigger positive, negative, or both
(TDS 5XXA, 6XXA, & 7XXA)
TRIGger:MAIn:PULse:WIDth:WHEn Pulse trigger when pulse detected or when not
(TDS 5XXA, 6XXA, & 7XXA) detected
TRIGger:MAIn:TYPe Set main trigger to edge, logic, pulse, or, with
option 5, video type
TRIGger:MAIn:VIDeo? Return video trigger parameters
(TDS 5XXA, 6XXA, & 7XXA Option 05)
TRIGger:MAIn:VIDeo:BY Set video trigger delay mode
(TDS 4XXA Option 05)
TRIGger:MAIn:VIDeo:FIELD Set video trigger field
(Option 05)
TRIGger:MAIn:VIDeo:FIELDType Set video trigger field type
(TDS 5XXA, 6XXA, & 7XXA Option 05)
Header Description
TRIGger:MAIn:VIDeo:FLEXformat? Return FlexFormat parameters
(TDS 5XXA. 6XXA, & 7XXA Option 05)
TRIGger:MAIn:VIDeo:FLEXformat: Set FlexFormat frames per second
FIELDRATE
(TDS 5XXA, 6XXA, & 7XXA Option 05)
TRIGger:MAIn:VIDeo:FLEXformat: Set FlexFormat video fields
FIELDS
(TDS 5XXA, 6XXA, & 7XXA Option 05)
TRIGger:MAIn:VIDeo:FLEXformat: Set FlexFormat lines in a frame
LINES
(TDS 5XXA, 6XXA, & 7XXA Option 05)
TRIGger:MAIn:VIDeo:FLEXformat: Set FlexFormat negative sync width
NEGSynchwidth
(TDS 5XXA, 6XXA, & 7XXA Option 05)
TRIGger:MAIn:VIDeo:FLEXformat: Set time from positive (+) edge of tri-sync
V1STArttime pulse for the last line in the selected field to
(TDS 5XXA, 6XXA, & 7XXA Option 05) the leading edge (–) of the first negative
vertical sync pulse
TRIGger:MAIn:VIDeo:FLEXformat: Set time from positive edge of tri-sync pulse
V1STOptime for the last line in the selected field (t0) to
(TDS 5XXA, 6XXA, & 7XXA Option 05) trailing edge (positive) of the first negative
vertical sync pulse
TRIGger:MAIn:VIDeo: Set time from t0 to the leading edge (positive)
FLEXformat:V2STArttime of the second vertical sync pulse
(TDS 5XXA, 6XXA, & 7XXA Option 05)
TRIGger:MAIn:VIDeo: Set time from t0 to trailing edge (positive) of
FLEXformat:V2STOptime the second negative vertical sync pulse
(TDS 5XXA, 6XXA, & 7XXA Option 05)
TRIGger:MAIn:VIDeo:HDTv) Select high definition TV format
(TDS 5XXA, 6XXA, & 7XXA Option 05)
TRIGger:MAIn:VIDeo:HOLdoff? Return video trigger holdoff
(TDS 4XXA Option 5)
TRIGger:MAIn:VIDeo:HOLdoff:VALue Set video trigger holdoff value
(TDS 4XXA Option 5)
TRIGger:MAIn:VIDeo:INTERLAce Select video trigger interlace format
(TDS 4XXA Option 5)
TRIGger:MAIn:VIDeo:LINE Set video trigger delay in terms of a number of
(TDS 5XXA, 6XXA, & 7XXA Option 05) lines
TRIGger:MAIn:VIDeo:LINES Set video trigger delay in terms of a number of
(TDS 4XXA Option 5) lines
TRIGger:MAIn:VIDeo:NTSc Select color or mono NTSC
(TDS 5XXA, 6XXA, & 7XXA Option 05)
Header Description
TRIGger:MAIn:VIDeo:PAL Select color or mono PAL
(TDS 5XXA, 6XXA, & 7XXA Option 05)
TRIGger:MAIn:VIDeo:SCAN Set video trigger scan rate
(TDS 4XXA Option 5)
TRIGger:MAIn:VIDeo:SCANPeriod Set video trigger scan period
(TDS 4XXA Option 5)
TRIGger:MAIn:VIDeo:SOUrce Select video trigger source
Option 05
TRIGger:MAIn:VIDeo:STANdard Select video trigger standard
(TDS 5XXA, 6XXA, & 7XXA Option 05)
TRIGger:MAIn:VIDeo:SYNc Select video trigger sync polarity
(Option 05)
TRIGger:MAIn:VIDeo:SYStem Select video trigger class
(TDS 4XXA Option 5)
TRIGger:MAIn:VIDeo:TIMe Set video trigger delay time
(TDS 4XXA Option 5)
TRIGger:STATE? Return trigger system status
Vertical Commands
Vertical commands control the display of channels and of main and reference
waveforms. Table 2–20 lists these commands.
The SELect:<wfm> command also selects the waveform many commands in
other command groups use.
You may replace VOLts for SCAle in the vertical commands. This provides
program compatibility with earlier models of Tektronix digitizing oscilloscopes.
Header Description
CH<x>? Return vertical parameters
CH<x>:BANdwidth Channel bandwidth
CH<x>:COUPling Channel coupling
CH<x>:IMPedance Channel impedance
CH<x>:OFFSet Channel offset
CH<x>:POSition Channel position
CH<x>:PRObe? Return channel probe attenuation
CH<x>:SCAle Channel volts per div
CH<x>:VOLts Same as CH<x>:SCAle
MATH<x>? Return math waveform definition
MATH<x>:DEFine Define math waveform
MATH<x>:NUMAVg Acquisition number at which to begin
(TDS 5XXA, 6XXA, & 7XXA, exponential averaging
some models require Option 2F)
MATH<x>:PROCessing Math waveform averaging on or off
(TDS 5XXA, 6XXA, & 7XXA,
some models require Option 2F)
SELect? Return selected waveform
SELect:CONTROl Front-panel channel selector
SELect:<wfm> Set selected waveform
Waveform Commands
Waveform commands let you transfer waveform data points to and from the
digitizing oscilloscope. Waveform data points are a collection of values that
define a waveform. One data value usually represents one data point in the
waveform record. When working with enveloped waveforms, each data value is
either the min or max of a min/max pair. Before you transfer waveform data, you
must specify the data format, record length, and waveform locations.
Table 2–21 lists these commands.
Waveform Data Formats Acquired waveform data uses either one or two 8-bit data bytes to represent each
data point. The number of bytes used depends on the acquisition mode specified
when you acquired the data. Data acquired in SAMple, ENVelope, or PEAKde-
tect mode uses one 8-bit byte per waveform data point. Data acquired in HIRes
or AVErage mode uses two 8-bit bytes per point. For more information on the
acquisition modes see the ACQuire: MODe command on page 2–40.
The DATa:WIDth command lets you specify the number of bytes per data point
when transferring data to and from the digitizing oscilloscope. If you specify two
bytes for data that uses only one, the least significant byte will be filled with
zeros. If you specify one byte for data that uses two, the least significant byte
will be ignored.
The digitizing oscilloscope can transfer waveform data in either ASCII or binary
format. You specify the format with the DATa:ENCdg command.
ASCII data — is represented by signed integer values. The range of the values
depends on the byte width specified. One byte wide data ranges from –128 to
127. Two byte wide data ranges from –32768 to 32767.
Each data value requires two to seven characters. This includes one to five
characters to represent the value, another character, if the value is negative, to
represent a minus sign, and a comma to separate the data points.
An example ASCII waveform data string may look like this:
Use ASCII to obtain more human readable and easier to format output than
binary. However, it may require more bytes to send the same values with ASCII
than it does with binary. This may reduce transmission speeds.
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 are
transferred. The four binary formats are RIBinary, RPBinary, SRIbinary, and
SRPbinary.
RIBinary is signed integer where the most significant byte is transferred first,
and RPBinary is positive integer where the most significant byte is transferred
first. SRIbinary and SRPbinary correspond to RIBinary and RPBinary respec-
tively but use a swapped byte order where the least significant byte is transferred
first. The byte order is ignored when DATa:WIDth is set to 1.
Waveform Data/Record You can transfer multiple points for each waveform record. You can transfer a
Lengths portion of the waveform or you can transfer the entire record. The DATa:STARt
and DATa:STOP commands let you specify the first and last data points of the
waveform record.
When transferring data into the digitizing oscilloscope, you must specify the
location of the first data point within the waveform record. For example, when
you set DATa:STARt to 1, data points will be stored starting with the first point
in the record, and when you set DATa:STARt to 500, data will be stored starting
at the 500th point in the record. The digitizing oscilloscope will ignore
DATa:STOP when reading in data as it will stop reading data when it has no
more data to read or when it has reached the specified record length.
When transferring data from the digitizing oscilloscope, you must specify the
first and last data points in the waveform record. Setting DATa:STARt to 1 and
DATa:STOP to the record length will always return the entire waveform. You can
also use the vertical bar cursors to delimit the portion of the waveform that you
want to transfer. DATa:STARt and DATa:STOP can then be set to the current
cursor positions by sending the command DATa SNAp.
Waveform Data Locations The DATa:SOUrce command specifies the data location when transferring
and Memory Allocation waveforms from the digitizing oscilloscope. You can transfer out multiple
waveforms at one time by specifying more than one source.
You can transfer in to the digitizing oscilloscope only one waveform at a time.
Waveforms sent to the oscilloscope are always stored in one of the four reference
memory locations. You can specify the reference memory location with the
DATa:DESTination command. You must define the memory size for the
specified location before you store the data. The ALLOcate:
WAVEFORM:REF<x> command lets you specify the memory size for each
reference location.
Waveform Preamble Each waveform that you transfer has an associated waveform preamble that
contains information such as the horizontal scale, the vertical scale, and other
settings in place when the waveform was created. Refer to the WFMPre
commands starting on page 2–288 for more information about the waveform
preamble.
Scaling Waveform Data Once you transfer the waveform data to the controller, you can convert the data
points into voltage values for analysis using information from the waveform
preamble. The program on the diskettes that come with this manual
shows how you can scale data.
Transferring Waveform You can transfer waveforms from the digitizing oscilloscope to an external
Data from the TDS Family controller using the following sequence:
Oscilloscope
1. Select the waveform source(s) using the DATa:SOUrce command. If you
want to transfer multiple waveforms, select more than one source.
2. Specify the waveform data format using DATa:ENCdg.
3. Specify the number of bytes per data point using DATa:WIDth.
4. Specify the portion of the waveform that you want to transfer using
DATa:STARt and DATa:STOP.
5. Transfer waveform preamble information using WFMPRe? query.
6. Transfer waveform data from the digitizing oscilloscope using the CURVe?
query.
Transferring Waveform You can transfer waveform data to one of the four reference memory locations in
Data to the TDS Family the digitizing oscilloscope using the following sequence:
Oscilloscope
1. Specify waveform reference memory using DATa:DESTination.
2. Specify the memory size for the reference location specified in Step 1 using
the ALLOcate:WAVEFORM:REF<x> command.
3. Specify the waveform data format using DATa:ENCdg.
4. Specify the number of bytes per data point using DATa:WIDth.
5. Specify first data point in the waveform record using DATa:STARt.
6. Transfer waveform preamble information using WFMPRe:<wfm>.
7. Transfer waveform data to the digitizing oscilloscope using CURVe.
Header Description
CURVe Transfer waveform data
DATa Waveform data format and location
DATa:DESTination Destination for waveforms sent to digitizing
oscilloscope
DATa:ENCdg Waveform data encoding method
DATa:SOUrce Source of CURVe? data
DATa:STARt Starting point in waveform transfer
DATa:STOP Ending point in waveform transfer
DATa:TARget Same as DATa:DESTination
DATa:WIDth Byte width of waveform points
WAVFrm? Return waveform preamble and data
WAVPre? Return waveform format data
WFMPre:BIT_Nr Preamble bit width of waveform points.
WFMPre:BN_Fmt Preamble binary encoding type
WFMPre:BYT_Nr Preamble byte width of waveform points
WFMPre:BYT_Or Preamble byte order of waveform points
WFMPre:CRVchk Preamble checksum of waveform points
WFMPre:ENCdg Preamble encoding method
WFMPre:NR_Pt Number of points in the curve
WFMPre:PT_Fmt Format of curve points
WFMPre:PT_Off Trigger position
WFMPre:WFId Curve identifier
WFMPre:XINcr Horizontal sampling interval
WFMPre:XMUlt Horizontal scale factor
WFMPre:XOFf Horizontal offset
WFMPre:XUNit Horizontal units
WFMPre:XZEro Horizontal origin offset
WFMPre:YMUlt Vertical scale factor
WFMPre:YOFf Vertical offset
WFMPre:YUNit Vertical units
WFMPre:YZEro Offset voltage
WFMPre:ZMUlt Z-axis scale factor
WFMPre:ZOFf Z-axis offset
Header Description
WFMPre:ZUNit Z-axis units
WFMPre:ZZEro Z-axis origin offset
WFMPre:<wfm>:NR_Pt Number of points in the curve
WFMPre:<wfm>:PT_Fmt Format of curve points
WFMPre:<wfm>:PT_Off Trigger position
WFMPre:<wfm>:WFId Curve identifier
WFMPre:<wfm>:XINcr Horizontal sampling interval
WFMPre:<wfm>:XUNit Horizontal units
WFMPre:<wfm>:YMUlt Vertical scale factor
WFMPre:<wfm>:YOFf Vertical offset
WFMPre:<wfm>:YUNit Vertical units
WFMPre:<wfm>:YZEro Offset voltage
Zoom Commands
Zoom commands let you expand and position the waveform display horizontally
and vertically without changing the time base or vertical settings. Table 2–22
lists these commands.
Header Description
ZOOm Reset zoom parameters to defaults
ZOOm:DUAl (TDS 4XXA & 7XXA) Turn dual zoom mode on and off
ZOOm:DUAl:OFFSet (TDS 4XXA & 7XXA) Adjust the requested horizontal offset between
the centers of the main and second zoom
boxes.
ZOOm:GRAticle (TDS 4XXA & 7XXA) Select between the upper and lower graticule
for use by the zoom preview state.
ZOOm:HORizontal:LOCk Horizontal zoom lock
ZOOm:HORizontal:POSition Horizontal zoom position
ZOOm:HORizontal:SCAle Horizontal zoom scale
ZOOm:STATE Turn zoom mode on or off
ZOOm:VERTical:POSition Vertical zoom position
ZOOm:VERTical:SCAle Vertical zoom scale
You can use commands to either set instrument features or query instrument
values. You can use some commands to do both, some to only set, and some to
only query. This manual marks set only commands with the words “No Query
Form” included with the command name. It marks query only commands with a
question mark appended to the header, and includes the words “Query Only” in
the command name.
This manual spells out headers, mnemonics, and arguments with the minimal
spelling shown in upper case. For example, to use the abbreviated form of the
ACQuire:MODe command just type ACQ:MOD.
Group Acquisition
Syntax
Examples
might return the string
for the current acquisition parameters.
ACQuire:AUTOSAve
TDS 7XXA & Some 6XXA Only
Saves waveforms in reference memory when acquisition completes. This is
equivalent to setting Autosave Single Seq in the Acquire menu and the
corresponding side menu Off or On items.
When you start a Single Sequence with Autosave set to ON, the oscilloscope
nulls out all existing reference waveforms. At the end of Single Sequence, the
oscilloscope saves all displayed live channels to reference waveform memory. It
saves references in the order Ch1 –> Ref1, Ch2 –> Ref2, Ch3 –> Ref3, Ch4 –>
Ref4. The exact number of references saved may depend on the record length
used.
Group Acquisition
OFF
<Space> ON
<NR1>
ACQuire : AUTOSAve
?
Examples ACQUIRE:AUTOSAVE 1
turns autosave mode on.
ACQUIRE:AUTOSAVE OFF
turns autosave mode off.
ACQUIRE:AUTOSAVE?
might return 1, indicating that autosave mode is on.
ACQuire:MODe
Sets or queries the acquisition mode of the digitizing oscilloscope. This affects
all live waveforms. This command is equivalent to setting Mode in the Acquire
menu.
Waveforms are the displayed data point values taken from acquisition intervals.
Each acquisition interval represents a time duration set by the horizontal scale
(time per division). The digitizing oscilloscope sampling system always samples
at the maximum rate, and so an acquisition interval may include more than one
sample.
The acquisition mode, which you set using this ACQuire:MODe command,
determines how the final value of the acquisition interval is generated from the
many data samples.
Group Acquisition
SAMple
PEAKdetect
<Space> HIRes
AVErage
ENVelope
ACQuire : MODe
?
SAMple
<Space> AVErage
ENVelope
ACQuire : MODe
?
Arguments SAMple specifies that the displayed data point value is simply the first sampled
value that was taken during the acquisition interval. In sample mode, all
waveform data has 8 bits of precision. You can request 16 bit data with a
CURVe? query, but the lower-order 8 bits of data will be zero. SAMple is the
default mode.
PEAKdetect (for the TDS 4XXA, 5XXA, & 7XXA) specifies the display of the
high-low range of the samples taken from a single waveform acquisition. The
high-low range is displayed as a vertical column that extends from the highest to
the lowest value sampled during the acquisition interval. PEAKdetect mode can
reveal the presence of aliasing or narrow spikes.
HIRes (for the TDS 4XXA, 5XXA, & 7XXA) specifies Hi Res mode, where the
displayed data point value is the average of all the samples taken during the
acquisition interval. This is a form of averaging, where the average comes from a
single waveform acquisition. The number of samples taken during the acquisi-
tion interval determines the number of data values that compose the average.
AVErage specifies averaging mode, where the resulting waveform shows an
average of SAMple data points from several separate waveform acquisitions. The
number of waveform acquisitions that go into making up the average waveform
is set or queried using the ACQuire:NUMAVg command.
ENVelope specifies envelope mode, where the resulting waveform shows the
PEAKdetect range of data points from several separate waveform acquisitions.
The number of waveform acquisitions that go into making up the envelope
waveform is set or queried using the ACQuire:NUMENv command.
Group Acquisition
Syntax ACQuire:NUMACq?
ACQuire : NUMACq ?
Examples ACQUIRE:NUMACQ?
might return 350, indicating that 350 acquisitions took place since an AC-
QUIRE:STATE RUN command was executed.
ACQuire:NUMAVg
Sets the number of waveform acquisitions that make up an averaged waveform.
This is equivalent to setting the Average count in the Acquisition Mode side
menu.
Group Acquisition
<Space> <NR1>
ACQuire : NUMAVg
?
Examples ACQUIRE:NUMAVG 10
specifies that an averaged waveform will show the result of combining 10
separately acquired waveforms.
ACQUIRE:NUMAVG?
might return 75, indicating that there are 75 acquisitions specified for averaging.
ACQuire:NUMEnv
Sets the number of waveform acquisitions that make up an envelope waveform.
This is equivalent to setting the Envelope count in the Acquisition Mode side
menu.
Group Acquisition
Syntax
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 a
maximum of 2001 acquisitions.
Examples
specifies that an enveloped waveform will show the result of combining 10
separately acquired waveforms.
might return , indicating that acquisitions are acquired infinitely for enveloped
waveforms.
ACQuire:REPEt
TDS 4XXA, 5XXA, & 7XXA Only
Controls repetitive signal acquisition. This is equivalent to setting Repetitive
Signal in the Acquire menu. When the digitizing oscilloscope is in real-time
operation, this setting has no effect.
The ACQuire:REPEt command specifies the behavior of the acquisition system
during equivalent-time (ET) operation. When repetitive mode is on, the
acquisition system will continue to acquire waveform data until the waveform
record is filled with acquired data. When repetitive mode is off and you specify
single acquisition operation, only some of the waveform data points will be set
with acquired data, and the displayed waveform shows interpolated values for
the unsampled data points.
Group Acquisition
OFF
<Space> ON
<NR1>
ACQuire : REPEt
?
Examples ACQUIRE:REPET 1
turns repetitive mode on.
ACQUIRE:REPET OFF
turns repetitive mode off.
ACQUIRE:REPET?
might return 1, indicating that repetitive signal acquisition mode is on.
ACQuire:STATE
Starts or stops acquisitions. This is the equivalent of pressing the front-panel
RUN/STOP button. If ACQuire:STOPAfter is set to SEQuence, other signal
events may also stop acquisition.
Group Acquisition
!
Examples
starts acquisition of waveform data and resets the number of acquisitions count
(NUMACQ) to zero.
returns either or , depending on whether the acquisition system is running.
ACQuire:STOPAfter
Tells the digitizing oscilloscope when to stop taking acquisitions. This is
equivalent to setting Stop After in the Acquire menu.
Group Acquisition
!
!
Arguments RUNSTop specifies that the run and stop state should be determined by the user
pressing the front-panel RUN/STOP button.
SEQuence specifies “single sequence” operation, where the digitizing oscillo-
scope stops after it has acquired enough waveforms to satisfy the conditions of
the acquisition mode. For example, if the acquisition mode is set to sample, and
the horizontal scale is set to a speed that allows real-time operation, then the
digitizing oscilloscope will stop after digitizing a waveform from a single trigger
event. However, if the acquisition mode is set to average 100 waveforms, then
the digitizing oscilloscope will stop only after all 100 waveforms have been
acquired. The ACQuire: STATE command and the front-panel RUN/STOP
button will also stop acquisition when the digitizing oscilloscope is in single
sequence mode.
LIMit specifies the digitizing oscilloscope stops after the limit test condition is
met.
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 a
maximum of 2001 acquisitions.
ALIas
Turns command aliases on or off. This command is identical to the
ALIas:STATE command.
Group Alias
OFF
<Space> ON
<NR1>
ALIas
?
Arguments OFF or <NR1> = 0 turns alias expansion off. If a defined alias label is sent when
ALIas is OFF, an execution error (110, “Command header error”) will be
generated.
ON or <NR1> 0 turns alias expansion on. When a defined alias is received, the
specified command sequence is substituted for the alias and executed.
Examples ALIAS ON
turns the alias feature on.
ALIAS?
returns 1 when aliases are on.
Group Alias
Syntax ALIas:CATalog?
ALIas : CATalog ?
Returns <QString>[,<QString>...]
Examples ALIAS:CATALOG?
might return the string "SETUP1","TESTMENU1","DEFAULT", showing there are
3 aliases named SETUP1, TESTMENU1, and DEFAULT.
ALIas:DEFIne
Assigns a sequence of program messages to an alias label. These messages are
then substituted for the alias whenever it is received as a command or query
provided ALIas:STATE has been turned ON. The ALIas:DEFIne? query returns
the definition of a selected alias.
Up to 10 aliases can be defined at one time. Aliases can be recursive. That is,
aliases can include other aliases with up to 10 levels of recursion.
Group Alias
<QString>
<Space> <QString> <Comma>
<Block>
ALIas : DEFIne
? <Space> <QString>
Arguments The first <QString> is the alias label. This label cannot be a command name.
Labels must start with a letter, and can contain only letters, numbers, and
underscores; other characters are not allowed. The label must be ≤12 characters.
The second <QString> or <Block> is a complete sequence of program messages.
The messages can contain only valid commands that must be separated by
semicolons and must follow all rules for concatenating commands (see page
2–4). The sequence must be ≤80 characters.
NOTE. Attempting to give two aliases the same name causes an execution error.
To give a new alias the name of an existing alias, you must first delete the
existing alias.
Group Alias
Arguments <QString> is the name of the alias you want to remove. Using ALIas:DELEte
without specifying an alias causes an execution error. <QString> must be a
previously defined alias.
Group Alias
Syntax ALIas:DELEte:ALL
Examples ALIAS:DELETE:ALL
deletes all aliases.
Group Alias
! !
Examples
deletes the alias named STARTUP.
ALIas:STATE
Turns aliases on or off. This command is identical to the ALIas command.
Group Alias
Arguments or = 0 turns alias expansion off. If a defined alias is sent when
ALIas:STATE is OFF, a command error (102) will be generated.
or 0 turns alias expansion on. When a defined alias is received, the
specified command sequence is substituted for the alias and executed.
Examples
turns the command alias feature off.
returns when alias mode is off.
by commas. Use the *ESR? query to enable the events to be returned. For a
complete discussion of the use of these registers, see page 3–1. This command is
similar to repeatedly sending *EVMsg? queries to the instrument.
Related Commands *CLS, DESE, *ESE, *ESR?, EVENT?, EVMsg?, EVQTY, *SRE, *STB?
Syntax ALLEv?
ALLEv ?
Examples ALLEV?
might return the string :ALLEV 2225,"Measurement error, No waveform to
measure; ",420,"Query UNTERMINATED; ".
Syntax ALLOcate?
ALLOcate ?
Examples ALLOCATE?
might return :ALLOCATE:WAVEFORM:REF1 50000;REF2 0;REF3 0; REF4 0;,
indicating that all 50000 data points are allocated to reference memory loca-
tion 1.
Syntax ALLOcate:WAVEform?
ALLOcate : WAVEform ?
Examples ALLOCATE?
might return :ALLOCATE:WAVEFORM:REF1 500;REF2 500;REF3 500; REF4 0;,
indicating that 500 data points are allocated to each of the first three reference
memory locations.
Syntax ALLOcate:WAVEform:FREE?
Examples ALLOCATE:WAVEFORM:FREE?
might return 520 indicating that there are approximately 500 data points
available for allocation. The extra 20 are used for administration purposes.
ALLOcate:WAVEform:REF<x>
Sets or queries the number of waveform data points for the specified reference
location. If an attempt is made to allocate memory when it is not available, an
execution error is generated and the memory is not allocated.
Syntax
TDS 520A,
TDS 410A, TDS 524A, TDS 620A,
TDS 420A, TDS 540A, TDS 640A, TDS 744A,
Configuration TDS 460A TDS 544A TDS 644A TDS 684A TDS 784A
Standard 500, 500, 500, 500, 500,
1000, 1000, 1000, 1000, 1000,
2500, 2500, 2000 2500, 2500,
5000, 5000, 5000, 5000,
15000, 15000 15000 15000,
30000 (4 refs) 50000 (4 refs)
Option 1M 60000 (2 refs), 50000 75000 (3 refs),
120000 (1 ref) 100000 (2 refs),
130000 (2 refs),
250000 (1 ref)
500000 (no
complete refs)
APPMenu
Displays the user-definable Application menu, and the query returns the current
Application menu labels and title. This is equivalent to pressing the front-panel
APPLICATION button.
<Space> ACTivate
APPMenu
?
Arguments 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 is
pressed an event is generated that tells which button was pressed. See page 3–17
for event codes.
Menu button presses will also generate Service Requests when the URQ bit is
enabled in DESER and ESER and the ESB bit is enabled in SRER. See page 3–1
for a complete discussion of the use of these registers.
APPMenu:LABel
Removes all user-defined Application menu button labels from the display. The
APPMenu:LABel? query returns all the current label settings.
<Space> CLEar
APPMenu : LABel
?
Arguments CLEar removes the main and side menu button labels from the display. Front-pa-
nel bezel button presses will continue to generate events.
APPMenu:LABel:BOTTOM<x>
Defines a label for the main menu button that is specified by <x>. Main menu
buttons are located along the bottom of the display, and are numbered from 1 to
7 starting with the left-most button.
<Space> <QString>
Arguments <QString> is the menu button label and can include any of the characters shown
in the TDS Character Chart in Appendix A. The maximum length of the label is
1000 characters. The TDS displays the label in the area above the specified main
menu button.
The TDS displays the label on a single line and centers it, both vertically and
horizontally, within the label area. You can embed a line feed character in the
string to position the label on multiple lines. You can also use white space tab
characters to position the label within a line.
You can send a tab by transmitting a tab character (decimal 9) followed by two
characters representing the most significant eight bits followed by the least
significant eight bits of a 16-bit number. The number specifies the pixel column
relative to the left margin of the label area. For example, to tab to pixel 13, send
TAB (decimal 9), NUL (decimal 0), and CR (decimal 13).
The ESC @ character turns reverse video on and off, and can be embedded in the
label string. The first ESC @ character displays all text following the ESC @ in
reverse video until another ESC @ character is found in the string.
NOTE. The use of any undocumented codes may produce unpredictable results.
The label area is 45 pixels high and 90 pixels wide. The length of the label that
fits in the label area depends on the contents of the label, because the width of
characters varies. The label area is about 10 characters wide and 3 lines high. For
a complete list of character widths in pixels, see Table A–1 on page A–1.
If the label exceeds the limits of the label area, either horizontally or vertically,
the portion of the label that exceeds the limits will not be displayed. Note: the
label itself is not altered. The entire label can be returned as a query response
regardless of what is displayed.
APPMenu:LABel:RIGHT<x>
Defines a label for the side menu button that is specified by <x>. Side menu
buttons are located on the right side of the display, and are numbered from 1 to 5
starting with the top-most button.
Syntax
!
!
"
#
Arguments ! is the menu button label and can include any of the characters shown
in the TDS Character Chart in Appendix A. The maximum length of the label is
1000 characters. The label is displayed in the area to the left of the specified side
menu button. Refer to the APPMenu:LABel:BOTTOM<x> command on page
2–57 for more information on defining menu labels.
The label area is 72 pixels high and 112 pixels wide. The length of the label that
fits in the label area depends on the contents of the label, because the width of
characters varies. The label area is about 12 characters wide and 4 lines high. For
a complete list of character widths in pixels, see Table A–1 on page A–1.
Examples
$
displays the label “TEST ON” next to the top side menu button.
APPMenu:TITLe
Sets or queries the user-defined application menu title. The title is displayed
above the side menu.
"
Arguments ! is the side menu title and can include any of the characters shown in
the TDS Character Chart in Appendix A. The maximum length of the title is
1000 characters. The APPMenu:LABel:BOTTOM<x> command on page 2–57
provides information on defining menu labels.
The label area is 40 pixels high and 112 pixels wide. The length of the label that
fits in the label area depends on the contents of the label, because the width of
characters varies. The label area is about 12 characters wide and 4 lines high. For
a complete list of character widths in pixels, see Table A–1 on page A–1.
Group Miscellaneous
Group Miscellaneous
Syntax BELl
BELl
Examples BELL
rings the bell.
Syntax
Returns = 0 means that the digitizing oscilloscope is not busy processing a
command whose execution time is extensive. These commands are listed in
Table 2–24.
= 1 means that the digitizing oscilloscope is busy processing one of the
commands listed in Table 2–24.
Operation Command
Single sequence acquisition ACQuire:STATE ON or
ACQuire:STATE RUN
(when ACQuire:STOPAfter is set to SEQuence)
Hardcopy output HARDCopy STARt
Examples
might return , indicating that the instrument is busy.
Syntax *CAL?
*CAL ?
Returns <NR1> = 0 indicates that the calibration completed without any errors detected.
<NR1> 0 indicates that the calibration did not complete successfully.
Examples *CAL?
performs an internal self-calibration and might return 0 to indicate that the
calibration was successful.
Group Vertical
Syntax CH<x>?
CH <x> ?
Examples CH1?
might return the string :CH1:SCALE 10.0E-3;POSITION 0.0E+0;
OFFSET 0.0E+0;COUPLING DC;IMPEDANCE MEG;BANDWIDTH FULL for chan-
nel 1.
CH<x>:BANdwidth
Sets or queries the bandwidth setting of the specified channel. This is equivalent
to setting Bandwidth in the Vertical menu.
Group Vertical
Syntax CH<x>:BANdwidth { TWEnty | HUNdred (All TDS except 684A & 7XXA) |
TWOfifty (TDS 684A & 7XXA) | FULl }
) ("'!
$'*
&
% "'*
#
("'!
Examples
sets the bandwidth of channel 2 to 20 MHz.
might return
, which indicates that there is no bandwidth limiting on
channel 1.
CH<x>:COUPling
Sets or queries the input attenuator coupling setting of the specified channel.
This is equivalent to setting Coupling in the Vertical menu.
Group Vertical
Syntax
)
#"$ +
,
, -
)
#"$
!
CH<x>:IMPedance
Sets or queries the impedance setting at the specified input channel. This is
equivalent to setting the Impedance in the Ch<x> Coupling Impedance side
menu.
TDS 684A and 7XXA only: When you attach an active 50 W probe to an input
channel of the TDS 684A or 7XXA, the oscilloscope reduces the maximum
vertical scale from 10 V to 1 V per division. For example, an active 10X probe
would provide 10 V per division and a passive 10X probe would provide 100 V
per division.
Group Vertical
Examples
establishes 50 W impedance on channel 1.
might return
, indicating that channel 3 is set to 1 MW impedance.
CH<x>:OFFSet
Sets or queries the offset, in volts, that is subtracted from the specified input
channel before it is acquired. The greater the offset, the lower on the display the
waveform appears. This is equivalent to setting Offset in the Vertical menu.
Group Vertical
Arguments is the desired offset in volts. The range is dependent on the scale and the
probe attenuation factor. The offset ranges are shown below.
Table 2–25: Offset Ranges for the TDS 4XXA, 54XA, 6XXA, & 7XXA (All Channels)
and the TDS 520A & 524A (Channel 1 & Channel 2) using a 1x Probe
Table 2–26: Offset Ranges for the TDS 520A & 524A (Aux 1 & Aux 2) using a 1x
Probe
CH<x>:POSition
Sets or queries the vertical position of the specified channel. The position value
is applied to the signal before digitization. This is equivalent to setting Position
in the Vertical menu or adjusting the front-panel Vertical Position knob.
Group Vertical
<Space> <NR3>
CH <x> : POSition
?
Arguments <NR3> is the desired position, in divisions from the center graticule. The range is
±5 divisions.
Group Vertical
Syntax CH<x>:PRObe?
CH <x> : PRObe ?
Returns <NR3>
Examples CH4:PROBE?
might return 100.0E-3 for a 10x probe.
CH<x>:SCAle
Sets or queries the vertical gain of the specified channel. This is equivalent to
setting Fine Scale in the Vertical menu or adjusting the front-panel Vertical
SCALE knob.
Group Vertical
<Space> <NR3>
CH <x> : SCAle
?
Arguments <NR3> is the gain, in volts per division. The range is 100 mV per division to
1 mV per division when using a 1x probe.
CH<x>:VOLts
Sets or queries the vertical gain of the specified channel. This command is
identical to the CH<x>:SCAle command and is included for compatibility
purposes. Only CH<x>:SCAle is returned in response to a CH<x>? query.
Group Vertical
<Space> <NR3>
CH <x> : VOLts
?
Group Display
Examples
clears the menu from the display.
Syntax
Group Cursor
Syntax CURSor?
CURSor ?
Examples CURSOR?
might return :CURSOR:FUNCTION OFF;VBARS:UNITS SECONDS;
POSITION1 500.0E-6;POSITION2 4.50E-3;SELECT CURSOR1;
:CURSOR:HBARS:POSITION1 3.20E+0;POSITION2 -3.20E+0;
SELECT CURSOR1 as the current cursor settings.
CURSor:FUNCtion
Selects and displays the cursor type. Cursors are attached to the selected
waveform. This command is equivalent to setting Function in the Cursor menu.
Group Cursor
#$
"
#$
#
!# %!
Arguments
#$ specifies horizontal bar cursors that measure volts.
removes the cursors from the display.
#$ specifies vertical bar cursors that measure time.
# specifies paired cursors that measure both time and volts.
Group Cursor
Syntax !#
#$
!#
#$
Examples
might return
.
Group Cursor
Syntax !#
#$
Returns <NR3>
Examples CURSOR:HBARS:DELTA?
might return 5.08E+0 for the voltage difference between the two cursors.
CURSor:HBArs:POSITION<x>
Positions a horizontal bar cursor.
Group Cursor
<Space> <NR3>
CURSor : HBArs : POSITION <x>
?
CURSor:HBArs:POSITION<x>Pcnt
TDS 4XXA Only
Sets or queries the position of the horizontal bar cursors (x is either 1 or 2) in
units of % of vertical range.
Group Cursor
CURSor:HBArs:POSITION<x>Pcnt?
<Space> <NR3>
Pcnt
?
Arguments <NR3> has a range of 0 to 100 (%). It specifies the cursor position relative to the
vertical range of the selected waveform.
Examples CURSOR:HBARS:POSITION1PCNT?
might return 4.50 E+1, indicating cursor 1 is positioned at 45% of the vertical
range of the selected waveform.
CURSor:HBArs:SELect
Selects which horizontal bar cursor is active for front-panel control. The active
cursor will be displayed as a solid horizontal line and can be moved using the
front-panel general purpose knob when the cursor menu is active. The unselected
cursor will be displayed as a dashed horizontal line. This command is equivalent
to pressing the SELECT button on the front panel when the Cursor menu is
displayed.
Group Cursor
CURSOR1
<Space>
CURSOR2
CURSor:HBArs:UNIts
TDS 4XXA, 5XXA, 6XXA, & 7XXA Only
Sets or queries the units for the horizontal bar cursors. This command is
equivalent to setting Amplitude in the Cursor menu.
Group Cursor
BASe
<Space>
IRE
CURSor:MODe
Selects whether the two cursors move together in unison or separately.
Group Cursor
TRACk
<Space>
INDependent
CURSor : MODe
?
Arguments TRACk ties the two cursors together as you move the general purpose knob.
INDependent frees the two cursors to move separately.
CURSor:PAIred
Positions the paired cursors. Also, returns the current paired cursor settings.
Group Cursor
<Space> SNAp
CURSor : PAIred
?
Group Cursor
Syntax CURSor:PAIred:HDELTA?
Examples CURSOR:PAIRED:HDELTA?
might return 5.08E+0 for the voltage difference between the two cursors.
Group Cursor
Syntax CURSor:PAIred:HPOS1?
Examples CURSOR:PAIRED:HPOS1?
might return -64.0E-3, indicating that the first cursor is at –64.0 mV.
Group Cursor
Syntax CURSor:PAIred:HPOS2?
Examples CURSOR:PAIRED:HPOS2?
might return -64.0E-3, indicating the second cursor is at –64.0 mV.
CURSor:PAIred:POSITION<x>
Sets or queries the vertical bar (time) position of the first or second paired cursor.
x is either 1 or 2 and refers to the first or second cursor.
The CURSor:VBArs:UNits command specifies the units for these cursors.
Group Cursor
<Space> <NR3>
CURSor : PAIred : POSITION <x>
?
Arguments <NR3> specifies the cursor position in the units specified by the
CURSor:VBArs:UNits command.
The position can appear in units of seconds, 1/seconds (hertz), or video line
numbers (with option 05). On the TDS 4XXA, position can also appear in units
of clocks or 1/clocks.
CURSor:PAIred:POSITION<x>Pcnt
TDS 4XXA Only
Sets or queries the horizontal position of the paired cursors (x is either 1 or 2) in
units of % of record length.
Group Cursor
<Space> <NR3>
Pcnt
?
Arguments <NR3> has a range of 0 to 100 (%). It specifies the cursor position relative to the
record length of the selected waveform.
Examples CURSOR:PAIRED:POSITION1PCNT?
might return 4.50 E+1, indicating cursor 1 is positioned at 45% of the record
length of the selected waveform.
CURSor:PAIred:SELect
Selects the active paired cursor. The active cursor appears as a solid vertical line.
The unselected cursor appears as a dashed vertical line. This command is
equivalent to pressing the SELECT button on the front panel when the Cursor
menu is displayed.
Group Cursor
Syntax
!
Arguments
specifies the first paired cursor.
specifies the second paired cursor.
Examples
selects the second paired cursor as the active cursor.
returns
when the first paired cursor is the active cursor.
CURSor:PAIred:UNIts
Sets or queries the units for the paired cursors. This is equivalent to setting
Amplitude in the Cursor menu.
Group Cursor
Syntax
!
The position can appear in units of seconds, 1/seconds (hertz), or video line
numbers (with option 05). On the TDS 4XXA, position can also appear in units
of clocks or 1/clocks.
Group Cursor
Syntax CURSor:PAIred:VDELTA?
Examples CURSOR:PAIRED:VDELTA?
might return 1.064E+00, indicating that the time between the paired cursors is
1.064 seconds.
CURSor:VBArs
Positions the vertical bar cursors and the CURSor:VBArs? query returns the
current vertical bar cursor settings for horizontal position, delta, cursor selection,
and units.
The position can appear in units of seconds, 1/seconds (hertz), or video line
numbers (with option 05). On the TDS 4XXA, position can also appear in units
of clocks or 1/clocks.
Group Cursor
<Space> SNAp
CURSor : VBArs
?
Arguments SNAp positions the vertical bar cursors at DATa:STARt and DATa:STOP.
The position can appear in units of seconds, 1/seconds (hertz), or video line
numbers (with option 05). On the TDS 4XXA, position can also appear in units
of clocks or 1/clocks.
Group Cursor
Syntax CURSor:VBArs:DELTa?
Returns <NR3>
Examples CURSOR:VBARS:DELTa?
might return 1.064E+00, indicating that the time between the vertical bar cursors
is 1.064 seconds.
CURSor:VBArs:POSITION<x>
Positions a vertical bar cursor for both vertical bar and paired cursors. The
CURSor:VBArs:UNIts command specifies units.
The position can appear in units of seconds, 1/seconds (hertz), or video line
numbers (with option 05). On the TDS 4XXA, position can also appear in units
of clocks or 1/clocks.
Group Cursor
<Space> <NR3>
CURSor : VBArs : POSITION <x>
?
Arguments <NR3> specifies the cursor position in the units specified by the CUR-
Sor:VBArs:UNIts command. The position is relative to the trigger position.
CURSor:VBArs:POSITION<x>Pcnt
TDS 4XXA Only
Sets or queries the position of the vertical bar cursors (x is either 1 or 2) in units
of % of record length.
Group Cursor
<Space> <NR3>
Pcnt
?
Arguments <NR3> has a range of 0 to 100 (%). It specifies the cursor position relative to the
record length of the selected waveform.
Examples CURSOR:VBARS:POSITION1PCNT?
might return 4.50 E+1, indicating cursor 1 is positioned at 45% of the record
length of the selected waveform.
CURSor:VBArs:SELect
Selects which vertical bar cursor is active. The active cursor will be displayed as
a solid vertical line and can be moved using the front-panel general purpose knob
when the cursor menu is active. The unselected cursor will be displayed as a
dashed vertical line. This command is equivalent to pressing the SELECT
button on the front panel when the Cursor menu is displayed.
Group Cursor
CURSOR1
<Space>
CURSOR2
CURSor:VBArs:UNIts
Sets or queries the units for the vertical bar cursors. This command is equivalent
to setting Time Units (Horiz Units in the TDS 4XXA) in the Cursor menu.
Group Cursor
SECOnds
HERtz
<Space>
LINE
BASe
INVert
SECOnds
HERtz
<Space>
LINE
Arguments SEConds specifies seconds as the unit of measure. For the TDS 4XXA, this
argument is available only for backward compatibility. If a TDS 4XXA receives
this argument, it will convert it to BASE or INVERT depending on the selected
waveform. The TDS 4XXA will not output this argument in response to a query.
HERtz specifies hertz as the unit of measure. For the TDS 4XXA, this argument
is available only for backward compatibility. If a TDS 4XXA receives this
argument, it will convert it to BASE or INVERT depending on the selected
waveform. The TDS 4XXA will not output this argument in response to a query.
LINE specifies a video line as the unit of measure. This is most useful if you
have option 05 video trigger installed. On some models, if you do not have
option 05, use of this argument will generate an error message. On the TDS
4XXA, if you do not have option 05, the TDS 4XXA will use the NTSC
standard for converting from time to lines. In order for the measurement to be
accurate in the TDS 4XXA when TRIGGER:MAIN:VIDEO:SYSTEM is set to
custom, you must set TRIGGER:MAIN:VIDEO:SCANPERIOD.
BASe (TDS 4XXA only) specifies the base (or natural) units of the waveform as
the unit of measurement. If internal clock is enabled, the base units are seconds.
If external clock is enabled, the base units are clocks.
INVert (TDS 4XXA only) specifies 1/ base (or natural) units of the waveform as
the unit of measurement. If internal clock is enabled, the base units are 1/seconds
(hertz). If external clock is enabled, the base units are 1/clocks.
Group Cursor
Syntax CURSor:VBArs:UNITSTring?
Examples CURSOR:VBARS:UNITSTRING?
might return "ms", indicating the units are milliseconds.
CURVe
Transfers waveform data to and from the digitizing oscilloscope in binary or
ASCII format. Each waveform that is transferred has an associated waveform
preamble which contains information such as data format and scale. Refer to the
WFMPre command starting on page 2–288 for information about the waveform
preamble. The data format is specified by the DATa:ENCdg and DATa:WIDTH
commands.
The CURVe? query transfers data from the instrument. The data source is
specified by the DATa:SOUrce command. If more than one source is specified, a
comma separated list of data blocks is returned. The first and last data points that
are transferred are specified by the DATa:STARt and DATa:STOP commands.
The CURVe command transfers waveform data to the instrument. The data is
stored in the reference memory location specified by DATa:DESTination starting
with the data point specified by DATa:STARt. Only one waveform can be
transferred at a time. The waveform will only be displayed if the reference is
displayed.
A description of the waveform transfer process starts on page 2–32.
Group Waveform
CURVe?
<Block>
<Space>
<asc curve>
CURVe
Arguments <Block> is the waveform data in binary format. The waveform is formatted as:
#<x><yyy><data><newline> where <x> is the number of y bytes. For example,
if <yyy> = 500, then <x> = 3. <yyy> is the number of bytes to transfer. If width
is 1 then all bytes on the bus are single data points. If width is 2 then all bytes on
the bus are 2-byte pairs. Use the DATa:WIDth command to set the width. <data>
is the curve data. <newline> is a single byte newline character at the end of the
data. See the GETWFM.C or GETWFM.BAS examples in the accompanying disk for
more specifics.
<asc curve> is the waveform data in ASCII format. The format for ASCII data
is <NR1>[,<NR1>...] where each <NR1> represents a data point.
Examples CURVE?
might return, for ASCII data: CURVE
0,0,0,0,-1,1,0,-1,0,0,-1,0,0,-1,0,-1,
-1,1,0,0,0,-1,0,0,-1,0,1,1,0,-1,0,0,-1,0,0,-1,0,0
DATa
Sets or queries the format and location of the waveform data that is transferred
with the CURVe command. Since DATa:DESTination and DATa:TARget are
equivalent, only DATa:DESTination is returned by the DATa? query.
Group Waveform
INIT
<Space>
SNAp
DATa
?
Arguments INIT initializes the waveform data parameters to their factory defaults.
SNAp sets DATa:STARt and DATa:STOP to match the current vertical bar cursor
positions.
DATa:DESTination
Sets or queries the reference memory location for storing waveform data that is
transferred into the digitizing oscilloscope by the CURVe command. This
command is identical to the DATa:TARget command.
Group Waveform
Arguments REF<x> (REF1, REF2, REF3 or REF4) is the reference memory location where the
waveform will be stored.
DATa:ENCdg
Sets or queries the format of the waveform data. This command is equivalent to
setting WFMPre:ENCdg, WFMPre:BN_Fmt, and WFMPre:BYT_Or as shown
in Table 2–27. Setting the DATa:ENCdg value causes the corresponding
WFMPre values to be updated and vice versa.
Group Waveform
Arguments
specifies the ASCII representation of signed integer (
) data. If
this is the value at power-on, the WFMPre values for BN_Fmt, BYT_Or, and
ENCdg are set as RP, MSB, and ASC respectively.
specifies signed integer data-point representation with the most
significant byte transferred first. This format results in the fastest data transfer
rate when DATa:WIDth is set to 2.
The range is –128 to 127 when DATa:WIDth is 1. Zero is center screen. The
range is –32768 to 32767 when DATa:WIDth is 2. The upper limit is one
division above the top of the screen and the lower limit is one division below the
bottom of the screen.
specifies positive integer data-point representation with the most
significant byte transferred first.
The range is 0 to 255 when DATa:WIDth is 1. 127 is center screen. The range is
0 to 65,535 when DATa:WIDth is 2. The upper limit is one division above the
top of the screen and the lower limit is one division below the bottom of the
screen.
is the same as
except that the byte order is swapped,
meaning that the least significant byte is transferred first. This format is useful
when transferring data to IBM compatible PCs.
is the same as
except that the byte order is swapped,
meaning that the least significant byte is transferred first. This format is useful
when transferring data to IBM compatible PCs.
WFMPre Settings
DATa:ENCdg
ATa N g Setting
e i g :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:SOUrce
Sets or queries the location of the waveform data that is transferred from the
instrument by the CURVe? query. The source data is always transferred in a
predefined order regardless of the order they are specified using this command.
The predefined order is CH1 through CH4, MATH1 through MATH3, then
REF1 through REF4.
Group Waveform
Arguments <wfm> is the location of the waveform data that will be transferred from the
digitizing oscilloscope to the controller.
DATa:STARt
Sets or queries the starting data point for waveform transfer. This command
allows for the transfer of partial waveforms to and from the digitizing oscillo-
scope.
Group Waveform
<Space> <NR1>
DATa : STARt
?
Arguments <NR1> ranges from 1 to the record length, and is the first data point that will be
transferred. Data will be transferred from <NR1> to DATa:STOP or the record
length, whichever is less. If <NR1> is greater than the record length then no data
will be transferred.
When DATa:STOP is less than DATa:STARt, the stop value will equal
DATa:STARt + (DATA:STARt – DATa:STOP). For example, if DATa:STARt =
30 and DATaSTOP = 20, then the range of data points for the waveform transfer
will equal 30 through 40.
Examples DATA:START 10
specifies that the waveform transfer will begin with data point 10.
DATA:START?
might return 214 as the first waveform data point that will be transferred.
DATa:STOP
Sets or queries the last data point that will be transferred when using the
CURVe? query. This allows the transfer of partial waveforms to the controller.
When using the CURVe command, the digitizing oscilloscope will stop reading
data when there is no more data to read or when the specified record length has
been reached so this command will be ignored.
Group Waveform
Syntax
Arguments
ranges from 1 to the record length, and is the last data point that will be
transferred. If
is greater than the record length then data will be transferred
up to the record length. If both DATa:STARt and DATa:STOP are greater than
the record length, an execution error will be executed.
If you always want to transfer complete waveforms, just set DATa:STARt to 1
and DATa:STOP to the maximum record length.
When DATa:STOP is less than DATa:STARt, the stop value will equal
DATa:STARt + (DATA:STARt – DATa:STOP). For example, if DATa:STARt =
30 and DATaSTOP = 20, then the range of data points for the waveform transfer
will equal 30 through 40.
might return as the last data point that will be transferred.
DATa:TARget
Sets or queries the location for storing waveform data transferred to the
instrument using the CURVe command. This command is equivalent to the
Group Waveform
DATa:WIDth
Sets the number of bytes per data point in the waveform transferred using the
CURVe command.
Group Waveform
Arguments
= 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 (one
byte per point). If used for AVErage or HIRes (two bytes per point), the low
order byte is not transmitted.
= 2 specifies that there are 2 bytes (16 bits) per point. This format is
useful for AVErage and HIRes (two bytes per point) waveforms. If used for
ENVelope, PEAKdetect, or SAMple (one byte per point), the least significant
byte is always zero.
Examples DATA:WIDth 1
sets the data width to 1 byte per data point for CURVe data.
DATE
Sets or queries the date that the digitizing oscilloscope can display.
Group Miscellaneous
<Space> <QString>
DATE
?
*DDT
Allows the user to specify a command or a list of commands that are executed
when the instrument receives a *TRG command or the GET GPIB interface
message. This is just a special alias that *TRG uses.
Group Miscellaneous
*DDT?
<Block>
<Space>
<QString>
*DDT
?
NOTE. The setup information cannot be recovered once it has been deleted.
<NR1>
DELEte : SETUp <Space>
ALL
Arguments <NR1> is a value in the range 1 to 10, and specifies a setup storage location.
Using an out-of-range value causes an execution error.
ALL specifies all the stored setups.
NOTE. The waveform data is not actually cleared from the reference location.
REF <x>
DELEte : WAVEform <Space>
ALL
Arguments REF<x> (REF1, REF2, REF3 or REF4) specifies one of the reference memory
locations.
ALL specifies all the stored waveforms.
DESE
Sets and queries the bits in the Device Event Status Enable Register (DESER).
The DESER is the mask that determines whether events are reported to the
Standard Event Status Register (SESR), and entered into the Event Queue. For a
more detailed discussion of the use of these registers, see page 3–1.
Syntax
Arguments
is a value in the range from 0 to 255. The binary bits of the DESER are
set according to this value. For example, sets the DESER to the binary
value 11010001 (that is, the most significant bit in the register is set to 1, the
next most significant bit to 1, the next bit to 0, etc.).
The power-on default for DESER is all bits set if
is 1. If
is 0, the
DESER maintains its value through a power cycle.
NOTE. Setting the DESER and the ESER to the same value allows only those
codes to be entered into the Event Queue and summarized on the ESB bit (bit 5)
of the Status Byte Register. Use the command to set the ESER. A discussion
of event handling begins on page 3–1.
Syntax DIAg:RESUlt:FLAg?
Returns PASS indicating that all of the selected diagnostic tests have passed.
FAIl indicating that at least one of the selected diagnostic tests has failed.
Examples DIAG:RESULT:FLAG?
returns either PASS or FAIl.
Syntax DIAg:RESUlt:LOG?
Examples DIAG:RESULT:LOG?
might return :DIAG:RESULT:LOG "pass--Processor,pass--Display,
pass--FP/Proc Interface,FAIL--Front Panel"
Syntax
Arguments
Syntax
Arguments
selects functional, memory, and register tests for the acquisition, processor
and display systems, and self diagnostics for the front panel.
Syntax
Syntax
Syntax
Syntax
Arguments runs the diagnostic test sequences specified by the DIAg:SELect
commands. When complete, the digitizing oscilloscope will return to the state it
was in just prior to the test. If the PON event was enabled before running the
tests, a Service Request will be generated. When the Service Request has been
received, the pass/fail status of the tests can be returned by executing the
DIAg:RESUlt:FLAg? query.
The DIAg:STATE EXECute command clears the following:
H the Event Queue
H the Input Queue
H the Status Registers (SESR and SBR)
To enable a power-on event to generate a Service Request, send the following
commands before running diagnostics:
H DESE 128
H *ESE 128
H *SRE 32
H *PSC 0
Group Display
Syntax DISplay?
DISplay ?
Examples DISPLAY?
might return :DISPLAY:FORMAT YT;STYLE VECTORS;FILTER SINX;PERSISTĆ
ENCE 500.0E-3;GRATICULE FULL;TRIGT 1;INTENSITY:OVERALL 85;
WAVEFORM 70;TEXT 60;CONTRAST 150
DISplay:CLOCk
Controls the display of the date and time. This is equivalent to setting the
Display Date/Time in the Readout Options side menu. The query form returns
an ON (1) or an OFF (0).
Group Display
OFF
<Space> ON
<NR1>
DISplay : CLOCk
?
Examples DISPLAY:CLOCK ON
sets the display to show time and date.
DISPLAY:CLOCK?
might return 1 indicating that the display shows time and date.
DISplay:COLOr:CONTRast
TDS 5X4A, 6X4A, & 7XXA Only
Turns on or off the collision contrast option. The TDS will display overlapping
lines in a special collision color when this item is turned on. This is equivalent to
selecting Options from the main Color menu and toggling Collision Contrast in
the resulting side menu to ON or OFF.
Group Display
OFF
<Space> ON
<NR1>
DISplay : COLOr : CONTRast
?
Examples DISPLAY:COLOR:CONTRAST ON
turns on the contrast option.
Group Display
MATH1
MATH2
MATH3
REF1
OFF
REF2
<Space> ON
REF3
<NR1>
REF4 : BYCONTents
?
Arguments <OFF> or <NR1> = 0 means set the color by index (NOT by contents).
<ON> or <NR1> 0 means set the color by contents (NOT by index).
Examples DISPLAY:COLOR:MAP:MATH1:BYCONTENTS ON
sets the display of math waveform # 1 to the color of the waveform used to
define math waveform # 1. If two waveforms were used to defined math
waveform # 1, then the color of the first mentioned waveform is used.
DISPLAY:COLOR:MAP:MATH1:BYCONTENTS?
might return ON.
DISplay:COLOr:MAP:<item name>: TO
TDS 5X4A, 6X4A, & 7XXA Only
Defines the color index to use if setting the color for a math or reference
waveform to the color assigned to a specific index. This is similar, but not
identical, to pressing Map Math Colors or Map Reference Colors on the Color
main menu, pressing Color on the resulting side menu, and entering an index
with the general purpose knob or the keypad. The difference is that, when you
press Color on the front panel, you not only select a color index but also state
that you wish to select by index rather than by contents. In contrast, when you
use this command you only select the index to use. To state you want to select by
index, use the DISplay:COLOr:MAP:...:BYCONTents command with the OFF
argument.
Group Display
MATH1
CH1
MATH2
CH2
MATH3
CH3
REF1
CH4
REF2
MATH
REF3
<Space> REF
REF4 : TO
?
DISplay:COLOr:PALEtte:PERSistence
TDS 5X4A, 6X4A, & 7XXA Only
Sets the current persistence palette to one of the preset persistence palettes. This
is equivalent to selecting Palette from the main Color menu, Persistence
Palettes from the resulting side menu, and Temperature, Spectral, or Gray
Scale from the next side menu.
Group Display
Syntax
%!
##
"# &
!#$! ')
! '
" (
%!
##
"#?
!#$!
% !
##
!
"# "
Examples
DISplay:COLOr:PALEtte:REGular
TDS 5X4A, 6X4A, & 7XXA Only
Sets the current palette to one of the preset palettes. This is equivalent to
selecting Palette from the main Color menu and Normal, Bold, Hardcopy, or
Monochrome from the resulting side menu.
Group Display
Syntax
%!
##
$! & ' ' % ' (
%!
##
$!?
Examples
sets the current palette to the hardcopy palette.
Group Display
Syntax
"
Examples
resets the palette to the factory default setting.
Group Display
Syntax
"
# $ $ " $ %
NORMal
BOLd
MONo
Examples DISPLAY:COLOR:PALETTE:HARDCOPY:RESET
resets the hardcopy palette to its initial, factory-default settings.
Group Display
BACKGround
CH2
<NR1>
CH3 ,
NORMal CH4 <NR1>
MONo MATH ,
PALEtte : BOLd : REF <Space> <NR1>
HARDCopy TEXt
SCROLLTEXT
ZONe
COLLision ?
GRAticule
SCROLLBAR
SCROLLBAR specifies the color of the scrollbar. For example, you will find a
scrollbar in various file system menus.
<NR1>, <NR1>, <NR1> specifies the desired colors in terms of hue, lightness
and saturation values.
Hue is the wavelength of light reflected from the surface. It varies continuously
along the color spectrum as produced by a rainbow. Values range from 0 to 359.
Sample values are: 0 = blue, 60 = magenta, 120 = red, 180 = yellow, 240 =
green, 360 = cyan.
Lightness refers to the amount of light reflected from the surface. It varies from
black, to the nominal color, to white. Values range from 0 to100. A value of 0
results in black. A value of 50 provides the nominal color. A value of 100 results
in white.
Saturation is the intensity of color. Completely desaturated color is gray.
Completely saturated color of any hue is that color at its most intense. Values
range from 0 to 100. A value of 100 provides a pure color. A value of 0 provides
gray.
DISplay:FILTer
Sets or queries the type of interpolation to use for the display when the DIS-
play:STYle is VECtors. This command is equivalent to setting Filter in the
Display menu.
Group Display
LINEAr
<Space>
SINX
DISplay : FILTer
?
Arguments LINEAr specifies linear interpolation where acquired points are connected with
straight lines.
SINX specifies sin(x)/x interpolation where acquired points are fit to a curve.
DISplay:FORMat
Sets or queries the display format. This command is equivalent to setting
Format in the Display menu.
Group Display
Syntax DISplay:FORMat { XY | YT }
DISplay:FORMat?
XY
<Space>
YT
DISplay : FORMat
?
Arguments XY displays the voltage of one waveform against the voltage of another. The
sources that make up an XY waveform are predefined and are listed in
Table 2–28. Displaying one source causes its corresponding source to be
displayed.
YT sets the display to a voltage versus time format and is the normal mode.
Examples DISPLAY:FORMAT YT
selects a voltage versus time format for the display.
DISPLAY:FORMAT?
might return XY for the display format.
DISplay:GRAticule
Selects the type of graticule that will be displayed. This command is equivalent
to setting Graticule in the Display menu.
Group Display
CROSSHair
FRAme
FULl
GRId
<Space> NTSc
PAL
DISplay : GRAticule
?
DISplay:INStavu:PERSistence
TDS 7XXA Only
Selects the persistence mode to use with InstaVu.
Group Display
INFPersist
<Space>
VARpersist
Examples DISPLAY:INSTAVU:PERSISTENCE?
might return INFPERSIST indicating the infinite persistence mode is on.
DISplay:INStavu:STYle
TDS 7XXA Only
Selects how the data is displayed with InstaVu.
Group Display
DOTs
<Space>
VECtors
Examples DISPLAY:INSTAVU:STYLE?
might return DOTS indicating that the display shows individual waveform data
points.
DISplay:INStavu:VARpersist
TDS 7XXA Only
Sets the length of time that data points are displayed when DISplay:INSta-
vu:PERSistence is set to VARpersist. This affects the display only.
Group Display
<Space> <NR3>
DISplay : INStavu VARpersist
?
Arguments <NR3> specifies the length, in seconds, that the waveform points are displayed on
the screen. The range is 250 ms to 10 s.
Examples DISPLAY:INSTAVU:VARPERSIST 3
specifies that the waveform points are displayed on the screen for 3 seconds
before they disappear.
Group Display
Syntax DISplay:INTENSITy?
DISplay : INTENSITy ?
Examples DISPLAY:INTENSITY?
might return :DISPLAY:INTENSITY:WAVEFORM 70;TEXT 60
or :DISPLAY:INTENSITY:OVERALL 85;WAVEFORM 70;TEXT 60;CONTRAST 175
DISplay:INTENSITy:CONTRast
TDS 4X0A, 5X0A & 6X0A Only
Sets the intensity of the intensified zone on a waveform. This command is
equivalent to setting Contrast in the Display Intensity side menu.
The command has no effect on limit test templates or intensified samples. They
are displayed at a fixed contrast ratio.
Group Display
DISplay:INTENSITy:CONTRast?
<Space> <NR1>
DISplay : INTENSITy : CONTRast
?
DISplay:INTENSITy:OVERAll
TDS 4X0A, 5X0A, & 6X0A Only
Sets the intensity of the entire display. This command is equivalent to setting
Overall in the Display Intensity side menu.
Group Display
<Space> <NR1>
DISplay : INTENSITy : OVERAll
?
Examples DISPLAY:INTENSITY:OVERALL 50
sets the intensity of the display to the middle of the range.
DISPLAY:INTENSITY:OVERALL?
might return 75 as the overall display intensity.
DISplay:INTENSITy:TEXt
Sets the intensity of the text and the graticule. This command is equivalent to
setting Text/Grat in the Display Intensity side menu.
Group Display
Syntax
!$
$#
!$
$#
!
!$
$ #
Examples
sets the intensity of the text to the brightest level.
DISplay:INTENSITy:WAVEform
Sets the intensity of the waveforms. This command is equivalent to setting
Waveform in the Display Intensity side menu.
Group Display
Syntax
!$
$ "
!$
$ "
!
!$
$ "
Examples
might return as the intensity of the waveform.
DISplay:MODe
TDS 7XXA Only
Selects whether or not to turn on InstaVu.
Group Display
INStavu
<Space>
NORMal
DISplay : MODe
?
Arguments INSTavu turns on InstaVu. This mode can help view infrequent deviations in a
signal. It only uses a 500 point record length, no averaging, and no enveloping.
When you turn on InstaVu, the TDS turns off any active zoom, autosave, limit
test, waveform math, FastFrame, and XY display. The TDS reactivates these
features when you turn off InstaVu.
NORMal turns on the normal (non–InstaVu mode).
DISplay:PERSistence
Sets the length of time that data points are displayed when DISplay:STYle is set
to VARpersist. This affects the display only and is equivalent to setting Variable
Persistence in the Display Style side menu.
Group Display
Syntax "
!
"
!
"
!
Arguments specifies the length, in seconds, that the waveform points are displayed on
the screen. The range is 250 ms to 10 s.
Examples
specifies that the waveform points are displayed on the screen for 3 seconds
before they fade.
DISplay:STYle
Selects how the data is displayed. This command is equivalent to setting Style in
the Display menu.
Group Display
!
!
!
"
!!" leaves acquired data points on the display for a period of time
specified by DISplay:PERSistence.
" ! connects adjacent data points. Old points are immediately replaced by
new ones.
causes the display to show acquired (non-interpolated) samples
with brighter or different colored dots than the rest of the waveform.
Examples
sets the display to indefinitely accumulate data points on the screen.
might return indicating that the display shows individual waveform data
points.
DISplay:TRIGBar
Controls the display of the trigger bar indicator/s. The bar indicates where the
trigger will occur, in voltage.
The digitizing oscilloscope will only display the bar if the trigger source is also
displayed. If both a main and a delayed trigger are displayed, then two bars will
appear. One will accompany each source. If a logic trigger is selected, then
multiple bars may appear. If a runt pulse trigger is selected, then two bars may
appear. One will show the upper threshold and one the lower threshold.
Group Display
"
#
LONG displays a horizontal line in the center of the graticule for each displayed
trigger signal.
DISplay:TRIGT
Controls the display of the trigger indicator. This is equivalent to setting the
Display ‘T’ @ Trigger Point in the Readout Options side menu. The query
form returns an ON (1) or an OFF (0).
Group Display
ON
<Space> OFF
<NR1>
DISplay : TRIGT
?
Arguments <OFF> or <NR1> = 0 removes the trigger indicator from the display.
<ON> or <NR1> 0 displays a trigger indicator on each of the displayed
waveforms. The trigger indicator is in reverse video for the selected waveform.
Examples DISPLAY:TRIGT ON
sets the display to show trigger indicators.
DISPLAY:TRIGT?
might return 1 indicating that the display shows trigger indicators.
*ESE
Sets and queries the bits in the Event Status Enable Register (ESER). The ESER
prevents events from being reported to the Status Byte Register (STB). For a
more detailed discussion of the use of these registers, see page 3–1.
Arguments
is a value in the range from 0 through 255. The binary bits of the ESER
are set according to this value.
The power-on default for ESER is 0 if is 1. If is 0, the ESER
maintains its value through a power cycle.
NOTE. Setting the DESER and the ESER to the same value allows only those
codes to be entered into the Event Queue and summarized on the ESB bit (bit 5)
of the Status Byte Register. Use the
command to set the DESER. A
discussion of event handling begins on page 3–1.
Related Commands ALLEv?, *CLS, DESE, *ESE, EVENT?, EVMsg?, *SRE, *STB?
Syntax
Examples
might return the value , showing that the SESR contains binary 11010101.
Related Commands ALLEv?, *CLS, DESE, *ESE, *ESR?, EVMsg?, *SRE, *STB?
Syntax
Examples
might return the response , showing that there was an error in a
command header.
Related Commands ALLEv?, *CLS, DESE, *ESE, *ESR?, EVENT?, *SRE, *STB?
Syntax
EVMsg ?
Examples EVMSG?
might return the message :EVMSG 110,"Command header error".
Syntax EVQty?
EVQty ?
Returns <NR1>
Examples EVQTY?
might return 3 as the number of event codes in the Event Queue.
Group Miscellaneous
Syntax
<source , <destination
directory path> directory path>
Arguments <file path> is a quoted string that defines the file name and path. Input the file
path using the form <drive>/<dir>/<filename>. <drive> and one or more
<dir>s are optional. If you do not specify them, the TDS will copy the file in the
current directory. <filename> stands for a filename of up to 8 characters and can
be followed by a period (“.”) and a 3-character extension. You can also use the
inclusive filename *.* in the source file path to copy all files.
<directory path> is a quoted string that defines the directory. Input the
directory using the form <drive>/<dir>/<directory name>. <drive> and one
or more <dir>s are optional. If you do not specify them, the TDS will copy the
directory in the current directory. <directory name> stands for a directory name
of up to 8 characters and can be followed by a period (“.”) and a 3-character
extension.
FILESYSTEM:COPY YOURDIR",fd0:/MYDIR"
copies the files in the YOURDIR directory in the current directory to the MYDIR
directory on the fd0: drive.
FILESystem:CWD
File System Only
Sets or returns the current working directory (CWD) path.
Arguments <directory path> is a quoted string that defines the directory name and path.
Arguments <file path> is a quoted string that defines the file name and path. Input the file
path using the form <drive>/<dir>/<filename>. <drive> and one or more
<dir>s are optional. If you do not specify them, the TDS will delete the file in
the current directory. <filename> stands for a filename of up to 8 characters and
can be followed by a period (“.”) and a 3-character extension. You can also use
the inclusive filename *.* to delete all files.
FILESystem:DELWarn
File System Only
Turns on or off the front panel file delete warning. No warning is returned via the
GPIB.
<Space> OFF
<NR1>
FILESystem : DELWarn
?
Syntax
!
!
Examples
returns a list of files and directories in the default directory.
Syntax
!
!
Arguments is a quoted string that defines the disk drive to format.
refers to the floppy-disk drive built into the digitizing oscilloscope.
Examples
"
formats the media on drive fd0:.
&#$ !
Arguments "$ "& !$ is a quoted string that defines the directory. Input the
directory using the form "%""$ "& . "% and one
or more "s are optional. If you do not specify them, the TDS will create the
directory in the current directory. "$ "& stands for a directory name
of up to 8 characters and can be followed by a period (“.”) and a 3-char
extension.
FILESystem:OVERWrite
File System Only
Turns on or off the file overwrite protection. Turning on file overwrite protection
prevents writing over existing files.
ON
<Space> OFF
<NR1>
FILESystem : OVERWrite
?
GPIb
CENtronics
FILESystem : PRInt <file path> ,
RS232
Arguments <file path> is a quoted string that defines the file name and path. Input the file
path using the form <drive>/<dir>/<filename>. <drive> and one or more
<dir>s are optional. If you do not specify them, the TDS will print the file in the
current directory. <filename> stands for a filename of up to 8 characters and can
be followed by a period (“.”) and a 3-character extension.
GPIb specifies that the hardcopy is sent out the GPIB port.
CENtronics specifies that the hardcopy is sent out the Centronics port (Option
13 RS232/Centronics Hardcopy Interface only).
RS232 specifies that the hardcopy is sent out the RS232 port (Option 13
RS232/Centronics Hardcopy Interface only).
Arguments <old file path> is a quoted string that defines the file to rename. Input the file
path using the form <drive>/<dir>/<filename>. <drive> and one or more
<dir>s are optional. If you do not specify them, the TDS will look for the
filename in the current directory.
<new file path> is a quoted string that defines the new name of the file. Input
the file path using the form <drive>/<dir>/<filename>. <drive> and one or
more <dir>s are optional. If you do not specify them, the TDS will place the
newly named file in the current directory.
Arguments $&"$( #& is a quoted string that defines the directory. Input the
directory using the form $'$$&"$( ! . $' and one
or more $s are optional. If you do not specify them, the TDS will delete the
directory in the current directory. $&"$( ! stands for a directory name
of up to 8 characters and can be followed by a period (“.”) and a 3-character
extension.
HARDCopy
Sends a copy of the screen display followed by an EOI to the port specified by
HARDCopy:PORT. The format and layout of the output is specified with the
HARDCopy:FORMat and HARDCopy:LAYout commands. This command is
equivalent to pressing the front-panel HARDCOPY button.
The HARDCopy? query returns format, layout, and port information.
Group Hardcopy
Syntax
"#( ) $& *
#"" * & +
"#(
$&
#
#""
&
"#(
NOTE. DCL does NOT clear the output queue once a hardcopy is in process. The
only way to abort the hardcopy process is to send the HARDCopy ABOrt
command. The output queue can then be cleared using DCL.
NOTE. Use the *WAI command between HARDCopy STARt commands to ensure
that the first hardcopy is complete before starting another.
HARDCopy:FILEName
File System Only
Selects the file to send the hardcopy data to on the next hardcopy command
(HARDCOPY START). This is equivalent to setting the target file name in the
Hardcopy menu.
Group Hardcopy
HARDCopy : FILEName
?
<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 the
form <drive>/<dir>/<filename>.<drive> and one or more <dir>s are
optional. If you do not specify them, the TDS will write the file to the current
HARDCopy:FORMat
Selects the output data format for hardcopies. This is equivalent to setting
Format in the Hardcopy menu.
Group Hardcopy
Syntax HARDCopy:FORMat { BMP | BMPCOLOR (TDS 5XXA, 6XXA, & 7XXA series
only) | DESKJet | DPU411 | DPU412 | EPSCOLImg (TDS 5XXA, 6XXA,
744 series only) | EPSColor | EPSImage | EPSMono | EPSOn | HPGl |
INTERLeaf | LASERJet | PCX | PCXCOLOR (TDS 5XXA, 6XXA, & 7XXA
series only) | RLE (TDS 5XXA, 6XXA, & 7XXA series only) | THInkjet |
TIFf }
HARDCopy:FORMat?
!,
'#
)&)+
'#!
)()
(
&
!"
!,
* !
(%$!,
"
)*- ,
On monochrome instruments (TDS 4X0A, 5X0A & 6X0A series only), the
following formats are mapped to a monochrome near equivalent:
!
!
!
!
For example: if and are sent
to the oscilloscope, is returned.
HARDCopy:LAYout
Selects the printing orientation. This is equivalent to setting Layout in the
Hardcopy menu.
Group Hardcopy
LANdscape
<Space>
PORTRait
HARDCopy : LAYout
?
Arguments LANDscape specifies that the bottom of the hardcopy is along the longest side of
the page.
PORTRait specifies that the bottom of the hardcopy is along the short side of the
page. This is the standard format.
Examples HARDCOPY:LAYOUT?
might return PORTRAIT as the hardcopy page-layout format.
HARDCopy:PALEtte
TDS 5XXA, 6XXA, & 7XXA Only
Selects whether to create the hardcopy using the current color palette (as set in
the Display menu and seen on the screen) or the hardcopy palette. For color
hardcopies, the default hardcopy palette may be most appropriate, since it has a
white background and requires less ink for printing onto white paper. For
monochrome hardcopies, the TDS ignores the palette and prints black (or the
default color) objects on a blank background.
Group Hardcopy
HARDCopy:PALEtte
CURRent
<Space>
HARDCopy
HARDCopy : PALEtte
?
HARDCopy:PORT
Selects where to send the hardcopy data on the next hardcopy command (i.e.
HARDCOPY START command). This is equivalent to setting Port in the
Hardcopy menu.
Group Hardcopy
CENtronics
FILE
<Space> GPIb
RS232
HARDCopy : PORT
?
CENtronics specifies that the hardcopy is sent out the Centronics port (available
with the RS232/Centronics Hardcopy Interface).
FILE specifies that the hardcopy is stored in the file named in the HARDCO-
PY:FILENAME command.
GPIb specifies that the hardcopy is sent out the GPIB port.
RS232 specifies that the hardcopy is sent out the RS232 port (Option 13
RS232/Centronics Hardcopy Interface only).
Examples 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.
Group Miscellaneous
<NR1>
<Space> OFF
ON
HDR
?
HEADer
Sets and queries the Response Header Enable State that causes the digitizing
oscilloscope to either include or omit headers on query responses. This command
does not affect IEEE Std 488.2-1987 Common Commands (those starting with
an asterisk); they never return headers.
Group Miscellaneous
<NR1>
<Space> OFF
ON
HEADer
?
Arguments ON or <NR1> 0 sets the Response Header Enable State to true. This causes the
digitizing oscilloscope to include headers on applicable query responses. You can
then use the query response as a command.
OFF or <NR1> = 0 sets the Response Header Enable State to false. This causes the
digitizing oscilloscope to omit headers on query responses, so that only the
argument is returned.
Group Horizontal
Syntax HORizontal?
HORizontal ?
Examples HORIZONTAL?
might return the string :HORIZONTAL:MODE MAIN;RECORDLENGTH 500;
POSITION 5.0E+0;TRIGGER:POSITION 50;:HORIZONTAL:MAIN:SCALE
1.0E-6;:HORIZONTAL:DELAY:MODE RUNSAFTER;SCALE 1.0E-6;TIME:
16.0E-9
HORizontal:CLOck
TDS 4XXA Only
Enables either the internal or external clocks. The query returns whether the
clock is set to internal or external.
Group Horizontal
INTernal
<Space>
EXTernal
HORizontal : CLOck
?
HORizontal:CLOck:MAXRate
TDS 4XXA Only
Sets the maximum external clock rate. It does not enable the external clock. The
maximum external clock rate affects the decimation rate in Hi–Res mode.
If set to less than or equal to 1000, this command enables roll mode when
external clock is on and roll more is set to auto.
Group Horizontal
<Space> <NR3>
HORizontal : CLOck : MAXRate
?
Examples HORIZONTAL:CLOCK:MAXRATE 50
sets the maximum external clock rate to 50 clocks per second.
Group Horizontal
Syntax HORizontal:DELay?
HORizontal : DELay ?
Examples HORIZONTAL:DELAY?
might return the delay parameters :HORIZONTAL:DELAY:MODE RUNSAFĆ
TER;SCALE 1.0E-6;TIME: 16.0E-9
HORizontal:DELay:MODe
Selects the mode for the delayed time base. This is equivalent to setting Time
Base in the Horizontal menu.
Group Horizontal
% #
$
#"
!
#"
% #
$
Arguments #" specifies that the delayed time base runs a user-specified amount of
delay time after the main trigger event.
#" specifies that the delayed time base is triggerable after the main time
base triggers.
Examples
returns either
or
, indicating the delayed time base mode.
HORizontal:DELay:SCAle
Sets the time per division for the delayed time base. This is equivalent to setting
Delayed Scale in the Horizontal Scale side menu.
On the TDS 4XXA, changes made while the external clock is enabled do not
take effect until the internal clock is enabled. Also, when the external clock is
enabled, the query form of this command returns an <NR3> value representing
‘50’.
Group Horizontal
!
% #
$
Arguments is the time per division. The range is 10 s (5 s on the TDS 620A, 640A,
and 644A and 20 s on the TDS 4XXA) to 500 ps (1 ns on the TDS 4XXA and
200 ps on the TDS 784A) in a 1–2–5 sequence. Values that are not in a 1–2–5
sequence (1–2.5–5 on the TDS 620A, 640A, & 644A) will be set to the closest
valid value. If the delayed time base scale is set slower than the main time base
scale, both the main and delayed time base scales will be set to the delay scale
value.
HORizontal:DELay:SECdiv
This command is identical to the HORizontal:DELay:SCAle command. It is
provided to maintain program compatibility with some older models of
Tektronix digitizing oscilloscopes.
Group Horizontal
<Space> <NR3>
HORizontal : DELay : SECdiv
?
HORizontal:DELay:TIMe
Sets or queries the delay time to wait after the main trigger before the delayed
time base begins. This is equivalent to setting Delayed Runs After Main in the
Time Base side menu of the Horizontal menu.
Group Horizontal
Arguments <NR3> is the time, in seconds, between the main trigger and the delayed trigger.
The range on the TDS 5XXA, 6XXA, & 7XXA is from 16 ns to 250 seconds
with a resolution of 4 ns. The range on the TDS 4XXA is from 10 ns to 20
seconds with a resolution of 10 ns.
Group Horizontal
Syntax HORizontal:DELay:TIMe?
Examples HORIZONTAL:DELAY:TIME?
might return :HORIZONTAL:DELAY:TIME:16.0E-9 for the delay time.
HORizontal:DELay:TIMe:RUNSAfter
Sets or queries the delay time to wait after the main trigger before the delayed
time base begins. This is equivalent to setting Delayed Runs After Main in the
Time Base side menu of the Horizontal menu.
Group Horizontal
HORizontal:DELay:TIMe:RUNSAfter?
<Space> <NR3>
RUNSAfter
?
Arguments <NR3> is the time, in seconds, between the main trigger and the delayed trigger.
The range is from 16 ns (10 ns on the TDS 4XXA) to 250 seconds (20 s on the
TDS 4XXA) with a resolution of 4 ns.
HORizontal:DELay:TIMe:TRIGAfter
Sets the delay time to wait in the trigger after delay mode. This is the time that
must pass before a delayed trigger is accepted. This command is equivalent to
setting Delay by Time time in the Delayed Trigger menu.
Group Horizontal
<Space> <NR3>
TRIGAfter
?
Arguments <NR3> is the delay time, in seconds. The range is from 16 ns (60 ns on the TDS
4XXA) to 250 seconds (20 s on the TDS 4XXA) with a resolution of 4 ns
(10 ns down to 110 ns on the TDS 4XXA).
HORIZONTAL:DELAY:TIME:TRIGAFTER?
might return 1.000E-3, indicating that the delay time is 1 ms.
HORizontal:FASTframe:COUNt
TDS 5XXA & 7XXA Only
Sets or queries FastFrame frame count. This is equivalent to setting FastFrame
Setup in the Horizontal menu and the Frame Count menu item in the side
menu. FastFrame, also known as memory segmentation, captures a series of
triggered acquisitions with minimal, intervening, time.
Group Horizontal
<Space> <NR1>
HORizontal : FASTframe : COUNt
?
Examples HORIZONTAL:FASTFRAME:COUNT 2
Sets up FastFrame mode to acquire two frames (segments) of data.
HORizontal:FASTframe:LENgth
TDS 5XXA & 7XXA Only
Setup length of each FastFrame frame. This is equivalent to setting FastFrame
Setup in the Horizontal menu and the Frame Length menu item in the side
menu. FastFrame, also known as memory segmentation, lets users capture a
series of triggered acquisitions with minimal, intervening, time between them.
Group Horizontal
<Space> <NR1>
HORizontal : FASTframe : LENgth
?
HORizontal:FASTframe:POSition
TDS 5XXA & 7XXA Only
Display the selected FastFrame frame. This is equivalent to selecting Horiz Pos
in the Horizontal menu, selecting the Frame menu item in the side menu, and
entering a value with the keypad or the general purpose knob. FastFrame, also
known as memory segmentation, lets users capture a series of triggered
acquisitions with minimal, intervening, time between them.
Group Horizontal
<Space> <NR1>
HORizontal : FASTframe : POSition
?
Examples HORIZONTAL:FASTFRAME:POSITION 25
Selects the 25th FastFrame frame to display.
HORizontal:FASTframe:STATE
TDS 5XXA & 7XXA Only
Setup FastFrame acquisition. This is equivalent to setting FastFrame Setup in
the Horizontal menu and the FastFrame menu item in the side menu. Fast-
Frame, also known as memory segmentation, lets users capture a series of
triggered acquisitions with minimal time between them.
Group Horizontal
<NR1>
<Space> OFF
HORizontal : FASTframe : STATE
ON
Arguments <NR1> indicates OFF if it’s a 0 or ON if it’s a 1 (or any other nonzero value).
ON means turn on FastFrame.
OFF means turn off FastFrame.
The query form only returns 0 or 1.
Examples HORIZONTAL:FASTFRAME:STATE ON
turns on FastFrame.
HORizontal:FITtoscreen
Setup horizontal waveform compress operation. This command is equivalent to
setting Record Length in the Horizontal menu and the Fit to screen menu item
in the side menu. Waveform compress lets you fit a captured waveform to the
visible screen. It provides the same functionality as if you were in zoom mode
and changed the time per division until the waveform fit the screen.
Group Horizontal
<NR1>
<Space> OFF
HORizontal : FITtoscreen
ON
Examples HORIZONTAL:FITTOSCREEN ON
turns on waveform compress.
Group Horizontal
Syntax HORizontal:MAIn?
HORizontal : MAIn ?
Examples HORIZONTAL:MAIN?
might return :HORIZONTAL:MAIN:SCALE 1.0E-6.
HORizontal:MAIn:SCAle
Sets the time per division for the main time base. This command is equivalent to
setting Main Scale in the Horizontal Scale side menu.
On the TDS 4XXA, changes made while the external clock is enabled do not
take effect until the internal clock is enabled. Also, when the external clock is
enabled, the query form of this command returns an <NR3> value representing
‘50’.
Group Horizontal
<Space> <NR3>
HORizontal : MAIn : SCAle
?
Arguments <NR3> is the time per division. For the TDS 6XXA series (except the 684A), the
range is 5 s to 500 ps in a 1–2.5–5 sequence). For the TDS 5XXA series, 684A,
and 7XXA, the range is 10 s to 500 ps (or 200 ps on the TDS 784A), in a 1–2–5
sequence. For the TDS 4XXA series, the range is 20 s to 1 ns.
HORizontal:MAIn:SECdiv
Sets the time per division for the main time base. This command is identical to
the HORizontal:MAIn:SCAle command. It is provided to maintain program
compatibility with some older models of Tektronix digitizing oscilloscopes.
Group Horizontal
<Space> <NR3>
HORizontal : MAIn : SECdiv
?
HORizontal:MODe
Selects whether the horizontal display uses the main or delayed time base or
both. This command is equivalent to setting Time Base in the Horizontal menu.
Group Horizontal
DELAYEd
<Space> INTENSIFied
MAIn
HORizontal : MODe
?
Arguments DELAYEd means that the selected waveform is horizontally scaled relative to the
delayed time base.
INTENSIFied uses both the main and delay scales to display the waveform. The
portion of the waveform that would be displayed in DELAYEd mode is
intensified. The level of intensity is set by the DISplay:INTENSITy:CONTRast
command.
MAIn means that the waveform is horizontally scaled relative to the main time
base.
HORizontal:POSition
Positions the waveform horizontally on the display. This is used for both main
and delayed time bases. This command is equivalent to adjusting the front-panel
Horizontal Position knob or setting the position in the Horizontal Position side
menu.
Group Horizontal
#" "
Arguments is from 0 to 100, and is the percent of the waveform that is displayed left
of the center graticule.
HORizontal:RECOrdlength
Sets the number of data points that are acquired for each record. This is
equivalent to setting Record Length in the Horizontal menu.
Group Horizontal
Syntax #"
!"
#"
!"
#"
!"
TDS 520A,
TDS 410A, TDS 524A, TDS 620A,
TDS 420A, TDS 540A, TDS 640A, TDS 744A,
Configuration TDS 460A TDS 544A TDS 644A TDS 684A TDS 784A
Standard 500, 500, 500, 500, 500,
1000, 1000, 1000, 1000, 1000,
2500, 2500, 2000 2500, 2500,
5000, 5000, 5000, 5000,
15000, 15000 15000 15000,
30000 50000
Option 1M 60000, 50000 75000,
120000 100000,
130000,
250000,
500000
HORizontal:SCAle
Sets the time per division for the main time base and is identical to the HORi-
zontal:MAIn:SCAle command. It is included here for compatibility purposes.
Group Horizontal
<Space> <NR3>
HORizontal : SCAle
?
HORizontal:SECdiv
Sets the time per division for the main time base and is identical to the HORi-
zontal:MAIn:SCAle command. It is included here for compatibility purposes.
Group Horizontal
<Space> <NR3>
HORizontal : SECdiv
?
Group Horizontal
Syntax HORizontal:TRIGger?
HORizontal : TRIGger ?
Examples HORIZONTAL:TRIGGER?
might return :HORIZONTAL:TRIGGER:POSITION 50.
HORizontal:TRIGger:POSition
Sets or queries the position of the trigger. This is equivalent to setting Trigger
Position in the Horizontal menu.
Group Horizontal
<Space> <NR1>
HORizontal : TRIGger : POSition
?
Arguments <NR1> is from 0 to 100 %, (20% to 80% in the TDS 620A, 640A, & 644A) and
is the amount of pretrigger information in the waveform.
Examples HORIZONTAL:TRIGGER:POSITION?
might return 50.
Syntax ID?
ID ?
Examples ID?
might return TEK/TDS 544A,CF:92.1CT,FV:3.0
Group Miscellaneous
Related Commands ID
Syntax *IDN?
*IDN ?
Examples *IDN?
might return the response
TEKTRONIX,TDS 544A,0,CF:92.1CT FV:2.0
LIMit:BELl
Rings the bell when the waveform data exceeds the limits set in the limit test, if
the limit state is on.
OFF
<Space> ON
<NR1>
LIMit : BELl
?
Arguments OFF or <NR1> = 0 turns off ringing the bell when any waveform data exceeds the
limits set by the limit test.
ON or <NR1> 0 turns on ringing the bell.
Examples LIMit:BELl ON
specifies that the bell is to ring when any waveform data exceeds the limits
specified in the limit test.
LIMit:BELl?
returns either 0 or 1, indicating whether the bell is to ring when any waveform
data exceeds the limits specified in the limit test.
LIMit:COMPARE:CH<x>
Sets or queries the template against which to compare the waveform acquired
through the specified channel. The template can be a waveform saved in any of
the reference locations REF1 through REF4, or none.
NONe
<Space>
REF <x>
LIMit:COMPARE:MATH<x>
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries the template against which to compare a math waveform. The
template can be a waveform saved in any of the reference locations REF1
through REF4, or none.
Syntax
Examples
specifies REF1 as the template waveform against which to compare waveforms
acquired using CH1.
might return
, indicating that waveforms acquired
using CH2 will be compared to the template waveform stored in REF4.
LIMit:HARDCopy
Executes a hardcopy operation on the waveform when any waveform data
exceeds the limits set in the limit test, if the limit state is on. The hardcopy
operation uses the port, and prints in the format and layout, specified using the
HARDCopy commands.
Syntax
Arguments or 0 turns on the hardcopy operation for the waveform when any
waveform data exceeds the limits set by the limit test.
or = 0 turns off the hardcopy operation.
Examples
specifies that the hardcopy operation occurs for the waveform when any
waveform data exceeds the limits specified in the limit test.
returns either or , indicating whether the hardcopy operation occurs for the
waveform when any waveform data exceeds the limits specified in the limit test.
LIMit:STATE
Turns limit testing on or off, or queries whether limit testing is in effect.
Arguments
Examples
specifies that limit testing of waveforms is in effect.
returns either or , indicating whether limit testing of waveforms is in effect.
Arguments creates a template with the specified source waveform and tolerances, and
stores it in the destination reference waveform to be used in limit testing
comparisons.
LIMit:TEMPLate:DESTination
Sets or queries the destination reference waveform that the LIMit:TEMPLate
STORe command will use.
Syntax
Arguments
specifies the reference waveform destination in which the template
waveform is to be stored.
Examples
specifies that the template waveform referred to with the LIMit:TEMPLate
STORe command is stored as the REF2 waveform.
LIMit:TEMPLate:SOUrce
Sets or queries the channel, math waveform, or reference waveform that the
LIMit:TEMPLate STORe will use.
Syntax
! !
"
Arguments ! specifies that the template waveform is the waveform currently being
acquired using the specified channel.
! specifies that the template waveform is the waveform currently stored
as the specified math waveform.
! specifies that the template waveform is the waveform currently stored as
the specified reference waveform.
Examples
specifies that the template waveform for limit tests is the waveform currently
acquired using channel 2.
might return , specifying that the template waveform for limit tests is the
waveform currently stored as the MATH3 waveform.
LIMit:TEMPLate:TOLerance:HORizontal
Sets or queries the amount, in units of horizontal divisions, by which the source
waveform is varied horizontally when creating the destination waveform.
Syntax
"
"
"
Arguments <NR3> is the amount, in horizontal divisions, by which the current waveform is
allowed to deviate from the template waveform without exceeding the limits set
in the limit test. The range is 0 to 5 divisions.
LIMit:TEMPLate:TOLerance:VERTical
Sets or queries the amount, in units of vertical divisions, by which the source
waveform is varied vertically when creating the destination waveform.
<Space> <NR3>
Arguments <NR3> is the amount, in vertical divisions, by which the current waveform is
allowed to deviate from the template waveform without exceeding the limits set
in the limit test. The range is 0 to 5 divisions.
LOCk
Enables and disables all front panel buttons and knobs. There is no front-panel
equivalent.
Group Miscellaneous
Syntax
NOTE. If the digitizing oscilloscope is in the Remote With Lockout State (RWLS),
the LOCk NONe command has no effect. For more information see the ANSI-
IEEE Std. 488.1-1987 Standard Digital Interface for Programmable Instrumen-
tation, section 2.8.3 on RL State Descriptions.
Examples
locks the front panel controls.
returns
when the front panel controls are enabled by this command.
Group Miscellaneous
Syntax *LRN?
*LRN ?
NOTE. The *LRN? query always returns a string including command headers,
regardless of the setting of the HEADer command. This is because the returned
string is intended to be sent back to the digitizing oscilloscope as a command
string. The VERBose command can still be used normally to specify whether the
returned headers should be abbreviated.
Examples *LRN?
a partial response might look like this:
:ACQUIRE:STATE 1;MODE SAMPLE;NUMENV 10;NUMAVG 16;
REPET 1;STOPAFTER RUNSTOP;:DIAG:LOOP:OPTION ONCE;
COUNT 1;:DIAG:STATE HALT;:HEADER 1;:VERBOSE 1;
:CURSOR:FUNCTION OFF;VBARS:UNITS SECONDS;
POSITION1 1.00E-6;POSITION2 9.00E-6;SELECT CURSOR1;
Group Vertical
Syntax MATH<x>?
MATH <x> ?
MATH<x>:DEFINE
Allows the user to define new waveforms using mathematical expressions. This
is equivalent to selecting Change Math waveform definition in the Math<x>
side menu.
Group Vertical
Space <QString>
MATH<x> : DEFINE
?
Arguments <QString> contains the mathematical expression. The expression can include
any amount of white space. Expressions can be either single or dual waveform
expressions. <src> and <function> elements are case independent.
The format for a single waveform expression is:
<function>(<source> [, <window>, <scaling>, <phase
suppression>])
The format for a dual waveform expression is:
<source><operator><source>
where:
<function> ::= INV | DIF | FFT | INT
H INVert (for invert): inverts the defined waveform.
H DIFferentiate (available with Advanced DSP Math only): takes the
derivative of the selected waveform.
H FFT (available with Advanced DSP Math only): provides an FFT of the
selected waveform. It uses the format: “FFT(<source>, <window>,
<scaling>, <phase suppression>)” where the window, scaling, and phase
suppression arguments in the parentheses are optional. You can specify these
arguments in any order.
<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: RECTangular,
HAMming, HANning, or BLAckmanharris.
<scaling> provides vertical scaling. Valid choices are: LOGrms, LINearrms,
DEGreesphase, or RADiansphase.
MATH<x>:NUMAVg
TDS 5XXA, 6XXA, & 7XXA Only,
some models require Option 2F
Allows the user to declare at what acquisition number the averaging algorithm
will begin exponential averaging. Prior to that acquisition number, the algorithm
uses stable averaging. This is equivalent to selecting Average in the Math<x>
side menu and entering a value with the general purpose knob or the keypad.
Group Vertical
!
Arguments specifies the number of times to successively average the math
waveform before completing an acquisition.
Examples
Successively averages math waveform 2 by 10 times.
might return 10 indicating 10 math 2 waveforms are successively averaged
before a single acquisition occurs.
MATH<x>:PROCessing
TDS 5XXA, 6XXA, & 7XXA Only,
some models require Option 2F
Allows the user to turn on or off averaging for the math waveform specified by
<x>. This is equivalent to selecting No Extended Process or Average in the
Math<x> side menu.
Math averaging allows the digitizing oscilloscope to successively average any
acquisition-related math waveform. This can help reduce noise in a math
waveform.
Group Vertical
Syntax !
" # $
!
!
Group Measurement
Syntax MEASUrement?
MEASUrement ?
Examples MEASUREMENT?
might return :MEASUREMENT:MEAS1:STATE 0;TYPE PERIOD;UNITS
"s";SOURCE1 CH1;SOURCE2 CH1;DELAY:EDGE1 RISE;EDGE2 RISE;DIRECTION
FORWARDS;:MEASUREMENT:MEAS2:STATE 0;TYPE PERIOD;UNITS "s";SOURCE1
CH1;SOURCE2 CH1;DELAY:EDGE1 RISE;EDGE2 RISE;DIRECTION FORWARDS;
:MEASUREMENT:MEAS3:STATE 0;TYPE PERIOD;UNITS "s";SOURCE1
CH1;SOURCE2 CH1;DELAY:EDGE1 RISE;EDGE2 RISE;DIRECTION FORWARDS;
:MEASUREMENT:MEAS4:STATE 0;TYPE PERIOD;UNITS "s";SOURCE1
CH1;SOURCE2 CH1;DELAY:EDGE1 RISE;EDGE2 RISE;DIRECTION FORWARDS;
:MEASUREMENT:IMMED:TYPE PERIOD;UNITS "s";SOURCE1 CH1;SOURCE2
CH1;DELAY:EDGE1 RISE;EDGE2 RISE;DIRECTION FORWARDS;:MEASUREMENT:
METHOD HISTOGRAM;REFLEVEL:METHOD PERCENT;ABSOLUTE:HIGH 0.0E+0;LOW
0.0E+0;MID 0.0E+0;MID2 0.0E+0;:MEASUREMENT:REFLEVEL:PERCENT:HIGH
90.0E+0;LOW 10.0E+0;MID 50.0E+0;MID2 50.0E+0
MEASUrement:CLEARSNapshot
Removes the measurement snapshot display.
Group Measurement
Syntax MEASUrement:CLEARSNapshot
"$
!# $
Examples
MEASUrement:GATing
Sets or queries measurement gating.
Group Measurement
Syntax
"$ % & & '
"$
!
"$
Examples
might return
showing gating is turned on.
It might also return
showing gating is turned off.
Group Measurement
Group Measurement
MEASUrement:IMMed:DELay:DIREction
Sets or queries the starting point and direction that determines the delay “to”
edge when taking an immediate delay measurement. Use the MEASUre-
ment:IMMed:SOURCE2 command to specify the delay “to” waveform.
Group Measurement
BACKWards
<Space>
FORWards
Arguments BACKWards means that the search starts at the end of the waveform and looks for
the last rising or falling edge in the waveform. The slope of the edge is specified
by MEASUrement:IMMed:DELay:EDGE2.
FORWards means that the search starts at the beginning of the waveform and
looks for the first rising or falling edge in the waveform. The slope of the edge is
specified by MEASUrement:IMMed:DELay:EDGE2.
MEASUrement:IMMed:DELay:EDGE1
Sets or queries the slope of the edge that is used for the delay “from” waveform
when taking an immediate delay measurement. The waveform is specified by
MEASUrement:IMMed:SOURCE1.
Group Measurement
Examples
specifies that the rising edge be used for the immediate delay measurement.
returns either
or .
MEASUrement:IMMed:DELay:EDGE2
Sets or queries the slope of the edge that is used for the delay “to” waveform
when taking an immediate delay measurement. The waveform is specified by
MEASUrement:IMMed:SOURCE2.
Group Measurement
Syntax
!
"
MEASUrement:IMMed:SOURCE[1]
Sets or queries the source for all single channel immediate measurements and
specifies the source to measure “from” when taking an immediate delay
measurement or phase measurement.
Group Measurement
Syntax " # % $ & $ & $ '
" #
" #
MEASUrement:IMMed:SOURCE2
Specifies the source to measure “to” when taking an immediate delay measure-
ment or phase measurement.
Group Measurement
,!"$ 1
-$)$*/ $#
MEASUrement:IMMed:TYPe
Specifies the immediate measurement.
Group Measurement
%#,- !
+,
!
'
+
.
-!'.
#&-&
)!
&-&
,.
!*+"((,
,"
,.
(
+!
)$
!*+"((,
,"
!
*!&!', ! !
FALL is the time that it takes for the falling edge of a pulse to fall from a HighRef
value to a LowRef value of its final value.
FREQuency is the reciprocal of the period measured in hertz.
HIGH is the 100% reference level.
LOW is the 0% reference level.
MAXimum is the highest amplitude (voltage).
MEAN is the arithmetic mean over the entire waveform.
MINImum is the lowest amplitude (voltage).
NDUty is the ratio of the negative pulse width to the signal period expressed as a
percentage.
NOVershoot is the negative overshoot, expressed as:
Group Measurement
Returns $"! returns for volts, # for seconds, & for hertz, for
volts2,or for percent.
On the TDS 4XXA, $"! also returns for clocks, for volt-clocks,
or for 1/clks.
Group Measurement
Returns <NR3>
Group Measurement
Syntax MEASUrement:MEAS<x>?
Examples MEASUREMENT:MEAS3?
might return :MEASUREMENT:MEAS3:STATE 0;TYPE PERIOD;
UNITS "s";SOURCE1 CH1;SOURCE2 CH2;DELAY:EDGE1 RISE;
EDGE2 RISE;DIRECTION FORWARDS.
Group Measurement
Syntax MEASUrement:MEAS<x>:DELay?
Examples MEASUREMENT:MEAS3:DELAY?
might return :MEASUREMENT:MEAS3:DELAY:EDGE1 RISE;
EDGE2 RISE;DIRECTION FORWARDS.
MEASUrement:MEAS<x>:DELay:DIREction
Sets or queries the starting point and direction that determines the delay “to”
edge when taking a delay measurement. The waveform is specified by
Group Measurement
$%
#
$%
&"!
Arguments
$% means that the search starts at the end of the waveform and looks for
the last rising or falling edge in the waveform. The slope of the edge is specified
by MEASUrement:MEAS<x>:DELay:EDGE2.
$% means that the search starts at the beginning of the waveform and
looks for the first rising or falling edge in the waveform. The slope of the edge is
specified by MEASUrement:MEAS<x>:DELay:EDGE2.
MEASUrement:MEAS<x>:DELay:EDGE1
Sets or queries the slope of the edge that is used for the delay “from” waveform
when taking a delay measurement. The waveform is specified by
MEASUrement:MEAS<x>:SOURCE1. This command is equivalent to selecting
the edges in the Delay Edges & Direction side menu.
Group Measurement
MEASUrement:MEAS<x>:DELay:EDGE2
Sets or queries the slope of the edge that is used for the delay “to” waveform
when taking a delay measurement. The waveform is specified by
MEASUrement:MEAS<x>:SOURCE2. This command is equivalent to selecting
the edges in the Delay Edges & Direction side menu.
Group Measurement
MEASUrement:MEAS<x>:SOURCE[1]
Sets or queries the source for all single channel measurements and specifies the
source to measure “from” when taking a delay measurement or phase measure-
ment.
Group Measurement
!" #
MEASUrement:MEAS<x>:SOURCE2
Sets or queries the source to measure “to” when taking a delay measurement or
phase measurement. This is equivalent to setting the source in the Delay from
Selected Wfm side menu or the Phase from Selected Wfm side menu.
Group Measurement
Arguments
is an input channel.
is a math waveform.
is a reference waveform.
MEASUrement:MEAS<x>:STATE
Controls the measurement system. The source specified by MEASUre-
ment:MEAS<x>:SOURCE1 must be selected for the measurement to be
displayed. The source can be selected using the SELect:CH<x> command.
Group Measurement
OFF
<Space> ON
<NR1>
MEASUrement : MEAS <x> : STATE
?
Arguments OFF or <NR1> = 0 turns measurements off. You can also turn the state off by
deselecting the source.
ON or <NR1> 0 turns measurements on.
Examples MEASUREMENT:MEAS1:STATE ON
turns measurement defined as MEAS1 on.
MEASUREMENT:MEAS4:STATE?
returns either 0 or 1, indicating the state of MEAS4.
MEASUrement:MEAS<x>:TYPe
Sets or queries the measurement type for the measurement specified by
MEAS<x>. This is equivalent to selecting the measurement in the Select
Measurement side menu.
Group Measurement
%#,- !
+,
!
'
+
/
-!'/
#&-&
)!
&-&
,/
!*+"((,
,"
,/
(
+!
)$
!*+"((,
,"
!
*!&!',
. !
Arguments %#,- ! is the high value minus the low value or
– .
is the area between the curve and ground over the entire waveform.
+, is the time from the first MidRef crossing to the last MidRef crossing.
! (cycle area) is the area between the curve and ground over one cycle.
' is the arithmetic mean over one cycle.
+ is the true Root Mean Square voltage over one cycle.
/ is the time between the MidRef crossings of two different waveforms.
FALL is the time that it takes for the falling edge of a pulse to fall from a HighRef
value to a LowRef value of its final value.
FREQuency is the reciprocal of the period measured in hertz.
HIGH is the 100% reference level.
LOW is the 0% reference level.
MAXimum is the highest amplitude (voltage).
MEAN is the arithmetic mean over the entire waveform.
MINImum is the lowest amplitude (voltage).
NDUty is the ratio of the negative pulse width to the signal period expressed as a
percentage.
NOVershoot is the negative overshoot, expressed as:
Examples
specifies MEAS3 to calculate the Root Mean Square voltage.
Group Measurement
Syntax
"
$
"!
"
$
"!
Returns " returns for volts, ! for seconds, for hertz, for
volts2, or for percent.
On the TDS 4XXA, " also returns for clocks, for volt-clocks,
or for 1/clks.
Examples
might return , indicating the units for Measurement 3 are percent.
NOTE. This value is a display value and will be updated perhaps every 1/3
second. If you are acquiring a long acquisition record, the TDS may take longer
than this time to update.
Group Measurement
Syntax
"
$
#
Returns
MEASUrement:METHod
Sets or queries the method used to calculate the 0% and 100% reference level.
This is equivalent to setting the High-Low Setup in the Measure menu.
Group Measurement
# "
!
&
"#
Arguments
# " sets the high and low waveform levels statistically using a histogram
algorithm.
& sets the high and low waveform levels to MAX and MIN, respectively.
Group Measurement
Syntax "#
%
MEASUrement : REFLevel ?
MEASUrement:REFLevel:ABSolute:HIGH
Sets or queries the high reference level, and is the 100% reference level when
MEASUrement:REFLevel:METHod is set to ABSolute. This command is
equivalent to setting the Reference Levels in the Measure menu.
Group Measurement
<Space> <NR3>
Arguments <NR3> is the high reference level, in volts. The default is 0.0 V.
MEASUrement:REFLevel:ABSolute:LOW
Sets or queries the low reference level, and is the 0% reference level when
MEASUrement:REFLevel:METHod is set to ABSolute. This command is
equivalent to setting the Reference Levels in the Measure menu.
Group Measurement
<Space> <NR3>
Arguments <NR3> is the low reference level, in volts. The default is 0.0 V.
Examples MEASUREMENT:REFLEVEL:ABSOLUTE:LOW?
might return 0.0E+0 as the low reference level.
MEASUrement:REFLevel:ABSolute:MID
Sets or queries the mid reference level, and is the 50% reference level when
MEASUrement:REFLevel:METHod is set to ABSolute. This command is
equivalent to setting the Reference Levels in the Measure menu.
Group Measurement
<Space> <NR3>
Arguments <NR3> is the mid reference level, in volts. The default is 0.0 V.
MEASUrement:REFLevel:ABSolute:MID2
Sets or queries the mid reference level for the “to” waveform when taking a
delay measurement, and is the 50% reference level when MEASUrement:RE-
FLevel:METHod is set to ABSolute. This command is equivalent to setting the
Reference Levels in the Measure menu.
Group Measurement
<Space> <NR3>
Arguments <NR3> is the mid reference level, in volts. The default is 0.0 V.
MEASUrement:REFLevel:METHod
Specifies which reference levels are used for measurement calculations. This
command is equivalent to setting the levels in the Reference Levels side menu.
Group Measurement
ABSolute
<Space>
PERCent
Arguments
"&% specifies that the reference levels are set explicitly using the
MEASUrement:REFLevel:ABSolute commands. This method is useful when
precise values are required. For instance, when designing to published interface
specifications such as RS-232-C.
!% specifies that the reference levels are calculated as a percent relative to
HIGH and LOW. The percentages are defined using the MEASUrement:REFLe-
vel:PERCent commands.
MEASUrement:REFLevel:PERCent:HIGH
Sets or queries the percent, where 100% is equal to HIGH, that is used to
calculate the high reference level when MEASUrement:REFLevel:METHod is
set to PERCent. This command is equivalent to setting the Reference Levels in
the Measure menu.
Group Measurement
#
Arguments ranges from 0 to 100 percent, and is the high reference level. The default
is 90%.
MEASUrement:REFLevel:PERCent:LOW
Sets or queries the percent, where 100% is equal to HIGH, that is used to
calculate the low reference level when MEASUrement:REFLevel:METHod is set
to PERCent. This command is equivalent to setting the Reference Levels in the
Measure menu.
Group Measurement
Syntax
!
!
!
Arguments ranges from 0 to 100 percent, and is the low reference level. The default is
10%.
Examples
might return 15, meaning that the low reference level is 15% of HIGH.
MEASUrement:REFLevel:PERCent:MID
Sets or queries the percent, where 100% is equal to HIGH, that is used to
calculate the mid reference level when MEASUrement:REFLevel:METHod is
set to PERCent. This command is equivalent to setting the Reference Levels in
the Measure menu.
Group Measurement
Syntax
!
!
<Space> <NR3>
Arguments <NR3> ranges from 0 to 100 percent, and is the mid reference level. The default is
50%.
Examples MEASUREMENT:REFLEVEL:PERCENT:MID 60
specifies that the mid reference level is set to 60% of HIGH.
MEASUrement:REFLevel:PERCent:MID2
Sets or queries the percent, where 100% is equal to HIGH, that is used to
calculate the mid reference level for the second waveform specified when taking
a delay measurement. This command is equivalent to setting the Reference
Levels in the Measure menu.
Group Measurement
<Space> <NR3>
Arguments <NR3> ranges from 0 to 100 percent, and is the mid reference level. The default is
50%.
Examples MEASUREMENT:REFLEVEL:PERCENT:MID2 40
specifies that the mid reference level is set to 40% of HIGH.
MEASUrement:SNAPShot
Displays the measurement snapshot.
Group Measurement
Syntax MEASUrement:SNAPShot
MEASUrement : SNAPShot
Examples MEASUREMENT:SNAPSHOT
MESSage
Clears the message window and the MESSage? query returns the current
message parameters.
Group Display
<Space> CLEar
MESSage
?
Arguments CLEar removes the message from the message window. This is equivalent to
sending MESSage SHOW "".
MESSage:BOX
Defines the size and position of the message window. This command does not
display the window unless MESSage:STATE is ON.
Group Display
Syntax
Arguments and = 0 to 640, and are pixel positions along the horizontal axis.
defines the left and defines the right side of the window.
and = 0 to 480, and are pixel positions along the vertical axis.
defines the top and defines the bottom of the window. The reserved height
of all characters is 15 pixels so the window must be at least that high to fully
display characters. For a complete list of character widths in pixels, see Table
A–1 on page A–1. Shorter windows clip characters.
Figure 3-1 shows the coordinate system relative to the screen.
24
74
124
174
224
274
324
374
424
474
524
640
0
0
34
84
134
184
234
284
334
384
434
480
MESSage:SHOW
Clears the contents of the message window and displays the new message in the
window.
Group Display
Syntax
Arguments
is the message and can include any of the characters shown in the
TDS Character Chart in Appendix A. The maximum length of the message is
1000 characters.
The message is left-justified, and is displayed on a single line starting with the
top most line in the window. A line feed character can be embedded in the string
to position the message on multiple lines. You can also use white space and tab
characters to position the message within a line.
You can send a tab by transmitting a tab character (decimal 9) followed by two
characters representing the most significant eight bits followed by the least
significant eight bits of a 16-bit number. The number specifies the pixel column
relative to the left margin of the label area. For example, to tab to pixel 13, send
TAB (decimal 9), NUL (decimal 0), and CR (decimal 13).
The ESC character followed by the @ character turns inverse video on or off and
can be embedded in the message string. The first ESC character followed by a @
character displays all the text that follows in inverse video until another ESC
character followed by a @ character is found in the string.
NOTE. The use of any escape codes other than what is described above may
produce unpredictable results.
The label area is the height and width you have set using the MESSage:Box
command. The length of the label that fits in the label area depends on the
contents of the label because the width of characters varies. For a complete list of
character widths in pixels, see Table A–1 on page A–1.
If the message exceeds the limits of the window, either horizontally or vertically,
the portion of the message that exceeds the limits will not be displayed. The
message string itself is not altered. The entire message can be returned as a query
response regardless of what is displayed in the window.
Examples
displays “Hello world” in the upper left corner of the box (you can define the
box size with the MESSAGE BOX command).
a a
displays “Hello world ... hello” in the upper left corner of the box and the word
“world” is displayed in inverse video. In this example, a stands for the escape
character. The escape character may appear differently for you depending on your
GPIB talker-listener program.
MESSage:STATE
Controls the display of the message window.
Group Display
Syntax
! " " #
Group Miscellaneous
Syntax
Arguments is the new password. The password can include up to 10 characters.
Examples
creates a new password for accessing the user protected data.
*OPC
Generates the operation complete message in the Standard Event Status Register
(SESR) when all pending operations finish. The *OPC? query places the ASCII
character “1” into the output queue when all pending operations are finished. The
*OPC? response is not available to read until all pending operations finish. For a
complete discussion of the use of these registers and the output queue, see page
3–1.
Syntax
The *OPC command allows you to synchronize the operation of the digitizing
oscilloscope with your application program. Synchronization methods are
described starting on page 3–7.
Operation Command
Automatic scope adjustment AUTOSet EXECute
Internal self-calibration *CAL
Single sequence acquisition ACQuire:STATE ON or
ACQuire:STATE RUN
(when ACQuire:STOPAfter is set to
SEQuence)
Hardcopy output HARDCopy STARt
Syntax *OPT?
*OPT?
Examples OPT?
Might return: 13:Rs232/cent,1M:extended record length,
2F:math pack,05:video trigger,0,CD:color display.
Group Miscellaneous
Syntax
Arguments is the password and can include up to 10 characters. The factory
default password is “XYZZY”and is always valid.
Examples
Enables the *PUB and NEWpass set commands.
Disables the *PUD and NEWpass set commands. You can still use the query
version of *PUD.
*PSC
Sets and queries the power-on status flag that controls the automatic power-on
handling of the DESER, SRER, and ESER registers. When *PSC is true, the
DESER register is set to 255 and the SRER and ESER registers are set to 0 at
power-on. When *PSC is false, the current values in the DESER, SRER, and
ESER registers are preserved in nonvolatile memory when power is shut off and
are restored at power-on. For a complete discussion of the use of these registers,
see page 3–1.
Syntax
Arguments <NR1> = 0 sets the power-on status clear flag to false, disables the power-on clear
and allows the digitizing oscilloscope to possibly assert SRQ after power-on.
<NR1> 0 sets the power-on status clear flag true. Sending *PSC 1 therefore
enables the power-on status clear and prevents any SRQ assertion after power-
on. Using an out-of-range value causes an execution warning.
Examples *PSC 0
sets the power-on status clear flag to false.
*PSC?
might return the value 1, showing that the power-on status clear flag is set to
true.
*PUD
Sets or queries a string of Protected User Data. This data is protected by the
PASSWord command. You can modify it only by first entering the correct
password. The password is not necessary to query the data.
Group Miscellaneous
<Space> <Block>
*PUD
?
Syntax
Arguments
is a value in the range from 1 to 10, and specifies a setup storage location.
Using an out-of-range value causes an execution error (222, “Data out of range”).
Examples
restores the digitizing oscilloscope from a copy of the settings stored in memory
location 3.
Syntax
Arguments REF<x> is the location in internal reference memory where the waveform is
recalled from.
<file path> is a quoted string that defines the file name and path. Input the file
path using the form <drive>/<dir>/<filename>. <drive> and one or more
<dir>s are optional. If you do not specify them, the TDS will recall the
waveform from the default directory. <filename> stands for a filename of up to
8 characters followed by a period (“.”) and any 3-character extension. Do not use
wild card characters.
Group Miscellaneous
Syntax *RST
*RST
*RST returns the instrument settings to the factory defaults (see Appendix D:
Factory Initialization Settings).
RS232:BAUd
RS-232/Centronics Hardcopy Interface Only
Sets or queries RS-232-C interface transmission speed.
Group RS232
Arguments
where
can be 300, 600, 1200, 2400, 4800, 9600 or 19200.
RS232:HARDFlagging
RS-232/Centronics Hardcopy Interface Only
Sets or queries the input and output hard flagging over the RS-232 port. It uses
the RFR (Ready For Receive) and CTS (Clear To Send) lines to control data
transmission. On output, the oscilloscope transmits data only when CTS is
asserted. When CTS is not asserted, the oscilloscope stops transmitting data. On
input, it asserts RFR until the receive queue is full. Then it unasserts RFR to stop
transmission from an external printer. CTS remains unasserted until the receive
queue is not full. At that time, CTS is asserted again to restart transmission.
Group RS232
ON
<Space> OFF
<NR1>
RS232 : HARDFlagging
?
Examples RS232:HARDFLAGGING ON
turns on hard flagging.
RS232:PARity
RS-232/Centronics Hardcopy Interface Only
Sets or queries the parity used for all RS-232-C data transfers. Parity adds a bit
to the character sequence. When parity is odd or even, the digitizing oscilloscope
generates the selected parity on output and checks all input against the selected
parity. When parity is none, the digitizing oscilloscope performs no input parity
error checks and generates no output parity.
Group RS232
! "
Arguments indicates the parity bit is sent with even parity and bytes received are
expected to have even parity.
indicates the parity bit is sent with odd parity and bytes received are
expected to have odd parity.
indicates that no parity bit is sent and none are expected.
Examples
sets the parity to even.
RS232:SOFTFlagging
RS-232/Centronics Hardcopy Interface Only
Sets or queries the input and output soft flagging over the RS-232 port. It stops
transmitting data any time it receives an XOFF (DC3) character. It sends an
XOFF character when its 512 byte input buffer has 80 free bytes. The digitizing
oscilloscope begins transmitting data again when it receives an XON (DC1)
character. It sends XON when its input buffer has 100 free bytes.
Group RS232
Examples RS232:SOFTFLAGGING ON
turns on soft flagging.
RS232:STOPBits
RS-232/Centronics Hardcopy Interface Only
Sets or queries the number of transmission stop bits sent with each character to
identify the end of data for that character.
Group RS232
<Space> <NR1>
RS232 : STOPBits
?
Arguments <NR1> is 1 or 2.
Group RS232
Syntax RS232?
RS232 ?
Arguments None
Arguments <NR1> is a value in the range from 1 to 10 and specifies a location. Using an
out-of-range value causes an execution error. Any settings that have been stored
previously at this location will be overwritten.
Examples *SAV 2
saves the current settings in memory location 2.
<NR1>
SAVe : SETUp <Space>
<file path>
Arguments <NR1> is a value in the range from 1 to 10 and specifies a location. Using an
out-of-range value causes an execution error. Any settings that have been stored
previously at this location will be overwritten.
<file path> (available on instruments with the Option 1F File System) is a
quoted string that defines the file name and path. Input the file path using the
form <drive>/<dir>/<filename>. <drive> and one or more <dir>s are
optional. If you do not specify them, the TDS will write the file to the default
directory. <filename> stands for a filename of up to 8 characters followed by a
period (“.”) and the 3-char extension “SET”. The TDS will generate an error if
you use any other extension for saving a setup.
Settings saved in one TDS oscilloscope may or may not work on a different
model TDS or on the same model TDS with a different version of firmware.
Examples SAVE:SETUP 5
saves the current front-panel setup in memory location 5.
SAVE:SETUP TEK00000.SET
saves the current front-panel setup to the file TEK00000.SET in the default
directory and on the default drive.
REF <x>
SAVe : WAVEform <Space> <wfm> ,
<file path>
Arguments <wfm> is CH<x>, MATH<x>, or REF<x>, and is the waveform that will be
saved.
REF<x> is the location where the waveform will be stored.
<file path> (on instruments with the Option 1F File System) is a quoted string
that defines the file name and path. Input the file path using the form
<drive>/<dir>/<filename>. <drive> and one or more <dir>s are optional. If
you do not specify them, the digitizing oscilloscope will write the file to the
default directory. <filename> stands for a filename of up to 8 characters
followed by a period (“.”) and the proper 3-character extension. Internal format
waveforms use the “WFM” extension. The TDS 4XXA and TDS 7XXA can also
use a “CSV” extension for spreadsheet format files or a “DAT” extension for
MathCad format files. The digitizing oscilloscope will generate an error if you
use any other extension for saving a waveform.
SAVe:WAVEform:FILEFormat
TDS 4XXA & 7XXA Only
Specifies the file format for saved waveforms.
INTERNal
SPREADSheet
<Space>
MATHCad
SAVe : WAVEFORM : FILEFormat
?
Arguments INTERNal specifies the internal format. Internal format files have a .wfm
extension.
SPREADSheet specifies the spreadsheet format. Spreadsheet format files have a
.CSV extension.
MATHCad specifies the MathCad format. MathCad format files have a .DAT
extension.
Group Vertical
Syntax SELect?
SELect ?
Examples SELECT?
might return :SELECT:CH1 1;CH2 0;CH3 0;CH4 0;MATH1 0;
MATH2 0;MATH3 0;REF1 0;REF2 0;REF3 0;REF4 0;SELECT CH1
SELect:<wfm>
Controls the display and selection of waveforms. There can be up to eleven
waveforms displayed at one time, but only one waveform can be selected at a
time. The selected waveform is the waveform that was most recently turned on.
This command is equivalent to pressing a front-panel CH or MORE button.
<wfm> can be CH<x>, MATH<x>, or REF<x>.
Group Vertical
Syntax
Examples
turns the channel 2 display on and selects channel 2.
returns either or , indicating whether the REF1 waveform is selected.
SELect:CONTROl
Sets or queries the waveform that is currently affected by the cursor and vertical
commands.
Group Vertical
Syntax
<Space> <wfm>
SELect : CONTROl
?
Examples SELECT:CONTROL?
might return CH1 as the selected waveform.
Group Miscellaneous
Syntax SET?
SET ?
NOTE. The SET? query always returns a string with command headers,
regardless of the setting of the HEADer command. This is because the returned
string is intended to be able to be sent back to the digitizing oscilloscope as a
command string. The VERBose command can still be used to specify whether the
returned headers should be abbreviated or full length.
Examples SET?
a partial return string may look like this:
:ACQUIRE:STOPAFTER RUNSTOP;STATE 1;MODE SAMPLE;NUMENV 10;NUMAVG
16;REPET 1;:APPMENU:TITLE "Application Menu";LABEL:BOTTOM1
"";BOTTOM2 "";BOTTOM3 "";BOTTOM4 "";BOTTOM5 "";BOTTOM6 "";BOTTOM7
"";RIGHT1 "";RIGHT2 ""; RIGHT3 "";RIGHT4 "";RIGHT5 "";:HEADER
1;:VERBOSE 1;:ALIAS:STATE 0;:DISPLAY:FORMAT YT;STYLE VECTORS;
FILTER SINX;PERSISTENCE 500.0E-3;GRATICULE FULL;TRIGT 1;INTENSIĆ
TY:OVERALL 85;WAVEFORM 75;TEXT 60;CONTRAST 150;:MESSAGE:SHOW
*SRE
(Service Request Enable) sets and queries the bits in the Service Request Enable
Register (SRER). For a complete discussion of the use of these registers, see
page 3–1.
Related Commands *CLS, DESE, *ESE, *ESR?, EVENT?, EVMSg?, FACtory, *PSC, *STB?
<Space> <NR1>
*SRE
?
Arguments <NR1> is a value in the range from 0 to 255. The binary bits of the SRER are set
according to this value. Using an out-of-range value causes an execution error.
The power-on default for SRER is 0 if *PSC is 1. If *PSC is 0, the SRER
maintains its value through a power cycle.
Examples *SRE 48
sets the bits in the SRER to 00110000 binary.
*SRE?
might return a value of 32, showing that the bits in the SRER have the binary
value 00100000.
Related Commands *CLS, DESE, *ESE, *ESR?, EVENT?, EVMSg?, FACtory, *SRE
Syntax
Returns
Examples
might return the value , showing that the SBR contains the binary value
01100000.
TEKSecure
Initializes both waveform and setup memories. This overwrites any previously
stored data.
TEKSecure writes zeros in all waveform reference memory, regardless of
selected record length, and puts all setups in the factory init state.
TEKSecure then verifies that the waveform and setup memory are in the desired
state. It asserts a pass or a fail event on completion.
Group Miscellaneous
Syntax
TIMe
Sets or queries the time that the digitizing oscilloscope can display.
Group Miscellaneous
<Space> <QString>
TIMe
?
TRIGger
Forces a trigger event to occur, and the TRIGger query returns the current trigger
parameters.
Group Trigger
<Space> FORCe
TRIGger
?
Arguments FORCe creates a trigger event. If TRIGger:STATE is REAdy, the acquisition will
complete, otherwise this command will be ignored. This is equivalent to pressing
the front-panel FORCE TRIGGER button.
TRIGger:DELay
Sets the delayed trigger level and returns the current delayed trigger parameters.
Group Trigger
<Space> SETLevel
TRIGger : DELay
?
Arguments SETLevel sets the delayed trigger level to half way between the MIN and MAX
amplitudes of the trigger source input. This is equivalent to selecting Set to 50%
in the Delayed Edge Level side menu.
TRIGger:DELay:BY
Selects whether the delayed trigger occurs after a specified number of events or a
specified period of time after the main trigger. This is equivalent to setting Delay
by in the Delayed Trig menu.
Group Trigger
Syntax TRIGger:DELay:BY
{ EVENTS | EVENTSTime | TIMe }
TRIGger:DELay:BY
{ EVENTS | TIMe | EVENTSTime (TDS 5XXA, 6XXA, & 7XXA only) |
RUNSAfter (TDS 5XXA, 6XXA, & 7XXA only)}
TRIGger:DELay:BY?
EVENTS
TIMe
EVENTSTime
<Space>
RUNSAfter
TRIGger : DELay : BY
?
Arguments EVENTS sets the delayed trigger to occur after a set number of trigger events after
the main trigger. The number of events is specified by
TRIGger:DELay:EVENTS:COUNt.
TIMe sets the delayed trigger to be ready to occur a set time after the main trigger
event. The time period is specified by TRIGger:DELay:TIMe.
EVENTSTime (TDS 5XXA, 6XXA, & 7XXA only) sets a specified time after a
specified number of delay trigger trigger events — after the main trigger event.
For example in examining a pulse train, you might use the main trigger to detect
the start of the train, then use the delay by events to go to the position of interest
within the pulse train, and then use the time delay to wait a specified time period
before starting the data acquisition.
RUNSAfter (TDS 5XXA, 6XXA, & 7XXA only) looks for a main trigger, then
waits a user-specified time, then starts acquiring data.
Group Trigger
% &
TRIGger:DELay:EDGE:COUPling
Selects the type of coupling for the delayed trigger. This command is equivalent
to selecting Coupling in the Delayed Trig menu.
Group Trigger
(
! (not on the TDS 684A & 7XXA) (
! (not on the TDS 684A &
7XXA) ( % % (TDS 684A & 7XXA only) ( %! )
%&
" #
% &
" #
!
$ !
% %
%!
TRIGger:DELay:EDGE:SLOpe
Selects either a rising or falling edge for the delayed trigger. This command is
equivalent to selecting Slope in the Delayed Trig menu.
Group Trigger
!
Arguments
specifies to trigger on the falling or negative edge of a signal.
specifies to trigger on the rising or positive edge of a signal.
Examples
might return
, indicating that the delayed trigger occurs on the rising edge.
TRIGger:DELay:EDGE:SOUrce
Selects the source for the delayed trigger. This command is equivalent to
selecting Source in the Delayed Trig menu.
Group Trigger
Syntax
"
# " (not available on TDS 520A &
524A) $ ! %
"
"
"
!
Arguments " specifies an external trigger using the Auxiliary Trigger Input
connector that is located on the rear panel of the instrument. The TDS 520A &
524A do not have an Auxiliary Trigger input and so do not support this
argument.
! specifies one of the input channels.
Examples
selects channel 1 as the input source for the delayed trigger.
Group Trigger
Syntax
"
Examples TRIGGER:DELAY:EVENTS?
might return :TRIGGER:DELAY:EVENTS:COUNT 2
TRIGger:DELay:EVENTS:COUNt
Sets or queries the number of events that must occur before the delayed trigger
occurs when TRIGger:DELay:BY is set to EVENTS. This is equivalent to
setting the Delay by Events count in the Delayed Edge Delay side menu.
Group Trigger
<Space> <NR1>
TRIGger : DELay : EVENTS : COUNt
?
Arguments <NR1> is the number of delayed edge trigger events. The TDS 4XXA range is 1
to (10E7 –1). The TDS 5XXA, 6XXA, and 7XXA range is 2 to 10E7.
Examples TRIGGER:DELAY:EVENTS:COUNT 4
specifies that the delayed trigger will occur four trigger events after the main
trigger.
TRIGGER:DELAY:EVENTS:COUNT?
might return 2, indicating that 2 events must occur after the main trigger before
the delayed trigger can occur.
TRIGger:DELay:LEVel
Selects the level of the delayed trigger. This command is equivalent to setting
LEVel in the Delayed Trig menu.
Group Trigger
Arguments
specifies a preset ECL level of –1.3 V.
specifies a preset TTL level of 1.4 V.
is the delayed trigger level, in volts.
TRIGger:DELay:TIMe
Sets or queries the delay time when HORizontal:DELay:MODe is set to
TRIGAfter. This command is identical to the HORizontal:DELay:TIMe:TRIG-
After command, and is equivalent to setting the Delay by Time value in the
Delayed Edge Delay side menu.
When HORizontal:DELay:MODe is set to RUNSAfter, the delay time is set by
the HORizontal:DELay:TIMe:RUNSAfter command.
Group Trigger
Examples
sets the delay time to 4 ms.
TRIGger:DELay:TYPe
Sets or queries the type of delayed trigger.
Group Trigger
Syntax
Arguments
is a normal trigger. A trigger event occurs when a signal passes through a
specified voltage level in a specified direction. Use the TRIGger:DELay:LEVel
and TRIGger:DELay:EDGE:SLOpe commands to set the voltage level and
direction respectively.
Examples
always returns
as the type of delayed trigger.
TRIGger:MAIn
Sets the main trigger level and returns the current main trigger parameters.
Group Trigger
Arguments sets the main trigger level to half way between the MIN and MAX
amplitudes of the trigger source input. This is equivalent to pressing the
front-panel SET LEVel TO 50% button.
Examples
sets the main trigger level mid way between MAX and MIN.
Group Trigger
Syntax
Examples
might return
TRIGger:MAIn:EDGE:COUPling
Sets or queries the type of coupling for the main edge trigger. This is equivalent
to setting Coupling in the Trigger menu.
Group Trigger
TRIGger:MAIn:EDGE:SLOpe
Selects a rising or falling slope for the main edge trigger. This is equivalent to
setting Slope in the Trigger menu.
Group Trigger
Arguments
specifies to trigger on the falling or negative edge of a signal.
specifies to trigger on the rising or positive edge of a signal.
Examples
TRIGger:MAIn:EDGE:SOUrce
Sets or queries the source for the main edge trigger. This is equivalent to setting
Source in the Trigger menu.
Group Trigger
Syntax
# " (not available on TDS 520A &
TDS 524A) $ ! $
%
"
!
Examples
Group Trigger
Syntax TRIGger:MAIn:HOLdoff?
Examples TRIGGER:MAIN:HOLDOFF?
for the TDS 684A and 7XXA, might return
:TRIGGER:MAIN:HOLDOFF:TIME 250.0E-9;BY DEFAULT
or, for other TDS 4XXA, 5XXA, and 6XXA, might return
:TRIGGER:MAIN:HOLDOFF:VALUE 0.
Group Trigger
Syntax TRIGger:MAIn:HOLdoff:ACTUal?
Examples TRIGGER:MAIN:HOLDOFF:ACTUAL?
might return 4E–6 showing the holdoff time is set to 4 ms.
TRIGger:MAIn:HOLdoff:BY
TDS 684A & 7XXA Only
Sets or queries the main trigger holdoff default. This is equivalent to selecting
Mode & Holdoff from the main Trigger menu, then setting Default Holdoff or
Holdoff (Time) in the resulting side menu.
Group Trigger
Examples
set the holdoff to the by time setting. This enables the user to set the holdoff
time.
TRIGger:MAIn:HOLdoff:TIMe
TDS 684A & 7XXA Only
Sets or queries the main trigger holdoff time. This is equivalent to setting
Holdoff Time in the Mode & Holdoff side menu.
Group Trigger
Arguments holdoff time in seconds. The range is 250 ns to 12.0 seconds.
TRIGger:MAIn:HOLdoff:VALue
Not in TDS 684A & 7XXA
Sets or queries the main trigger holdoff value. This is equivalent to setting
Holdoff in the Mode & Holdoff side menu.
Group Trigger
#
$ ! " %
TRIGger:MAIn:LEVel
Sets the main trigger level. This command is equivalent to adjusting the
front-panel TRIGGER MAIN LEVEL knob.
Group Trigger
ECL
<Space> TTL
<NR3>
TRIGger : MAIn : LEVel
?
Examples TRIGGER:MAIN:LEVEL?
might return TTL, indicating that the main edge trigger is set to 1.4 V.
Group Trigger
Syntax TRIGger:MAIn:LOGIc?
Examples TRIGGER:MAIN:LOGIC?
might return :TRIGGER:MAIN:LOGIC:CLASS PATTERN;
FUNCTION AND;WHEN TRUE;THRESHOLD:CH1 0;CH2 0;CH3 0;
CH4 0;:TRIGGER:MAIN:LOGIC:INPUT:CH1 HIGH;CH2 X;
CH3 X;:TRIGGER:MAIN:LOGIC:PATTERN:INPUT:CH4 X;
:TRIGGER:MAIN:LOGIC:STATE:INPUT:CH4 RISE
TRIGger:MAIn:LOGIc:CLAss
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries the type of main logic trigger. This command is equivalent to
selecting Class in the Trigger menu when the Type is set to Logic.
Group Trigger
!
""
#!
Arguments #! means that the instrument triggers when the specified logical combina-
tions of channels 1, 2, 3, and 4 are met.
means that the instrument triggers when the specified conditions of
channels 1, 2, and 3 are met after the channel 4 condition is met.
means the oscilloscope will trigger on the setup and hold violations
between a data source and a clock source (TDS 684A & 7XXA only).
TRIGger:MAIn:LOGIc:FUNCtion
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries the logical combination of the input channels for the main logic
trigger.
When TRIGger:MAIn:LOGIc:CLAss is PATtern, this command applies to
channels 1, 2, 3, and 4. When TRIGger:MAIn:LOGIc:CLAss is STATE, only
channels 1, 2, and 3 are logically combined. This command is equivalent to
selecting the function in the Logic Pattern Function side menu.
Group Trigger
$
%
" &!#"
Arguments
specifies that the instrument will trigger if all the conditions are true.
specifies that the instrument will trigger if any of the conditions are false.
specifies that the instrument will trigger if all of the conditions are false.
specifies that the instrument will trigger if any of the conditions are true.
Group Trigger
%
" '&
TRIGger:MAIn:LOGIc:INPut:CH<x>
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries the main logic trigger input for the specified channel. The
channel is specified by <x> and is 1, 2, or 3. This is equivalent to setting the
inputs in the Logic Pattern Inputs side menu.
Group Trigger
<Space> LOW
X
INPut : CH <x>
?
TRIGger:MAIn:LOGIc:PATtern:INPut:CH4
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries the main logic trigger input for channel 4. These are the inputs
used when TRIGger:MAIn:LOGIc:CLAss is set to PATtern. This is equivalent to
setting the channel 4 input in the Logic Pattern Inputs side menu.
Group Trigger
!
"!
TRIGger:MAIn:LOGIc:PATtern:WHEn
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries a condition for generating a main logic pattern trigger.
Group Trigger
FALSe
<Space> LESSThan
MOREThan
: WHEn
?
Arguments TRUe specifies the trigger to occur when the pattern becomes true.
FALSe specifies the trigger to occur when the pattern becomes false.
LESSThan specifies trigger to occur if the specific pattern is true less than the
LESSLimit. (see Figure 2–5 and TRIGger:MAIn:LOGic:PATĆ
tern:WHEn:LESSLimit) Trigger is evaluated at the true-false transition.
MOREThan specifies trigger to occur if the specific pattern is true longer than the
more limit. (see Figure 2–5 and TRIGger:MAIn:LOGic:PATtern:WHEn:MORELiĆ
mit) Trigger is evaluated at the true-false transition.
to MORELimit LESSLimit
Specified Pattern
Result
TRIGger:MAIn:LOGIc:PATtern:WHEn:LESSLimit
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries the maximum time the selected pattern may be true and still
generate a main logic pattern trigger.
Group Trigger
#
!
%
TRIGger:MAIn:LOGIc:PATtern:WHEn:MORELimit
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries the minimum time the selected pattern may be true and still
generate a main logic pattern trigger.
Group Trigger
#
!
%
TRIGger:MAIn:LOGIc:SETHold:CLOCk:EDGE
TDS 684A & 7XXA only
Sets or queries the clock edge polarity for setup and hold violation triggering.
This is equivalent to selecting Define Clock from the main Trigger menu and
Polarity in the resulting side menu.
Group Trigger
TRIGger:MAIn:LOGIc:SETHold:CLOCk:LEVel
TDS 684A & 7XXA only
Sets or queries the main logic setup/hold clock voltage trigger level. This is
equivalent to selecting Levels from the main Trigger menu and Clock Level in
the resulting side menu.
Group Trigger
<Space> TTL
<NR3>
SETHold : CLOCk : LEVel
?
TRIGger:MAIn:LOGIc:SETHold:CLOCk:SOUrce
TDS 684A & 7XXA Only
Sets or queries the source for the clock for the main logic trigger setup/hold
input. The channel is specified by <x> and is 1, 2, 3, or 4. This is equivalent to
to selecting Define Clock from the main Trigger menu and CH1, CH2, CH3, or
CH4 in the resulting side menu.
Group Trigger
#
$
Arguments % specifies one of the input channels (CH1, CH2, CH3, or CH4).
TRIGger:MAIn:LOGIc:SETHold:DATa:LEVel
TDS 684A & 7XXA only
Sets or queries the main logic set/hold data level. This is equivalent to to
selecting Levels from the main Trigger menu and Data Level in the resulting
side menu.
Group Trigger
<Space> TTL
<NR3>
SETHold : DATa : LEVel
?
TRIGger:MAIn:LOGIc:SETHold:DATa:SOUrce
TDS 684A & 7XXA Only
Sets or queries the data channel for the main logic trigger set/hold input. The
channel is specified by <x> and is 1, 2, 3, or 4. This is equivalent to to selecting
Data Source from the main Trigger menu and CH1, CH2, CH3, or CH4 in the
resulting side menu.
Group Trigger
<Space> CH <X>
: DATa : SOUrce
?
Arguments CH<x> specifies one of the input channels (CH1, CH2, CH3, or CH4)
TRIGger:MAIn:LOGIc:SETHold:HOLDTime
TDS 684A & 7XXA only
Sets or queries the main logic trigger hold time. This is equivalent to to selecting
Setup/Hold Times from the main Trigger menu and Hold Time in the resulting
side menu.
Group Trigger
<Space> <NR3>
Arguments <NR3> specifies the hold time setting in seconds. Positive values for hold time
occur after the clock edge. Negative values occur before the clock edge.
TRIGger:MAIn:LOGIc:SETHold:SETTime
TDS 684A & 7XXA only
Sets or queries the main logic trigger set time. This is equivalent to to selecting
Setup/Hold Times from the main Trigger menu and Setup Time in the resulting
side menu.
Group Trigger
<Space> <NR3>
Arguments <NR3> specifies the setup time setting in seconds. Positive values occur before
the clock edge. Negative values occur after the clock edge.
TRIGger:MAIn:LOGIc:STATE:INPut:CH4
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries the main logic trigger input for channel 4. This input is used
when TRIGger:MAIn:LOGIc:CLAss is set to STATE. This is equivalent to
setting the channel 4 input in the Logic Pattern Inputs side menu.
Group Trigger
TRIGger:MAIn:LOGIc:STATE:WHEn
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries the main logic state trigger.
Group Trigger
TRUe
<Space>
FALSe
: WHEn
?
Arguments TRUe specifies the trigger to occur when the condition is met on the fourth
channel and the pattern of the first three channels are at the desired states.
FALSe
Group Trigger
Syntax TRIGger:MAIn:LOGIc:THReshold?
Examples TRIGGER:MAIN:LOGIC:THRESHOLD?
might return :TRIGGER:MAIN:LOGIC:THRESHOLD:CH1 0;CH2 0;
CH3 0;CH4 0
TRIGger:MAIn:LOGIc:THReshold:CH<x>
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries the main logic trigger threshold voltage for the channel specified
by <x>. This is equivalent to setting the thresholds in the Logic State Threshold
and Logic Pattern Threshold side menus.
Group Trigger
<Space> <NR3>
CH <x>
?
Examples TRIGGER:MAIN:LOGIC:THRESHOLD:CH1 .5
sets the main logic trigger threshold for channel 1 to .5 volts.
TRIGger:MAIn:LOGIc:WHEn
TDS 5XXA, 6XXA, & 7XXA Only
Specifies whether the main logic trigger occurs when the specified state goes true
or false when TRIGger:MAIn:LOGIc:CLAss is set to PATtern. This is equivalent
to selecting Trigger When in the Trigger menu.
Group Trigger
TRIGger:MAIn:MODe
Sets or queries the main trigger mode. This command is equivalent to selecting
Mode & Holdoff in the Trigger menu.
Group Trigger
Arguments generates a trigger if a trigger is not detected within a specific time period.
waits for a valid trigger event.
Group Trigger
Syntax TRIGger:MAIn:PULse?
Examples TRIGGER:MAIN:PULSE?
might return :TRIGGER:MAIN:PULSE:CLASS GLITCH;SOURCE CH1;
GLITCH:WIDTH 2.0E-9;FILTER ACCEPT;POLARITY POSITIVE;:TRIGGER:
MAIN:PULSE:RUNT:POLARITY POSITIVE;THRESHOLD:HIGH 2.00E+0;LOW
800.0E-3;:TRIGGER:MAIN:PULSE:WIDTH:LOWLIMIT 2.0E-9;HIGHLIMIT
2.0E-9;WHEN WITHIN;POLARITY POSITIVE as the current main pulse trigger
parameters.
TRIGger:MAIn:PULse:CLAss
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries the type of pulse to trigger on. This command is equivalent to
selecting Class in the Trigger menu.
Group Trigger
GLItch
TRIGger : MAIn : PULse :
RUNT
<Space> WIDth
SLEWRate
CLAss
?
Arguments GLItch triggers when a pulse is found that is of the specified polarity and width.
These are set with the commands TRIGger:MAIn:PULse:GLItch:POLarity and
TRIGger:MAIn:PULse:GLItch:WIDth.
RUNT triggers when a pulse crosses the first preset voltage threshold but does not
cross the second preset threshold before recrossing the first. The thresholds are
set with the TRIGger:MAIn:PULse:RUNT:THReshold:LOW and TRIG-
ger:MAIn:PULse:RUNT:THReshold:HIGH commands. The crossing can be
either positive or negative as specified by TRIGger:MAIn:PULse: RUNT:PO-
Larity.
WIDth triggers when a pulse is found that has the specified polarity and is either
inside or outside the limits as specified by TRIGger:MAIn:PULse: WIDth:LOW-
Limit and TRIGger:MAIn:PULse:WIDth:HIGHLimit. The polarity is selected
using the TRIGger:MAIn:PULse:WIDth:POLarity command.
SLEwrate triggers when the slew rate of the source violates the specified
conditions (TDS 684A & 7XXA only).
Group Trigger
Syntax TRIGger:MAIn:PULse:GLItch?
Examples TRIGGER:MAIN:PULSE:GLITCH?
might return :TRIGGER:MAIN:PULSE:CLASS GLITCH;SOURCE CH1;
GLITCH:WIDTH 2.0E-9;FILTER ACCEPT;POLARITY POSITIVE.
TRIGger:MAIn:PULse:GLItch:FILTer
TDS 5XXA, 6XXA, & 7XXA Only
Controls glitch detection. This command is equivalent to selecting Filter in the
Trigger menu.
Group Trigger
ACCept
TRIGger : MAIn : PULse : <Space>
REJect
GLItch : FILTer
?
Arguments ACCept specifies that the digitizing oscilloscope will trigger only on pulses that
are narrower than the specified width when the main trigger type is set to pulse
glitch. The width is specified using TRIGger:MAIn:PULse:GLItch:WIDth
command.
REJect specifies that the digitizing oscilloscope will trigger only on pulses that
are wider than the specified width when the main trigger type is set to pulse
glitch. The width is specified using TRIGger:MAIn:PULse:GLItch:WIDth
command.
Examples TRIGGER:MAIN:PULSE:GLITCH:FILTER?
returns either ACCept or REJect, indicating whether glitches are filtered.
TRIGger:MAIn:PULse:GLItch:POLarity
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries the polarity for the main pulse glitch trigger. This command is
equivalent to selecting Polarity & Width in the Trigger menu.
Group Trigger
<Space> NEGAtive
POSITIVe
GLItch : POLarity
?
TRIGger:MAIn:PULse:GLItch:WIDth
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries the width for the main pulse glitch trigger. This command is
equivalent to selecting Polarity & Width in the Trigger menu.
Group Trigger
<Space> <NR3>
Group Trigger
Syntax TRIGger:MAIn:PULse:RUNT?
Examples TRIGGER:MAIN:PULSE:RUNT?
might return :TRIGGER:MAIN:PULSE:RUNT:POLARITY POSITIVE;THRESHĆ
OLD:HIGH 2.00E+0;LOW 800.0E-3.
TRIGger:MAIn:PULse:RUNT:POLarity
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries the polarity for the main pulse runt trigger. This command is
equivalent to selecting Polarity in the Trigger menu.
Group Trigger
<Space> NEGAtive
POSITIVe
RUNT : POLarity
?
Arguments NEGAtive indicates that the falling edge crosses the high threshold and the rising
edge recrosses the high threshold without either edge ever crossing the low
threshold.
POSITIVe indicates that the rising edge crosses the low threshold and the falling
edge recrosses the low threshold without either edge ever crossing the high
threshold.
EITher indicates either NEGAtive or POSITIVe polarity.
Group Trigger
Syntax TRIGger:MAIn:PULse:RUNT:THReshold?
Examples TRIGGER:MAIN:PULSE:RUNT:THRESHOLD?
might return :TRIGGER:MAIN:PULSE:RUNT:THRESHOLD:HIGH 2.00E+0;LOW
800.0E-3.
TRIGger:MAIn:PULse:RUNT:THReshold:BOTh
TDS 684A & 7XXA Only
Sets or queries the trigger level switching thresholds for the main pulse runt
trigger. This command is equivalent to setting Set to TTL or Set to ECL in the
Main Pulse Runt Trigger menu’s Thresholds side menu item.
Group Trigger
TTL
: BOTh <Space>
ECL
Arguments TTL sets the upper threshold to 1.8 V and the lower threshold to 0.8 V.
ECL sets the upper threshold to –1.1 V and the lower threshold to –1.5 V.
TRIGger:MAIn:PULse:RUNT:THReshold:HIGH
TDS 5XXA 6XXA, & 7XXA Only
Sets or queries the upper limit for the main pulse runt trigger. This command is
equivalent to setting the threshold in the Pulse Runt Threshold side menu.
Group Trigger
TRIGger:MAIn:PULse:RUNT:THReshold:HIGH?
<Space> <NR3>
HIGH
?
TRIGger:MAIn:PULse:RUNT:THReshold:LOW
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries the lower limit for the main pulse runt trigger. This command is
equivalent to setting the threshold in the Pulse Runt Threshold side menu.
Group Trigger
<Space> <NR3>
LOW
?
TRIGger:MAIn:PULse:RUNT:WHEn
TDS 684A & 7XXA Only
Sets or queries the type of pulse width the trigger checks for when it uncovers a
runt. This is equivalent to to selecting Trigger When from the main Trigger’s
Pulse, Runt menu and Occurs or Wider Than in the resulting side menu.
Group Trigger
"
!
Examples
sets the runt trigger to occur when the oscilloscope detects a runt in a pulse wider
than the specified width.
TRIGger:MAIn:PULse:RUNT:WIDth
TDS 684A & 7XXA Only
Sets or queries the minimum width for a valid main pulse runt trigger. This
command is equivalent to entering a value in the Trigger menu’s Wider Than
side menu.
Group Trigger
<Space> <NR3>
WIDth
?
TRIGger:MAIn:PULse:SLEWRate:DELTATime
TDS 684A & 7XXA Only
Sets or queries the delta time used in calculating the slew rate trigger. This is
equivalent to to selecting Trigger When from the main Trigger’s Slew Rate
menu and Delta Time in the resulting side menu.
Group Trigger
<Space> <NR3>
DELTATime
?
TRIGger:MAIn:PULse:SLEwrate:POLarity
TDS 684A & 7XXA Only
Sets or queries the polarity for the main pulse slew rate trigger. This command is
equivalent to selecting Polarity in the Trigger menu with Type set to SlewRate.
Group Trigger
<Space> NEGAtive
POSITIVe
SLEwrate : POLarity
?
Arguments NEGAtive indicates that a pulse edge must traverse from the upper (most
positive) to lower (most negative) level for slew rate triggering to occur.
POSITIVe indicates that a pulse edge must traverse from the lower (most
negative) to higher (most positive) level for slew rate triggering to occur.
EITher indicates either NEGAtive or POSITIVe polarity.
Group Trigger
Syntax TRIGger:MAIn:PULse:SLEwrate:SLEwrate?
Examples TRIGGER:MAIN:PULSE:SLEWRATE:SLEWRATE?
Returns the slew rate. It is given as an appropriate amount of volts per second.
For example, 1.2E+6 would represent a slew rate of 1.2 megavolts/second.
TRIGger:MAIn:PULse:SLEwrate:THReshold:BOTh
TDS 684A & 7XXA Only
Sets the upper and lower slew rate trigger thresholds. This is equivalent to to
selecting Thresholds from the main Trigger’s Slew Rate menu and entering a
value in the resulting side menu’s High Threshold or Low Threshold items.
Group Trigger
TTL
BOTh
ECL
Arguments TTL sets the upper threshold to 1.8 V and the lower threshold to 0.8 V.
ECL sets the upper threshold to –1.1 V and the lower threshold to –1.5 V.
TRIGger:MAIn:PULse:SLEwrate:THReshold:HIGH
TDS 684A & 7XXA Only
Sets or queries the upper (most positive) limit of the two threshold levels that a
pulse edge must traverse for the slew rate trigger to occur. This command is
equivalent to setting the higher threshold in the Pulse Slew Rate Trigger’s
Thresholds side menu item.
Group Trigger
<Space> <NR3>
HIGH
?
TRIGger:MAIn:PULse:SLEwrate:THReshold:LOW
TDS 684A & 7XXA Only
Sets or queries the lower (most negative) limit of the two threshold levels that a
pulse edge must traverse for the slew rate trigger to occur. This command is
equivalent to setting the lower threshold in the Pulse Slew Rate Trigger’s
Thresholds side menu item.
Group Trigger
<Space> <NR3>
LOW
?
TRIGger:MAIn:PULse:SLEwrate:WHEn
TDS 684A & 7XXA Only
Sets or queries whether to check for a slewing signal that is faster or slower than
the specified delta time. This is equivalent to to selecting Trigger When from
the main Trigger’s Slew Rate menu and entering a value in the resulting side
menu’s Trig if Less Than or Trig if Greater Than items.
Group Trigger
FASTERthan
TRIGger : MAIn : PULse : <Space>
SLOWERthan
SLEwrate : WHEN
?
Arguments FASTERthan sets the trigger to occur when the slew is faster than the set
volts/second rate.
SLOWERthan sets the trigger to occur when the slew is slower than the set
volts/second rate.
TRIGger:MAIn:PULse:SOUrce
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries the source for the main pulse trigger. This is equivalent to
selecting the source in the Pulse Runt Source side menu.
Group Trigger
<Space> CH <X>
Group Trigger
Syntax TRIGger:MAIn:PULse:WIDth?
Examples TRIGGER:MAIN:PULSE:WIDTH?
might return :TRIGGER:MAIN:PULSE:WIDTH:LOWLIMIT 2.0E-9;HIGHLIMIT
2.0E-9;WHEN WITHIN;POLARITY POSITIVE as the current main pulse trigger
parameters.
TRIGger:MAIn:PULse:WIDth:HIGHLimit
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries the upper limit for the main pulse width trigger. This is equiva-
lent to setting the Upper Limit in the Pulse Width Trig When side menu.
Group Trigger
<Space> <NR3>
HIGHLimit
?
TRIGger:MAIn:PULse:WIDth:LOWLimit
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries the lower limit for the main pulse width trigger. This is equiva-
lent to setting the Lower Limit in the Pulse Width Trig When side menu.
Group Trigger
<Space> <NR3>
LOWLimit
?
TRIGger:MAIn:PULse:WIDth:POLarity
TDS 5XXA, 6XXA, & 7XXA Only
Sets or queries the polarity for the main pulse width trigger. This is equivalent to
selecting the polarity in the Pulse Width Polarity side menu.
Group Trigger
NEGAtive
<Space>
POSITIVe
TRIGger:MAIn:PULse:WIDth:WHEn
TDS 5XXA, 6XXA, & 7XXA Only
Selects the condition when the trigger occurs. This is equivalent to selecting the
condition in the Pulse Width Trig When side menu.
Group Trigger
OUTside
<Space>
WIThin
WHEn
?
Arguments OUTside specifies a trigger when the duration of the pulse is greater than the
high limit or less than the low limit specified. The high and low limits are
specified with the TRIGger:MAIn:PULse:WIDth:HIGHLimit and
TRIGger:MAIn:PULse:WIDth:LOWLimit commands respectively.
WIThin specifies a trigger when the duration of the pulse is within the high and
low limits. The high and low limits are specified with the
TRIGger:MAIn:PULse:WIDth:HIGHLimit and
TRIGger:MAIn:PULse:WIDth:LOWLimit commands respectively.
Examples TRIGGER:MAIN:PULSE:WIDTH:WHEN?
returns either OUTSIDE or WITHIN, indicating the conditions for generating a
pulse trigger.
TRIGger:MAIn:TYPe
Sets or queries the type of main trigger. This is equivalent to setting Type in the
Trigger menu.
Group Trigger
EDGE
LOGIc
<Space> PULse
VIDeo
TRIGger : MAIn : TYPe
?
Arguments EDGE is a normal trigger. A trigger event occurs when a signal passes through a
specified voltage level in a specified direction and is controlled by the TRIG-
ger:MAIn:EDGE commands.
LOGIc (TDS 5XXA, 6XXA, & 7XXA only) specifies that a trigger occurs when
specified conditions are met and is controlled by the TRIGger:MAIn:LOGIc
commands.
PULse (TDS 5XXA, 6XXA, & 7XXA only) specifies that a trigger occurs when
a specified pulse is found and is controlled by the TRIGger:MAIn:PULse
commands.
VIDeo (option 05 only) specifies that a trigger occurs when a specified signal is
found and is controlled by the TRIGger:MAIn:VIDeo commands.
Examples TRIGGER:MAIN:TYPE?
might return PULSE indicating that the main trigger type is a pulse trigger.
Group Trigger
Syntax TRIGger:MAIn:VIDeo?
Examples TRIGGER:MAIN:VIDEO?
might return: NTS;CH1;NEGA;NUMER;2;1;COLO;COLO;787;
59.94E+0;1050;2;890.0E-9;3.56E-6;15.00E-6;11.56E-6;
15.89E-6 as the current main video trigger parameters.
TRIGger:MAIn:VIDeo:BY
TDS 4XXA Option 5 Only
Sets or queries the video trigger delay mode. This is equivalent to using the
Video TV Delay Mode side menu.
Group Trigger
<Space> LINES
LINE
TRIGger:MAIn:VIDeo:FIELD
TDS 4XXA Option 5 Only
Sets or queries the field the video trigger acts on. This is equivalent to using the
Video Scan side menu when Class is NOT set to Custom.
Group Trigger
argument, it will convert it to ODD. The TDS 4XXA will not output this
argument in response to a query.
FIELD2 specifies interlaced video field 2. For the TDS 4XXA, this argument is
available only for backward compatibility. If the TDS 4XXA receives this
argument, it will convert it to EVEN. The TDS 4XXA will not output this
argument in response to a query.
FIELDEither specifies alternating both video field 1 and video field 2. For the
TDS 4XXA, this argument is available only for backward compatibility. If the
TDS 4XXA receives this argument, it will convert it to ALL. The TDS 4XXA
will not output this argument in response to a query.
TRIGger:MAIn:VIDeo:FIELD
TDS 5XXA, 6XXA, & 7XXA Option 5 Only
Sets or queries the field the video trigger acts on. This is equivalent to pressing
Field in the video main menu, then Field in the side menu, and entering a value
with the keypad or general purpose knob.
Group Trigger
Arguments specifies the video (color) field. For example, specifies interlaced video
field one and specifies interlaced video field two.
PAL signals have 1 to 8 fields, HDTV signals have 1 or 2, and FlexFormat
supports 1 or 2.
Examples
selects field 1.
TRIGger:MAIn:VIDeo:FIELDType
TDS 5XXA, 6XXA, & 7XXA Option 5 Only
Sets or queries the field the video trigger acts on. This is equivalent to pressing
Field in the video main menu and then Field, Odd, Even or All in the side
menu.
Group Trigger
NUMERic
TRIGger : MAIn : VIDeo :
ALL
<Space> EVEN
ODD
FIELDType
?
Arguments NUMERic specifies a selected line in the selected field. If you send this
command when the mode is MONO or SECAM, the digitizing oscilloscope will
generate an SRQ.
ALL specifies a selected line in all fields.
EVEN specifies a selected line in even fields.
ODD specifies a selected line in odd fields.
Group Trigger
Syntax TRIGger:MAIn:VIDeo:FLEXformat?
Examples TRIGGER:MAIN:VIDEO:FLEXFORMAT?
might return: 59.94E+0;1050;2;890.0E-9;3.56E-6;15.00E-6;11.56E-6;
15.89E-6 as the flexible-format video trigger parameters.
TRIGger:MAIn:VIDeo:FLEXformat:FIELDRATE
TDS 5XXA, 6XXA, & 7XXA Option 5 Only
Sets or queries the flexible-format video frames per second (e.g. 59.94 frames
per second for 1050 and 50 for 1250). This is equivalent to selecting Setup from
the video main menu (with FlexFmt as the Standard), Field Rate from the side
menu, and entering a value with the keypad or the general purpose knob.
Group Trigger
<Space> <NR3>
FIELDRATE
?
Examples TRIGGER:MAIN:VIDEO:FLEXFORMAT:FIELDRATE?
returns the specified field rate.
TRIGger:MAIn:VIDeo:FLEXformat:FIELDS
TDS 5XXA, 6XXA, & 7XXA Option 5 Only
Sets or queries the flexible-format video fields. This is equivalent to pressing
Setup from the video main menu (with FlexFmt as the Standard), Fields from
the side menu, and entering the value with the keypad or the general purpose
knob.
Group Trigger
!
Examples
!
returns the number of fields in the format.
TRIGger:MAIn:VIDeo:FLEXformat:LINES
TDS 5XXA, 6XXA, & 7XXA Option 5 Only
Sets or queries the flexible-format video lines in a frame. This is equivalent to
pressing Setup from the video main menu (with FlexFmt as the Standard),
Lines from the side menu, and entering the value with the keypad or the general
purpose knob.
Group Trigger
!
Examples
returns the specified number of lines.
TRIGger:MAIn:VIDeo:FLEXformat:NEGSyncwidth
TDS 5XXA, 6XXA, & 7XXA Option 5 Only
Sets or queries the flexible-format negative sync width. The HDTV horizontal
sync is a tri-level sync. The first of the two consecutive sync pulses used is
negative and the second is positive. The positive sync pulse starts on the rising
edge of the negative sync. The two pulses have the same width such that
specifying the negative pulse is only required. Setting the width is equivalent to
pressing Setup from the video main menu (with FlexFmt as the Standard),
Sync Width from the side menu, and entering the value with the keypad or the
general purpose knob.
Group Trigger
%
)#(!'
Examples
returns the specified flexible-format negative sync width.
TRIGger:MAIn:VIDeo:FLEXformat:V1STArttime
TDS 5XXA, 6XXA, & 7XXA Option 5 Only
Sets or queries the time from the positive edge of the tri-sync pulse for the last
line in the selected field (t0) to the leading edge (negative) of the first negative
vertical sync pulse. This is equivalent to selecting Setup from the video main
menu (with FlexFmt as the Standard), pressing the V1 Start Time in the side
menu, and entering a value with the keypad or the general purpose knob.
Group Trigger
!
!"
!""
Examples
returns the specified HDTV v1starttime.
TRIGger:MAIn:VIDeo:FLEXformat:V1STOptime
TDS 5XXA, 6XXA, & 7XXA Option 5 Only
Sets or queries the time from t0 to the trailing edge (positive) of the first negative
vertical sync pulse. This is equivalent selecting Setup from the video main menu
(with FlexFmt as the Standard), pressing the V1 Stop Time in the side menu,
and entering a value with the keypad or the general purpose knob.
Group Trigger
!
!"
"
TRIGger:MAIn:VIDeo:FLEXformat:V2STArttime
TDS 5XXA, 6XXA, & 7XXA Option 5 Only
Sets or queries the time from the positive edge of the tri-sync pulse for the last
line in the selected field (t0) to the leading edge (positive) of the second vertical
sync pulse. Note: the second pulse may be a negative pulse or the negative
portion of a tri-sync pulse that is within the last line (usually located at the ½
line point). This is equivalent to selecting Setup from the video main menu
(with FlexFmt as the Standard), pressing the V2 Start Time in the side menu,
and entering a value with the keypad or the general purpose knob.
Group Trigger
#
! !#$
"
#$$
TRIGger:MAIn:VIDeo:FLEXformat:V2STOptime
TDS 5XXA, 6XXA, & 7XXA Option 5 Only
Sets or queries the time from t0 to the trailing edge (positive) of the second
negative vertical sync pulse. This is equivalent selecting Setup from the video
main menu (with FlexFmt as the Standard), pressing the V2 Stop Time in the
side menu, and entering a value with the keypad or the general purpose knob.
Group Trigger
<Space> <NR3>
V2STOptime
?
Examples TRIGGER:MAIN:VIDEO:FLEXFORMAT:V2STOPTIME?
returns the specified v2 stoptime.
TRIGger:MAIn:VIDeo:HDTv
TDS 5XXA, 6XXA, & 7XXA Option 5 Only
Sets or queries the high definition TV frame rate. This is equivalent to toggling
HDTV from the Video main-menu Standard pop-up, pressing Format, and then
selecting a frame rate from the side menu.
Group Trigger
<Space> <NR1>
TRIGger : MAIn : VIDeo : HDTv
?
Arguments <NR1> specifies the frame rate. More precisely, 787 selects a 787/59.94/2:1
format. 1050 selects a 1050/59.94/2:1 format. 1125 selects a 1125/60/2:1 format.
1250 selects a 1250/50/2:1 format.
Group Trigger
Examples
might return
.
TRIGger:MAIn:VIDeo:HOLdoff:VALue
TDS 4XXA Option 5 Only
Sets or queries the video trigger holdoff value. This is equivalent to setting
Holdoff in the Mode & Holdoff side menu of the video trigger menu.
Group Trigger
"
TRIGger:MAIn:VIDeo:INTERLAce
TDS 4XXA Option 5 Only
Sets or queries the video trigger interlace format. This is equivalent to setting
Interlace in the Scan Rate and Interlace main menu of the video trigger menu
when Class is set to Custom.
Group Trigger
"
!
#"
TRIGger:MAIn:VIDeo:LINE
Option 5 Only
Sets or queries the video trigger in terms of a number of lines. This is equivalent
to pressing the Line (TV Delay Mode in the TDS 4XXA) item in the video
main menu, pressing Line in the side menu (if needed), and entering a value
with the keypad or the general purpose knob. The minimum line number is the
starting line in the field. For PAL, field 1 (odd fields in the TDS 4XXA) has line
2 (1 in the TDS 4XXA) as the minimum, and field 2 (even fields in the TDS
4XXA) has line 315 (314 in the TDS 4XXA).
Group Trigger
TRIGger:MAIn:VIDeo:LINES
TDS 4XXA Option 5 Only
Sets or queries the video trigger delay in terms of a number of lines. This is
equivalent to entering data in the Line item in the Video TV Delay Mode side
menu. This command is available for backwards compatibility.
Group Trigger
Examples TRIGGER:MAIN:VIDEO:LINES 5
selects 5 lines for the desired delay period.
TRIGger:MAIn:VIDeo:NTSc
TDS 5XXA, 6XXA, & 7XXA Option 5 Only
Sets or queries the NTSC mode selection. This is equivalent to choosing
525/NTSC in the video main-menu pop-up, Mode in the main menu, and a side
menu item (NTSC or Mono).
Group Trigger
MONo
<Space>
COLOr
TRIGger:MAIn:VIDeo:PAL
TDS 5XXA, 6XXA, & 7XXA Option 5 Only
Sets or queries the PAL video trigger mode selection. This is equivalent to
toggling 625/PAL in the video main-menu pop-up, Mode in the main menu, and
a side menu item (PAL, Mono, or SECAM).
Group Trigger
COLOr
<Space>
SECAm
TRIGger:MAIn:VIDeo:SCAN
TDS 4XXA Option 5 Only
Sets or queries the video trigger scan parameters. This is equivalent to using the
Video Scan Parameters side menu.
Group Trigger
RATE1
TRIGger : MAIn : VIDeo : SCAN
RATE2
<Space> RATE3
RATE4
TRIGger:MAIn:VIDeo:SCANPeriod
TDS 4XXA Option 5 Only
Sets or queries the video trigger scan period.
Group Trigger
TRIGger:MAIn:VIDeo:SOUrce
Option 05 Only
Sets or queries the source for the main video trigger. This is equivalent to
selecting the Source in the video main menu and a desired channel from the side
menu.
Group Trigger
<Space> CH <x>
Arguments CH<x> specifies one of the input channels (CH1, CH2, CH3, or CH4; or CH1,
CH2, AUX1, or AUX2 on the TDS 520A, 524A, & 620A).
TRIGger:MAIn:VIDeo:STANdard
TDS 5XXA, 6XXA, & 7XXA Option 5 Only
Sets or queries the video trigger standard. This is equivalent to selecting the
standard in the video Standard pop-up (525/NTSC, 625/PAL, HDTV, or
FlexFmt).
Group Trigger
$
!
"
# &
"$ %
$
TRIGger:MAIn:VIDeo:SYNc
Option 05 Only
Sets or queries the video trigger sync polarity. This is equivalent to selecting
Sync Polarity from the video main menu and a side-menu item (Neg Sync or
Pos Sync).
Group Trigger
POSITIVe
<Space>
NEGAtive
TRIGger:MAIn:VIDeo:SYStem
TDS 4XXA Option 5 Only
Sets or queries the video trigger class. This is equivalent to selecting the class in
the Video Class side menu of the Video menu.
Group Trigger
NTSc
TRIGger : MAIn : VIDeo : SYStem
PAL
<Space> SECAM
CUSTom
Arguments NTSc selects a condition that adheres to the National Television System
Committee standards. Specifically, it assumes a line rate of 525 lines per frame
and a frame rate of 30 Hz.
PAL selects a condition that adheres to the Phase Alternate Line standard.
Specifically, it assumes a line rate of 625 lines per frame and a frame rate of
25 Hz.
SECAM selects a condition that adheres to the SECAM standard.
CUSTom selects a condition that adheres to the frequency range of the video
signal as you have defined them from the available ranges.
TRIGger:MAIn:VIDeo:TIMe
TDS 4XXA Option 5 Only
Sets or queries the video trigger delay time. This is equivalent to entering the
time in the Delay by Time item of the Video TV Delay Mode side menu.
Group Trigger
<Space> <NR3>
TRIGger : MAIn : VIDeo : TIMe
?
Group Trigger
Syntax TRIGger:STATE?
TRIGger : STATE ?
Returns ARMed indicates that the instrument is acquiring pretrigger information. All
triggers are ignored when TRIGger:STATE is ARMING.
AUTO indicates that the digitizing oscilloscope is in auto mode and acquires data
even in the absence of a trigger.
FASTframe (TDS 5XXA and 7XXA only) indicates that the instrument is in
FastFrame mode. This means normal trigger status monitoring is turned off. The
digitizing oscilloscope will not return armed, partial, ready, trigger, or auto while
in this state.
INStavu (TDS 7XXA only) indicates that the instrument is in InstaVu mode.
PARTial indicates that the main trigger has occurred and the digitizing oscillo-
scope is waiting for trigger(s) for the delay by events.
REAdy indicates that all pretrigger information has been acquired and the
digitizing oscilloscope is ready to accept a trigger.
SAVe indicates that the digitizing oscilloscope is in save mode and is not
acquiring data.
TRIGger indicates that the digitizing oscilloscope has seen a trigger and is
acquiring the posttrigger information.
Examples TRIGGER:STATE?
might return ARMED, indicating that pretrigger data is being acquired.
Group Miscellaneous
Syntax *TRG
*TRG
Examples
immediately executes all commands that have been defined by *DDT.
Group Miscellaneous
Syntax
Returns
and is always 0.
NOTE. If the digitizing oscilloscope is in the Remote With Lockout State (RWLS),
the UNLOCk command has no effect. For more information see the ANSI-IEEE
Std. 488.1-1987 Standard Digital Interface for Programmable Instrumentation,
section 2.8.3 on RL State Descriptions.
Group Miscellaneous
Syntax
VERBose
Sets and queries the Verbose State that controls the length of keywords on query
responses. Keywords can be both headers and arguments. This command does
not affect IEEE Std 488.2-1987 Common Commands (those starting with an
asterisk).
Group Miscellaneous
Syntax
Arguments
or 0 sets the Verbose State true, which returns full-length keywords
for applicable setting queries.
or = 0 sets the Verbose State false, which returns minimum-length
keywords for applicable setting queries.
Examples
sets the Verbose State true.
might return the value , showing that the Verbose State is true.
Syntax
Group Waveform
Syntax
Group Waveform
Syntax
WFMPre ?
WFMPre:BIT_Nr
Returns the number of bits per binary waveform point for the first ordered
waveform as specified by the DATa:SOUrce command. The WFMPre:BIT_Nr
command is ignored on input.
Group Waveform
<Space> <NR1>
WFMPre : BIT_Nr
?
Examples WFMPRE:BIT_NR?
might return 8, indicating that there are 8 bits per waveform point.
WFMPre:BN_Fmt
Sets or queries the format of binary data for the first ordered waveform as
specified by the DATa:SOUrce command.
Group Waveform
Syntax WFMPre:BN_Fmt { RI | RP }
WFMPre:BN_Fmt?
RI
<Space>
RP
WFMPre : BN_Fmt
?
Examples WFMPRE:BN_FMT RP
specifies that the binary waveform data are positive integer data-points.
WFMPRE:BN_FMT?
returns either RI or RP as the current waveform data format.
WFMPre:BYT_Nr
Sets or queries the binary field data width for the first ordered waveform as
specified by the DATa:SOUrce command. This command is equivalent to the
DATa:WIDth command.
Group Waveform
<Space> <NR1>
WFMPre : BYT_Nr
?
Examples WFMPRE:BYT_NR 2
specifies that there are 2 bytes per waveform data point.
WFMPre:BYT_Or
Selects which byte of binary waveform data is transmitted first during a
waveform data transfer when DATa:WIDth (or WFMPre:BYT_Nr) is set to 2.
Group Waveform
LSB
<Space>
MSB
WFMPre : BYT_Or
?
WFMPre:ENCdg
Sets or queries the type of encoding for waveform data transferred with the
CURVe command.
Group Waveform
Syntax
! "
#
Examples
specifies that the waveform data is in ASCII format.
might return
, indicating that the waveform data is in binary format.
Group Waveform
Syntax !
" #
Arguments specifies that the waveform is transmitted as maximum and minimum point
pairs. Only y values are explicitly transmitted. Absolute coordinates are given
by:
X n 0 XINcr (n PT_Off)
X n 0 XINcr (n PT_Off)
Group Waveform
Arguments = 0 to the recordlength, and is the position of the trigger point relative to
DATa:STARt.
Examples
specifies that the trigger point is the first point in the waveform record.
Group Waveform
Group Waveform
Arguments is the vertical scale factor in YUNits (usually volts) per division.
Group Waveform
Group Waveform
NOTE. These commands do not support a query form and all information is
ignored.
Group Waveform
( +!%
WFMPre:<wfm>:NR_Pt
Sets or queries the number of points that are in the transmitted waveform record.
This value is ignored on input.
Group Waveform
Arguments is the number of data points. If DATa:WIDth is 2 then there are twice as
many bytes.
= 0 means that the waveform record is of an unspecified length.
Examples
might return as the number of data points in the waveform record trans-
ferred from channel 1.
WFMPre:<wfm>:PT_Fmt
Selects the data point format for the first ordered waveform as selected by the
DATa:SOUrce command. On input <wfm> always defaults to the reference
location specified by DATa:DESTination regardless of what is sent.
Group Waveform
Syntax
! "
Arguments
specifies that the waveform is transmitted as minimum and maximum point
pairs. Only y values are explicitly transmitted. Absolute coordinates are given
by:
X n 0 XINcr (n PT_Off)
X n 0 XINcr (n PT_Off)
Examples
might return
, indicating that the MATH1 waveform data format is enveloped.
WFMPre:<wfm>:PT_Off
Returns the trigger point within the waveform record. On input <wfm> always
defaults to the reference location specified by DATa:DESTination regardless of
what is sent.
Group Waveform
Arguments = 0 to the recordlength, and is the position of the trigger point relative to
DATa:STARt when queried.
Examples
returns indicating the trigger position within the waveform record.
WFMPre:<wfm>:WFId
Returns information about the waveform such as input coupling, volts per
division, time per division, acquisition mode, and record length.
The WFMPre:<wfm>:WFId command is ignored on input.
TDS 4XXA: when the TDS 4XXA is in external clock mode, the time-per-div
field will contain “50 clks/div”.
Group Waveform
WFMPre:<wfm>:XINcr
Sets or queries the horizontal sampling interval. On input <wfm> always
defaults to the reference location specified by DATa:DESTination regardless of
what is sent.
TDS 4XXA: when the TDS 4XXA is in external clock mode, the time-per-div
field will contain “50 clks/div”.
Group Waveform
Syntax
Arguments
is the sampling interval.
WFMPre:<wfm>:XUNit
Returns the horizontal (X-axis) units of the waveform data at the time of
creation.
Group Waveform
" %#!
# & %
Examples
might return $, indicating that the horizontal units for channel 1 are seconds.
WFMPre:<wfm>:YMUlt
Sets or queries the vertical scale factor, in YUNit per unscaled data point value.
On input <wfm> always defaults to the reference location specified by
DATa:DESTination regardless of what is sent.
Group Waveform
"
# & %
Arguments is the scale factor, in YUNits (usually volts), per digitizing level.
WFMPre:<wfm>:YOFf
Sets or queries the vertical position of the waveform. On input <wfm> always
defaults to the reference location specified by DATa:DESTination regardless of
what is sent.
Group Waveform
"
# %
WFMPre:<wfm>:YUNit
Returns the vertical (Y-axis) units of the waveform data at the time of creation.
The WFMPre:<wfm>:YUNit command is ignored on input.
Group Waveform
" $#!
# % $
Arguments $#! is for volts or for volts2, and specifies the units.
Examples
might return , meaning that the units for the vertical component of the
channel 2 waveform data are volts.
WFMPre:<wfm>:YZEro
Sets or queries the vertical (Y-axis) offset voltage. On input <wfm> always
defaults to the reference location specified by DATa:DESTination regardless of
what is sent.
Group Waveform
<Space> <NR3>
WFMPre : <wfm> : YZEro
?
ZOOm
Resets the zoom transforms to default values for all traces or live traces. The
ZOOm query returns the current vertical and horizontal positioning and scaling
of the display. This command is equivalent to selecting Reset All Factors or
Reset Live Factors in the TDS 7XXA Zoom Reset menu or selecting Reset
Zoom Factors in the Zoom menu of other TDS oscilloscopes.
Group Zoom
RESET
<Space>
RESETLive
ZOOm
?
Arguments RESET resets the zoom transforms to default values for all traces.
RESETLive (TDS 4XXA and 7XXA only) resets the zoom transforms to default
values for live traces.
Examples ZOOM?
might return :ZOOM:STATE OFF;HORIZONTAL:SCALE 2.00E+0;POSITION
500.0E-3;LOCK LIVE;:ZOOM:VERTICAL:SCALE 2.0E+0;POSITION 0.0E+0.
ZOOm:DUAl
TDS 4XXA & 7XXA Only
Turns Dual Zoom mode on and off.
Group Zoom
OFF
<Space> ON
<NR1>
ZOOm : DUAl
?
Examples ZOOM:DUAL ON
enables the Dual Zoom feature.
ZOOM:DUAL?
returns either 0 or 1 depending on the state of Dual Zoom mode.
ZOOm:DUAl:OFFSet
TDS 4XXA & 7XXA Only
Adjusts the requested horizontal offset between the centers of the main and
second zoom boxes.
Group Zoom
ZOOm:DUAl:OFFSet?
<Space> <NR3>
ZOOm : DUAl : OFFSet
?
ZOOm:GRAticule
TDS 4XXA & 7XXA Only
Selects between the upper and lower graticule for use by the zoom preview state.
If you select the lower graticule, horizontal and vertical knob changes will affect
the underlying acquisition system. If you select the upper graticule, horizontal
and vertical knob changes will affect the zoom factors.
Group Zoom
LOWEr
<Space>
UPPer
ZOOm : GRAticule
?
Examples ZOOM:GRATICULE?
might return UPPER, indicating that the upper graticule is selected.
ZOOm:HORizontal:LOCk
Specifies the waveforms that the horizontal zoom parameters affect. This is
equivalent to setting Horizontal Lock in the Zoom side menu.
Group Zoom
ALL
LIVe
<Space>
NONe
Arguments LIVe specifies that all live (CH<x>) waveforms will be horizontally positioned
and scaled together.
NONe specifies that only the selected waveform is positioned and scaled using the
horizontal zoom parameters.
ALL specifies that all (CH<x>, Ref<x>, Math<x>) waveforms will be horizontal-
ly positioned and scaled together.
ZOOm:HORizontal:POSition
Sets or queries the horizontal position of zoomed waveforms. The setting of the
ZOOm:HORizontal:LOCk command determine the waveforms affected. For
example, if ZOOm:HORizontal:LOCk is set to LIVe then only live (as opposed
to reference and math) waveforms are affected.
Group Zoom
Arguments is from 0 to 100, and is the percent of the waveform that is to the left of
screen center when the zoom factor is 1x or greater.
It is the percent of the graticule to the right of the waveform center when the
zoom factor is less than 1. It can be less than 1 when using Fit to Screen.
ZOOm:HORizontal:SCAle
Sets or queries the horizontal expansion factor. This command is equivalent to
using the front-panel Horizontal Scale knob when Zoom is on. It is also
equivalent to using Zoom Preview with the upper graticule selected in the
TDS 7XXA.
Group Zoom
Examples ZOOM:HORIZONTAL:SCALE?
might return 1.00E+0 as the horizontal scale factor.
ZOOm:STATE
Turns Zoom mode on and off. When Zoom mode is on, the horizontal and
vertical position and scale commands affect the waveform display, not the
acquisition. This is the only way to position and scale math and reference
waveforms. This command is equivalent to turning Zoom on and off in the
Zoom side menu.
Group Zoom
<NR1>
OFF
<Space> ON
PREView
ZOOm : STATE
?
Examples ZOOM:STATE ON
enables the Zoom feature.
ZOOM:STATE?
returns either 0 or 1 (OFF, PREVIEW, or ON for the TDS 4XXA and 7XXA)
depending on the state of Zoom mode.
ZOOm:VERTical:POSition
Sets or queries the vertical position of waveforms.
Group Zoom
<Space> <NR3>
ZOOm : VERTical : POSition
?
Examples ZOOM:VERTICAL:POSITION?
might return :ZOOM:VERTICAL:POSITION 0.0E+0
ZOOm:VERTical:SCAle
Sets or queries the vertical expansion and compression factor.
Group Zoom
<Space> <NR3>
ZOOm : VERTical : SCAle
?
Examples ZOOM:VERTICAL:SCALE?
might return :ZOOM:VERTICAL:SCALE 2.0E+0
The digitizing oscilloscope provides a status and event reporting system for the
GPIB interface. This system informs you of certain significant events that occur
within the digitizing oscilloscope.
The digitizing oscilloscope status handling system consists of five 8-bit registers
and two queues. This section describes these registers and components. It also
explains how the event handling system operates.
Registers
The registers in the event handling system fall into two functional groups:
H Status Registers contain information about the status of the digitizing
oscilloscope. They include the Standard Event Status Register (SESR) and
the Status Byte Register (SBR).
H Enable Registers determine whether selected types of events are reported to
the Status Registers and the Event Queue. They include the Device Event
Status Enable Register (DESER), the Event Status Enable Register (ESER),
and the Service Request Enable Register (SRER).
Status Registers The Standard Event Status Register (SESR) and the Status Byte Register (SBR)
record certain types of events that may occur while the digitizing oscilloscope is
in use. IEEE Std 488.2–1987 defines these registers.
Each bit in a Status Register records a particular type of event, such as an
execution error or service request. When an event of a given type occurs, the
digitizing oscilloscope sets the bit that represents that type of event to a value of
one. (You can disable bits so that they ignore events and remain at zero. See the
Enable Registers section on page 3–3.) Reading the status registers tells you
what types of events have occurred.
The Standard Event Status Register (SESR). The SESR, shown in Figure 3–1,
records eight types of events that can occur within the digitizing oscilloscope.
Use the *ESR? query to read the SESR register. Reading the register clears the
bits of the register so that the register can accumulate information about new
events.
7 6 5 4 3 2 1 0
PON URQ CME EXE DDE QYE RQC OPC
Bit Function
7 (MSB) PON (Power On). Shows that the digitizing oscilloscope was powered on. The
completion of the diagnostic tests also sets this bit.
6 URQ (User Request). Shows that an Application menu button was pressed.
5 CME (Command Error). Shows that an error occurred while the digitizing
oscilloscope was parsing a command or query. Command error messages are
listed in Table 3–4 on page 3–12.
4 EXE (Execution Error). Shows that an error occurred while the digitizing
oscilloscope was executing a command or query. Execution error messages are
listed in Table 3–5 on page 3–14.
3 DDE (Device Error). Shows that a device error occurred. Device error
messages are listed in Table 3–6 on page 3–17.
2 QYE (Query Error). Shows that either an attempt was made to read the Output
Queue when no data was present or pending, or that data in the Output Queue
was lost.
1 RQC (Request Control). Not used.
0 (LSB) OPC (Operation Complete). Shows that the operation is complete. This bit is
set when all pending operations complete following an command.
The Status Byte Register (SBR) — shown in Figure 3–2, records whether output
is available in the Output Queue, whether the digitizing oscilloscope requests
service, and whether the SESR has recorded any events.
Use a Serial Poll or the *STB? query to read the contents of the SBR. The bits in
the SBR are set and cleared depending on the contents of the SESR, the Event
Status Enable Register (ESER), and the Output Queue. When you use a Serial
Poll to obtain the SBR, bit 6 is the RQS bit. When you use the *STB? query to
obtain the SBR, bit 6 is the MSS bit. Reading the SBR does not clear the bits.
6
7 RQS 5 4 3 2 1 0
— 6 ESB MAV — — — —
MSS
Bit Function
7 (MSB) Not used.
6 RQS (Request Service), obtained from a serial poll. Shows that the digitizing
oscilloscope requests service from the GPIB controller.
6 MSS (Master Status Summary), obtained from *STB? query. Summarizes the
ESB and MAV bits in the SBR.
5 ESB (Event Status Bit). Shows that status is enabled and present in the SESR.
4 MAV (Message Available). Shows that output is available in the Output Queue.
3–0 Not used.
Enable Registers DESER, ESER, and SRER allow you to select which events are reported to the
Status Registers and the Event Queue. Each Enable Register acts as a filter to a
Status Register (the DESER also acts as a filter to the Event Queue) and can
prevent information from being recorded in the register or queue.
Each bit in an Enable Register corresponds to a bit in the Status Register it
controls. In order for an event to be reported to its bit in the Status Register, the
corresponding bit in the Enable Register must be set to one. If the bit in the
Enable Register is set to zero, the event is not recorded.
Various commands set the bits in the Enable Registers. The Enable Registers and
the commands used to set them are described below.
The Device Event Status Enable Register (DESER) — is shown in Figure 3–3. This
register controls which types of events are reported to the SESR and the Event
Queue. The bits in the DESER correspond to those in the SESR, as described
earlier.
Use the DESE command to enable and disable the bits in the DESER. Use the
DESE? query to read the DESER.
7 6 5 4 3 2 1 0
PON URQ CME EXE DDE QYE RQC OPC
The Event Status Enable Register (ESER) — is shown in Figure 3–4. It controls
which types of events are summarized by the Event Status Bit (ESB) in the SBR.
Use the *ESE command to set the bits in the ESER. Use the *ESE? query to
read it.
7 6 5 4 3 2 1 0
PON URQ CME EXE DDE QYE RQC OPC
7 6 5 4 3 2 1 0
— — ESB MAV — — — —
The Enable Registers and The *PSC command controls the Enable Registers contents at power-on.
the *PSC Command Sending *PSC 1 sets the Enable Registers at power on as follows:
H DESER 255 (equivalent to a DESe 255 command)
H ESER 0 (equivalent to an *ESE 0 command)
H SRER 0 (equivalent to an *SRE 0 command)
Sending *PSC 0 lets the Enable Registers maintain their values in non-volatile
memory through a power cycle.
NOTE. To enable the PON (Power On) event to generate a Service Request, send
*PSC 0, use the DESe and *ESE commands to enable PON in the DESER and
ESER, and use the *SRE command to enable bit 5 in the SRER. Subsequent
power-on cycles will generate a Service Request.
Queues
The digitizing oscilloscope status and event reporting system contains two
queues: the Output Queue and the Event Queue.
The Output Queue The digitizing oscilloscope stores query responses in the Output Queue. It
empties this queue each time it receives a new command or query message after
an <EOM>. The controller must read a query response before it sends the next
command (or query) or it will lose responses to earlier queries.
The Event Queue The Event Queue stores detailed information on up to 20 events. If more than 20
events stack up in the Event Queue, the 20th event is replaced by event code
350, “Too many events.”
Read the Event Queue with the EVENT? query (which returns only the event
number), with the EVMSG? query (which returns the event number and a text
description of the event), or with the ALLEV? query (which returns all the event
numbers along with a description of the event). Reading an event removes it
from the queue.
Before reading an event from the Event Queue, you must use the *ESR? query to
read the summary of the event from the SESR. This makes the events summa-
rized by the *ESR? read available to the EVENT? and EVMSG? queries, and
empties the SESR.
Reading the SESR erases any events that were summarized by previous *ESR?
reads but not read from the Event Queue. Events that follow an *ESR? read are
put in the Event Queue but are not available until *ESR? is used again.
When an event occurs, a signal is sent to the DESER (1). If that type of event is
enabled in the DESER (that is, if the bit for that event type is set to 1), the
appropriate bit in the SESR is set to one, and the event is recorded in the Event
Queue (2). If the corresponding bit in the ESER is also enabled (3), then the ESB
bit in the SBR is set to one (4).
When output is sent to the Output Queue, the MAV bit in the SBR is set to
one (5).
When a bit in the SBR is set to one and the corresponding bit in the SRER is
enabled (6), the MSS bit in the SBR is set to one and a service request is
generated (7).
Synchronization Methods
Although most GPIB commands are completed almost immediately after being
received by the digitizing oscilloscope, some commands start a process that
requires more time. For example, once a HARDCOPY START command is
executed it may be a few seconds before the hardcopy operation is complete.
Rather than remain idle while the operation is in process, the digitizing
oscilloscope will continue processing other commands. This means that some
operations will not be completed in the order that they were sent.
Sometimes the result of an operation depends on the result of an earlier
operation. A first operation must complete before the next one gets processed.
The digitizing oscilloscope status and event reporting system provide ways to do
this.
For example, a typical application might involve acquiring a single-sequence
waveform and then taking a measurement on the acquired waveform. You could
use the following command sequence to do this:
/** Set up single-sequence acquisition **/
/** Take amplitude measurement on acquired data **/
The acquisition of the waveform requires extended processing time. It may not
finish before the digitizing oscilloscope takes an amplitude measurement (See
Figure 3–7). This can result in an incorrect amplitude value.
Processing Time
Processing Time
You can use four commands to synchronize the operation of the digitizing
oscilloscope with your application program: *WAI, BUSY?, *OPC, and *OPC?.
Using the *WAI Command You can force commands to execute sequentially by using the *WAI command.
This command forces completion of the previous commands before processing
new ones.
The same command sequence using the *WAI command for synchronization
looks like this:
/* Set up single-sequence acquisition */
/* Acquire waveform data */
/* Set up the measurement parameters */
/* Wait until the acquisition is complete before taking the measurement */
Though *WAI is one of the easiest ways to achieve synchronization, it is also the
most costly. The processing time of the digitizing oscilloscope is slowed since it
is processing a single command at a time. This time could be spent doing other
tasks.
The controller can continue to write commands to the input buffer of the
digitizing oscilloscope, but the commands will not be processed by the digitizing
oscilloscope until all operations in process are complete. If the input buffer
becomes full, the controller will be unable to write more commands to the buffer.
This can cause a time-out.
Using the BUSY Query The BUSY? query allows you to find out whether the digitizing oscilloscope is
busy processing a command that has an extended processing time such as
single-sequence acquisition.
The same command sequence using the BUSY? query for synchronization looks
like this:
/* Set up single-sequence acquisition */
/* Acquire waveform data */
/* Set up the measurement parameters */
/* Wait until the acquisition is complete before taking the measurement */
!# "& #%%&!$
/* Take amplitude measurement on acquired data */
This sequence lets you create your own wait loop rather than using the *WAI
command. The BUSY? query helps you avoid time-outs caused by writing too
many commands to the input buffer. The controller is still tied up, though, and
the repeated BUSY? query will result in more bus traffic.
Using the *OPC Command If the corresponding status registers are enabled, the *OPC command sets the
OPC bit in the Standard Event Status Register (SESR) when an operation is
complete. You achieve synchronization by using this command with either a
serial poll or service request handler.
Serial Poll Method. Enable the OPC bit in the Device Event Status Enable
Register (DESER) and the Event Status Enable Register (ESER) using the DESE
and *ESE commands. When the operation is complete, the OPC bit in the
Standard Event Status Register (SESR) will be enabled and the Event Status Bit
(ESB) in the Status Byte Register will be enabled.
The same command sequence using the *OPC command for synchronization
with serial polling looks like this:
/* Set up single-sequence acquisition */
SELECT:CH1 ON
HORIZONTAL:RECORDLENGTH 500
ACQUIRE:MODE SAMPLE
ACQUIRE:STOPAFTER SEQUENCE
/* Enable the status registers */
DESE 1
*ESE 1
*SRE 0
/* Acquire waveform data */
ACQUIRE:STATE ON
/* Set up the measurement parameters */
MEASUREMENT:IMMED:TYPE AMPLITUDE
MEASUREMENT:IMMED:SOURCE CH1
/* Wait until the acquisition is complete before taking the measurement. */
*OPC
While serial poll = 0, keep looping
/* Take amplitude measurement on acquired data */
MEASUREMENT:IMMED:VALUE?
This technique requires less bus traffic than did looping on BUSY?.
Service Request Method. Enable the OPC bit in the Device Event Status Enable
Register (DESER) and the Event Status Enable Register (ESER) using the DESE
and *ESE commands. You can also enable service requests by setting the ESB
bit in the Service Request Enable Register (SRER) using the *SRE command.
When the operation is complete, a Service Request will be generated.
The same command sequence using the *OPC command for synchronization
looks like this:
/* Set up single-sequence acquisition */
SELECT:CH1 ON
HORIZONTAL:RECORDLENGTH 500
ACQUIRE:MODE SAMPLE
ACQUIRE:STOPAFTER SEQUENCE
/* Enable the status registers */
DESE 1
*ESE 1
*SRE 32
/* Acquire waveform data */
ACQUIRE:STATE ON
/* Set up the measurement parameters */
MEASUREMENT:IMMED:TYPE AMPLITUDE
MEASUREMENT:IMMED:SOURCE CH1
/* Wait until the acquisition is complete before taking the measurement */
*OPC
Program can now do different tasks such as talk to other
devices. The SRQ, when it comes, interrupts those tasks and
returns control to this task.
/* Take amplitude measurement on acquired data */
MEASUREMENT:IMMED:VALUE?
Using the *OPC? Query The *OPC? query places a 1 in the Output Queue once an operation is complete.
A timeout could occur if you try to read the output queue before there is any data
in it.
The same command sequence using the *OPC? query for synchronization looks
like this:
/* Set up single-sequence acquisition */
SELECT:CH1 ON
HORIZONTAL:RECORDLENGTH 500
ACQUIRE:MODE SAMPLE
ACQUIRE:STOPAFTER SEQUENCE
/* Acquire waveform data */
ACQUIRE:STATE ON
/* Set up the measurement parameters */
MEASUREMENT:IMMED:TYPE AMPLITUDE
MEASUREMENT:IMMED:SOURCE CH1
/* Wait until the acquisition is complete before taking the measurement */
*OPC?
Wait for read from Output Queue.
/* Take amplitude measurement on acquired data */
MEASUREMENT:IMMED:VALUE?
Messages
Tables 3–3 through 3–9 list all the programming interface messages the
digitizing oscilloscope generates in response to commands and queries.
For most messages, a secondary message from the digitizing oscilloscope gives
more detail about the cause of the error or the meaning of the message. This
message is part of the message string, and is separated from the main message by
a semicolon.
Each message is the result of an event. Each type of event sets a specific bit in
the SESR and is controlled by the equivalent bit in the DESER. Thus, each
message is associated with a specific SESR bit. In the message tables that follow,
the associated SESR bit is specified in the table title, with exceptions noted with
the error message text.
Table 3–3 shows the messages when the system has no events or status to report.
These have no associated SESR bit.
Code Message
0 No events to report – queue empty
1 No events to report – new events pending *ESR?
Table 3–4 shows the error messages generated by improper command syntax.
Check that the command is properly formed and that it follows the rules in
Command Syntax starting on page 2–1.
Code Message
100 Command error
101 Invalid character
102 Syntax error
103 Invalid separator
104 Data type error
105 GET not allowed
106 Invalid program data separator
108 Parameter not allowed
109 Missing parameter
110 Command header error
Code Message
111 Header separator error
112 Program mnemonic too long
113 Undefined header
118 Query not allowed
120 Numeric data error
121 Invalid character in number
123 Exponent too large
124 Too many digits
128 Numeric data not allowed
130 Suffix error
131 Invalid suffix
134 Suffix too long
138 Suffix not allowed
140 Character data error
141 Invalid character data
144 Character data too long
148 Character data not allowed
150 String data error
151 Invalid string data
152 String data too long
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 Alias error
181 Invalid outside alias definition
183 Invalid inside alias definition
184 Command in alias requires more/fewer parameters
Table 3–5 lists the execution errors that are detected during execution of a
command. In these error messages, you should read “macro” as “alias.”
Code Message
200 Execution error
201 Invalid while in local
202 Settings lost due to rtl
210 Trigger error
211 Trigger ignored
212 Arm ignored
220 Parameter error
221 Settings conflict
222 Data out of range
223 Too much data
224 Illegal parameter value
230 Data corrupt or stale
240 Hardware error
241 Hardware missing
242 Hardware configuration error
243 Hardware I/O device error
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
2200 Measurement error, Measurement system error
2201 Measurement error, Zero period
2202 Measurement error, No period found
Code Message
2203 Measurement error, No period, second waveform
2204 Measurement error, Low signal amplitude
2205 Measurement error, Low amplitude, second waveform
2206 Measurement error, Invalid gate
2207 Measurement error, Measurement overflow
2208 Measurement error, Waveform does not cross Mid Ref
2209 Measurement error, No second Mid Ref crossing
2210 Measurement error, No Mid Ref crossing, second waveform
2211 Measurement error, No backwards Mid Ref crossing
2212 Measurement error, No negative crossing
2213 Measurement error, No positive crossing
2214 Measurement error, No crossing
2215 Measurement error, No crossing, second waveform
2216 Measurement error, No crossing, target waveform
2217 Measurement error, Constant waveform
2218 Measurement error, Unused
2219 Measurement error, No valid edge – No arm sample
2220 Measurement error, No valid edge – No arm cross
2221 Measurement error, No valid edge – No trigger cross
2222 Measurement error, No valid edge – No second cross
2223 Measurement error, Waveform mismatch
2224 Measurement error, WAIT calculating
2225 Measurement error, No waveform to measure
2226 Null Waveform
2227 Positive and Negative Clipping
2228 Measurement error, Positive Clipping
2229 Measurement error, Negative Clipping
2230 Measurement error, High Ref < Low Ref
2235 Math error, Invalid math description
2236 Math error, Reference waveform is invalid
2237 Math error, Out of acquisition memory
2240 Invalid password
2241 Waveform requested is invalid
Code Message
2242 Data start and stop > record length
2243 Waveform requested is not a data source
2244 Waveform requested is not turned on
2245 Saveref error, Selected channel is turned off
2246 Saveref error, Selected channel data invalid
2247 Saveref error, Out of reference memory
2248 Saveref error, Source reference data invalid
2249 Reference deletion error, Waveform in use for math
2260 Calibration error
2270 Alias error
2271 Alias syntax error
2272 Alias execution error
2273 Illegal alias label
2274 Alias parameter error
2275 Alias definition too long
2276 Alias expansion error
2277 Alias redefinition not allowed
2278 Alias header not found
2279 Alias label too long
2280 Alias table full
2285 TekSecureR Pass
2286 TekSecureR Fail
2290 Limit error, Reference in use
2291 Limit error, Reference data invalid
2292 Limit error, Out of reference memory
2293 Limit error, Selected channel is turned off
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 errors that can occur during digitizing oscilloscope
operation. These errors may indicate that the oscilloscope needs repair.
Code Message
300 Device-specific error
310 System error
311 Memory error
312 PUD memory lost
313 Calibration memory lost
314 Save/recall memory lost
315 Configuration memory lost
350 Queue overflow (does not set DDE bit)
Table 3–7 lists the system event messages. These messages are generated
whenever certain system conditions occur.
Code Message
400 Query event
401 Power on (PON bit 7 set)
402 Operation complete (OPC bit 0 set)
403 User request (URQ bit 6 set)
404 Power fail (DDE bit 3 set)
405 Request control
410 Query INTERRUPTED (QYE bit 2 set)
420 Query UNTERMINATED (QYE bit 2 set)
430 Query DEADLOCKED (QYE bit 2 set)
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 button #3 pushed (URQ bit 6 set)
453 Right menu button #4 pushed (URQ bit 6 set)
454 Right menu button #5 pushed (URQ bit 6 set)
460 Bottom menu button #1 pushed (URQ bit 6 set)
Code Message
461 Bottom menu button #2 pushed (URQ bit 6 set)
462 Bottom menu button #3 pushed (URQ bit 6 set)
463 Bottom menu button #4 pushed (URQ bit 6 set)
464 Bottom menu button #5 pushed (URQ bit 6 set)
465 Bottom menu button #6 pushed (URQ bit 6 set)
466 Bottom menu button #7 pushed (URQ bit 6 set)
Table 3–8 lists warning messages that do not interrupt the flow of command
execution. These notify you that you may get unexpected results.
Code Message
500 Execution warning
510 String data too long, truncated
525 Parameter underrange
526 Parameter overrange
527 Parameter rounded
528 Parameter out of range
530 Data stop > stop, Values swapped internally
531 Data stop > record length, Curve truncated
532 Curve data too long, Curve truncated
540 Measurement warning
541 Measurement warning, Low signal amplitude
542 Measurement warning, Unstable histogram
543 Measurement warning, Low resolution
544 Measurement warning, Uncertain edge
545 Measurement warning, Invalid in minmax
546 Measurement warning, Need 3 edges
547 Measurement warning, Clipping positive/negative
548 Measurement warning, Clipping positive
549 Measurement warning, Clipping negative
Code Message
550 InstaVu active – deactivate to see change
551 InstaVu active – deactivate to use math
Table 3–9 shows internal errors that indicate an internal fault in the digitizing
oscilloscope.
Code Message
600 Internal warning
620 Internal warning, Bad thermistor
630 Internal warning, 50 W overload
The example programs illustrate methods you can use to control the digitizing
oscilloscope from the GPIB interface. The diskettes that come with this manual
contain listings for these programs written in Microsoft QuickBASIC 4.5 and
Microsoft QuickC 2.5.
The programs run on a PC-compatible system equipped with a Tektronix
(National Instruments) GPIB board and associated drivers. For example, the
programs will work with a Tektronix S3FG210 (National Instruments GPIB-
PCII/IIA) GPIB package (See Figure 4–1).
GPIB Board
and
or
PC Compatible
All the example programs assume that the GPIB system recognizes the digitizing
oscilloscope as DEV1 and the PC (controller) as GPIB0. You can use the
program to assign these names.
The example software includes:
H : automatically measures waveform parameters.
H
: shows communication between controller and oscilloscope.
NOTE. The programs you compile in the Sources directory work with the
Tektronix S3FG210 (National Instruments GPIB-PCII-IIA) GPIB system. It may
take extra steps or changes to get them to work with older Tektronix GURU and
other GPIB systems.
Compiling and Linking To make an executable for any example, perform the following:
Your Example Quick-C
1. Install QuickC. Select the SMALL memory model. Be sure to set up your
Programs
path so DOS can access the QuickC directory.
2. Install the Tektronix S3FG210 (National Instruments GPIB-PCII/IIA) GPIB
board and drivers. Remember to identify the GPIB device as DEV1. You can
use the IBCONF.EXE program to do this.
3. Copy the files from the examples diskette to your hard disk. You might also
create a special directory to store them. For example, if the current drive is
hard disk C, you want to store the examples in drive C, and the examples
diskette is in drive B, you might type:
mkdir examples
1'*&-
)*2 +/#%
4. For this installation, you will also want to copy
and
from
your Tektronix S3FG210 (National Instruments GPIB-PCII/IIA) GPIB
drivers directory to this directory. For example, if the GPIB drivers are in the
!*#3* directory and you are in the example programs directory, you
would type:
)*2 !*#*&"
)*2 !*#*'#)$
5. To compile and link your TDS sample C programs, simply type: ('%
#& (''%
where <file name> refers to the name of the example program you wish to
compile and link. Specifically:
To compile and link
, type: ('% '-'%
To compile and link
, type: ('% )'''%
To compile and link
, type: ('% !.0 ''%
To compile and link
, type: ('% /,-),'%
To compile and link
, type: ('% .&'%
6. Run the program by simply typing the program name.
To run '-, type: '-
To run )'', type: )''
To run !.0 ', type: !.0 '
To run /,-),, type: /,-),
To run .&, type: .&
Compiling and Linking To make an executable for any of the following files, perform the following:
Your Example
1. Install QuickBASIC.
QuickBASIC Programs
2. Install the Tektronix S3FG210 (National Instruments GPIB-PCII/IIA) GPIB
board and drivers. Remember to reboot your PC to initialize the GPIB
drivers.
3. Copy the files from the examples diskette to your hard disk. You might also
create a special directory to store them. For example, if the current drive is
hard disk C, you want to store the examples in drive C, and the examples
diskette 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.OBJ
from your Tektronix S3FG210 (National Instruments GPIB-PCII/IIA) GPIB
drivers directory to the directory your example programs are in. For
example, if the GPIB drivers are in the gpib-pc directory and you are in the
example programs directory, you would type:
copy \gpib-pc\qbdecl.bas .
copy \gpib-pc\qbib.obj .
5. Perform the following two steps for example programs:
a. Compile the program by using the following command:
bc /o <file>.bas;
where <file> is one of the example program names.
To compile MEAS.BAS, type: bc /o meas.bas;
To compile COMM.BAS, type: bc /o comm.bas;
To compile GETWFM.BAS, type: bc /o getwfm.bas;
To compile CURSOR.BAS, type: bc /o cursor.bas;
To compile TL.BAS, type: bc /o tl.bas;
b. Link the compiled program with the qbib.obj module to create the
executable program (file.EXE) by using the following command:
link <file>.obj+qbib.obj;
where <file> is one of the above program names.
To link MEAS.OBJ, type: link meas.obj+qbib.obj;
To link COMM.OBJ, type: link comm.obj+qbib.obj;
To link GETWFM.OBJ, type: link getwfm.obj+qbib.obj;
To link CURSOR.OBJ, type: link cursor.obj+qbib.obj;
To link TL.OBJ, type: link tl.obj+qbib.obj;
NOTE. The example programs disable front-panel operation while they are
running and reenable it when they terminate. If your program terminates
prematurely, front-panel operation may remain disabled. To reenable front-panel
operation, do one of the following: cycle power on the digitizing oscilloscope or
send the GPIB command
to unlock the front panel. You can send the
command with the TL program included in your sample programs
disk.
The characters in Table A–1 are available for the digitizing oscilloscope.
Numbers in the lower left corners are character widths in pixels.
0 1 2 3 4 5 6 7
0 NUL space 0 @ P ‘ p
0 0 12 16 5 32 10 48 14 64 10 80 5 96 11 112
1 W ! 1 A Q a q
251 1 14 17 5 33 10 49 12 65 13 81 8 97 10 113
?
2 D ” 2 B R b r
7 2 15 18 7 34 10 50 10 66 10 82 11 98 7 114
3 Ç BW # 3 C S c s
8 3 11 19 10 35 10 51 10 67 9 83 8 99 8 115
4 .. $ 4 D T d t
10 4 12 20 10 36 10 52 12 68 10 84 10 100 7 116
5 % 5 E U e u
10 5 12 21 12 37 10 53 9 69 12 85 9 101 11 117
6 m & 6 F V f v
12 6 12 22 12 38 10 54 9 70 11 86 6 102 10 118
7 ‘ ’ 7 G W g w
5 7 10 23 5 39 10 55 11 71 15 87 10 103 14 119
8 ! ( 8 H X h x
5 8 16 24 6 40 10 56 13 72 10 88 11 104 9 120
9 HT ) 9 I Y i y
0 9 16 25 6 41 10 57 6 73 10 89 5 105 10 121
A LF * : J Z j z
0 10 12 26 8 42 6 58 7 74 10 90 5 106 8 122
B ESC + ; K [ k {
10 11 0 27 11 43 6 59 10 75 6 91 10 107 6 123
C x , < L \ l
11 12 9 28 6 44 11 60 8 76 9 92 5 108 6 124
D CR — = M ] m }
0 13 11 29 11 45 11 61 15 77 6 93 15 109 6 125
E ~ . > N ^ n ~
10 14 10 30 6 46 11 62 13 78 11 94 11 110 11 126
F D / ? O _ o
7 15 10 31 9 47 7 63 13 79 11 95 10 111 3 127
This appendix describes details of the GPIB remote interface of the digitizing
oscilloscope. Normally, you will not need this information to use the digitizing
oscilloscope, but the information is useful when connecting to controllers of
unusual configuration.
Interface Messages
Table C–1 shows the standard interface messages that are supported by the
digitizing oscilloscope.
Message GPIB
DCL Yes
GET Yes
GTL Yes
LLO Yes
PPC No
PPD No
PPE No
PPU No
SDC Yes
SPD Yes
SPE Yes
TCT No
UNL Yes
UNT Yes
Listen Addresses Yes
Talk Addresses Yes
The factory initialization settings provide you a known state for the digitizing
oscilloscope.
Factory initialization sets values as shown in Table D–1.
ASCII
Acronym for the American Standard Code for Information Interchange.
Controllers transmit commands to the digitizing oscilloscope using ASCII
character encoding.
Address
A 7-bit code that identifies an instrument on the communication bus. The
digitizing oscilloscope must have a unique address for the controller to
recognize and transmit commands to it.
Backus-Naur Form (BNF)
A standard notation system for command syntax diagrams. The syntax
diagrams in this manual use BNF notation.
Controller
A computer or other device that sends commands to and accepts responses
from the digitizing oscilloscope.
EOI
A mnemonic referring to the control line “End or Identify” on the GPIB
interface bus. One of the two possible end-of-message terminators.
EOM
A generic acronym referring to the end-of-message terminator. The
end-of-message terminator can be either an EOI or the ASCII code for line
feed (LF).
Equivalent-time sampling (ET)
A sampling mode in which the oscilloscope acquires signals over many
repetitions of the event. The TDS Family Series Digitizing Oscilloscopes use
a type of equivalent time sampling called random equivalent time sampling.
It utilizes an internal clock that runs asynchronously with respect to the input
signal and the signal trigger. The oscilloscope takes samples continuously,
independent of the trigger position, and displays them based on the time
difference between the sample and the trigger. Although the samples are
taken sequentially in time, they are random with respect to the trigger.
Real-time sampling
A sampling mode where the digitizing oscilloscope samples fast enough to
completely fill a waveform record from a single trigger event. Use real-time
sampling to capture single-shot or transient events.
GPIB
Acronym for General Purpose Interface Bus, the common name for the
communications interface system defined in IEEE Std 488.
IEEE
Acronym for the Institute for Electrical and Electronic Engineers.
QuickBASIC
A computer language (distributed by Microsoft) that is based on the
Beginner’s All-Purpose Symbolic Instruction Code.
QuickC
A computer language (distributed by Microsoft) that is based on C.
TEKSecure
A Tektronix custom command that initializes both waveform and setup
memories. This overwrites any previously stored data.
HORIZONTAL:CLOCK:MAXRATE, 2–141
HORIZONTAL:DELAY?, 2–142
I
HORIZONTAL:DELAY:MODE, 2–142 ID?, 2–156
HORIZONTAL:DELAY:SCALE, 2–143 *IDN?, 2–156
HORIZONTAL:DELAY:SECDIV, 2–144 IEEE, Glossary–2
HORIZONTAL:DELAY:TIME, 2–144 IEEE Std 488.2-1987, 1–3, 2–1, 2–21, 2–23
HORIZONTAL:DELAY:TIME?, 2–145 Instrument setup, 1–3
HORIZONTAL:DELAY:TIME:RUNSAFTER, Interface message, C–2
2–145
HORIZONTAL:DELAY:TIME:TRIGAFTER, 2–146
HORIZONTAL:FASTFRAME:COUNT, 2–147 L
HORIZONTAL:FASTFRAME:LENGTH, 2–147
Limit test command group, 2–19
HORIZONTAL:FASTFRAME:POSITION, 2–148
Limit Test commands
HORIZONTAL:FASTFRAME:STATE, 2–148
LIMIT:BELL, 2–157
HORIZONTAL:FITTOSCREEN, 2–149
LIMIT:COMPARE:CH<x>, 2–158
HORIZONTAL:MAIN?, 2–150
LIMIT:COMPARE:MATH<x>, 2–159
HORIZONTAL:MAIN:SCALE, 2–150
LIMIT:HARDCOPY, 2–159
HORIZONTAL:MAIN:SECDIV, 2–151
LIMIT:STATE, 2–160
HORIZONTAL:MODE, 2–152
LIMIT:TEMPLATE, 2–161
HORIZONTAL:POSITION, 2–153
LIMIT:TEMPLATE:DESTINATION, 2–162
HORIZONTAL:RECORDLENGTH, 2–153
LIMIT:TEMPLATE:SOURCE, 2–162
HORIZONTAL:SCALE, 2–154
LIMIT:TEMPLATE:TOLERANCE: VERTICAL,
HORIZONTAL:SECDIV, 2–155
2–164
HORIZONTAL:TRIGGER?, 2–155
LIMIT:TEMPLATE:TOLERANCE:HORIZONTAL,
HORIZONTAL:TRIGGER:POSITION, 2–155
2–163
HORIZONTAL?, 2–140
LIMIT:BELL, 2–157
HORIZONTAL:CLOCK, 2–141
LIMIT:COMPARE:CH<X>, 2–158
HORIZONTAL:CLOCK:MAXRATE, 2–141
LIMIT:COMPARE:MATH<X>, 2–159
HORIZONTAL:DELAY?, 2–142
LIMIT:HARDCOPY, 2–159
HORIZONTAL:DELAY:MODE, 2–142
LIMIT:STATE, 2–160
HORIZONTAL:DELAY:SCALE, 2–143
LIMIT:TEMPLATE, 2–161
HORIZONTAL:DELAY:SECDIV, 2–144
LIMIT:TEMPLATE:DESTINATION, 2–162
HORIZONTAL:DELAY:TIME, 2–144
LIMIT:TEMPLATE:SOURCE, 2–162
HORIZONTAL:DELAY:TIME?, 2–145
LIMIT:TEMPLATE:TOLERANCE: VERTICAL,
HORIZONTAL:DELAY:TIME:RUNSAFTER, 2–145
HORIZONTAL:DELAY:TIME:TRIGAFTER, 2–146 2–164
HORIZONTAL:FASTFRAME:COUNT, 2–147 LIMIT:TEMPLATE:TOLERANCE:HORIZONTAL,
HORIZONTAL:FASTFRAME:LENGTH, 2–147 2–163
HORIZONTAL:FASTFRAME:POSITION, 2–148 LLO, C–2
HORIZONTAL:FASTFRAME:STATE, 2–148 Local lock out, C–2
HORIZONTAL:FITTOSCREEN, 2–149 LOCK, 2–165
HORIZONTAL:MAIN?, 2–150 Logic trigger, 2–234, 2–235, 2–236, 2–237, 2–238,
HORIZONTAL:MAIN:SCALE, 2–150 2–239, 2–240, 2–241, 2–242, 2–243, 2–244,
HORIZONTAL:MAIN:SECDIV, 2–151 2–245, 2–246, 2–247, 2–265
HORIZONTAL:MODE, 2–152 *LRN?, 2–165
HORIZONTAL:POSITION, 2–153
HORIZONTAL:RECORDLENGTH, 2–153
HORIZONTAL:SCALE, 2–154
M
HORIZONTAL:SECDIV, 2–155 Manual trigger, Simulation with command, 2–285
HORIZONTAL:TRIGGER?, 2–155 Math waveform, command mnemonic, 2–7
HORIZONTAL:TRIGGER:POSITION, 2–155 MATH<x>?, 2–166
MEASUREMENT:REFLEVEL:PERCENT:MID2,
2–195
P
MEASUREMENT:SNAPSHOT, 2–196 Parallel poll, C–2
MEAS<x>, command mnemonic, 2–6 Parts of commands, 1–1
MESSAGE, 2–196 PASSWORD, 2–201
Message Pattern trigger, 2–237, 2–238, 2–239, 2–240
Command, 2–2 POSITION<x>, command mnemonic, 2–6
Command terminator, 2–5 Power-on status clear command, 2–202
Handling, 3–1 PPC, C–2
Table of program messages, 3–12 PPD, C–2
MESSAGE:BOX, 2–196 PPE, C–2
MESSAGE:SHOW, 2–198 PPU, C–2
MESSAGE:STATE, 2–199 Programming Examples, 1–2, 4–1
Messages, Status and error, 1–2 *PSC, 2–202
Miscellaneous, LOCK, 2–165 *PSC command, 3–4
Miscellaneous command group, 2–21 *PUD, 2–203
Miscellaneous commands Pulse trigger, 2–248, 2–249, 2–250, 2–251, 2–252,
AUTOSET, 2–59 2–253, 2–254, 2–255, 2–256, 2–257, 2–258,
BELL, 2–59 2–259, 2–260, 2–261, 2–262, 2–263, 2–264, 2–265
DATE, 2–94
*DDT, 2–94
FACTORY, 2–125 Q
HDR, 2–139
Query, Header in query response, 2–139, 2–287
HEADER, 2–139
Query command, 2–1
*IDN?, 2–156
Queue
*LRN?, 2–165
Event, 3–5
NEWPASS, 2–199
Output, 3–5
PASSWORD, 2–201
QuickBASIC, 4–1, Glossary–2
*PUD, 2–203
QuickC, 4–1, Glossary–2
REM, 2–206
Quoted string, command argument, 2–8
SET, 2–216
TEKSECURE, 2–218
TIME, 2–218 R
*TRG, 2–285
UNLOCK, 2–286 *RCL, 2–204
VERBOSE, 2–287 Real-time sampling, Glossary–1
Mnemonic, command, 2–2 Recall setting command, 2–204
RECALL:SETUP, 2–204
RECALL:WAVEFORM, 2–205
N Reference waveform, command mnemonic, 2–7
REF<x>, command mnemonic, 2–7
NEWPASS, 2–199
Register
Numeric, command argument, 2–7
DESER, 2–96, 2–202, 3–3
ESER, 2–121, 2–202, 3–3
O SBR, 2–217, 3–2
SESR, 2–68, 2–122, 2–200, 3–1
*OPC, 2–200 SRER, 2–202, 2–217, 3–4
Operation complete command, 2–200 REM, 2–206
Operation complete wait, 2–287 Reset
*OPT, 2–201 Command, 2–206
Option Identification Query, 2–201 Factory, 2–125
Output queue, 3–5 RS-232 command group, 2–22
T TRIGGER:MAIN:LOGIC:
SETHOLD:CLOCK:EDGE, 2–240
Table, programming message, 3–12 TRIGGER:MAIN:LOGIC:
TCT, C–2 SETHOLD:CLOCK:SOURCE, 2–242
Tek Standard Codes and Formats 1989, 2–23 TRIGGER:MAIN:LOGIC:
TEKSECURE, 2–218 SETHOLD:DATA:SOURCE, 2–243
TEKSecure, Glossary–2 TRIGGER:MAIN:LOGIC:SETHOLD:HOLDTIME,
Terminator, command message, 2–5 2–244
TIME, 2–218 TRIGGER:MAIN:LOGIC:SETHOLD:SETTIME,
Time base, Manual trigger simulation, 2–285 2–244
*TRG, 2–285 TRIGGER:MAIN:LOGIC:STATE: INPUT:CH4?,
TRIGGER, 2–219 2–245
Trigger command group, 2–24 TRIGGER:MAIN:LOGIC:STATE:WHEN, 2–246
Trigger commands TRIGGER:MAIN:LOGIC:THRESHOLD?, 2–246
TRIGGER, 2–219 TRIGGER:MAIN:LOGIC:THRESHOLD:CH<x>,
TRIGGER:DELAY, 2–220 2–247
TRIGGER:DELAY:BY, 2–221 TRIGGER:MAIN:LOGIC:WHEN, 2–247
TRIGGER:DELAY:EDGE?, 2–222 TRIGGER:MAIN:MODE, 2–248
TRIGGER:DELAY:EDGE:COUPLING, 2–222 TRIGGER:MAIN:PULSE?, 2–248
TRIGGER:DELAY:EDGE:SLOPE, 2–223 TRIGGER:MAIN:PULSE:CLASS, 2–249
TRIGGER:DELAY:EDGE:SOURCE, 2–224 TRIGGER:MAIN:PULSE:GLITCH?, 2–250
TRIGGER:DELAY:EVENTS?, 2–224 TRIGGER:MAIN:PULSE:GLITCH:FILTER, 2–250
TRIGGER:DELAY:EVENTS:COUNT, 2–225 TRIGGER:MAIN:PULSE:GLITCH:POLARITY,
TRIGGER:DELAY:LEVEL, 2–225 2–251
TRIGGER:DELAY:TIME, 2–226 TRIGGER:MAIN:PULSE:GLITCH:WIDTH, 2–252
TRIGGER:DELAY:TYPE, 2–227 TRIGGER:MAIN:PULSE:RUNT?, 2–252
TRIGGER:MAIN, 2–227 TRIGGER:MAIN:PULSE:RUNT:POLARITY,
TRIGGER:MAIN:EDGE?, 2–228 2–253
TRIGGER:MAIN:EDGE:COUPLING, 2–228 TRIGGER:MAIN:PULSE:RUNT:THRESHOLD?,
TRIGGER:MAIN:EDGE:SLOPE, 2–229 2–253
TRIGGER:MAIN:EDGE:SOURCE, 2–230 TRIGGER:MAIN:PULSE:RUNT:
TRIGGER:MAIN:HOLDOFF?, 2–230 THRESHOLD:BOTH, 2–254
TRIGGER:MAIN:HOLDOFF:ACTUAL?, 2–231 TRIGGER:MAIN:PULSE:RUNT:
TRIGGER:MAIN:HOLDOFF:BY, 2–231
THRESHOLD:HIGH, 2–254
TRIGGER:MAIN:HOLDOFF:TIME, 2–232
TRIGGER:MAIN:PULSE:RUNT:
TRIGGER:MAIN:HOLDOFF:VALUE, 2–233
THRESHOLD:LOW, 2–255
TRIGGER:MAIN:LEVEL, 2–233
TRIGGER:MAIN:PULSE:RUNT:WHEN, 2–256
TRIGGER:MAIN:LOGIC?, 2–234
TRIGGER:MAIN:PULSE:RUNT:WIDTH, 2–256
TRIGGER:MAIN:LOGIC:CLASS, 2–234
TRIGGER:MAIN:PULSE:SLEWRATE:
TRIGGER:MAIN:LOGIC:CLOCK:LEVEL, 2–241
THRESHOLD:HIGH, 2–259
TRIGGER:MAIN:LOGIC:DATA:LEVEL, 2–242
TRIGGER:MAIN:PULSE:SLEWRATE:
TRIGGER:MAIN:LOGIC:FUNCTION, 2–235
TRIGGER:MAIN:LOGIC:INPUT?, 2–236 DELTATIME, 2–257
TRIGGER:MAIN:LOGIC:INPUT: CH<x>?, 2–237 TRIGGER:MAIN:PULSE:SLEWRATE:POLARITY,
TRIGGER:MAIN:LOGIC:PATTERN: INPUT:CH4?, 2–258
2–237 TRIGGER:MAIN:PULSE:SLEWRATE:
TRIGGER:MAIN:LOGIC:PATTERN: WHEN, SLEWRATE, 2–258
2–238 TRIGGER:MAIN:PULSE:SLEWRATE:
TRIGGER:MAIN:LOGIC:PATTERN: THRESHOLD:BOTH, 2–259
WHEN:LESSLIMIT, 2–239 TRIGGER:MAIN:PULSE:SLEWRATE:
TRIGGER:MAIN:LOGIC:PATTERN: WHEN: THRESHOLD:LOW, 2–260
MORELIMIT, 2–240
Z ZOOM:STATE, 2–307
ZOOM:VERTICAL:POSITION, 2–308
ZOOM, 2–302 ZOOM:VERTICAL:SCALE, 2–308
Zoom command group, 2–37 ZOOM GRATICULE, 2–304
Zoom commands ZOOM:DUAL, 2–303
ZOOM, 2–302 ZOOM:DUAL:OFFSET, 2–303
ZOOM:DUAL, 2–303 ZOOM:HORIZONTAL:LOCK, 2–305
ZOOM:DUAL:OFFSET, 2–303 ZOOM:HORIZONTAL:POSITION, 2–305
ZOOM:GRATICULE, 2–304 ZOOM:HORIZONTAL:SCALE, 2–306
ZOOM:HORIZONTAL:LOCK, 2–305 ZOOM:STATE, 2–307
ZOOM:HORIZONTAL:POSITION, 2–305 ZOOM:VERTICAL:POSITION, 2–308
ZOOM:HORIZONTAL:SCALE, 2–306 ZOOM:VERTICAL:SCALE, 2–308