Tektronix products are covered by U.S. and foreign patents, issued and pending. Information in this publication
supersedes that in all previously published material. Specifications and price change privileges reserved.
TEKTRONIX and TEK are registered trademarks of Tektronix, Inc.
Contacting
Tektronix, Inc.
14150 SW Karl Braun Drive
P.O. B o x 5 0
Beaverton, OR 97077
USA
For product information, sales, service, and technical support:
In North America, call 1-800-833-9200.
Worl dwi
Tektronix
0
de, visit www.tektronix.com to find contacts in your area.
Appendix E: Search and Trigger Command Sequence Examples........................ ..................E-1
Example
Example 2: Single Threshold Edge Trigger ............. ................................ ................E-1
Example 3: Dual Threshold Runt Search ...................... .................................. ........E-2
Example 4: Single Threshold Logic Search on Three Waveforms....................................E-2
Index
d in Alphabetical Order ....................................................................2-59
12
1: Single Threshold Edge Search ..............................................................E-1
iiMSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Getting Started
Table 1-1:
ModelBandwidth
MSO2024B,
MSO2024
MSO2022B
MSO2014B,
MSO2014
MSO2012B,
MSO2012
MSO2004B
MSO2002B
DPO2024B,
DPO2024
DPO2022B
DPO2014B,
DPO2014
DPO2012B,
DPO2012
DPO2004B
DPO2002B
200 MHz4
200 MHz2
100 MHz4
100 MHz2
70 MHz4
70 MHz2
200 MHz4
200 MHz2
100 MHz4
100 MHz2
70 MHz4
70 MHz2
This manual explains the use of commands for remotely controlling your
oscilloscope. With this information, you can write computer programs to
perform func
tions, such as setting the front-panel controls, taking measurements,
performing statistical calculations, and exporting data for use in other programs.
This manual describes commands for the following models:
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual1-1
Getting Started
DPO2022B – 200 M
Hz, 2 channel
Setting Up Remote Communications Hardware
You c a n remo t
USB, or GPIB cables.
NOTE. In order to communicate via an Ethernet cable, you need to install an
optional DPO2CONN Connectivity Module into the back of the instrument. This
module includes both Ethernet and VGA video monitor ports.
ely communicate between your oscilloscope and PC via Ethernet,
Connecting via Ethernet
1-2MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
If your PC is connected to a local area network, you can use an Ethernet cable to
ect your oscilloscope to the same network, and then use software to remotely
conn
control the oscilloscope via the PC. First, you’ll need to acquire an optional
DPO2CONN Connectivity Module, which provides Ethernet and video out ports
for your oscilloscope (search on www.tektronix.com). Then, simply plug one end
of the Ethernet cable into the Ethernet port (RJ-45 connector), and the other end
into your network connection.
OTE. You can connect an MSO/DPO2000B oscilloscope only to a 10/100
N
Base-T local area network.
Getting Started
Connecting via USB
To view or chang
1. On the front panel, push Utility.
2. Push Utility Page.
3. Select I/O with the Multipurpose knob.
4. Push Ethernet Network Settings.
5. If you are on a DHCP Ethernet network and using a through cable, on theside menu set DHCP/BOOTP to On.
6. If you are using a cross-over cable, set DHCP/BOOTP to Off,andseta
hard-coded TCPIP address.
You can co
cable, and then use software to remotely control the oscilloscope v ia the PC.
Simply plug one end of the cable into the USB 2.0 high-speed device port on
the rear panel of your oscilloscope, and the other end into a USB port on your
computer.
This port requires that the cable connected from the port to the host computer
meets the USB 2.0 specification for high speed connections. Typically, such
cables should be 3 feet or shorter in length, but this is determined by the quality of
able and, with higher quality cables, this length can be extended. (It is also
the c
dependent upon the drive capability of the host USB port to which the instrument
is connected.) The use of high quality short cables is recommended to avoid USB
connection problems.
e the Ethernet settings on your oscilloscope, do the following:
nnect your oscilloscope directly to a PC by using a high-speed USB
Once the USB cable is connected, the system automatically configures itself. To
verify that the USB is enabled:
1. On the front panel, push Utility.
2. Push Utility Page.
elect I/O with the Multipurpose knob.
3.S
4. Push USB, and verify that USB is enabled.
5. If USB is not enabled, push Enabled on the side menu.
After connection, the host, with appropriate software, can list the oscilloscope as a
USB device with the following parameters: (See Table 1-2.)
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual1-3
Getting Started
Table 1-2: USB D
ParameterValue
Manufacturer
Product ID
Serial numberSerial number
Manufacturer description
Interface description“USBTMC-USB488”
evice Parameters
ID
0x0699 (decim
0x399 DPO200
0x39A MSO2002B (decimal 922)
0x39B DPO2004B (decimal 923)
0x39C MSO20
0x39D DPO2012B (decimal 925)
0x39E MSO2012B (decimal 926)
0x39F DPO20
0x3A0 MSO2014B (decimal 928)
0x3A1 DPO2022B (decimal 929)
0x3A2 MSO2
0x3A3 DPO2024B (decimal 931)
0x3A4 MSO2024B (decimal 932)
0x0372 DP
0x0373 DPO2014
0x0374 DPO2024
0x0376 M
0x0377 MSO2014
0x0378 MSO2024
“Tektronix”
al 1689)
2B (decimal 921)
04B (decimal 924)
14B (decimal 927)
022B (decimal 930)
O2012
SO2012
Connecting via GPIB
The oscilloscope has a USB 2.0 high-speed device port to control the oscilloscope
through USBTMC or GPIB with a TEK-USB-488 Adapter. The USBTMC
tocol allows USB devices to communicate using IEEE488 style messages.
pro
This lets you run your GPIB software applications on USB hardware.
To use GPIB, start by connecting an appropriate USB cable to the USB 2.0
igh-speed device port on the rear panel of your oscilloscope. Connect the other
h
end to the TEK-USB-488 Adapter host port. Then connect a GPIB cable from the
TEK-USB-488 Adapter to your PC.
Supply power to the Adapter in either of these two ways:
1-4MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Getting Started
1. Use the optiona
on the Adapter.
2. Use an appropr
PC and the Device port on the TEK-USB-488 Adapter.
Before sett
(physical) GPIB interface, you should familiarize yourself with the following
GPIB requirements:
To function correctly, your oscilloscope must have a unique device address. The
defa
ing up the oscilloscope for remote communication using the electronic
A unique device address must be assigned to each device on the bus. No two
devices can share the same device address.
No more than 15 devices can be connected to any one line.
Only one d
No more than 65 feet (20 meters) of cable should be used to connect devices
to a bus.
At least two-thirds of the devices on the network should be powered on while
he network.
using t
Connect t he devices on the network in a star or linear configuration. Do not
op or parallel configurations.
use lo
ult setting for the GPIB configuration is GPIB Address 1.
l5V
iate USB cable connected to a powered USB host port on your
evice should be connected for every 6 feet (2 meters) of cable used.
power adapter connected to the 5 VDCpower input
DC
To change the GPIB address settings, do the following:
1. On the front panel, push Utility.
2. Push Utility Page.
3. Select I/O with the Multipurpose knob.
4. Push GPIB.
nter the GPIB address on the side menu, using the multipurpose knob. This
5.E
will set the GPIB address on an attached TEK-USB-488 Adapter
The oscilloscope is now set up for bidirectional communication with your PC.
Setting Up Remote Communications Software
Connect your oscilloscope directly to a computer to let the PC analyze your data,
collect screen images, or to control the oscilloscope using a program of your own
creation. You can connect using TekVISA drivers, or connect directly from any
computer’s web browser using Tektronix e*Scope Web-enabled tools.
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual1-5
Getting Started
Using TekVISA
NOTE. The CD tha
efficient connectivity between your oscilloscope and your computer. These include
toolbars that speed connectivity with Microsoft Excel and Word.
TekVISA lets you use your MS-Windows computer to acquire data from your
oscilloscope for use in an analysis package that runs on your PC, such as Microsoft
Excel, National Instruments LabVIEW, Tektronix OpenChoice Desktop software,
or your own custom software. You can use a common communications connection,
such as USB, Ethernet, or GPIB, to connect the computer to the oscilloscope.
The TekVIS
Desktop software that came with your instrument’s CD. You can also download
the OpenChoice Desktop software from www.tektronix.com\downloads.
NOTE. TekVISA cannot run if any other version of VISA drivers is installed.
To set up communications between your oscilloscope and a computer running
TekVISA drivers:
A drivers are automatically installed by installing the OpenChoice
t your oscilloscope shipped with contains additional tools for
1-6MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Getting Started
1. Install the Tek
CD that came with your instrument or from the Tektronix website. This w ill
automatically install the TekVISA drivers.
2. Connect the oscilloscope to your computer with the appropriate USB, Ethernet
or GPIB cable. Cycle the power on the oscilloscope.
3. Push Utility.
4. Push Utilit
5. Turn multipurpose knob a and select I/O.
tronix OpenChoice Desktop software package, either from the
y Page.
sing Tektronix e*Scope
U
Software
6. If you are using USB, the system sets itself up automatically for you, if USB is
enabled. Check USB on the lower menu to be sure that USB is enabled. If it is
not enabled, push USB. Then push Connect to Computer on the side menu.
7. To use Ethernet, push Ethernet Network Settings on the lower menu. Use
the s ide menu buttons to adjust your network settings, as needed. For more
information, see the e*Scope setup information below.
8. If you are using GPIB, push GPIB. Enter the GPIB address on the side menu,
using multipurpose knob a. This will set the GPIB address on an attached
K-USB-488 Adapter.
TE
9. Run the application software on your computer.
Your oscilloscope contains a pre-installed remote control software package by
Tektronix called e*Scope. You can use this to “talk” to a networked PC’s web
browser so that you can view and control the oscilloscope wherever it is on your
network.
First, you’ll need to acquire an optional DPO2CONN Connectivity Module,
which provides Ethernet and video out ports for your oscilloscope (search on
www.tektronix.com).
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual1-7
Getting Started
To set up e*Scop
computer:
1. With the DPO2C
cable from the back of the oscilloscope to the same network as your computer.
2. Power u p you
a. Push the Utility button, and then push Utility Page on the bottom menu.
b. Turn multipurpose knob a to select I/O, and then push Ethernet Network
Settings on the bottom menu.
c. Push Test Connection on the side menu. The button should say OK.
e communications between your oscilloscope and a networked
ONN Connectivity Module installed, connect an Ethernet
r oscilloscope and test the network connection:
3. Next, find your oscilloscope’s IP address:
a. Push Change Instrument Settings on the side menu to display the
network parameters configured on your oscilloscope.
b. Note down the Instrument IP address.
1-8MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Getting Started
Documentation
4. On the menu bar o
Instrument IP address and press Enter.
5. You should now s ee the e*Scope screen on your PC and an image of your
oscillos
oscilloscope from your PC’s browser.
cope’s display. You may use the menu items at the top to control your
f your PC’s web browser, type in the oscilloscope’s
The following documents are available for download on the Manuals Finder
Web site at www.tektronix.com:
MSO/DPO2000B Series User Manual. Information about installing and
operating the oscilloscope.
MSO/DPO2000B Series Technical Reference. Oscilloscope specifications and
a performance verification procedure.
TekVISA Programmer Manual. Description of TekVISA, the Tektronix
implementation of the VISA Application Programming Interface (API). TekVISA
is industry-compliant software for writing interoperable oscilloscope drivers in a
variety of Application Development Environments (ADEs).
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual1-9
Getting Started
1-10MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Command Syntax
You can control the operations and functions of the oscilloscope through the
Ethernet port or the USB 2.0 device port using commands and queries. The
related topi
The topics also describe the conventions that the oscilloscope uses to process
them. See the Command Groups topic in the table of contents for a listing of the
commands by command group, or use the index to locate a specific command.
cs listed below describe the syntax of these commands and queries.
Backus-Naur Form
Notation
This documentation describes the commands and queries using Backus-Naur
Form (BNF) notation. Refer to the following table for the symbols that are used.
Table 2-1: Symbols for Backus-Naur Form
SymbolMeaning
<>
=
|Exclusive OR
{ }Group; one element is required
[]
.. .
( )Comment
Command and Query Structure
mmands consist of set commands and query commands (usually called
Co
commands and queries). Commands modify oscilloscope settings or tell the
oscilloscope to perform a specific action. Queries cause the oscilloscope to return
data and status information.
Defined element
Is defined as
Optional; can be omitted
Previous element(s) may be repeated
Most commands have both a set form and a query form. The query form of the
command differs from the set form by its question mark at the end. For example,
the set command
commands have both a set and a query form. Some commands have set only and
some have query only.
Messages
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-1
A command message is a command or query name followed by any information
the oscilloscope needs to execute the command or query. Command messages
may c ontain five element type s, defined in the following table.
ACQuire:MODe has a query form ACQuire:MODe?.Notall
Command Syntax
Commands
Table 2-2: Comm
SymbolMeaning
<Header>
<Mnemonic>
<Argument
<Comma>A single c
<Space>
Comman
>
ds cause the oscilloscope to perform a specific function or change one of
and Message Elements
This is the basic command name. If the header ends with a question
mark, the command is a query. The header may begin with a colon
(:) characte
the beginning colon is required. Never use the beginning colon with
command headers beginning with a star (*).
This is a header subfunction. Some command headers have only one
mnemonic. I
character always separates them from each other.
This is a qu
Some commands have no arguments while others have multiple
arguments. A <space> separates arguments from the header. A
<comma> se
commands. Optionally, there may be white space characters before
and after the comma.
A white space character is used between a command header and the
related argument. Optionally, a white space may consist of multiple
white sp
r. If the command is concatenated with other commands,
f a command header has multiple mnemonics, a colon (:)
antity, quality, restriction, or limit associated with the header.
parates arguments from each other.
omma is used between arguments of multiple-argument
ace characters.
the settings. Commands have the structure:
eader>[<Space><Argument>[<Comma> <Argument>]...]
[:]<H
A command header consists of one or more mnemonics arranged in a hierarchical
ee structure. The first mnemonic is the base or root of the tree and each
or tr
subsequent mnemonic is a level or branch off the previous one. Commands at a
higher level in the tree may affect those at a lower level. The leading colon (:)
always returns you to the base of the command tree.
2-2MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Command Syntax
Queries
Headers
Queries cause t
he oscilloscope to return status or setting information. Queries
You can specify a query command at any level within the command tree unless
otherwise noted. These branch queries return information about all the mnemonics
below the sp
ecified branch or level.
Use the HEADer command to control whether the oscilloscope returns headers as
part of the query response. If header is on, the query response returns command
headers,
then 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. The table below shows the difference in responses.
Table 2-3: Comparison of Header Off and Header On Responses
QueryHeader OffHeader On
TIME?
ACQuire:NUMAVg?
14:30:00:TIME “14:30:00”
100
:ACQUIRE:NUMAVG 100
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-3
Command Syntax
Clearing the o
scilloscope
Command Entry
Abbrev
iating
You can clear the Output Queue and reset the oscilloscope to accept a new
command or query by using the selected Device Clear (DCL) function.
The following rules apply when entering commands:
You can enter commands in upper or lower case.
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).
The oscilloscope ignores commands consisting of a ny combination of white
space characters and line feeds.
You can abbreviate many oscilloscope commands. Each command in this
documentation shows the minimum acceptable abbreviations in capitals. For
example, you can enter the command ACQuire:NUMAvg simply as ACQ:NUMA
:numa.
or acq
Concatenating
Abbreviation rules may change over time as new oscilloscope models are
oduced. Thus, for the most robust code, use the full spelling.
intr
If you use the HEADer command to have command headers included as part
uery responses, you can further control whether the returned headers are
of q
abbreviated or are full-length with the VERBose command.
You can concatenate any combination of set commands and queries using a
micolon (;). The oscilloscope executes concatenated commands in the order
se
received.
2-4MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Command Syntax
When concatena
ting commands and queries, you must follow these rules:
1. Separate completely different headers by a semicolon and by the beginning
colon on all commands except the first one. For example, the commands
TRIGger:MODe NORMal and ACQuire:NUMAVg 8, can be concatenated
into the following single command:
TRIGger:MODe NORMal;:ACQuire:NUMAVg 8
2. If concatenated commands have headers that differ by only the last mnemonic,
you can abbreviate the second command and eliminate the beginning colon.
For example, you can concatenate the commands
ACQuire:MODe AVErage
and ACQuire:NUMAVg 8 into a single command:
ACQuire:MODe AVErage; NUMAVg 8
The longer version works equally well:
ACQuire:MODe AVErage;:ACQuire:NUMAVg 8
3. Never precede a star (*) command with a colon:
ACQuire:STATE 1;*OPC
Any commands that follow will be processed as if the star command was
not there so the commands,
ACQuire:MODe ENVelope;*OPC;NUMAVg 8
will set the acquisition mode to envelope and set the number of acquisitions
for averaging to 8.
Terminating
4. When you concatenate queries, the responses to all the queries are
concatenated into a single response message.
5. Set commands and queries may be concatenated in the same message. For
example,
ACQuire:MODe SAMple;NUMAVg?;STATE?
is a valid message that sets the acquisition mode to sample. The message then
queries the number of acquisitions for averaging and the acquisition state.
Concatenated comma nds and queries are executed in the order received.
Here are some invalid concatenations:
HORizontal:SCAle 400E-9;ACQuire:NUMAVg 8 (no colon before
ACQuire)
DISPlay:GRAticule FULL;:*TRG (colon before a star (*) command)
(levels of the mnemonics are different; either remove the second use of
HORizontal: or place :MATH in front of HORizontal:POSition)
This documentation uses <EOM> (End of Message) to represent a message
terminator.
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-5
Command Syntax
Table 2-4: End o
SymbolMeaning
<EOM>
The end-of-message terminator must be the END message (EOI asserted
concurrently with the last data byte). The last data byte may be an ASCII line
feed (LF) character.
This oscilloscope does not support ASCII LF only message termination. The
oscilloscope always terminates outgoing messages with LF and EOI.
Constructed Mnemonics
Some header mnemonics specify one of a range of mnemonics. For example, a
channel
in the command just as you do any other mnemonic. For example, there is a
CH1:POSition command, and there is also a CH2:POSition command. In the
command descriptions, this list of choices is abbreviated as CH<x>.
Cursor Position
Mnemonics
When cursors are displayed, commands may specify which cursor of the pair to
use.
f Message Terminator
Message termi
nator
mnemonic can be CH1, CH2, CH3, or CH4. You use these mnemonics
Math Specifier Mnemonics
Table 2-5: Channel Mnemonics
SymbolMeaning
CH<x>A channel specifier; <x> is 1 through 4.
Table 2-6: Cursor Mnemonics
SymbolMeaning
CURSOR<x>
POSITION<x>
HPOS<x>
A cursor selector; <x> is either 1 or 2.
A cursor selector; <x> is either 1 or 2.
A cursor selector; <x> is either 1 or 2.
Commands can specify the mathematical waveform to use as a mnemonic in
the header.
Table 2-7: Math Specifier Mnemonics
SymbolMeaning
Math<x>
A math waveform specifier; <x> is 1.
2-6MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Command Syntax
Measurement Specifier
Mnemonics
Channel Mnemonics
Reference Waveform
Mnemonics
Commands can sp
ecify which measurement to set or query as a mnemonic in the
header. Up to four automated measurements may be displayed.
Table 2-8: Measurement Specifier Mnemonics
SymbolMeaning
MEAS<x>A measurement specifier; <x> is 1 through 4.
Commands specify the channel to use as a mnemonic in the header.
Commands can specify the reference waveform to use as a mnemonic in the
header.
Table 2-9: Re f erence Waveform Mnemonics
SymbolMeaning
REF<x>
A reference waveform specifier; <x> 1 or 2. The MSO/DPO2000B and
MSO/DPO2000 series provides only two REF waveforms regardless of
whether the instrument is a 2 or 4 channel model.
Argument Types
Numeric
Quoted String
ny oscilloscope commands require numeric arguments. The syntax shows
Ma
the format that the oscilloscope returns in response to a query. This is also the
preferred format when sending the command to the oscilloscope though any of
the formats will be accepted. This documentation represents these arguments as
described below.
Table 2-10: Numeric Arguments
SymbolMeaning
<NR1>
<NR2>Floating point value without an exponent
<NR3>Floating point value with an exponent
<bin>
Most num
eric arguments will be automatically forced to a valid setting, by either
Signed integer value
Digital data in binary format
rounding or truncating,, when an invalid number is input, unless otherwise noted
in the command description.
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
("). The following is an example of a quoted string:
string"
. This documentation represents these arguments as follows:
"This is a quoted
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-7
Command Syntax
Table 2-11: Quo
SymbolMeaning
<QString>Quoted string of AS CII text
ted String Argument
A quoted string can include any character defined in the 7-bit ASCII character
set. Follow these rules when you use quoted strings:
1. Use the same type of quote character to open and close the string. For
example:
"this is a valid string".
2. You can mix quotation marks within a string as long as you follow the
previous rule. For example:
"this is an 'acceptable' string".
3. You can include a quote character within a string by repeating the quote. For
example:
"here is a "" mark".
4. Strings can have upper or lower case characters.
5. If you use a GPIB network, you cannot terminate a quoted string with the
END message before the closing delimiter.
6. A carriage return or line feed embedded in a quoted string does not terminate
the string. The return is treated as another character in the string.
7. The maximum length of a quoted string returned from a query is 1000
characters.
Block
Here are some invalid strings:
"Invalid string argument' (quotes are not of the same type)
st<EOI>"
"te
(termination character is embedded in the string)
Several oscilloscope commands use a block argument form, as defined in the
table below.
able 2-12: Block Argument
T
SymbolMeaning
NZDig>
<
<Dig>
<DChar>A character with the hexadecimal equivalent of 00 through FF (0
<Block>
A nonzero digit character in the range of 1–9
A digit character, in the range of 0–9
through 255 decimal)
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 <NZDig> and <Dig> elements form a decimal integer that specifies how
many <DChar> elements follow.
2-8MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Command Syntax
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-9
Command Syntax
2-10MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Command Groups
This manual lists the MSO/DPO2000B and MSO/DPO2000 series IEEE488.2
commands in two ways. First, it presents them by functional groups. Then, it lists
them alphabe
list provides detail on each command. (See page 2-59, Commands Listed inAlphabetical Order.)
Acquisition Command Group
Use the commands in the Acquisition Command Group to set up the modes and
functions that control how the oscilloscope acquires signals input to the channels,
and processes them into waveforms.
Using the commands in this group, you can do the following:
Start and stop acquisitions.
Control whether each waveform is simply acquired, averaged over successive
acquisitions of that waveform.
Set the controls or conditions that start and stop acquisitions.
Contr
tically. The functional group list starts b elow. The alphabetical
ol acquisition of channel waveforms.
Set acquisition parameters.
e 2-13: Acquisition Commands
Tabl
CommandDescription
urns acquisition parameters
ACQuire?
ACQuire:MAXSamplerate?
ACQuire:MODeSets or returns the acquisition mode
ACQuire:NUMACq?Returns number of acquisitions that have
ACQuire:NUMAVgSets or returns the number of acquisitions for
ACQuire:STATEStarts or stops the acquisition system
ACQuire:STOPAfterSets or returns whether the acquisition is
Ret
urns the maximum real-time sample rate
Ret
occurred
an averaged waveform
continuous or single sequence
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-11
Command Groups
Alias Command
Group
Use the Alias commands to define new commands as a sequence of standard
commands. You may find this useful when repeatedly using the same commands
to perform ce
rtain tasks like setting up measurements.
Aliases are similar to macros but do not include the capability to substitute
parameters
into alias bodies. The alias mechanism obeys the following rules:
The alias name must consist of a valid IEEE488.2 message unit, which may
not appear
in a message preceded by a colon, comma, or a command or query
program header.
The a lias
name may not appear in a message followed by a colon, comma,
or question mark.
An alias
name must be distinct from any keyword or keyword short form.
An alias name cannot be redefined without first b eing deleted using one of
as deletion functions.
the ali
Alias names do not appear in response messages.
2-14: Alias Commands
Table
CommandDescription
s
ALIa
ALIas:CATalog?Returns a list of the currently defined alias
ALIas:DEFine
ALIas:DELEte
ALIas:DELEte:ALLDeletes all existing aliases
ALIas:DELEte[:NAMe]
ALIas[:STATE]Sets or returns the alias state
Sets or returns the alias state
labels
Assigns a sequence of program messages
n alias label
to a
moves a specified alias
Re
Removes a specified alias
2-12MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Command Groups
Bus Command Gr
oup
Use the Bus commands when working with serial bus measurements.
Install the DPO2EMBD application module when working with I2CorSPI
bus signals.
Install the DPO2AUTO module when working with CAN or LIN bus signals.
Install the DPO2COMP module when working with RS232 bus signals.
Table2-15: BusCommands
CommandsDescription
BUSReturns the parameters for each bus
BUS:B<x>:CAN:BITRateSets or returns the bit rate for the CAN bus
BUS:B<x>:CAN:PRObeSets or returns the probing method used to
probe the CA N bus
BUS:B<x>:CAN:SAMPLEpointSets or returns the sample point (in %) to
sample during each bit period
BUS:B<x>:CAN:SOUrceSets or returns the CAN data source
BUS:B<x>:DISplay:FORMAtSets the display format for the numerical
information in the specified bus waveform
BUS:B<x>:I2C:ADDRess:RWINCludeSets and returns whether the read/write bit is
included in the address
BUS:B<x>:I2C{:CLOCK|:SCLK}:SOUrceSets or returns the I2C SCLK source
BUS:B<x>:I2C{:DATA|:SDATA}:SOUrceSets or returns the I2C SDATA source
BUS:B<x>:LABelSets or returns the waveform label for the
specified bus
BUS:B<x>:LIN:BITRateSets or returns the bit rate for LIN
BUS:B<x>:LIN:IDFORmatSets or returns the LIN ID format
BUS:B<x>:LIN:POLARitySets or returns the LIN polarity
BUS:B<x>:LIN:SAMPLEpointSets or returns the sample point (in %) at
which to sample during each bit period
BUS:B<x>:LIN:SOUrceSets or returns the LIN data source
BUS:B<x>:LIN:STANDardSets or returns the LIN standard
BUS:B<x>:PARallel:BIT<x>:SOUrceSets or returns the parallel bit <x> source
BUS:B<x>:PARallel:CLOCK:EDGESets or returns the parallel clock edge for
bus <x>
BUS:B<x>:PARallel:CLOCK:ISCLOCKedSets or returns whether the parallel bus is
clocked
BUS:B<x>:PARallel:CLOCK:SOUrceSets or returns the parallel bus<x> clock
source
BUS:B<x>:PARallel:WIDthSets or returns the number of bits used for
the width of the parallel bus <x>
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-13
Command Groups
Table2-15: BusCommands(cont.)
CommandsDescription
BUS:B<x>:POSitionSets or returns the position of the specified
bus waveform
BUS:B<x>:RS232C:BITRateSets or returns the RS232 bit rate for the
specified bus
BUS:B<x>:RS232C:DATABitsSets or returns the number of bits for the
data frame
BUS:B<x>:RS232C:DELIMiterSets or returns the RS232 delimiting value
for a packet on the specified bus
BUS:B<x>:RS232C:DISplaymodeSets or returns the display mode for the
specified bus display and event table
BUS:B<x>:RS232C:PARitySets or returns parity for RS232 data
BUS:B<x>:RS232C:POLaritySets or returns the RS232C polarity for the
specified bus
BUS:B<x>:RS232C:RX:SOUrceSets or returns the RS232 RX source
BUS:B<x>:RS232C:TX:SOUrceSets or returns the RS232 TX Source
BUS:B<x>:SPI{:CLOCK|:SCLK}:POLARitySets or returns the SPI SCLK polarity
BUS:B<x>:SPI{:CLOCK|:SCLK}:SOUrceSets or returns the SPI SCLK source
BUS:B<x>:SPI:DATA{:IN|:MISO}:POLARitySets or returns the SPI MISO polarity
BUS:B<x>:SPI:DATA{:IN|:MISO}:SOUrceSets or returns the SPI MISO source
BUS:B<x>:SPI:DATA{:OUT|:MOSI}:
POLARity
BUS:B<x>:SPI:DATA{:OUT|:MOSI}:SOUrceSets or returns the SPI MOSI source
BUS:B<x>:SPI{:SELect|:SS}:POLARitySets or returns the SPI SS polarity
BUS:B<x>:SPI{:SELect|:SS}:SOUrceSets or returns the SPI SS source
BUS:B<x>:SPI:BITOrderSets or returns the bit order for the specified
BUS:B<x>:SPI:DATA:SIZeSets or returns the number of bits per word
BUS:B<x>:SPI:FRAMINGSets or returns the type of SPI framing
BUS:B<x>:SPI:IDLETimeSets or returns the SPI bus idle time in
BUS:B<x>:STATETurns the specified bus on and off
BUS:B<x>:TYPESets or returns the specified bus type
BUS:LOWerthreshold:CH<x>Sets or returns the lower threshold for each
BUS:THReshold:CH<x>Sets or returns the threshold for a channel
BUS:UPPerthreshold:CH<x>Sets or returns the upper threshold for each
BUS:THReshold:D<x>Sets or returns the threshold for digital
Sets or returns the SPI MOSI polarity
SPI bus
for the specified SPI bus
seconds for the specified SPI bus
channel
channel
channel
2-14MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
TRIGger:A:BUS:B<x>:LIN:CONDitionSets or returns the trigger condition for LIN
TRIGger:A:BUS:B<x>:LIN:DATa:HIVALueSets or returns the binary data string to be
TRIGger:A:BUS:B<x>:LIN:DATa:QUALifierSets or returns the LIN data qualifier
TRIGger:A:BUS:B<x>:LIN:DATa:SIZeSets or returns the length of the data string
TRIGger:A:BUS:B<x>:LIN:DATa:VALueSets or returns the binary data string
TRIGger:A:BUS:B<x>:LIN:ERRTYPESets or returns the error type
TRIGger:A:BUS:B<x>:LIN:IDentifier:VALueSets or returns the binary address string
TRIGger:A:BUS:B<x>:RS232C:RX:DATa:
SIZe
TRIGger:A:BUS:B<x>:RS232C:RX:DATa:
VALue
TRIGger:A:BUS:B<x>:RS232C:TX:DATa:
SIZe
TRIGger:A:BUS:B<x>:RS232C:TX:DATa:
VALue
Returns the serial search type
Sets or returns the search condition for a LIN
search
Sets or returns the binary data string
Sets or returns the LIN data quali fier
Sets or returns the length of the data string
in bytes
Sets or returns the binary data string used
for a LIN search
Sets or returns the error type used for a LIN
Search
Sets or returns the binary address string
used for LIN search
Sets or returns the trigger condition for a
RS232 trigger
Sets or returns the length of the data string
for a RS232 RX trigger
Sets or returns the binary data string for a
RX RS232 trigger
used for LIN trigger
in bytes to be used for LIN trigger
used for LIN trigger
Sets or returns the length of the data string
for a RX RS232 trigger
Sets or returns the binary data string for a
RX RS232 trigger
Sets or returns the length of the data string
to be used for a TX RS232 Trigger
Sets or returns the binary data string to be
used for a TX RS232 trigger
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-15
Command Groups
Calibration a
nd Diagnostic Command Group
The Calibration and Diagnostic commands provide i nformation about the current
state of oscilloscope calibration. They also initiate internal signal path calibration
(SPC)orexec
calibration are not described in this manual. They are described in the Service
manual, available for download at www.tektronix.com.
Table 2-16: Calibration and Diagnostic Commands
Command
*CAL?Instructs the oscilloscope to perform
CALibrate:FACtoryProvides the controls for starting and
CALibrate:FACtory:STATus?Returns the factory calibration status value
CALibrate:INTERNalStarts a signal path compensation
CALibrate:INTERNal:STARtStarts the internal signal path calibration
CALibrate:INTERNal:STATus?Returns the current status of the internal
CALibrate:RESults?Returns the status of all calibration
CALibrate:RESults:FACtory?Returns the status of internal and factory
CALibrate:RESults:SPC?Returns the results of the last SPC operation
CALibrate:TEMPerature?Returns 0 as MSO/DPO2000/B series
DIAg:LOOP:OPTionSets the self-test loop option
DIAg:LOOP:OPTion:NTIMesSets the self-test loop option to run N times
DIAg:LOOP:STOPStops the self-test at the end of the current
DIAg:RESUlt:FLAg?Returns the pass/fail status from the last
DIAg:RESUlt:LOG?Returns the internal results log from the last
DIAg:SELect:<function>Selects one of the available s elf-test areas
DIAg:STATESets the oscilloscope operating state
DIAg:SELectRuns self tests on the specified system
ute diagnostic tests. Commands that are specifictofactory
Description
self-calibration and returns the oscilloscope
self calibration status
stopping the factory calibration process
saved in nonvolatile memory
signal path calibration
subsystems without performing an SPC
operation
calibration
does not support recording of oscilloscope
temperature
loop
self-test sequence execution
self-test sequence execution
subsystem
2-16MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Command Groups
Cursor Comman
dGroup
Use the commands in the Cursor Command Group to control the cursor display
and readout. You can use these commands to control the setups for cursor 1 and
cursor 2, suc
You can also use the commands to select one of the following cursor functions:
CURSor:HBArs:POSITION<x>Sets or returns the hbar cursor<x> vertical
CURSor:HBArs:UNIts
CURSor:HBArs:USESets the horizontal bar cursor measurement
CURSor:MODeSets or returns whether cursors move in
CURSor:VBArs?Sets or returns the position of vertical bar
CURSor:VBArs:ALTERNATE<x>?Returns the alternate readout for the
CURSor:VBArs:DELTa?Returns the difference between vbar cursors
CURSor:VBArs:HPOS<x>?Returns the horizontal value of the specified
CURSor:VBArs:POSITION<x>Sets or returns the vbar cursor<x> horizontal
CURSor:VBArs:UNItsSets or returns the units for vbar cursors
CURSor:VBArs:USESets the vertical bar cursor measurement
CURSor:VBArs:VDELTa?Returns the vertical difference between the
CURSor:XY:POLar:RADIUS:DELta?Returns the difference between the cursors
h as cursor position.
Off. Turns off the display of all cursors.
Waveform Cursors. Consists of two cursors. Waveform cursors enable you to
conveniently measure waveform amplitude and time.
Screen Cursors. Consists of two pairs of independent horizontal and vertical
cursors. You can use these cursors to indicate an arbitrary position within
the waveform display area.
Description
Returns cursor settings
Returns hbar cursor settings
position
Returns hbar cursor units
scale
unison or separately
cursors
waveform (Vbar) cursors
vertical bar ticks
position
scale
two vertical bar cursor ticks
X radius and the c ursor Y radius
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-17
Command Groups
Table 2-17: Cursor Commands (cont.)
Command
CURSor:XY:POLar:RADIUS:POSITION<x>?Returns the polar radius of the specified
CURSor:XY:POLar:RADIUS:UNIts?
CURSor:XY:POLar:THETA:DELta?
CURSor:XY:POLar:THETA:POSITION<x>?
CURSor:XY:POLar:THETA:UNIts?
CURSor:XY:PRODUCT:DELta?Returns the difference between the cursors
CURSor:XY:PRODUCT:POSITION<x>?Returns the position of the X or Y cursor used
CURSor:XY:PRODUCT:UNIts?
CURSor:XY:RATIO:DELta?Returns the ratio of the difference between
CURSor:XY:RATIO:POSITION<x>?Returns the X or Y position for the specified
CURSor:XY:RATIO:UNIts?Returns the X and Y cursor units for the ratio
CURSor:XY:RECTangular:X:DELta?
CURSor:XY:RECTangular:X:POSITION<x>Sets or returns the cursor X rectangular
CURSor:XY:RECTangular:X:UNIts?Returns the Cursor X rectangular units
CURSor:XY:RECTangular:Y:DELta?
CURSor:XY:RECTangular:Y:POSITION<x>>Sets or returns the cursor Y rectangular
CURSor:XY:RECTangular:Y:UNIts?
Description
cursor
Returns the polar radius units
Returns the XY cursor polar coordinate delta
Returns the cursor X or cursor Y polar
coordinate
Returns the cursor polar coordinate units
X position and cursor Y position
to calculate the X × Y cursor measurement
Returns the XY cursor product units
the cursor X position and cursor Y position
cursor
measurement
Returns the cursor X delta value in
rectangular coordinates
coordinates
Returns The cursor Y delta value in
rectangular coordinates
coordinates
Returns the cursor Y rectangular units
Display Command Group
Use the commands in the Display Command Group to change the graticule style,
the displayed intensities, and to set the c haracteristics of the waveform display.
Use these commands to set the style that best displays your waveforms and
graticule display properties. Note that the mode you choose globally affects all
displayed waveforms.
2-18MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Command Groups
Table 2-18: Dis
Command
DISplay?
DISplay:CLOCkSets or returns the display of the date/time
DISplay:DIGital:HEIghtSets or returns the height of the digital
DISplay:FORMatSets or returns the display format
DISplay:GRAticuleSets or returns the type of graticule that is
DISplay:INTENSITy?
DISplay:INTENSITy:BACKLightSets or returns the backlight intensity for the
y:INTENSITy:GRAticule
DISpla
DISplay:INTENSITy:WAVEformSets or returns the intensity of the waveforms
DISplay:PERSistenceSets or returns display persistence setting
MESSage:BOXSets or returns the size and position of the
MESSage:CLEARRemoves the message text from the
Sage:SHOW
MES
SSage:STATE
ME
play Commands
Description
Returns curre
stamp
display and
you can display
displayed
Returns all display intensity settings
display
Sets or
display
message window
sage window
mes
ars the contents of the message window
Cle
ntrols the display of the message window
Co
nt display settings
the number of waveforms that
returns the graticule intensity for the
Ethernet Command Group
Use the commands in the Ethernet Command Group to set up the Ethernet remote
interface.
Table 2-19: Ethernet Commands
Command
ETHERnet:DHCPbootpSets or returns the network initialization
ETHERnet:DNS:IPADDressSets or returns the network Domain Name
ETHERnet:DOMAINnameSets or returns the network domain name
ETHERnet:ENET:ADDress?
ETHERnet:GATEWay:IPADDressSets or returns the remote interface gateway
Description
search for a DHCP/BOOTP server
Server (Dns) IP address
Returns the Ethernet address value assigned
to the oscillosc ope
IP address
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-19
Command Groups
Table 2-19: Ethernet Commands (cont.)
Command
ETHERnet:HTTPPort
ETHERnet:IPADDress
ETHERnet:NAME
ETHERnet:PASSWordSets or returns the Ethernet access password
ETHERnet:PINGCauses the oscilloscope to ping the gateway
ETHERnet:PING:STATUS?Returns the results from pinging the gateway
ETHERnet:SUBNETMaskSets or returns the remote interface subnet
File System Command Group
Use the commands in the File System Command Group to access USB media.
You can use the commands to do the following:
List the contents of a directory
Description
Sets or returns the remote interface HTTP
port value
Sets or returns the IP address assigned to
the oscilloscope
Sets or returns the network name assigned
to the o scillos cope
IP address
IP address
mask value
Create, rename and delete directories
Create,read,rename,ordeleteafile
Format media
When using these commands, keep the following points in mind:
File arguments are always enclosed within double quotes:
"E:/MYDIR/TEK00001.SET"
File names follow the non-case sensitive, MSDOS format:
[DRIVE:][\PATH\]filename
File names for commands and queries are not case sensitive. Save commands
translate all file names to uppercase for storage
For Example: SAVE:WAVEFORM CH1,"ch1.isf" results in Ch1 being saved
to a file named CH1.ISF.
RECALL:WAVEFORM "Ch1.isf",REF1 would recall the waveform from the
file CH1.ISF to the REF1 internal waveform storage location.
Path separators may be either forward slashes (/) or back slashes (\)
The file and directory names have no more than eight characters as the base
name, and no more than three characters as the extension as in 8.3 format
2-20MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Command Groups
NOTE. Using bac
k slash as a path separator may produce some unexpected
results, depending on how your application treats escaped characters. Many
applications recognize the sequence of back slash followed by an alphabetic
character as an escaped character, and, as such, interpret that alphabetic
character as a control character. For example, the sequence "\n" may be
interpreted as a newline character; "\t" may be interpreted as a tab character. To
ensure that
this interpretation does not occur, you can use double back slashes.
For example, "E:\\testfile.txt".
Table 2-20
Command
FILESystemReturns the file system state
FILESystem:CWDSets or returns the current working directory
FILESystem:DELEteDeletes a named file or directory
FILESystem:DIR?Returns a list of directory contents
FILESystem:FORMat
FILESystem:FREESpace?Returns the number of bytes of free space
FILE
ESystem:READFile
FIL
FILESystem:RENameAssigns a new name to an existing file
FILESystem:RMDir
FILESystem:WRITEFileWrites the specified block data to the
: File System Commands
System:MKDir
Descripti
for FILESystem commands.
Formats a named drive
on th
Crea
Wri
specified interface
De
oscilloscope current working directory
on
e current drive
tes a new directory
tes the contents of the specified file to the
letes a named directory
FilterVu Command Group
Use the commands in the FilterVu Command Group to set up the FilterVu feature.
FilterVu provides a variable low pass filter to block unwanted noise while still
displaying high frequency events. The oscilloscope does this by superimposing a
filtered foreground waveform over a glitch capture background waveform.
Table 2-21: FilterVuCommands
Command
DISplay:GLITchControls the display of the glitch capture
DISplay:INTENSITy:GLITchSets the glitch intensity on the display
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-21
Description
waveform
Command Groups
Table 2-21: FilterVuCommands (cont.)
Command
FILTERVu:FREQuencySets or queries the FilterVu frequency
FILTERVu:FREQuency:AVAILable?Returns a comma separated list of filter
For more information, refer to Appendix B: Waveform Data in MSO/DPO2000B
and MSO/DPO2000 Series Instruments. (See page B-1.)
Hard Copy Command Group
Use the commands in the Hard Copy Command Group to make hard copies.
Table 2
Command
HARDCopySends a copy of the screen display to the
HARDCopy:INKSaverChanges hard copy output to print color
Copy:PREVIEW
HARD
-22: Hard Copy Commands
Description
frequencies available based on the current
instrument settings
ption
Descri
selected printer
es and graticule on a white background
trac
Previews the current screen contents with
nkSaver palette applied
the I
2-22MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Command Groups
Horizontal Co
mmand Group
Use the commands in the Horizontal Command Group to control the oscilloscope
time bases. You can set the time-per-division of the main time base. You can also
use the Horiz
of the time base.
Table 2-23: Horizontal Commands
Command
HORizontal?Returns settings for the horizontal commands
HORizontal:ACQLENGTH?
HORizontal:DELay:MODeSets or returns the horizontal delay mode
HORizontal:DELay:TIMeSets or returns the horizontal delay time
HORizontal:DIGital:RECOrdlength:MAIN?Returns the record length of the main digital
HORizo
HORizontal:POSitionSets or returns the horizontal position
HORizontal:PREViewstate?
HORizontal:RECOrdlengthSets the horizontal record length to the
HORizontal:RESOlutionSets or returns the horizontal record length
HORizontal:SAMPLERateSets or returns the current horizontal sample
ORizontal:SCAle
H
HORizontal:TRIGger:POSitionSets the horizontal position when delay
ontal commands to set the scale, horizontal position, and reference
ntal:DIGital:SAMPLERate:MAIN?
Description
Returns the record length
ition
acquis
s the sample rate of the m ain digital
Return
acquisition
rns whether or not the acquisition
Retu
system is in the preview state
number of data points in each frame
eturns the current horizontal record
Or r
length
to the number of data points in each frame
te
ra
ets or returns the time base horizontal scale
S
mode is OFF
Mark Command Group
Use the commands in the Mark Command Group to identify areas of the acquired
waveform that warrant further investigation.
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-23
Command Groups
Table 2-24: Mar
CommandDescription
MARKMove to the nex
MARK:CREATECreates a mark on a particular waveform or
MARK:DELEte
MARK:FREE?Returns how many marks are free to be used
MARK:SELected:END?Returns the end of the selected mark, in
MARK:SELected:FOCUS?Returns the focus of the selected mark, in
MARK:SE
MARK:S
MARK:S
MARK:SELected:STARt?Returns the start of the selected mark, in
MARK:SELected:STATe?Returns the on or off state of the selected
MAR
MARK:TOTal?
ELected:OWNer?
ELected:SOURCE?
K:SELected:ZOOm:POSition?
k Commands
Lected:MARKSINCOLumn?
t or previous mark on the
waveform or returns all learnable settings
from the mark commands
all wavefor
Deletes a ma
waveforms in a colum n, or all marks
terms of 0 to 100% of the waveform
terms of
Returns how many marks are in the current
zoom pix
Return
Return
mark
terms of 0 to 100% of the waveform
mark
Ret
terms of 0 to 100% of the upper window
Ret
ms in a column
rk on a particular waveform, all
0 to 100% of the waveform
el column
s the owner of the selected mark
s the source waveform of the selected
urns the position of the selected mark, in
urns how many marks are used
2-24MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Command Groups
Math Command G
roup
Use the commands in the Math Command Group to create and define a math
waveform. Use the available math functions to define your math waveform.
The math waveform you create depends on sources listed in the math expression.
If you change these sources, the math waveform you previously defined will be
affected.
Math expressions c an be simple without any mathematical computations. For
example: CH1, which specifies that a waveform shows the signal source of
Channel 1.
The acquisition of a live waveform can stop for several reasons: You can turn
off the channel, stop the waveform, or stop the trigger. When you turn off
the
channel, math continues and data is acquired but is not displayed. When you
stop either the waveform or the trigger, the math calculation stops, and the last
math calculation performed is displayed.
When a live waveform update or reference waveform is altered, math waveforms
containing those waveforms as sources are also updated to reflect the changes.
Remember that sources must exist, but do not need to be displayed, to be used in
and to update math waveforms.
Table 2-25: Math Commands
Command
MATH[1]?Returns the definition of the math waveform
MATH[1]:DEFine
MATH[1]:HORizontal:POSitionSets or returns the math horizontal display
MATH[1]:HORizontal:SCAleSets or returns the math horizontal display
MATH[1]:HORizontal:UNItsReturns the math waveform horizontal unit
MATH[1]:LABel
MATH[1]:SPECTral:G ATing:INDICatorsEnables or disables the display of indicators
MATH[1]:SPECTral:G ATing:INDICators:
END?
MATH[1]:SPECTral:G ATing:INDICators:
STARt?
MATH[1]:SPECTral:MAGSets or returns the units of spectral
Description
Sets or returns the current math function as
atextstring
position for FFT or (non-live) math reference
waveforms
scale for FFT or for Dual Math waveforms
value
Sets or queries the waveform label for the
math waveform
that show the portion of the source waveform
record used to compute the math FFT
waveform
Returns the ending point in the source
waveform record used for computing the FFT
Returns the starting point in the source
waveform record used for computing the FFT
magnification in the math string
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-25
Command Groups
Table 2-25: Math Commands (cont.)
Command
MATH[1]:SPECTral:NYQUISTFreq?Returns the Nyquist frequency of the FFT
MATH[1]:SPECTral:WINdowSets or returns the window function for math
MATH[1]:TYPe
MATH[1]:VERTical:POSitionSets or returns the vertical position of the
MATH[1]:VERTical:SCAleSets or returns the vertical scale of the
MATH[1]:VERTical:UNIts?Returns the math waveform vertical units
Measurement Command Group
Use the commands in the Measurement Command Group to control the automated
urement system.
meas
Up to four automated measurements can be displayed on the screen. In the
mands, these measurement readouts are named MEAS<x>, where <x> is the
com
measurement number.
Description
math waveform
waveform spectral input data
Sets or returns the math waveform mode
type
currently selected math type
currently selected math type
ddition to the four displayed measurements, the measurement commands let
In a
you specify an additional measurement, IMMed. The immediate measurement
has no front-panel equivalent. Immediate measurements are never displayed.
Because they are computed only when needed, immediate me asurements slow the
waveform update rate less than displayed measurements.
Whether you use displayed or immediate measurements, use the VALue 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. Other parameters, such as reference levels, have only one value,
which applies to all measurements.
Table 2-26: Measurement Commands
Command
MEASUrement?
MEASUrement:CLEARSNapshot
MEASUrement:GATingSets or returns the measurement gating
MEASUrement:IMMed?
Description
Returns all measurement parameters
Removes the measurement snapshot display
Returns all immediate m easurement setup
parameters
2-26MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Table 2-26: Measurement Commands (cont.)
Command Groups
Command
MEASUrement:IMMed:DELay?Returns information about the immediate
MEASUrement:IMMed:DELay:DIRectionSets or returns the search direction to use for
MEASUrement:IMMed:DELay:EDGE<x>Sets or returns the slope of the edge used for
MEASUrement:IMMed:SOUrce1Sets or returns the “from” source for all single
MEASUrement:IMMed:SOUrce2Sets or returns the source to measure “to” for
MEASUrement:IMMed:TYPeSets or returns the type of the immediate
MEASUrement:IMMed:UNIts?Returns the units of the immediate
MEASUrement:IMMed:VALue?Returns the value of the immediate
MEASUrement:INDICators?
MEASUrement:INDICators:HORZ<x>?Returns the position of the specified
MEASUrement:INDICators:NUMHORZ?Returns the number of horizontal
MEASUrement:INDICators:NUMVERT?Returns the number of vertical measurement
MEASUrement:INDICators:STATESets or returns the state of visible
MEASUrement:INDICators:VERT<x>?Returns the value of the specified vertical
MEASUrement:MEAS<x>?
MEASUrement:MEAS<x>:COUNt?Returns the number of values accumulated
MEASUrement:MEAS<x>:DELay?
MEASUrement:MEAS<x>:DELay:DIRectionSets or returns the search direction to use for
MEASUrement:MEAS<x>:DELay:EDGE<x>Sets or returns the slope of the edge to
MEASUrement:MEAS<x>:MAXimum?Returns the maximum value found since the
Description
delay measurement
immediate delay measurements
immediate delay “from” and “to” waveform
measurements
channel immediate measurements
phase or delay immediate measurements
measurement
measurement
measurement
Returns all measurement indicator
parameters
horizontal measurement indicator
measurement indicators currently being
displayed
indicators currently being displayed
measurement indicators
measurement indicator
Returns all measurement parameters
since the last statistical reset
Returns the delay measurement parameters
for the specified measurement
delay measurements
use for delay “from” and “to” waveform
measurements
last statistical reset
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-27
Command Groups
Table 2-26: Measurement Commands (cont.)
Command
MEASUrement:MEAS<x>:MEAN?
MEASUrement:MEAS<x>:MINImum?Returns the minimum value found since the
MEASUrement:MEAS<x>:SOURCE[1]Sets or returns the channel from which
MEASUrement:MEAS<x>:SOURCE2Sets or returns the channel to which
MEASUrement:MEAS<x>:STATESets or returns whether the specified
MEASUrement:MEAS<x>:STDdev?Returns the standard deviation of values
MEASUrement:MEAS<x>:TYPeSets or returns the measurement<x> type
MEASUrement:MEAS<x>:UNIts?
MEASUrement:MEAS<x>:VALue?Returns the value of measurement<x>
MEASUrement:METHodSets or returns the method used for
MEASUrement:REFLevel?Returns the current reference level
MEASUrement:REFLevel:ABSolute:HIGHSets or returns the top reference level for
MEASUrement:REFLevel:ABSolute:LOWSets or returns the low reference level for
MEASUrement:REFLevel:ABSolute:MIDSets or returns the mid reference level for
MEASUrement:REFLevel:ABSolute:MID2Sets or returns the mid reference level for
MEASUrement:REFLevel:METHodSets or returns the method for assigning high
MEASUrement:REFLevel:PERCent:HIGHSets or returns the top reference percent
MEASUrement:REFLevel:PERCent:LOWSets or returns the low reference percent
MEASUrement:REFLevel:PERCent:MIDSets or returns the mid reference percent
MEASUrement:REFLevel:PERCent:MID2Sets or returns the mid reference percent
MEASUrement:SNAPShot
MEASUrement:IMMed:SOUrce<x>Sets or returns the s ource for the current
Description
Returns the mean value accumulated since
the last statistical reset
last statistical reset
measurements are taken
measurements are sent
measurement slot is computed and
displayed
accumulated since the last statistical reset
Returns measurement<x> units
calculating reference levels
parameters
rise time
rise time
measurements
delay "to" measurements
and low reference levels
level for rise time
level for rise time
level for waveform measurements
level for second waveform measurements
Displays the measurement snapshot list
single channel measurement
2-28MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Table 2-26: Measurement Commands (cont.)
Command Groups
Command
MEASUrement:MEAS<x>:SOUrce<x>Sets or returns the source for the specified
MEASUrement:REFLevel:ABSolute:MID<x>Sets or returns the m id reference level for
MEASUrement:REFLevel:PERCent:MID<x>Sets or returns the mid reference level for
Miscellaneous Command Gr
Use the commands in the Miscellaneous Command Group to perform actions that
do not fit into other categorie s.
Several commands and queries are common to all 488.2-1987 devices. The
488.2-1987 standard defines these commands. The common commands begin
with an asterisk (*) character.
Table 2-27: Miscellaneous Commands
Command
AUTOSetSets the vertical, horizontal and trigger
CLEARMenuClears the current menu from the display
DATE
*DDTSets or returns the commands that will be
FPAnel:PRESSSimulates the action of pressing a specified
FPAnel:TURN
GPIBUsb:ID?Returns the identification string of the
HEADer
ID?Returns identifying information about the
*IDN?Returns the same information as the ID?
LANGuageSets or returns the user interface display
Description
measurement.
the specified channel in absolute volts
the specified channel in percent
oup
Description
controls to provide a stable display of the
selected waveform
Sets or returns the date displayed by the
oscilloscope
executed by the group execute trigger
front-panel button
Duplicates the action of turning a specified
front-panel control knob
connected adaptor module and firmware
version
Sets or returns the Response Header Enable
State
oscilloscope and its firmware
command except the data is formatted
according to Tektronix Codes & Formats
language
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-29
Command Groups
Table 2-27: Miscellaneous Commands (cont.)
Command
LOCkSets or returns the front panel lock state
*LRN?Returns a listing of oscilloscope settings
MESSageSets or queries message parameters
NEWpass
PASSWordEnables the *PUD and NEWpass set
REM
SET?Returns a listing of osc ill oscope settings
TEKSecureInitializes both waveform and setup
TIME
TOTaluptime?Returns the total number of hours that the
*TRGPerforms the group execute trigger (GET)
*TST?Tests the interface and returns the status
UNLock
USBTMCReturns the USBTMC information
USBTMC:PRODUCTID:DECimal?Returns the product ID in decimal format
USBTMC:PRODUCTID:HEXadecimal?Returns the product ID in hexadecimal format
USBTMC:SERIALnumber?
USBTMC:VENDORID:DECimal?Returns the vendor ID in decimal format
USBTMC:VENDORID:HEXadecimal?Returns the vendor ID in hexadecimal format
VERBose
Description
Changes the password for user protected
data
commands
Specifies a comment, which is ignored by
the oscilloscope
memories
Sets or returns the time displayed by the
oscilloscope
oscilloscope has been turned on since the
nonvolatile memory was last programmed
Unlocks front panel
Returns the instrument serial number
Sets or returns the verbose state
PictBridge Command Group
Use the commands in the PictBridge to store the printer settings.
Table 2-28: PictBridge Commands
Command
PICTBridge:DATEPrint
PICTBridge:DEFaultSets the arguments for all PictBridge
2-30MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Description
Enables or disables printing the date on the
print output
commands to their default values
Table 2-28: PictBridge Commands (cont.)
Command Groups
Command
PICTBridge:IDPrint
PICTBridge:IMAGESizeSets or returns the image print size
PICTBridge:PAPERSizeSets the output print paper size
PICTBridge:PAPERTypeSets or returns the paper type
PICTBridge:PRINTQualSets or returns the output print quality
USBDevice:CONFigureEnables or disables the rear USB port for
Save and Recall C om mand Group
Use the commands in the Save and Recall Command Group to store and retrieve
internal waveforms and settings. When you save a setup, you save all the settings
of the oscilloscope. When you recall a setup, the oscilloscope restores itself to the
e it was in when you originally saved the setting.
stat
Table 2-29: Save and Recall Commands
Command
FACtoryResets the oscilloscope to factory default
*RCL
RECAll:SETUp
RECAll:WAVEformRecalls a stored waveform to a reference
REF<x>:SCAleSets or returns the vertical scale for the
*SAVStores the state of the oscilloscope to a
SAVe:ASSIgn:TYPeSets or returns the assignment of the data
SAVe:EVENTtable:BUS<x>Saves event table data from bus<x> to a
SAVe:IMA G eSaves a capture of the screen image into the
SAVe:IMA Ge:FILEFormatSets or returns the file format to use for
Description
Enables or disables printing the oscilloscope
model and serial number on the print output
use with Pictbridge printers
Description
settings
Recalls saved oscilloscope settings
Recalls saved oscilloscope settings
location
channel specified by <x>, where x is the
reference channel number
specified memory location
to be saved
specified file and location
specified file
saving screen images when the file type
cannot be determined from the given file
name or when screen images are captured
by using the front panel
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-31
Command Groups
Table 2-29: Save and Recall Commands (cont.)
Command
SAVe:IMAGe:LAYoutSets or returns the layout to use for saved
SAVe:SETUpSaves the state of the oscilloscope to a
SAVe:WAVEformSaves a waveform to one of four reference
SAVe:WAVEform:FILEFormatSets or returns the format for saved
SAVe:WAVEform:GATIngSpecifies whether save waveform operations
SAVe:WAVEform:SPREADSheet:
RESOlution
SETUP<x>:DATE?Returns the date when the specified
SETUP<x>:LABELSets or returns the specified oscilloscope
SETUP<x>:TIME?Returns the time when the specified
Description
screen images
specified memory location or file
memory locations or a file
waveforms
should save the entire waveform or a
specified portion of the waveform
Specifies whether to save the full (LRL) or
reduced (thumb) resolution waveform to a
CSV file.
oscilloscope setup was saved
setup label
oscilloscope setup was saved
2-32MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Command Groups
Search Comman
dGroup
Use the commands in the Search Commands Group to seek out information in
waveform records.
Search Comm
CommandDescription
SEARCH?
SEARCH:SEARCH<x>:COPyCopies the search criteria to the trigger, or
SEARCH:SEARCH<x>:STATESets the search state to on or off
SEARCH:SEARCH<x>:TOTAL?Returns the total number of matches for
SEARCH:SEARCH<x>:TRIGger:A:TYPeSets or returns the trigger type setting for a
SEARCH:SEARCH<x>:TRIGger:A:
UPPerthreshold:CH<x>
SEARCH:SEARCH<x>:TRIGger:A:
UPPerthreshold:MATH
SEARCH:SEARCH<x>:TRIGger:A:
UPPerthreshold:REF<x>
Sets or returns the trigger search setup and
hold lower threshold to determine where
to place a mark. Ref<x> is the reference
waveform number
Sets or returns the hold time setting for an
setup/hold search
Sets or returns the setup time setting for an
setup/hold search
Sets or returns the transition time setting for
an transition search
Sets or returns the polarity setting for an
transition search
Sets or returns the source setting for an
transition search
Sets or returns the condition setting for an
transition search
search
Sets or returns the waveform upper threshold
level for all channel waveform searches
Sets or returns the waveform upper threshold
level for all math waveform searches
Sets or returns the waveform upper threshold
level for all reference waveform searches
Status and Error Com mand Group
Use the commands in the Status and Error Command Group to determine the
status of the oscilloscope and control events.
Several commands and queries used with the oscilloscope are common to all
IEEE488.2 compliant devices. The IEEE Std 488.2-1987 defines these commands
and queries. The c
Table 2-30: Status and Error Commands
Command
ALLEv?
BUSY?
*CLSClears status
DESESets or returns the bits in the Device Event
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-37
ommon commands begin with an asterisk (*) character.
Description
Returns all events and their messages
Returns oscilloscope status
Status Enable Register
Command Groups
Table 2-30: Status and Error Commands (cont.)
Command
*ESESets or returns the bits in the Event Status
*ESR?Returns the contents of the Standard Event
EVENT?Returns event code from the event queue
EVMsg?Returns event code, message from the event
EVQty?Return number of events in the event queue
*OPCGenerates the operation complete message
*PSCSets or returns the power on status flag
*PUDSets or returns a string of protected user data
*RSTResets the oscilloscope to factory default
*SRESets or returns the bits in the Service
*STB?Returns the contents of the Status Byte
*WAIPrevents the oscilloscope from executing
Description
Enable Register
Status Register
queue
in the standard event status register when all
pending operations are finished
Or returns "1" when all current operations
are finished
settings
Request Enable Register
Register
further commands until all pending
operations finish
Trigger Command Group
Use the commands in the Trigger Command Group to control all aspects of
triggering for the oscilloscope. There is one trigger: A. You can perform edge,
pulse width, logic, video, runt, transition (rise/fall time), setup & hold and bus
triggering using the A trigger.
Example command sequences that show different triggers and searches are
available. (See page E-1, Search and Trigger Command Sequence Examples.).
Edge Trigger
Edge triggering lets you display a waveform at or near the point where the signal
passes through a voltage level of your choosing.
To set up an edge trigger, set the A trigger type to
TRIGger:A:TYPe. Then use the commands TRIGger:A:EDGE:COUPling,
TRIGger:A:EDGE:SLOpe,andTRIGger:A:EDGE:SOUrce Yo u can
2-38MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
EDGe using the command
Command Groups
set the thresho
ld voltage levels using TRIGger:A:LEVel:AUXin,
TRIGger:A:LEVel:CH<x>,orTRIGger:A:LEVel:D<x>.
Logic Trigger
Logic triggering lets you logically combine the signals on one or more channels;
the oscilloscope then triggers when it detects a certain combination of signal
levels (set using one of the
TRIGger:A:LOGIc:INPut commands as well as
TRIGger:A:LOGIc:FUNCtion).
To set up a logic trigger, first set the trigger type to
LOGIc using the command
TRIGger:A:TYPe, and then use the command TRIGger:A:LOGIc:CLAss to
select
LOGIC.
You can perform logic triggering using a clock (by setting TRIGger:A:LOGIc:
INPut:CLOCk:SOUrce to one of the channels), so that the oscilloscope triggers
when the specified logical combination of data channels is true during a
transition on the clock channel. The specified data sources cannot include the
waveform specified as the clock source. (Use TRIGger:A:LOGIc:INPut:CH<x>,
TRIGger:A:LOGIc:INPut:D<x>,etc.)
You can also perform logic triggering without using a clock (by
setting TRIGger:A:LOGIc:INPut:CLOCk:SOUrce to
NONE), so that the
oscilloscope triggers when the specified logical pattern of data channels
is met. (Use the commands TRIGger:A:LOGIc:PATtern:WHEn and
TRIGger:A:LOGIc:PATtern:DELTatime.)
Setup and Hold Trigger
A setup and hold trigger occurs when a logic data input changes state inside of the
setup or hold time relative to a clock edge.
To set up a setup/hold trigger, first set the trigger type to
LOGIc using the command
TRIGger:A:TYPe, and then use the command TRIGger:A:LOGIc:CLAss
A pulse width trigger occurs whenever the oscilloscope detects a pulse that is less
than, greater than, equal to, or not equal to a specified time. Additionally, it can
occur w hen the pulse width is within, or outside of a specified range. You can
trigger on either positive or negative pulses.
To set up a pulse width trigger, first set the trigger type to
the command TRIGger:A:TYPe. Then select
WIDth using the command
PULSe using
TRIGger:A:PULse:CLAss.ThenuseTRIGger:A:PULSEWidth:SOUrce,
TRIGger:A:PULSEWidth:WHEn, TRIGger:A:PULSEWidth:WIDth and related
commands. You can set the threshold voltage levels using TRIGger:A:LEVel:
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-39
Command Groups
Runt triggerin
g lets you trigger on a pulse amplitude that crosses one threshold
but fails to cross a second threshold before recrossing the first.
To set up a runt
trigger, first set the trigger type to
command TRIGger:A:TYPe. Then select
RUNt using the command
PULSe using the
TRIGger:A:PULse:CLAss.ThenuseTRIGger:A:RUNT:SOUrce,
TRIGger:A:RUNT:WIDth, TRIGger:A:RUNT:WHEn, TRIGger:A:
UPPerthreshold:CH<x> and related commands. You can set the threshold
voltage levels using TRIGger:A:LEVel:AUXin, TRIGger:A:LEVel:CH<x>,or
TRIGger:A
:LEVel:D<x>.
Transition Trigger
Transition triggering (also called rise/fall time, and once known as slew rate)
causes a trigger on pulse edges that traverse between two thresholds at a rate faster
than or s
To set up a transition trigger, first set the trigger type to
TRIGge
lower than the specified time.
r:A:TYPe.Thenselect
TRANsition using the command TRIGger:
PULSe using the command
A:PULse:CLAss.ThenuseTRIGger:A{:TRANsition|:RISEFall}:SOUrce,
TRIGger:A{:TRANsition|:RISEFall}:DELTatime and related commands.
You can set the threshold voltage levels using TRIGger:A:LEVel:AUXin,
TRIGger:A:LEVel:CH<x>,orTRIGger:A:LEVel:D<x>.
Bus Trigger
Serial bus application
modules
Bus triggering can be performed if you have one or more appropriate application
modules installed (see below for application module list).
To set up a bus trigger, set the A trigger type to
BUS using the command
TRIGger:A:TYPe. Specify which bus (1-4) to trigger on using
TRIGger:A:BUS:SOUrce. Set the bus type (i.e., parallel, I
2
C, etc. using the
command TRIGger:A:BUS. Then set the appropriate trigger criteria according to
us type (using TRIGger:A:BUS:B<x>:LIN:CONDition,etc.)
b
Video Trigger
To set up a video trigger, set the A trigger type to
A table is available that lists all commands enabled by each application module
(See page D-1, Application Module-enabled Commands.)
For I2C or SPI buses, install the DPO2EMBD application module.
For RS-232, RS-422, RS-485, or UART buses, install the DPO2COMP
module.
For CAN or LIN buses, install the DPO2AUTO module.
2-40MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Command Groups
Table 2-31: Tri
Command
TRIGger
TRIGger:FREQuency?
TRIGger:ASets A trigger level to 50%
TRIGger:A
TRIGger:A:BUS:B<x>:CAN:CONDitionSets or returns the CAN
TRIGger:A:BUS:B<x>:CAN:DATa:DIRectionSets or returns the CAN
TRIGger:A:BUS:B<x>:CAN:DATa:QUALifierSets or returns the CAN data
TRIGger:A:BUS:B<x>:CAN:DATa:SIZeSets or returns the length of
TRIGger:A:BUS:B<x>:CAN:DATa:VALueSets or returns the binary
ger:A:BUS:B<x>:CAN:FRAMEtype
TRIG
TRIGger:A:BUS:B<x>:CAN{:IDentifier|:ADDRess}:MODeSets or returns the CAN
TRIGger:A:BUS:B<x>:CAN{:IDentifier|:ADDRess}:VALueSets or returns the binary
TRIGger:A:BUS:B<x>:LIN:CONDitionSets or returns the trigger
TRIGger:A:BUS:B<x>:LIN:DATa:HIVALueSets or returns the binary
TRIGger:A:BUS:B<x>:LIN:DATa:QUALifierSets or returns the LIN data
TRIGger:A:BUS:B<x>:LIN:DATa:SIZeSets or returns the l ength of
TRIGger:A:BUS:B<x>:LIN:DATa:VALueSets or returns the binary
TRIGger:A:BUS:B<x>:LIN:ERRTYPESets or returns the error type
gger Commands
:BUS
Description
Forces a trigg
occur
Returns the a
frequency in hertz.
or returns current A trigger
parameters
Sets or ret
trigger type
condition
trigger
on a READ, WRITE, or either
qualifier
the dat
used for CAN trigger
datastringtobeusedfor
CAN t
or returns the CAN
Sets
trigger frame type
addressing mode
dress string used for the
ad
CAN trigger
condition for LIN
atastringtobeusedforLIN
d
trigger
qualifier
thedatastringinbytestobe
used for LIN trigger
data string
er event to
vailable trigger
urns the serial
condition to be valid
astringinbytestobe
rigger
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-41
Command Groups
Table 2-31: Trigger Commands (cont.)
Command
TRIGger:A:BUS:B<x>:LIN:IDentifier:VALueSets or returns the binary
TRIGger:A:BUS:B<x>:I2C:ADDRess:MODeSets or returns the I2C
TRIGger:A:BUS:B<x>:I2C:ADDRess:TYPeSets or returns the I2C
TRIGger:A:BUS:B<x>:I2C:ADDRess:VALueSets or returns the binary
TRIGger:A:BUS:B<x>:I2C:CONDitionSets or returns the trigger
TRIGger:A:BUS:B<x>:I2C:DATa:DIRectionSets or returns the I2C
TRIGger:A:BUS:B<x>:I2C:DATa:SIZeSets or returns the length of
TRIGger:A:BUS:B<x>:I2C:DATa:VALueSets or returns the binary
TRIGger:A:BUS:B<x>:PARallel:VALueSets or returns the binary
TRIGger:A:BUS:B<x>:RS232C:CONDitionSets or returns the condition
TRIGger:A:BUS:B<x>:RS232C:RX:DATa:SIZeSets or returns the length of
TRIGger:A:BUS:B<x>:RS232C:RX:DATa:VALueSets or returns the binary
TRIGger:A:BUS:B<x>:RS232C:TX:DATa:SIZeSets or returns the length
TRIGger:A:BUS:B<x>:RS232C:TX:DATa:VALueSets or returns the binary
TRIGger:A:BUS:B<x>:SPI:CONDitionSets or returns the trigger
TRIGger:A:BUS:B<x>:SPI:DATa{:IN|:MISO}:VALueSets or returns the binary
Description
address string used for LIN
trigger
address mode to 7 or 10-bit
address type to USER
address string used for the
I2C trigger
condition for I2C trigger
trigger condition valid on a
READ, WRITE, or either
thedatastringinbytestobe
used for I2C trigger
datastringusedforI2C
triggering
datastringtobeusedfora
parallel trigger
for a RS232C trigger
the data string in Bytes for a
RX RS232 Trigger
data string for a RX RS232
trigger
of the data string for a TX
RS232 trigger
data string for a RS232
trigger if the trigger condition
involves TX
condition for SPI triggering
datastringtobeusedforSPI
trigger
2-42MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Table 2-31: Trigger Commands (cont.)
Command Groups
Command
TRIGger:A:BUS:B<x>:SPI:DATa{:OUT|:MOSI}:VALueSets or returns the binary
TRIGger:A:BUS:B<x>:SPI:DATa:SIZeSets or returns the length of
TRIGger:A:BUS:SOUrceSets or returns the source
TRIGger:A:EDGE?
TRIGger:A:EDGE:COUPlingSets or returns the type
TRIGger:A:EDGE:SLOpeSets or returns the slope for
TRIGger:A:EDGE:SOUrceSets or returns the source
TRIGger:A:HOLDoff?Returns the A trigger holdoff
TRIGger:A:HOLDoff:TIMeSets or returns the A trigger
TRIGger:A:LEVelSets or returns the trigger
TRIGger:A:LEVel:AUXinSets or returns the trigger
TRIGger:A:LEVel:CH<x>Specifies or returns the
TRIGger:A:LEVel:D<x>Sets or returns the trigger
TRIGger:A:LOGIc?
TRIGger:A:LOGIc:CLAssSets or returns the type of A
TRIGger:A:LOGIc:FUNCtionSets or returns the logical
TRIGger:A:LOGIc:INPut?
Description
datastringusedfortheSPI
trigger
thedatastringinbytestobe
used for SPI trigger
for a bus trigger
Returns the source, coupling
and source for the A edge
trigger
of coupling for the A edge
trigger
the A edge trigger
for the A edge trigger
parameters
holdoff time
level for the A trigger
level for the AUXIN port
trigger level for the specified
trigger channel
level for the specified digital
channel <x>, where x is the
channel number
Returns all A trigger logic
settings
trigger logic
combination of the input
channels for the A logic
trigger
Returns the logic input
values for all channels
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-43
Command Groups
Table 2-31: Trigger Commands (cont.)
Command
TRIGger:A:LOGIc:INPut:CH<x>Specifies or returns the
TRIGger:A:LOGIc:INPut:D<x>Sets or returns the logic
TRIGger:A:LOGIc:INPut:CLOCk:EDGESets the polarity of the clock
TRIGger:A:LOGIc:INPut:CLOCk:SOUrceSets or returns the channel
TRIGger:A:LOGIc:PATtern?Returns the conditions for
TRIGger:A:LOGIc:PATtern:DELTatimeSets or returns the pattern
TRIGger:A:LOGIc:PATtern:IN Put:D <x>Sets or returns the A logic
TRIGger:A:LOGIc:PATtern:W HEnSets or returns the pattern
TRIGger:A:LOGIc:PATtern:WHEn:LESSLimitSets or returns the maximum
TRIGger:A:LOGIc:PATtern:W H En:M O R ELim i tSets or returns the minimum
TRIGger:A:LOGIc:THReshold:(CH<x>|D<x>)Sets or queries the logic
TRIGger:A:LOWerthreshold:CH<x>Sets or returns the lower
TRIGger:A:LOWerthreshold{:EXT|:AUX}Sets or returns the lower
TRIGger:A:MODeSets or returns the A trigger
TRIGger:A:PULse?
Description
logic setting for the specified
channel
pattern for a trigger on digital
channel <x>, where x is the
channel number
channel.
to use as the clock source
generating an A logic pattern
trigger
trigger delta time value
trigger input for the specified
digital channel <x>, where x
is the channel number.
logic condition on which to
trigger the oscilloscope
time that the selected pattern
may be true and still generate
an A logic pattern trigger
time that the selected pattern
may be true and still generate
an A logic pattern trigger
trigger threshold voltage for
the specified channel
threshold for the channel
selected
threshold for the Auxiliary
input.
mode
Returns the A pulse trigger
parameters
2-44MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Table 2-31: Trigger Commands (cont.)
Command Groups
Command
TRIGger:A:PULse:CLAssSets or returns the type of
TRIGger:A:PULSEWIDth?
TRIGger:A:PULSEWidth:POLaritySets or returns the polarity
TRIGger:A:PULSEWidth:SOUrceSets or returns the source
TRIGger:A:PULSEWidth:WHEnSets or returns the criteria for
TRIGger:A:PULSEWidth:WIDthSets or returns the width
TRIGger:A:RUNT?
TRIGger:A:RUNT:POLaritySets or r eturns the polarity
TRIGger:A:RUNT:SOUrceSets or returns the source
TRIGger:A:RUNT:WHEnSets or returns the type
TRIGger:A:RUNT:WIDthSets or returns the minimum
TRIGger:A:SETHold?Returns settings for setup
TRIGger:A:SETHold:CLOCk?
TRIGger:A:SETHold:CLOCk:EDGESets or returns the clock
TRIGger:A:SETHold:CLOCk:SOUrceSets or returns the clock
TRIGger:A:SETHold:CLOCk:THResholdSets or returns the clock
Description
pulse on which to trigger
Returns the trigger A pulse
width parameters
for the A pulse width trigger
for the pulse width trigger
width specification of pulse
width trigger events
setting for the pulse width
trigger
Returns the current A
runt pulse trigger logic
parameters
for the A pulse runt trigger
for the A pulse trigger
of pulse width the trigger
checks for when it uncovers
a runt
width for A pulse runt trigger
and hold violation triggering
Returns clock edge polarity,
voltage threshold and source
input for setup/hold triggering
edge polarity for setup and
hold triggering
source for the A logic trigger
setup and hold input
voltage threshold for setup
and hold trigger
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-45
Command Groups
Table 2-31: Trigger Commands (cont.)
Command
TRIGger:A:SETHold:DATa?
TRIGger:A:SETHold:DATa:SOUrceSets or returns the data
TRIGger:A:SETHold:DATa:THResholdSets or returns the data
TRIGger:A:SETHold:HOLDTimeSets or returns the hold
TRIGger:A:SETHold:SETTimeSets or returns the setup
TRIGger:A:SETHold:THReshold:CH<x>Sets or queries the threshold
TRIGger:A:UPPerthreshold:CH<x>Sets the upper threshold for
TRIGger:A{:TRANsition|:RISEFall}?
TRIGger:A{:TRANsition|:RISEFall}:DELTatimeSets o r returns the delta
TRIGger:A{:TRANsition|:RISEFall}:POLaritySets or returns the polarity
TRIGger:A{:TRANsition|:RISEFall}:SOUrceSets or returns the source
TRIGger:A{:TRANsition|:RISEFall}:WHEnSets or returns the
TRIGger:A:TYPeSets or returns the type of A
TRIGger:A:VIDeo?
TRIGger:A:VIDeo:HOLDoff:FIELDSets or returns the video
TRIGger:A:VIDeo:LINESets or returns the video
Description
Returns the voltage
threshold and data source
for the setup/hold trigger
source for the setup and hold
trigger
voltage threshold for setup
and hold trigger
time for the setup and hold
violation triggering
time for setup and hold
violation triggering
for the channel
the channel selected
Returns the delta time,
polarity, and both upper and
lower threshold limits for the
transition time trigger
time used in calculating the
transition value
for the A pulse transition
trigger
for transition trigger
relationship of delta time
to transitioning signal
trigger
Returns the video
parameters for the A trigger
trigger holdoff
line number on which the
oscilloscope triggers
2-46MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Table 2-31: Trigger Commands (cont.)
Command Groups
Command
TRIGger:A:VIDeo:POLaritySets or returns the polarity of
TRIGger:A:VIDeo:SOUrceSets or returns the polarity of
TRIGger:A:VIDeo:STANdardSets or returns the video
TRIGger:A:VIDeo{:SYNC|:FIELD}Sets or returns the video
TRIGger:EXTernal?
TRIGger:EXTernal:PRObeSets or returns the
TRIGger:EXTernal:YUNIts?
TRIGger:STATE?Returns the current state of
Vertical Command Group
Description
the A video trigger
the video trigger
standard
field trigger
Returns external trigger
parameters
attenuation factor value of
the external probe connector
Returns the external trigger
vertical (Y) units value
the triggering system
Use the commands in the Vertical Command Group to control the vertical setup of
all live (channel) waveforms for acquisition and to display of channel, reference,
and math waveforms.
ble 2-32: Vertical Commands
Ta
CommandDescription
eturns auxiliary input parameters
AUXin?
AUXin:PRObeReturns all information concerning the probe
AUXin:PRObe:AUTOZeroSets the TekVPI probe attached to the
AUXin:PRObe:COMMANDSets the state of the specified probe control
AUXin:PRObe:DEGAUssStarts a degauss/autozero cycle on a TekVPI
AUXin:PRObe:DEGAUss:STATE?Returns the degauss state of the TekVPI
AUXin:PRObe:FORCEDRangeSets or returns the range of the TekVPI probe
AUXin:PRObe:GAINSets or returns the gain factor of the probe
R
attached to auxiliary input
auxiliary input to autozero
current probe attached to the auxiliary input
current probe attached to the auxiliary input
attached to the auxiliary input
that is attached to the auxiliary input
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-47
Command Groups
Table 2-32: Vertical Commands (cont.)
CommandDescription
AUXin:PRObe:ID:SERnumber?Returns the serial number of the probe that
is attached to the auxiliary input
AUXin:PRObe:ID:TYPE?Returns the type of probe that is attached to
the auxiliary input
AUXin:PRObe:RESistance?Returns the resistance of the probe that is
attached to the Auxiliary input
AUXin:PRObe:SIGnalSets or returns the input bypass setting on
VPI probes that support input bypass
AUXin:PRObe:UNIts?Returns the units of measure of the probe
that is attached to the auxiliary input
CH<x>?Returns vertical parameters for the specified
channel
CH<x>:BANdwidthSets or returns the bandwidth of the specified
channel
CH<x>:COUPlingSets or returns the coupling setting for the
specified channel
CH<x>:DESKewSets or returns the deskew time for the
specified channel
CH<x>:IMPedanceSets or returns channel <x> input impedance
CH<x>:INVertSets or returns the invert function for the
specified channel
CH<x>:LABelSets or returns the waveform label for
channel <x>
CH<x>:OFFSetSets or returns the channel offset
CH<x>:POSitionSets or returns the channel vertical position
CH<x>:PRObe?
CH<x>:PRObe:AUTOZeroSets the TekVPI probe attached to the
CH<x>:PRObe:COMMANDSets the state of the specified probe control
CH<x>:PRObe:DEGAUssStarts a degauss/autozero cycle on a TekVPI
CH<x>:PRObe:DEGAUss:STATE?Returns the state of the probe degauss
CH<x>:PRObe:FORCEDRangeSets or returns the range on a TekVPI probe
CH<x>:PRObe:GAINSets or returns the gain factor of the probe
CH<x>:PRObe:ID?Returns the type and serial number of
Returns the gain, resistance, units, and ID
of the probe that is attached to the specified
channel
specified channel input to autozero
current probe attached to the specified
channel input
attached to the specified channel
that is attached to the specified channel
the probe that is attached to the specified
channel
2-48MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Command Groups
Table 2-32: Vertical Commands (cont.)
CommandDescription
CH<x>:PRObe:ID:SERnumber?Returns the serial number of the probe that
is attached to the specified channel
CH<x>:PRObe:ID:TYPE?Returns the type of probe that is attached to
the specified channel
CH<x>:PRObe:RESistance?Returns the resistance of the probe that is
attached to the specified channel
CH<x>:PRObe:SIGnalSets or returns the input bypass setting of
channel <x>TekVPI probe
CH<x>:PRObe:UNIts?Returns the units of measure of the probe
that is attached to the specified channel
CH<x>:SCAleSets or returns the vertical scale of the
specified channel
CH<x>:TERminationSets or r eturns channel input termination
CH<x>:VOLtsSets or returns the vertical sensitivity for
channel <x>
CH<x>:YUNitsSets or returns the units for the specified
channel to a custom string
REF<x>?Returns reference waveform data for channel
<x>
REF<x>:DATE?Returns the date that a reference waveform
was stored
REF<x>:HORizontal:DELay:TIMeSets or returns the horizontal position of the
specified reference waveform in percent of
the waveform that is displayed to the right of
the center vertical graticule
REF<x>:HORizontal:SCAleSets or returns the horizontal scale for a
reference waveform
REF<x>:LABel
REF<x>:POSitionSets or returns the vertical position for
REF<x>:TIMe?Returns the time that a reference waveform
REF<x>:VERTical:POSitionSets or returns the vertical position of the
REF<x>:VERTical:SCAleSets or returns the reference waveform
SELectReturns information on which waveforms are
Sets or returns the specified reference
waveform label
channel <x>, where x is the reference
channel number
was stored
specified reference waveform
vertical scale in vertical units/div
on or off and which waveform is selected.
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-49
Command Groups
Table 2-32: Vertical Commands (cont.)
CommandDescription
SELect:BUS<x>Turns on or off the specified bus waveform
or returns whether the specified bus channel
is on or off
SELect:CH<x>Turnsonoroffthespecified waveform or
returns whether the specified channel is on
or off
SELect:D<x>Turns on the display of the digital channel
<x> and resets the acquisition. <x > is the
channel number
SELect:CONTROlSets or returns the waveform that is selected
as the implied recipient of channel-related
commands
SELect:MATH[1]Turns on or off the math waveform or returns
whether the math waveform is on or off
SELect:REF<x>Turnsonoroffthespecified reference
waveform or returns whether the specified
reference waveform is on or off
Waveform Transfer Command Group
Use the commands in the Waveform Transfer Command Group to transfer
eform data points to and from the oscilloscope. Waveform data points are a
wav
collection of values that define a waveform. One data value usually represents
one data point in the waveform record. When working with envelope waveforms,
each data value is either the minimum or maximum of a min/max pair.
2-50MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Command Groups
NOTE. The sourc
on for the following queries to return a response:
CURVe?
DATa:COMPosition:AVAILable?
WAVFrm?
WFMOutpre:RECOrdlength?
WFMOutpre:FILTERFreq?
WFMOutpre:NR_Pt?
WFMOutpr
WFMOutpre:PT_ORder?
WFMOutpre:XUNit?
WFMOutpre:XINcr?
WFMOutpre:XZEro?
WFMOutpre:PT_Off?
WFMOu
tpre:YUNit?
e waveform (as specified by the DATa:SOUrce) must be turned
e:PT_Fmt?
ata Formats
D
WFMOutpre:YMUlt?
WFMOutpre:YOFf?
WFMOutpre:YZEro?
Before you transfer waveform data, you must specify the data format,
composition, resolution, record length, and waveform source or destination. For
more information on the waveform transfer features which are unique to the
MSO/DPO2000B and MSO/DPO2000 series, refer to Appendix B: Waveform
Data in MSO/DPO2000B and MSO/DPO2000 Series Instructions.(See page B-1.)
All data points for DPO models are signed integer format only. Valid data widths
for CH1–CH4, MATH, and REF1, REF2 are 1 and 2-byte widths. The valid data
widths for the digital collection (MSO models) is either 4 or 8-byte widths.
The oscilloscope can transfer waveform data in either ASCII or binary format.
You specify the format with the DATa:ENCdg command.
ASCII Data. 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.
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-51
Command Groups
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:
NOTE. You can use ASCII to obtain a readable and easier to format output than
binary. However, the oscilloscope may require bytes to send the same values with
ASCII than with binary, reducing transmission speed.
The use of ASCII for waveform data transfer is inefficient. ASCII-formatted
Waveform (WAVFRM?) and Curve (CURVE?) queries, exceeding 1 M points,
are not supported.
Binary Data. Binary data is represented by signed integer or positive integer
values. The range of the values depends on the byte width specified. When the
byte width is one, signed integer data ranges from -128 to 127, and positive
integer values range from 0 to 255. When the byte width is two, the values range
from -32768 to 32767. and positive integer values range from 0 to 65,535.
Waveform Data and Record
Lengths
Table 2-33: Binary data ranges
Byte widthSigned integer rangePositive integer range
1-128 to 1270 to 255
232,768 to 32,7670 to 65,535
The defined binary formats also specify t he 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 RIB i nary and RPBinary respectively 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.
You can transfer multiple points for each waveform record. You can transfer a
portion of the waveform or you can transfer the entire record. You can use the
DATa:STARt and DATa:STOP commands to specify the first and last data points
of the waveform record.
When transferring data into the oscilloscope, you must first specify the record
length of the destination waveform record. You do this with the WFMInpre:NR_Pt
2-52MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Command Groups
Waveform D
ata Locations
and Memory Allocation
Waveform Preamble
command. Next,
example, when you set DATa:STARt to 1, data points will be stored starting
with the first point in the record. The oscilloscope will ignore the value set by
DATa:STOP when reading in data. It will stop reading data when there is no data
to read or when it has reached the specified record length.
When transferring data from the 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.
The DATa:SOUrce command specifies the waveform source when transferring a
waveform from the oscilloscope. You can only transfer one waveform at a time.
Waveforms sent to the oscilloscope are always stored in one of the reference
memory l
memory location.
Each waveform you transfer has an associated waveform preamble, which
contai
in effect when the waveform was created. Refer to the individual WFMInpre and
WFMOutpre commands for information.
ocations. Use the DATa:DESTination command to specify a reference
ns information such as horizontal scale, vertical scale, and the other settings
specify the first data point within the waveform record. For
Scaling Waveform Data
Transferring Waveform
Data from the Oscilloscope
you transfer the waveform data to the controller, you can convert the data
Once
points into v oltage values for analysis using information from the waveform
preamble.
can transfer waveforms from the oscilloscope to an external controller using
You
the following sequence:
lect the waveform source(s) using DATa:SOUrce.
1. Se
2. Specify the waveform data format using DATa:ENCdg.
3. Specify the number of bytes per data point using WFMOutpre:BYT_Nr.
4. Specify the portion of the waveform that you want to transfer using
DATa:STARt and DATa:STOP.
5. Transfer waveform preamble information using the WFMOutpre? query.
6. Transfer waveform data from the oscilloscope using the CURVe? query.
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-53
Command Groups
Transferring Waveform
Data to the Oscillos cope
You can transfe
r waveforms to the oscilloscope from an external controller using
the following sequence:
1. Specify the reference waveform using DATa:DESTination.
2. Specify the record length of the reference waveform using WFMPre:NR_Pt.
3. Specify the waveform data format using WFMInpre:ENCdg.
4. Specify the number o f bytes per data point using WFMInpre:BYT_Nr.
5. Specify first data point i
n the waveform record using DATa:STARt.
6. Transfer waveform preamble information using WFMInpre.
7. Transfer waveform data to the oscilloscope using CURVe.
Table 2-34: Waveform Transfer Commands
Command
CURVeThe command format transfers waveform
DATa
DATa:COMPositionSets or returns the type of data that the
DATa:COMPosition:AVAILable?Lists the waveform data types that are
DATa:DESTinationSets or returns the reference waveform
DATa:ENCdgSets or returns the format of outgoing
DATa:RESOlutionSets or returns whether the CURVE query
DATa:SOUrceSets or returns the location of waveform data
DATa:STARtSets or returns the starting point in waveform
Description
data to the oscilloscope (reference waveform
specified by DATa:DESTination)
The query format transfers waveform
data from oscilloscope specified by the
DATa:SOUrce command
Sets the format and location of the waveform
data that is transferred with the CURVe
Command
Or returns the format and location of the
waveform data that is transferred with the
CURVe? command
CURVe? query returns
available for return from the instrument under
the current instrument settings
for storing waveform data sent to the
oscilloscope
waveform data
returns full resolution records (acquired
data) or reduced resolution records
(filtered/displayed data).
transferred from the oscilloscope
transfer
2-54MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Table 2-34: Waveform Transfer Commands (cont.)
Command Groups
Command
DATa:STOPSets or returns the ending data point in
WAVFrm?Returns a branch query containing waveform
WFMInpre?Returns the waveform formatting specification
WFMInpre:BIT_Nr
WFMInpre:BN_Fmt
WFMInpre:BYT_Nr
WFMInpre:BYT_OrSets or returns the byte order of waveform
WFMInpre:COMPositionSets and queries the type of waveform data
WFMInpre:FILTERFreq
WFMInpre:ENCdgSets or returns the type of encoding for
WFMInpre:NR_Pt
WFMInpre:PT_Fmt
WFMInpre:PT_Off
WFMInpre:XINcr
WFMInpre:XUNit
WFMInpre:XZEro
WFMInpre:YMUlt
WFMInpre:YOFfSets or returns the vertical position of the
WFMInpre:YUNit
Description
waveform transfer
data in either binary or ASCII format,
waveform formatting data, and the location of
the waveform data source
to be applied to the next incoming CURVE
command data
Sets or returns the number of bits per binary
waveform point for the incoming waveform
Sets or returns the format of binary data for
the incoming waveform
Sets or returns the data width for the
incoming waveform
points for the incoming waveform
to be transferred to the instrument with the
CURVe? command.
Sets or returns the byte order of waveform
points for the outgoing waveform
incoming waveform data
Sets or returns the number of points in the
incoming waveform record
Sets or returns the point format of incoming
waveform data
This query always returns a 0
Sets or returns the horizontal sampling
interval between incoming waveform points
Sets or returns the horizontal units of the
incoming waveform
Sets or returns the time of the first point i n
the incoming waveform
Sets or returns the vertical scale factor, per
digitizing level, of the incoming waveform
points
incoming waveform in digitizing levels
Sets or returns the vertical units of the
incoming waveform
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-55
Command Groups
Table 2-34: Waveform Transfer Commands (cont.)
Command
WFMInpre:YZEro
WFMOutpre?Returns the waveform formatting data for
WFMOutpre:BYT_OrSets or returns which byte of binary waveform
WFMOutpre:BIT_NrSets or returns the number of bits per
WFMOutpre:BN_FmtSets or returns the format of binary data for
WFMOutpre:BYT_NrSets or returns the data width for the outgoing
WFMOutpre:COMPositionControls or indicates the type of data used by
WFMOutpre:ENCdgSets or returns the type of encoding for
WFMOutpre:FILTERFreq?Specifies or returns the FilterVu low pass
WFMOutpre:NR_Pt?Returns the number of points for the
WFMOutpre:PT_Fmt?Returns the point format for the outgoing
WFMOutpre:PT_Off?This query always returns a 0 if the waveform
WFMOutpre:PT_ORder?
WFMOutpre:RECOrdlength?Returns the record length for the source
WFMOutpre:WFId?
WFMOutpre:XINcr?Returns the horizontal sampling interval for
WFMOutpre:XUNit?Returns the horizontal units for the outgoing
WFMOutpre:XZEro?Returns the time of the first point in the
Description
Sets or returns the vertical offset of the
incoming waveform
the waveform specified by the DATa:SOUrce
command
data is transmitted first, during a waveform
data transfer, when data points require more
than one byte.
waveform point that outgoing waveforms
contain
the outgoing waveform
waveform
the CURVe? query.
outgoing waveforms
filter frequency, which was applied to the
waveform being sent to the instrument.
waveform transmitted in response to a
CURVe? query
waveform
specified by DATA:SOUrce is on or displayed
This query always returns LINEAR.
waveform as specified by the DATa:SOUrce
command.
Returns a string describing the acquisition
parameters for the outgoing waveform
the outgoing waveform
waveform
outgoing waveform
2-56MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Table 2-34: Waveform Transfer Commands (cont.)
Command Groups
Zoom Command Group
Command
WFMOutpre:YMUlt?Returns the vertical scale factor per digitizing
WFMOutpre:YOFf?
WFMOutpre:YUNit?Returns the vertical units for the outgoing
WFMOutpre:YZEro?Returns the vertical offset for the outgoing
For more
information, refer to A ppendix B: Waveform Data in MSO/DPO2000B
Description
level for the outgoing waveform
Returns the vertical position in digitizing
levels for the outgoing waveform
waveform
waveform
and MSO/DPO2000 Series Instructions.(SeepageB-1.)
Use the commands in the Zoom Command Group to expand and position the
waveform display horizontally and vertically, without changing the time base.
Table 2-35: Zoom Commands
Command
ZOOm?
ZOOm{:MODe|:STATE}Sets or returns the z oom mode
ZOOm:ZOOM1?
ZOOm:ZOOM1:FACtor?Returns the zoom factor of a particular zoom
ZOOm:ZOOM1:HORizontal:POSitionSets or returns the horizontal zoom position
ZOOm:ZOOM1:HORizontal:SCAleSets or returns the horizontal zoom scale of
ZOOm:ZOOM1:POSitionSets or returns the horizontal zoom position
ZOOm:ZOOM1:SCAleSets or returns the horizontal zoom scale of
ZOOm:ZOOM1:STATESpecifies or returns a trace as zoomed, on
Description
Returns the current horizontal positioning
and scaling of the display
Returns the current horizontal positioning
and scaling of the display
box
for the specified waveform in the specified
zoom
the specified waveform in the specified zoom
for the specified waveform in the specified
zoom
the specified waveform in the specified zoom
or off
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-57
Command Groups
2-58MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Returns the maximum real-time sample rate, which is the same across all
MSO/DPO2000/B series m odels.
Group
Syntax
Examples
Acquisition
ACQuire:MAXSamplerate?
ACQUIRE:MAXSAMPLERATE? might return 1.0000E+9 in a DPO2024 instrument
indicating that the maximum real-time sample rate is 1 GS/s.
ACQuire:MODe
Sets or returns the acquisition mode of the oscilloscope for all live waveforms.
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-59
Commands Listed in Alphabetical Order
Group
Syntax
Related Commands
Arguments
Waveforms are t
Each acquisition interval represents a time duration set by the horizontal scale
(time per division). The oscilloscope sampling system always samples at the
maximum rate, so the acquisition interval may include 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.
Acquisition
ACQuire:MODe {SAMple|AVErage}
ACQuire:MODe?
ACQuire:NUMAVg, CURVe
SAMple specifies that the displayed data point value is the first sampled value
that is 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.
he displayed data point values taken from acquisition intervals.
AVErage specifies averaging mode, in which the resulting waveform shows an
average of SAMple data points from several separate waveform acquisitions. The
oscilloscope processes the number of waveforms you specify into the acquired
waveform, creating a running exponential average of the input signal. The number
of waveform acquisitions that go into making up the average waveform is set or
queried using the ACQuire:NUMAVg command.
Examples
ACQUIRE:MODE AVErage sets an average acquisition mode indicating that
the resulting waveform is the average of the specified number of waveform
acquisitions.
ACQUIRE:MODE? might return:ACQUIRE:MODE AVERAGE indicating that
the displayed waveform is the average of the specified number of waveform
acquisitions.
ACQuire:NUMACq? (Query Only)
The acquisition number will continue to increase while acquisitions are running
until there is a reset. Starting and stopping acquisitions do not cause this number
to reset. For example, if acquisitions are running, the acquisition count will
increase (assuming the oscilloscope is triggering). If you stop the acquisitions, the
acquisition number will freeze at a given number (For example: 5000). If you
2-60MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Commands Listed in Alphabetical Order
Group
Syntax
Related Commands
Returns
ACQuire:NUMAVg
start acquisit
only if you change the horizontal scale while acquisitions are running.
Acquisition
ACQuire:NUMACq?
ACQuire:STATE
ACQuire:NUMACq? might return :ACQUIRE:NUMACQ 350 indicating that 350
acquisitions have occurred.
Sets or returns the number of waveform acquisitio
waveform. Use the ACQuire:MODe command to enable the Average mode.
Sending this command is equivalent to turning a multipurpose knob to enter the
number of waveform acquisitions to average.
ions again, it will continue from 5000. The number will reset to 0
ns that make up an averaged
Related Commands
Arguments
Examples
ACQuire:STATE
Group
Syntax
Acquisition
ACQuire:NUMAVg <NR1>
ACQuire:NUMAVg?
ACQuire:MODe
<NR1> is the number of waveform acquisitions to average. The range of values is
from2to512inpowersoftwo.
ACQUIRE:NUMAVG 16 specifies that 16 waveform averages will be performed
before exponential averaging starts.
ACQUIRE:NUMAVG? might return :ACQUIRE:NUMAVG 64 indicating that there
are 64 acquisitions specified for averaging.
Starts or stops acquisitions. When state is set
will be started. If the last acquisition was a single acquisition sequence, a new
to ON or RUN, a new acquisition
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-61
Commands Listed in Alphabetical Order
Group
Syntax
Related Commands
Arguments
single sequenc
e acquisition will be started. If the last acquisition was continuous,
a new continuous acquisition will be started.
If RUN is issue
d in the middle of completing a single sequence acquisition (for
example, averaging or enveloping), the acquisition sequence is restarted, and
any a ccumulated data is discarded. Also, the oscilloscope resets the number of
acquisitions. If the RUN argument is issued while in continuous mode, acquisition
continues.
indicating that the next acquisition the oscilloscope makes will be of the
single-sequence type.
ALIas
Group
Syntax
Related Commands
Sets or returns the state of alias functionality. Use Alias commands to define new
commands as a sequence of standard commands. You may find this useful when
repeatedly using the same commands to perform certain tasks like setting up
measurements. Aliases are similar to macros but do not include the capability to
substitute parameters into alias bodies.
To use Alias commands, first define the alias, then turn on the alias state.
Alias
ALIas {OFF|ON|<NR1>}
ALIas?
ALIas:DEFine
ALIas[:STATE]
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-63
Commands Listed in Alphabetical Order
Arguments
Examples
OFF turns alias
command error (110) will be generated.
ON turns alias
command sequence is substituted for the alias and executed.
<NR1> =0dis
ALIAS ON turns the alias feature on. When a defined alias is received, the specified
command sequence is substituted for the alias and executed.
ALIAS? might return :ALIAS 1 indicating that the alias feature is on.
ALIas:CATalog? (Query Only)
Returns a list of the currently definedaliaslabels,separatedbycommas. Ifno
aliases are defined, the query returns the string "".
Group
Alias
expansion off. If a defined alias is sent when ALIas is off, a
expansion on. When a definedaliasisreceived,thespecified
ables alias mode; any other value enables alias mode.
ALIas:DEFine
Syntax
Examples
Group
Syntax
ALIas:CATalog?
ALIAS:CATALOG? might return the string :ALIAS:CATALOG
"SETUP1","TESTMENU1","DEFAULT"
named SETUP1, TESTMENU1, and DEFAULT.
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 that ALIas:STATE has been turned on. The query form of this command
returns the definitions of a selected alias.
NOTE. Attempting to give two aliases the same name causes an error. To give a
new alias the name of an existing alias, the existing alias must first be deleted.
2-64MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Commands Listed in Alphabetical Order
Related Commands
Arguments
Examples
ALIas[:STATE]
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 less than or equal to 12 characters.
The second
The messages can contain only valid commands that must be separated by
semicolons and must follow all rules for concatenating commands. The sequence
must be less than or equal to 256 characters.
ALIAS:DEFINE? "ST1" returns :ALIAS:DEFINE "ST1",#246
:RECALL:SETUP 5;:AUTOSET EXECUTE;:SELECT:CH1 ON
ALIas:DELEte (No Query Form)
<QString> or <Block> is a complete sequence of program messages.
defines an alias named "ST1" that sets
Removesaspecified alias and is identical to ALIas:DELEte:NAMe. An error
message is generated if the named alias does not exist.
Group
Syntax
Related Commands
Arguments
Examples
Alias
ALIas:DELEte <QString>
*ESR?, ALIas:DELEte:ALL
<QString> is the name of the alias to be removed. Using ALIas:DELEte
without specifying an alias causes an execution error.<QString> must be a
previously defined value.
ALIAS:DELETE "SETUP1" deletes the alias named SETUP1.
ALIas:DELEte:ALL (No Query Form)
Deletes all existing aliases.
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-65
Commands Listed in Alphabetical Order
Group
Syntax
Related Commands
Examples
Alias
ALIas:DELEte:ALL
ALIas:DELEte, ALIas:DELEte[:NAMe]
ALIAS:DELETE:ALL deletes all existing aliases.
ALIas:DELEte[:NAMe] (No Query Form)
Removesaspecified alias. This command is identical to ALIas:DELEte
Group
Syntax
Alias
ALIas:DELEte[:NAMe] <QString>
Arguments
Examples
ALIas[:STATE]
Arguments
Group
Syntax
<QString> is the name of the alias to remove. Using ALIas:DELEte[:NAMe]
without specifying an alias causes an execution error. <QString> must be an
existing alias.
ALIAS:DELETE[:NAME] “STARTUP” deletes the alias named STARTUP.
Turns aliases on or off. This command is identical to the ALIas command.
Alias
ALIas[:STATE] {<NR1>|OFF|ON}
ALIas[:STATE]?
OFF or <NR1> = 0 turns alias expansion off. If a defined alias is sent when
ALIas:STATE is OFF, a command error (102) is generated.
ON or <N R1>0 turns alias expansion on. When a defined alias is received, the
specified command sequence is substituted for the alias and executed.
2-66MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Examples
ALLEv? (Query Only)
Commands Listed in Alphabetical Order
OFF
ALIAS[:STATE]
ALIAS[:STATE]? returns 0 when the alias feature is off.
Prompts the oscilloscope to return all events and their messages (delimited by
commas), and removes the returned events from the Event Queue. Use the *ESR?
query to enable the events to be returned. This command is similar to repeatedly
sending *EVMsg? queries to the oscilloscope.
turns the command alias feature off.
Group
Syntax
Related Commands
Examples
Status and Error
ALLEv?
*ESR?, EVMsg?
ALLEV? might return :ALLEV 2225,"Measurement error, No wave form
to measure; "420,"Query UNTERMINATED;"
AUTOSet (No Query Form)
Sets the vertical, horizontal, and trigger controls of the oscilloscope to
automatically acquire and display the selected waveform.
Group
Miscellaneous
Syntax
Arguments
Examples
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-67
AUTOSet {EXECute|UNDo}
EXECute autosets the displayed waveform.
UNDo restores the oscilloscope settings to those present prior to the autoset
execution.
AUTOSET EXECUTE vertical, horizontal, and trigger controls of the oscilloscope to
automatically acquire and display the selected waveform.
Commands Listed in Alphabetical Order
AUTOSet:ENAb
Related Commands
Arguments
Examples
le
Group
Syntax
Enables or disables the autoset.
iscellaneous
M
AUTOSet:ENAble {OFF|ON}
AUTOSet:ENAble?
AUTOSet
ON enables the autoset feature.
OFF disables the autoset feature.
AUTOSET:ENABLE ? might return AUTOSET:ENABLE 1 indicating that autoset is
enabled.
AUTOSET:ENABLE OFF disables autoset.
AUXin? (Query Only)
Group
Syntax
AUXin:PRObe
Group
Syntax
Returns all auxiliary input parameters.
Vertical
AUXin?
Returns all information concerning the probe attached to auxiliary input.
Vertical
AUXin:PRObe
AUXin:PRObe?
2-68MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual
Commands Listed in Alphabetical Order
Examples
AUXIN:PROBE? m
Detected";SERNUMBER "";:AUXIN:PROBE:UNITS "";RESISTANCE
1.0000E+6
ight return
giving information about the probe attached to the AUX In input.
AUXin:PRObe:AUTOZero (No Query Form)
Sets the TekVPI probe attached to the Aux In input to autozero. The oscilloscope
will ignore this command if the Auxiliary input does not have a TekVPI probe
connected to it.
Group
Syntax
Arguments
Examples
Vertical
AUXin:PRObe:AUTOZero {EXECute}
EXECute sets the probe to autozero.
AUXin:PROBE:AUTOZERO EXECUTE
AUXIN:PROBE:ID:TYPE "No Probe
AUXin:PRObe:COMMAND (No Query Form)
Sets the state of the probe control sp
specified with the second argument. The commands and states are unique to the
attached probe type. Only certain VPI probes support this command. See the
probe documentation for how to set these string arguments.
Group
Syntax
Arguments
Examples
Vertical
AUXin:PRObe:COMMAND <QString>, <QString>
<QString> are quoted strings specifying the probe command and value to set in
the probe attached to the auxiliary input.
AUXIN:PROBE:COMMAND “OUTPUT”, “ON” turns the output of a Tektronix
VPI-DPG probe on.
AUXIN:PROBE:COMMAND “MODE”, “4–4V1MHz” sets a Tektronix VPI-DPG
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual2-69
Commands Listed in Alphabetical Order
AUXin:PRObe:
DEGAUss (No Query Form)
Starts a degauss/autozero cycle on a TekVPI current probe attached to the Aux In
input. If you send this command to a probe that does not support this function,
it is ignored
Group
Syntax
Arguments
Examples
Vertical
AUXin:PRObe:DEGAUss {EXECute}
EXECute starts a probe degauss cycle.
AUXin:PROBE:DEGAUSS EXECUTE degausses the probe attached to the Aux
In input.
AUXin:PRObe:DEGAUss:STATE? (Query Only)
Returns the state of the probe degauss (NEEDED, RECOMMENDED, PASSED,
FAILED, RUNNING). The command will return PASSED for probes that do not
support degauss operations.
Group
Syntax
Examples
Vertical
AUXin:PRObe:DEGAUss:STATE?
AUXin:PROBE:DEGAUSS:STATE? might return:
AUXin:PROBE:DEGAUSS:STATE PASSED indicating that the probe has been
degaussed.
AUXin:PRObe:FORCEDRange
Changes or returns the range on a TekVPI probe attached to the Aux In input.
NOTE. This query will return 0.0 if no probe is attached or the attached probe
does not report the
This command changes the input bypass setting on VPI probes that support input
bypass, for example the TCP0001. If sent to a probe that does not support input
bypass, it is ignored.
Vertical
indicating that the input resistance of t he probe attached to the front