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.
14200 SW Karl Braun Drive
P.O. Box 50
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.
racter Set ......................... .................................. ..........................A-1
iiMSO4000 and DPO4000 Series Programmer Manual
Getting Started
This manual explains the use of commands for remotely controlling your
oscilloscope. With this information, you c an write computer programs to
perform func
performing statistical calculations, and exporting data for use in other programs.
Setting Up Remote Communications
You can remotely communicate between your oscilloscope and PC via the
Ethernet, USB, and, GPIB using the TEK-USB-488 Adapter.
tions, such as setting the front-panel controls, taking measurements,
Ethernet
If you are
Ethernet port (RJ-45 connector) on the rear panel of your oscilloscope. This
connects the oscilloscope to a 10/100 Base-T local area network.
To change the Ethernet settings on your oscilloscope, do the following:
1. On the front panel, push Utility.
2. Push Utility Page.
3. Select I/O with the Multipurpose knob.
using Ethernet, start by connecting an appropriate Ethernet cable to the
4. Push Ethernet Network Settings.
5. On the side-bezel menu, if you are on a DHCP Ethernet network and using athrough cable, set DHCP/BOOTP to On.
6. If you are using a cross-over cable, set DHCP/BOOTP to Off, and set a hard
coded TCPIP address.
USB
MSO4000 and DPO4000 Series Programmer Manual1-1
If you are using USB, start by connecting an appropriate USB cable to the U SB
2.0 high-speed device port on the rear panel of your oscilloscope.
Getting Started
With USB, the system automatically configures itself. To verify that the USB is
enabled:
1. On the front panel, push Utility.
2. Push Utility Page.
3. Select I/O with the Multipurpose knob.
GPIB
4. Push USB, and verify that USB is enabled.
5. If USB is disabled, push Connect to computer on the side-bezel menu.
After connection, the host, with appropriate software, can list the oscilloscope as a
USB device with the following parameters. (See Table 1-1.)
Table 1-1: USB Device Parameters
ParameterValue
Manufacturer ID0x0699 (decimal 1689)
Product ID
Serial numberSerial number
Manufacturer description
Interface description“USBTMC-USB488”
0x0401 (decimal 1025)
“Tektronix”
To use GPIB, start by connecting an appropriate USB cable to the USB 2.0 high
speed device port on the rear panel of your oscilloscope. Connect the other 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. Use the optional 5 V
power adapter connected to the 5 VDCpower input
DC
on the Adapter.
2. Use an appropriate USB cable connected to a powered USB host port on your
PC and the Device port on the TEK-USB-488 Adapter.
1-2MSO4000 and DPO4000 Series Programmer Manual
Getting Started
The oscillosco
through USBTMC or GPIB with a TEK-USB-488 Adapter. The USBTMC
protocol allows USB devices to communicate using IEEE488 style messages.
This lets you run your GPIB software applications on USB hardware.
Before setting up the oscilloscope for remote communication using the electronic
(physical) GPIB interface, you should familiarize yourself with the following
GPIB requirements:
A unique device address must be assigned to each device on the bus. No two
devices can share the same device address.
No than 15 devices can be connected to any one line.
One device should be connected for every 6 feet (2 meters) of cable used.
No than
At least two-thirds of the d evices on the network should be powered on while
using
pe has a USB 2.0 High speed device port to control the oscilloscope
65 feet (20 meters) of cable should be used to connect devices to a bus.
the network.
Connect the devices on the network in a star or linear configuration. Do not
oop or parallel configurations.
use l
To function correctly, your oscilloscope must have a unique device address. The
ault setting for the GPIB c onfiguration is GPIB Address 1.
def
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.
5. Enter the GPIB address on the side-bezel menu, using the multipurpose knob.
This will set the GPIB address on an attached TEK-USB-488 Adapter
The oscilloscope is now set up for bidirectional communication with your
controller.
MSO4000 and DPO4000 Series Programmer Manual1-3
Getting Started
Documentation
The following d
Web site at www.tektronix.com:
MSO4000 and DP
Information about installing and operating the oscilloscope.
Getting Sta
from your oscilloscope into a ny one of several available analysis tools.
MSO4000 and
Reference. Oscilloscope specifications and a performance verification procedure.
TekVI SA P r
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).
ocuments are available for download on the Manuals Finder
O4000 Series Digital Phosphor Oscilloscopes User Manual.
rted with OpenChoice ™ Solutions Manual. Options for getting data
DPO4000 Series Digital Phosphor Oscilloscopes Technical
ogrammer Manual. Description of TekVISA, the Tektronix
1-4MSO4000 and DPO4000 Series 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 ma rk 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
MSO4000 and DPO4000 Series Programmer Manual2-1
A command message is a command or query name followed by any information
the oscilloscope n eeds to execute the command or query. Command messages
may contain five element types, 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
(:) c haracte
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 c haracter is used between a command header and the
related argument. Optionally, a white space may consist of m ultiple
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.
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 specified 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?
he oscilloscope to return status or setting information. Queries
14:30:00:TIME “14:30:00”
100
:ACQUIRE:NUMAVG 100
Clearing the oscilloscope
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.
Command Entry
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 any combination of white
space characters and line feeds.
MSO4000 and DPO4000 Series Programmer Manual2-3
Command Syntax
Abbreviating
Concatenating
You can abbrevi
ate 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
or acq:numa.
Abbreviation rules may change over time as new oscilloscope models are
introduced. Thus, for the most robust code, use the full spelling.
If you use the HEADer command to have command headers included as part
of query responses, you can further control whether the returned headers are
abbreviated or are full-length with the VERBose command.
You can concatenate any combination of set commands and queries using a
semicolon (;). The oscilloscope executes concatenated commands in the order
received.
When concatenating commands and queries, you must follow these rules:
1. Separate completely different headers by a semicolon and by the beginning
colon on all commands 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 ENVelope
and ACQuire:NUMAVg 8 into a single command:
ACQuire:MODe ENVelope; NUMAVg 8
The longer version works equally well:
ACQuire:MODe ENVelope;: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 ENVel
ope;*OPC;NUMAVg 8
will set the acquisition mode to envelope and set the number of acquisitions
for averaging to 8.
4. When you concat enate queries, the responses to all the queries are
concatenated into a single response message. For example, if the display
graticule is set to Full and the display style is set to dotsonly, the concatenated
query
DISplay:GRAticule?;STYle:DOTsonly? will return the following.
Iftheheaderison:
DISPLAY:GRATICULE FULL;:DISPLAY:STYLE:DOTSONLY 1
2-4MSO4000 and DPO4000 Series Programmer Manual
Command Syntax
If the header is
FULL;1
off:
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 o f acquisitions for averaging and the acquisition state.
Concatenated commands and queries are executed in the order receive d.
Here are some invalid concatenations:
DISPlay:STYle:NORMal;ACQuire:NUMAVg 8 (no colon before ACQuire)
DISPlay:GRAticule FULL;:DOTSONLY OFF (extra colon before
DOTSonly. You could use DISPla y:DOTsonly OFF instead)
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)
Terminating
This documentation uses <EOM> (End of Message) to represent a message
terminator.
Table 2-4: End of Message Terminator
SymbolMeaning
<EOM>
Th
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 mnemonic can be CH1, CH2, CH3, or CH4. You use these mnemonics
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>.
Message terminator
e end-of-message terminator must be the END message (EOI asserted
MSO4000 and DPO4000 Series Programmer Manual2-5
Command Syntax
Math Spe
Cursor Position
Mnemonics
cifier Mnemonics
When cursors ar
e displayed, commands may specify which cursor of the pair to
use.
Table 2-5: Channel Mnemonics
SymbolMeaning
CH<x>A channel specifier; <x> is 1 through 4.
Table 2-6: C ursor 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.
Measurement Specifier
Mnemonics
hannel Mnemonics
C
Reference Waveform
Mnemonics
Commands can specify which measurement to set or query as a mnemonic in the
header. Up to eight 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 h eader.
Commands can specify the reference waveform to use as a mnemonic in the
header.
Table 2-9: Reference Waveform Mnemonics
SymbolMeaning
REF<x>
A reference waveform specifier; <x> is 1, 2, 3, or 4 for 4-channel
oscilloscopes and 1 or 2 for 2-channel oscilloscopes.
2-6MSO4000 and DPO4000 Series Programmer Manual
Argument Types
Command Syntax
Commands use arguments such as enumeration, numeric, quoted string and block.
Each of these arguments are listed in detail below.
Enumeration
Numeric
Enter these arguments as unquoted text words. Like key words, enumeration
arguments follow the same convention where the portion indicated in uppercase is
required and that in lowercase is optional.
For example:
Many osci
SAVe:WAVEform:FILEFormat INTERNal
lloscope commands require numeric arguments. The syntax shows
the format that the oscilloscope returns in response to a query. This is also the
preferred format when sending the command to the o scilloscope though any of
the formats will be accepted. This documentation represents these arguments as
described below.
Table 2-10: Numeric A rguments
SymbolMeaning
<NR1>
<NR2>Floating point value without an exponent
<NR3>Floating point value with an exponent
<bin>
Signed integer value
Digital data in binary format
Most numeric arguments will be automatically forced to a valid setting, by either
rounding or truncating,, when an invalid number is input, unless otherwise noted
the command description.
in
Quoted String
Some commands accept or return data in the form of a quoted string, w hich 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
Table 2-11: Quoted String Argument
SymbolMeaning
<QString>Quoted string of ASCII text
MSO4000 and DPO4000 Series Programmer Manual2-7
Command Syntax
A quoted string
can include any character defined in the 7-bit ASCII character
set. Follow these rules when you use quoted strings:
1. Use the same ty
example:
2. You can mix q
previous rule. For example:
3. You c an i ncl
example:
4. Strings ca
pe of quote character to open and close the string. For
"this is a valid string".
uotation marks within a string as long as you follow the
"this is an ’acceptable’ string".
ude a quote character within a string b y repeating the quote. For
"here is a "" mark".
n have u pper or lower case characters.
5. If you use a GPIB network, you cannot terminate a quoted string with the
END messa
ge before the c losing delimiter.
6. A carriage return or line feed embedded in a quoted string does not terminate
the stri
ng. The return is treated as another character in the string.
7. The maximum length of a quoted string returned from a query is 1000
ters.
charac
Here are some invalid strings:
"Invalid string argument’ (quotes are not of the same type)
Block
"test<EOI>" (termination character is embedded in the string)
Several oscilloscope commands use a block argument form, as defined in the
table below.
Table 2-12: Block Argument
SymbolMeaning
<NZDig>
<Dig>
<DChar>A character with the hexadecimal equivalent of 00 through FF (0
<Block>
A nonzero digit character i n 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[<D Char>...]<term inator>}
<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-8MSO4000 and DPO4000 Series Programmer Manual
Command Syntax
MSO4000 and DPO4000 Series Programmer Manual2-9
Command Syntax
2-10MSO4000 and DPO4000 Series Programmer Manual
Command Groups
This manual lists the MSO4000 and DPO4000 Series IEEE488.2 commands
in two ways. First, it presents them by functional groups. Then, it lists them
alphabetica
provides detail on each command. (See page 2-69, Commands Listed inAlphabetical Order.)
Acquisition Command Group
Use the commands in the Acquisition Command Group to set up the m odes 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, or enveloped
over successive acquisitions of that waveform.
Set the controls or conditions that start and stop acquisitions.
Contr
lly. The functional group list starts below. The alphabetical list
ol acquisition of channel waveforms.
Set acquisition parameters.
e 2-13: Acquisition Commands
Tabl
CommandDescription
urns acquisition parameters
ACQuire?
ACQuire:MAGnivuSets or returns the MagniVu feature
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
turns the maximum real-time sample rate
Re
occurred
an averaged waveform
continuous or single sequence
MSO4000 and DPO4000 Series 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 he ader.
The alias
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 being 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-12MSO4000 and DPO4000 Series Programmer Manual
Command Groups
Bus Command Gr
oup
Use the Bus commands when working with serial or parallel bus measurements.
Install the DPOEMBD application module when working with I2CorSPI
bus signals.
Install the DPO4COMP module when working with RS-232, RS-422,
RS-485, or UART bus signals.
Install the DPO4AUDIO module when working with I2S, Left Justified (LJ),
Right Justified (RJ), or TDM bus signals.
Install the DPO4AUTO or DPO4AUTOMAX module when working with
CAN or LIN bus signals.
Install the DPO4AUTOMAX module when working with FlexRay bus
signals.
NOTE. LIN and FlexRay work on DPO4000s with serial numbers greater than
C02000
0 and on all MSO4000s.
NOTE. The parallel bus commands work with MSO4000 Series oscilloscopes only.
NOTE. The Search Command Group and the Trigger Command Group also
contain bus-related commands.
Table2-15:BusCommands
mands
Com
S
BU
S:B<1-4>:AUDio:BITDelay
BU
BUS:B<1-4>:AUDio:BITOrderSets or returns the bit order for the AUDIO
BUS:B<1-4>:AUDio:CHANnel:SIZeSets o r returns the number of bits per
BUS:B<1-4>:AUDio:CLOCk:POLaritySets or returns the clock polarity for the
BUS:B<1-4>:AUDio:CLOCk:SOUrceSets or returns the clock source waveform
BUS:B<1-4>:AUDio:DATa:POLaritySets or returns the data polarity for the
BUS:B<1-4>:AUDio:DATa:SIZeSets or returns the number of bits per word
cription
Des
turns the parameters for each bus
Re
ts or returns the number of delay bits for
Se
the AUDIO bus
bus
channel for the AUDIO bus
AUDIO bus
for the AUDIO bus
AUDIO bus
for the AUDIO bus
MSO4000 and DPO4000 Series Programmer Manual2-13
Command Groups
Table2-15:BusCommands(cont.)
CommandsDescription
BUS:B<1-4>:AUDio:DATa:SOUrceSets or returns the data source waveform for
the A UD IO bus
BUS:B<1-4>:AUDio:DISplay:FORMatSets or returns the display format for the
AUDIO bus
BUS:B<1-4>:AUDio:FRAME:SIZeSets or returns the number of channels in
each frame for the AUDIO bus
BUS:B<1-4>:AUDio:FRAMESync:POLaritySets or returns the frame sync polarity for
the A UD IO bus
BUS:B<1-4>:AUDio:FRAMESync:SOUrceSets or returns the frame sync source
waveform for the AUDIO bus
BUS:B<1-4>:AUDio:TYPeSets or returns the audio format ( type) for
the A UD IO bus
BUS:B<1-4>:AUDio:WORDSel:POLaritySets or returns the word select polarity for
the A UD IO bus
BUS:B<1-4>:AUDio:WORDSel:SOUrceSets or returns the word select source
waveform for the AUDIO 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 CAN 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>:DISplay:TYPeSets the display type for the specified bus
BUS:B<x>:FLEXray:BITRateSets or returns the bit rate for FLEXRAY
BUS:B<x>:FLEXray:CHannelSets or returns the FLEXRAY ID format
BUS:B<x>:FLEXray:SIGnalSets or returns the FLEXRAY standard
BUS:B<x>:FLEXray:SOUrceSets or returns the FLEXRAY data source
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
2-14MSO4000 and DPO4000 Series Programmer Manual
Command Groups
Table 2-15: Bus Commands (cont.)
CommandsDescription
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 source for the
specified bus
BUS:B<x>:PARallel:CLOCK:EDGESets or returns the Parallel clock edge for
the specified bus
BUS:B<x>:PARallel:CLOCK:ISCLOCKedSets or returns the Parallel bus clock function
for the specified bus
BUS:B<x>:PARallel:CLOCK:SOUrceSets or returns the Parallel clock source for
the specified bus
BUS:B<x>:PARallel:WIDthSets or returns the w idth of the Parallel bus
BUS:B<x>:POSitionSets or returns the position of the specified
bus waveform
BUS:B<x>:RS232C:BITRateSets or returns the RS-232 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 RS-232 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 RS-232 data
BUS:B<x>:RS232C:POLaritySets or returns the RS-232C polarity for the
specified bus
BUS:B<x>:RS232C:RX:SOUrceSets or returns the RS-232 RX source
BUS:B<x>:RS232C:TX:SOUrceSets or returns the RS-232 TX Source
BUS:B<x>:SPI:BITOrderSets or returns the bit order for the specified
SPI bus
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:DATA:SIZeSets or returns the number of bits per word
BUS:B<x>:SPI:FRAMINGSets or returns the SPI framing type
BUS:B<x>:SPI:IDLETimeSets or returns the SPI bus idle time in
Sets or returns the SPI MOSI polarity
for the specified bus
seconds for the specified bus
MSO4000 and DPO4000 Series Programmer Manual2-15
Command Groups
Table2-15:BusCommands(cont.)
CommandsDescription
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>: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
channel
BUS:THReshold:CH<x>Sets or returns the threshold for a channel
BUS:THReshold:D<x>Sets or returns the threshold for a digital
channel
BUS:UPPerthreshold:CH<x>Sets or returns the upper threshold for each
channel
2-16MSO4000 and DPO4000 Series Programmer Manual
Command Groups
Calibration a
nd Diagnostic Command Group
The Calibration and Diagnostic commands provide information about the current
state of oscilloscope calibration. They also initiate internal signal path calibration
(SPC) or exec
calibration are not described in this manual. They are described in the Service
manual, located on the DPO4000 Documentation CD-ROM in PDF format. You
can also order a printed copy.
Table 2-16: Calibration and Diagnostic Commands
Command
*CAL?Instructs the oscilloscope to perform
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
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 self-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
saved in nonvolatile memory
signal path calibration
subsystems without performing an SPC
operation
calibration
loop
self-test sequence execution
self-test sequence execution
subsystem
Cursor Command Group
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, such as cursor position.
MSO4000 and DPO4000 Series Programmer Manual2-17
Command Groups
You can also use
the commands to select one of the following cursor functions:
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 wavefor
m display area.
Table 2-17: Cursor Commands
Command
CURSor?
CURSor:DDT?Returns the cursor deltaY/deltaT (dY/dT)
CURSor:HBArs:POSITION<x>Sets or r eturns 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 horizontal difference between
CURSor:VBArs:HPOS<x>?Returns the vertical value of the specified
CURSor:VBArs:POSITION<x>Sets or returns the vbar cursor<x> horizontal
CURSor:VBArs:UNItsSets or returns the horizontal units for vbar
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
Description
Returns cursor settings
readout
Returns hbar cursor settings
position
Returns hbar cursor units
scale, for use with ratio cursors
unison or separately
cursors
waveform (V bar) cursors
vbar cursors
vertical bar tick
position
cursors
scale
two vertical bar cursor ticks
X radius and the cursor Y radius
2-18MSO4000 and DPO4000 Series Programmer Manual
Table 2-17: Cursor Commands (cont.)
Command Groups
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:PO SITION<x>?
CURSor:XY:POLar:THETA:U NIts ?
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:READOUTSets or returns the XY cursor readout
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
selection.
Returns the cursor X delta value in
rectangular coordinates
coordinates
Returns The cursor Y delta value in
rectangular coordinates
coordinate
Returns the cursor Y rectangular units
Display Command Group
Use the commands in the Display Command Group to change the graticule style,
the display intensities, and to set the characteristics of the waveform display.
NOTE. Your settings globally affect all displayed waveforms.
MSO4000 and DPO4000 Series Programmer Manual2-19
Command Groups
Table 2-18: Dis
Command
DISplay?
DISplay:CLOCkSets or returns the display of the date/time
DISplay:DIGital:HEIghtSets or returns the number of available digital
DISplay:G
DISplay:FORMatSets or returns the display format
DISplay:INTENSITy?
DISplay:INTENSITy:BACKLightSets or returns the backlight intensity for the
DISplay:INTENSITy:GRAticuleSets or returns the graticule intensity for the
y:INTENSITy:WAVEform
DISpla
ay:PERSistence
DISpl
lay:STYle:DOTsonly
DISp
age
MESS
MESSage:BOXSets or returns the coordinates of the
MESSage:CLEARClears the contents of the message box.
MESSage:SHOWSets or returns the contents of the message
ESSage:STATE
M
play Commands
RAticule
Description
Returns curre
stamp
waveform po
Sets or ret
displayed
Returns a
display
displa
Sets or
Sets o
a dots-only display
Sets
or queries message box (screen
Sets
annotation) parameters
message box
x
bo
ontrols the display of the message box
C
nt display settings
sition slots
urns the type of graticule that is
ll display intensity settings
y
returns the intensity of the waveforms
r returns display persistence setting
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?
2-20MSO4000 and DPO4000 Series Programmer Manual
Description
search for a DHCP/BOOTP server
Server (Dns) IP address
Returns the Ethernet address value assigned
to the oscilloscope
Table 2-19: Ethernet Commands (cont.)
Command Groups
Command
ETHERnet:GATEWay:IPADDressSets or returns the remote interface gateway
ETHERnet:HTTPPort
ETHERnet:IPADDress
ETHERnet:NAME
ETHERnet:PASSWordSets or returns the Ethernet access password
ETHERnet:PINGCauses the o scilloscope 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 help you use
CompactFlash and USB media. You can use the commands to do the f ollowing:
Description
IP address
Sets or returns the remote interface HTTP
port value
Sets or returns the IP address assigned to
the osc illoscope
Sets or returns the network name assigned
to the oscilloscope
IP address
IP address
mask value
List the contents of a directory
Create and delete directories
Create, read, rename, or delete a file
ormat media
F
When using these commands, keep the following points in mind:
File arguments are always enclosed within double quotes:
"D:/MYDIR/TEK00001.SET"
File names follow the non-case sensitive, MSDOS format:
[DRIVE:][\PATH\]filename
Path separators may be either forwardslashes(/)orbackslashes(\)
MSO4000 and DPO4000 Series Programmer Manual2-21
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, "D:\\testfile.txt".
Table 2-20
Command
FILESystem?Returns the file system state
FILESystem:CWDSets or returns the current working d irectory
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
Hard Copy Command Group
Use the commands in the Hard Copy Command Group to make hard copies.
PictBridge commands belong to a separate group. (See page 2-32, PictBridgeCommand Group.)
Table 2-21: Hard Copy Commands
Command
HARDCopySends a copy of the screen display to the
HARDCopy:ACTIVeprinterSets or returns the currently active printer
HARDCopy:INKSaverChanges hard copy output to print color
2-22MSO4000 and DPO4000 Series Programmer Manual
Description
selected printer
traces and graticule on a white background
Table 2-21: Hard Copy Commands (cont.)
Command Groups
Command
HARDCopy:LAYoutSets or returns the page orientation for hard
HARDCopy:PREVIEW
HARDCopy:PRINTer:ADDAdds a network printer to the list of available
HARDCopy:PRINTer:DELeteRemoves a network printer from the list of
HARDCopy:PRINTer:LIST?Returns the list of currently attached printers
HARDCopy:PRINTer:RENameRenames a network printer in the list of
Description
copy
Previews the current screen contents with
the InkSaver palette applied
printers
available printers
available printers
MSO4000 and DPO4000 Series Programmer Manual2-23
Command Groups
Horizontal Co
mmand Group
Use the commands in the Horizontal Command Group to control the oscilloscope
horizontal parameters.
Table 2-22: Horizontal Commands
Command
HORizontal?Returns settings for the horizontal commands
HORizontal:DELay:MODeSets or returns the horizontal delay mode
HORizontal:DELay:TIMeSets or returns the horizontal delay time
HORizontal:DIGital:RECOrdlength:
MAGnivu?
HORizontal:DIGital:RECOrdlength:MAIN?Returns the record length of the main digital
HORizontal:DIGital:SAMPLERate:
MAGnivu?
HORizontal:DIGital:SAMPLERate:MAIN?Returns the sample rate of the main digital
HORizontal:POSitionSets or r eturns the horizontal position, in
HORizontal:PREViewstate?
HORizontal:RECOrdlengthSets or returns the record length
HORizontal:SAMPLERateSets or returns the sample rate
HORizontal:SCAleSets or returns the horizontal scale
Description
Returns the record length of the MagniVu
digital acquisition
acquisition
Returns the sample rate of the Magnivu
digital acquisition
acquisition
percent, that is used when delay is off
Returns the display system preview state
Mark Command Group
Use the commands in the Mark Command Group to identify areas of the acquired
waveform that warrant further investigation.
Table 2-23: Mark Commands
CommandDescription
MARKMove to the next or previous mark on the
waveform or returns all learnable settings
from the mark commands
MARK:CREATECreates a mark on a particular waveform or
all waveforms in a c olumn
MARK:DELEte
MARK:FREE?Returns how many marks are free to be used
MARK:SELected:END?Returns the end of the selected mark, in
Deletes a mark on a particular waveform, all
waveforms in a column, or all marks
terms of 0 to 100% of the waveform
2-24MSO4000 and DPO4000 Series Programmer Manual
Command Groups
Table 2-23: Mark Commands (cont.)
CommandDescription
MARK:SELected:FOCUS?Returns the focus of the selected mark, in
terms of 0 to 100% of the waveform
MARK:SELected:MARKSINCOLumn?
MARK:SELected:OWNer?Returns the owner of the selected mark
MARK:SELected:SOURCE?Returns the source waveform of the selected
MARK:SELected:STARt?Returns the start of the selected mark, in
MARK:SELected:STATe?Returns the on or off state of the selected
MARK:SELected:ZOOm:POSition?Returns the position of the selected mark, in
MARK:TOTal?
Returns how many marks are in the current
zoom pixel column
mark
terms of 0 to 100% of the waveform
mark
terms of 0 to 100% of the upper window
Returns how many marks are used
MSO4000 and DPO4000 Series Programmer Manual2-25
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 can be simple, containing no mathematical computation, such
as CH1, whi
ch specifies that a waveform shows the signal source of Channel 1.
Math expressions can also be complex, consisting of up to 128 characters and
comprising many sources, functions, and operands.
When a live waveform is updated or a 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-24: Math Commands
Command
MATH[1]?Returns the definition of the math waveform
MATH[1]:DEFine
MATH[1]:HORizontal:SCAleSets or returns the math horizontal display
MATH[1]:HORizontal:UNItsReturns the math waveform horizontal unit
{MATH|MATH1}:LABelSets or queries the waveform label for the
MATH[1]:SPECTral:MAGSets or returns the units of spectral
MATH[1]:SPECTral:WINdowSets or returns the window function for math
MATH[1]:VERTical:POSitionSets or returns the vertical position of the
MATH[1]:VERTi cal:SCAleSets or returns the vertical scale of the
MATH[1]:VERTical:UNIts
MATH[1]:HORizontal:POSitionSets or returns the math horizontal display
MATH[1]:TYPe
Description
Sets or returns the current math function as
atextstring
scale for F FT or for Dual M a th waveforms
value
math w a veform
magnification in the math string
waveform spectral input data
currently selected math type
currently selected math type
Returns the math waveform vertical units
position for FFT or (non-live) math reference
waveforms
Sets or returns the math waveform mode
type
2-26MSO4000 and DPO4000 Series Programmer Manual
Table 2-24: Math Commands (cont.)
Command Groups
Command
MATHVAR?
MAT HVAR:VAR<x>
Measurement Command Group
Use the commands in the Measurement Command Group to control the automated
measurement system.
Up to four automated measurements can be displayed on the screen. In the
commands, these measurement re adouts are named MEAS<x>, where <x> is the
measurement number.
In addition to the four displayed measurements, the measurement commands let
you specify an additional measurement, IMMed. The immediate measurement
has no
Because they are computed only when needed, immediate measurements slow the
waveform update rate less than displayed measurements.
Whether you use display ed or immediate measurements, use the VALue query to
obtain measurement results.
front-panel equivalent. Immediate measurements are never displayed.
Description
Returns all numerical values used within
math expressions
Sets or returns numerical values you can use
within math expressions
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-25: Measurement Commands
Command
MEASUrement?
MEASUrement:CLEARSNapshot
MEASUrement:GATingSets or returns the measurement gating
MEASUrement:IMMed?
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
Description
Returns all measurement parameters
Removes the measurement snapshot display
Returns all immediate measurement setup
parameters
delay measurement
immediate delay measurements
immediate delay “from” and “to” waveform
measurements
MSO4000 and DPO4000 Series Programmer Manual2-27
Command Groups
Table 2-25: Measurement Commands (cont.)
Command
MEASUrement:IMMed:SOUrceSets 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
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
Description
channel immediate measurements
phase or delay immediate m easurements
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
Returns the mean value accumulated since
the last statistical reset
last statistical reset
measurements are taken
2-28MSO4000 and DPO4000 Series Programmer Manual
Table 2-25: Measurement Commands (cont.)
Command Groups
Command
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:MID<x>Sets or returns the mid reference level in
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:IMMed:SOUrce<x>Sets or returns the s ource for the current
MEASUrement:MEAS<x>:SOUrce<x>Sets or returns the source for the specified
MEASUrement:REFLevel:ABSolute:MID<x>Sets or returns the mid reference level for
MEASUrement:REFLevel:PERCent:MID<x>Sets or returns the m id reference level for
Description
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
absolute units (e.g. volts)
delay "to" measurements
and low reference levels
level for rise time
level for rise time
level for waveform measurements
level for second waveform measurements
single channel measurement
measurement.
the specified channel in absolute volts
the specified channel in percent
MSO4000 and DPO4000 Series Programmer Manual2-29
Command Groups
Table 2-25: Measurement Commands (cont.)
Command
MEASUrement:SNAPShot
MEASUrement:STATIsticsClears or returns all of the statistics
MEASUrement:STATIstics:MODETurns measurement statistics on or off
MEASUrement:STATIstics:WEIghtingControls the responsiveness of the mean
Miscellaneous Command Group
Use the commands in the Miscellaneous Command Group to perform actions that
do not fit into other categories.
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-26: Miscellaneous Commands
Command
AUTOSetSets the vertical, horizontal and trigger
AUTOSet:ENAbleEnables or disables the autoset feature
CLEARMenuClears the current menu from the display
DATE
*DDTSets or returns the commands that will be
DESkewCauses the deskew values for all channels
DESkew:DISPlaySets or returns the state of the deskew table
FPAnel:PRESSSimulates the action of pressing a specified
FPAnel:TURN
GPIBUsb:ADDress?Returns the current GPIB address
GPIBUsb:ID?Returns the identification string of the
Description
Displays the measurement snapshot list
accumulated for all period measurements
(MEAS1 through MEAS4)
and standard deviation to waveform changes
Description
controls to provide a stable display of the
appropriate waveform. This is equivalent to
pressing the front panel Autoset button
Sets or returns the date displayed by the
oscilloscope
executed by the group execute trigger
to be set to the recommended values
display
front-panel button
Duplicates the action of turning a specified
front-panel control knob
connected adaptor module and firmware
version
2-30MSO4000 and DPO4000 Series Programmer Manual
Table 2-26: Miscellaneous Commands (cont.)
Command Groups
Command
HEADer
ID?Returns identifying information about the
*IDN?Returns the same information as the ID?
LANGuageSets or returns the user interface display
LOCkSets or returns the front panel lock state
*LRN?Returns a listing of oscilloscope settings
NEWpass
PASSWordEnables the *PUD and NEWpass set
REM
SET?Returns a listing of oscilloscope 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
USBTMC?Returns the USBTMC information used b y
USBTMC:PRODUCTID:DECimal?Returns the USBTMC product ID
USBTMC:PRODUCTID:HEXadecimal?Returns the USBTMC product ID
USBTMC:SERIALnumber?
USBTMC:VENDORID:DECimal?Returns the USBTMC vendor ID
USBTMC:VENDORID:HEXadecimal?Returns the US BTMC vendor ID
VERBose
Description
Sets or returns the Response Header Enable
State
oscilloscope and its firmware
command except the data i s formatted
according to Tektronix Codes & Formats
language
Changes the password for user protected
data
commands
Specifies a comment, which is ignored by
the osc illoscope
memories
Sets or r eturns the time displayed by the
oscilloscope
oscilloscope has been turned on since the
nonvolatile memory was last programmed
Unlocks front panel
the USB hosts to determine the instrument
interfaces
Returns the instrument serial number
Sets or returns the verbose state
MSO4000 and DPO4000 Series Programmer Manual2-31
Command Groups
PictBridge Co
mmand Group
Power Command Group
Use the commands in the PictBridge Command Group to store printer settings.
Table 2-27: PictBridge Commands
Command
PICTBridge:DATEPrint
PICTBridge:DEFaultSets the arguments for all PICTBridge
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
Description
Enables or disables printing the date on the
print output
commands to their default values
Enables or disables printing the oscilloscope
model and serial number on the print output
use with Pictbridge printers
Use the commands in the Power Command Group for power analysis. The power
measurements include:
Power quality
Switching loss
Safe operating area
Harmonics
Ripple
Modulation analysis
This command group is available when the DPO4PWR application module is
installed.
Table 2-28: Power Commands
CommandDescription
POWer:CURRENTSOurceSets or returns the current source for the
power application
POWer:DISplaySets or returns the display state for the
power application
POWer:GATESOurceSets or returns the gate source for the power
application
2-32MSO4000 and DPO4000 Series Programmer Manual
Command Groups
Table 2-28: Power Commands (cont.)
CommandDescription
POWer:GATingSets or returns the power application gating
POWer:HARMonics:DISPlay:SELectSets or returns the harmonics to be displayed
when the harmonics standard is None
POWer:HARMonics:DISPlay:TYPeSets or returns the display type for harmonics
tests
POWer:HARMonics:FREQRefSets or returns the frequency reference
waveform for harmonics tests
POWer:HARMonics:FREQRef:
FIXEDFREQValue
POWer:HARMonics:IEC:CLAssSets or returns the filtering class for IEC
POWer:HARMonics:IEC:FILterSets or returns the enabled state for filtering
POWer:HARMonics:IEC:FUNDamentalSets or returns the fundamental current for
POWer:HARMonics:IEC:GROUPingSets or returns the enabled state for grouping
POWer:HARMonics:IEC:INPUTPOWerSets of returns the class D input power for
POWer:HARMonics:IEC:LINEFREQuencySets or returns the line frequency for the IEC
POWer:HARMonics:IEC:OBSPERiodSets or returns the IEC observation period
POWer:HARMonics:IEC:POWERFACtorSets or returns the power factor for IEC
POWer:HARMonics:MIL:FUNDamental:
CALCmethod
POWer:HARMonics:MIL:FUNDamental:
USER:CURRent
POWer:HARMonics:MIL:LINEFREQuencySets or returns the line frequency for
POWer:HARMonics:MIL:POWERLEVelSets or returns the power level for
POWer:HARMonics:NR_HARMonicsSets of returns the number of harmonics (a
POWer:HARMonics:RESults:HAR<1-400>:
FREQuency?
Sets or returns the fixed reference frequency
value for harmonics measurements
harmonics
of IEC harmonics
IEC harmonics
of IEC harmonics
IEC harmonics
standard
harmonics
Sets or returns the measurement method for
the MIL harmonics fundamental frequency
Sets or returns RMS amperes for User
calculation method
MIL-STD-1399 harmonics tests
MIL-STD-1399 harmonics tests
value in the range of 20 to 400) when the
harmonics standard is N ONe
POWer:HARMonics:RESults:IEC:POHC?Returns the IEC POHC measurement
The IEC standard specifies harmonics
measurements to be computed in windows of
time, with each time window being nominally
200 ms. This returns the maximum of the
RMS magnitude of the harmonic, computed
across successive 200 ms time windows
within an observation period entered by the
user
The IEC and MIL standards specify a limit for
each harmonic magnitude. Returns the limit
in absolute units, or as a percentage of the
fundamental as specified by the standard.
IEC C lass C (Table 2) and MIL standards
specify the limit as a percentage of the
fundamental
Returns the phase of the harmonic in
degrees. The phase is measured relative to
the zero-crossing of the reference waveform.
When there is no reference waveform,
the phase is relative to the fundamental
component
Returns the RMS magnitude of the harmonic
expressed in absolute units
Returns the RMS magnitude of the
harmonic expressed as a percentage of the
fundamental
Returns PASS, FAIL or NA. Specifies if
the IEC Class A higher harmonic limit (and
conditions) are met
Returns PASS, FAIL or NA. Specifies if the
Normal IEC harmonic limits are met
Returns PASS, FAIL or NA. Specifies if the
higher harmonic limit (and conditions) for the
21st and higher order odd harmonics are met
Returns the test result for the specified
harmonic for the MIL-STD-1399 testing
standard
Returns the IEC fundamental frequency
Returns the IEC harmonics test result for the
3rd harmonic: PASS, FAIL or NA
Returns the IEC harmonics test result for the
5th harmonic: PASS, FAIL or NA
2-34MSO4000 and DPO4000 Series Programmer Manual
Command Groups
Table 2-28: Power Commands (cont.)
CommandDescription
POWer:HARMonics:RESults:IEC:POHL?Returns the IEC POHL measurement
POWer:HARMonics:RESults:IEC:POWer?Returns the IEC input power measurement
POWer:HARMonics:RESults:IEC:
POWERFactor?
POWer:HARMonics:RESults:PASSFail?
POWer:HARMonics:RESults:RMS?Returns the root mean square value of the
POWer:HARMonics:RESults:SAVeSaves the harmonic results to the specified
POWer:HARMonics:RESults:THDF?Returns the Total Harmonic Distortion (THD)
POWer:HARMonics:RESults:THDR?Returns the Total Harmonic Distortion (THD)
POWer:HARMonics:SOURceSets or returns the source waveform for
POWer:HARMonics:STANDardSets or returns the s tandard for harmonics
POWer:INDICatorsSets or returns the state of the measurement
POWer:MODulation:SOUrceSets or returns the source waveform for
POWer:MODulation:TYPeSets or returns the modulation type
POWer:QUALity:APPpwr?
POWer:QUALity:DISplay:APPpwrSets or returns the display state for the
POWer:QUALity:DISplay:FREQuencySets or returns the display state for the
POWer:QUALity:DISplay:ICRESTfactorSets or returns the display state for the
POWer:QUALity:DISplay:IRMSSets or returns the display state for the rms
POWer:QUALity:DISplay:PHASEangleSets or returns the display state for the
POWer:QUALity:DISplay:POWERFACtorSets or returns the display state for the
POWer:QUALity:DISplay:REACTpwrSets or returns the display state for the
Returns the IEC power factor measurement
Returns the overall harmonics test result:
PASS, FAIL or NA
source waveform
file in CSV format
in percentage, measured as a ratio to the
RMS value of the fundamental component of
the source waveform
in percentage, measured as a ratio to the
RMS value of the source waveform
harmonics tests
tests
indicators for the power application
modulation tests
Returns the apparent power measurement
apparent power readout
frequency readout
current crest factor readout
current (IRMS) readout
phase angle readout
power factor readout
reactive power readout
MSO4000 and DPO4000 Series Programmer Manual2-35
Command Groups
Table 2-28: Power Commands (cont.)
CommandDescription
POWer:QUALity:DISplay:TRUEpwrSets or returns the display state for the true
power readout
POWer:QUALity:DISplay:VCRESTfactorSets or returns the display state for the
voltage crest factor readout
POWer:QUALity:DISplay:VRMSSets or returns the display state for the rms
voltage (VRMS) readout
POWer:QUALity:FREQREFerenceSets or returns the power quality frequency
reference
POWer:QUALity:FREQuency?Returns the frequency measurement
POWer:QUALity:ICRESTfactor?Returns the current crest factor measurement
POWer:QUALity:IRMS?
POWer:QUALity:PHASEangle?
POWer:QUALity:POWERFACtor?Returns the power factor measurement
POWer:QUALity:REACTpwr?
POWer:QUALity:TRUEpwr?
POWer:QUALity:VRMS?
POWer:REFLevel:ABSoluteSets the reference levels to their default unit
POWer:REFLevel:ABSolute:HIGHSets or returns the top reference level for
POWer:REFLevel:ABSolute:LOWSets or returns the low reference level for
POWer:REFLevel:ABSolute:MID<1-3>Sets or returns the mid reference level for
POWer:REFLevel:HYSTeresisSets or returns the measurement reference
POWer:REFLevel:METHodSets or returns the method used to calculate
POWer:REFLevel:PERCentSets the reference levels to the default
POWer:REFLevel:PERCent:HIGHSets or returns the top reference percent
POWer:REFLevel:PERCent:LOWSets or returns the low reference percent
POWer:REFLevel:PERCent:MID<1-3>Sets or returns the mid reference percent
POWer:RIPPleSets the vertical offset of the source
POWer:RIPPle:RESults:AMPLitude?
Returns the rms current measurement
Returns the phase angle measurement
Returns the reactive power measurement
Returns the true power measurement
Returns the rms voltage measurement
values
rise time
rise time
measurements
level hysteresis value
the 0% and 100% reference level
percentage values
level for rise time
level for rise time
level for waveform measurements
waveform
Returns the peak-to-peak ripple
measurement
2-36MSO4000 and DPO4000 Series Programmer Manual
Command Groups
Table 2-28: Power Commands (cont.)
CommandDescription
POWer:RIPPle:RESults:MAX?Returns the maximum of the peak-to-peak
ripple measurements
POWer:RIPPle:RESults:MEAN?Returns the mean of the peak-to-peak ripple
measurements
POWer:RIPPle:RESults:MIN?Returns the minimum of the peak-to-peak
ripple measurement
POWer:RIPPle:RESults:STDdev?Returns the standard deviation of the
peak-to-peak ripple measurements
POWer:RIPPle:SOUrceSets or returns the source waveform for
ripple tests
POWer:SOA:LINear:XMAXSets or returns the user XMAX value for use
in linear SOA calculations
POWer:SOA:LINear:XMINSets or returns the user XMIN value for use
in linear SOA calculations
POWer:SOA:LINear:YMAXSets or returns the user YMAX value for use
in linear SOA calculations
POWer:SOA:LINear:YMINSets or returns the user YMIN value for use
in linear SOA calculations
POWer:SOA:LOG:XMAXSets or returns the user XMAX value for u se
in log SOA calculations
POWer:SOA:LOG:XMINSets or returns the user XMIN value for use
in log SOA calculations
POWer:SOA:LOG:YMAXSets or returns the user YMAX value for u se
in log SOA calculations
POWer:SOA:LOG:YMINSets or returns the user YMIN value for use
in log SOA calculations
POWer:SOA:MASK:DEFineSets or returns the X (Volts) and Y (Amps)
coordinates of the current SOA mask
POWer:SOA:MASK:MAXAmpsSets or returns the maximum current applied
to SOA mask testing
POWer:SOA:MASK:MAXVoltsSets or returns the maximum voltage applied
to SOA mask testing
POWer:SOA:MASK:MAXWattsSets or returns the maximum power applied
to SOA mask testing
POWer:SOA:MASK:NR_PT?Returns the number of mask points defined
POWer:SOA:MASK:STATeSets or returns the state of the mask for SOA
calculations
POWer:SOA:MASK:STOPOnviolSets or returns the enabled state of the mask
stop on violation condition
POWer:SOA:PLOTTYPeSets or returns the SOA plot type
POWer:SOA:RESult:FAILures:QTY?Returns the number of failures in the test
MSO4000 and DPO4000 Series Programmer Manual2-37
Command Groups
Table 2-28: Power Commands (cont.)
CommandDescription
POWer:SOA:RESult:NUMACq?Returns the number of acquisitions in the test
POWer:SOA:RESult:STATe?Returns the pass/fail state of the SOA test
POWer:STATIsticsClears all the accumulated statistics of all
measurements
POWer:STATIstics:MODEEnables or disables the display of the
measurement statistics
POWer:STATIstics:WEIghtingSets the number of samples which are
included for the statistics computations for
mean and the standard deviation
POWer:SWLoss:CONDCALCmethodSets or returns the power application
switching loss conduction calculation method
POWer:SWLoss:CONDuction:ENERGY:
MAX?
POWer:SWLoss:CONDuction:ENERGY:
MEAN?
POWer:SWLoss:CONDuction:ENERGY:
MIN?
POWer:SWLoss:CONDuction:POWER:
MAX?
POWer:SWLoss:CONDuction:POWER:
MEAN?
POWer:SWLoss:CONDuction:POWER:
MIN?
POWer:SWLoss:DISplaySets or returns the display selection for
POWer:SWLoss:GATe:POLaritySets or returns the switching loss gate
POWer:SWLoss:GATe:TURNONSets or returns the gate turn on level for
POWer:SWLoss:NUMCYCles?Returns the number of cycles counted for the
POWer:SWLoss:RDSonSets or returns RDSON value for use
POWer:SWLoss:REFLevel:ABSolute:
GATEMid
POWer:SWLoss:REFLevel:ABSolute:
LOWCurrent
Returns the maximum conduction energy for
the switching loss calculation
Returns the mean conduction energy for the
switching loss calculation
Returns the minimum conduction energy for
the switching loss calculation
Returns the maximum conduction power for
the switching loss calculation
Returns the mean conduction power for the
switching loss calculation
Returns the minimum c onduction power for
the switching loss calculation
switching loss results
polarity
switching loss power measurements
switching loss calculation
in switching loss calculations when the
conduction calculation method is RDSON
Sets or returns the mid voltage reference
level used in switching loss power
measurements in volts
Sets or returns the low current reference level
used in switching loss power measurements
in amperes
2-38MSO4000 and DPO4000 Series Programmer Manual
Command Groups
Table 2-28: Power Commands (cont.)
CommandDescription
POWer:SWLoss:REFLevel:ABSolute:
LOWVoltage
POWer:SWLoss:REFLevel:PERCent:
GATEMid
POWer:SWLoss:REFLevel:PERCent:
LOWCurrent
POWer:SWLoss:REFLevel:PERCent:
LOWVoltage
POWer:SWLoss:TOFF:ENERGY:MAX?Returns the maximum Toff energy switching
POWer:SWLoss:TOFF:ENERGY:MEAN?Returns the mean Toff energy switching loss
POWer:SWLoss:TOFF:ENERGY:MIN?Returns the minimum Toff energy switching
POWer:SWLoss:TOFF:POWER:MAX?Returns the maximum Toff power switching
POWer:SWLoss:TOFF:POWER:MEAN?Returns the mean Toff power switching loss
POWer:SWLoss:TOFF:POWER:MIN?Returns the minimum Toff power switching
POWer:SWLoss:TON:ENERGY:MAX?
POWer:SWLoss:TON:ENERGY:MEAN?
POWer:SWLoss:TON:ENERGY:MIN?
POWer:SWLoss:TON:POWER:MAX?
POWer:SWLoss:TON:POWER:MEAN?
POWer:SWLoss:TON:POWER:MIN?
POWer:SWLoss:TOTal:ENERGY:MAX?
POWer:SWLoss:TOTal:ENERGY:MEAN?
POWer:SWLoss:TOTal:ENERGY:MIN?
Sets or returns the low voltage reference level
used in switching loss power measurements
in volts
Sets or returns the mid voltage reference
level used in switching loss power
measurements in percentage
Sets or returns the low current reference level
used in switching loss power measurements
in percentage
Sets or returns the low voltage reference level
used in switching loss power measurements
in percentage
loss calculation
calculation
loss calculation
loss calculation
calculation
loss calculation
Returns the maximum Ton energy switching
loss calculation
Returns the mean Ton energy switching loss
calculation
Returns the minimum Ton energy switching
loss calculation
Returns the maximum Ton power switching
loss calculation
Returns the mean Ton power switching loss
calculation
Returns the minimum Ton power switching
loss calculation
Returns the maximum total energy switching
loss calculation
Returns the mean total energy switching loss
calculation
Returns the minimum total energy switching
loss calculation
MSO4000 and DPO4000 Series Programmer Manual2-39
Command Groups
Table 2-28: Power Commands (cont.)
CommandDescription
POWer:SWLoss:TOTal:POWER:MAX?
POWer:SWLoss:TOTal:POWER:MEAN?
POWer:SWLoss:TOTal:POWER:MIN?
POWer:SWLoss:VCEsatSets or returns VCESAT value for use
POWer:TYPeSets or returns the power application
POWer:VOLTAGESOurceSets or returns the voltage source for the
Save and Recall Command Group
Returns the maximum total power switching
loss calculation
Returns the mean total power switching loss
calculation
Returns the minimum total power switching
loss calculation
in switching loss calculations when the
conduction calculation method is VCESAT
measurement type
power application
UsethecommandsintheSaveandRecallCommand Group to store and retrieve
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 state
s in when you originally saved the setting.
it wa
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
*SAVStores the state of the oscilloscope to a
SAVe:ASSIgn:TYPeSets or returns the assignment of the save
SAVe:EVENTtable:BUS<x>Saves event table data from bus<x> to a
SAVe:IMAGeSaves a capture o f the screen image to the
Description
settings
Recalls saved oscilloscope settings
Recalls saved oscilloscope settings
location
specified memory location
button
specified file
specified file
2-40MSO4000 and DPO4000 Series Programmer Manual
Table 2-29: Save and Recall Commands (cont.)
Command Groups
Command
SAVe:IMAGe:FILE FormatSets or returns the file format to use for
SAVe:IMAGe:INKSaverSets or returns the current inksaver setting
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 the reference
SAVe:WAVEform:FILEFormatSets or returns the format for saved
SAVe:WAVEform:GATIngSpecifies whether save waveform operations
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
saving screen images. The file format is not
automatically determined by the file name
extension. You need to choose a file name
with an extension which is consistent with
the selected file format
for the SAVe:IMAGe command
screen images
specified memory location or file
memory locations or a fi le
waveforms
should save the entire waveform or a
specified portion of the waveform
oscilloscope setup was saved
setup label
oscilloscope setup was saved
Search Command Group
Use the commands in the Search Commands Group to seek out information in
waveform records.
Search Commands
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 threshold for the selected reference
waveform
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 Command 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 common commands begin with an asterisk (*) character.
Table 2-30: Status and Error Commands
Command
ALLEv?
BUSY?
*CLSClears s tatus
DESESets or r eturns the bits in the Device Event
*ESESets or returns the bits in the Event Status
*ESR?Returns the contents of the S tandard Event
EVENT?Returns event code from the e vent queue
Description
Returns all events and their messages
Returns oscilloscope status
Status Enable Register
Enable Register
Status Register
MSO4000 and DPO4000 Series Programmer Manual2-47
Command Groups
Table 2-30: Status and Error Commands (cont.)
Command
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
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 are two triggers: A and B. Where appropriate, this command set has parallel
construction between triggers.
You can set the A or B triggers to edge mode. Edge triggering lets you display
a waveform at or near the p oint where the signal passes through a voltage level
of your choosing.
You can also set A triggers to pulse, logic
the oscilloscope triggers whenever it detects a pulse of a certain width or height.
Logic triggering lets you logically combine the signals on one or channels. The
oscilloscope then triggers when it detects a certain combination of signal levels.
Video triggering enables you to trigger on the most common Standard Definition
video standards.
Table 2-31: Trigger Commands
Command
TRIGger
, or video modes. With pulse triggering,
Description
Forces a trigger event to
occur
2-48MSO4000 and DPO4000 Series Programmer Manual
Table 2-31: Trigger Commands (cont.)
Command Groups
Command
TRIGger:ASets A trigger level to 50%
TRIGger:A:BUSSets or returns the serial
TRIGger:A:BUS:B<1-4>:AUDio:CONDitionSets or returns the trigger
TRIGger:A:BUS:B<1-4>:AUDio:DATa:HIVALueSets or returns the trigger
TRIGger:A:BUS:B<1-4>:AUDio:DATa:OFFSetSets or returns the trigger
TRIGger:A:BUS:B<1-4>:AUDio:DATa:QUALifierSets or returns the trigger
TRIGger:A:BUS:B<1-4>:AUDio:DATa:VALueSets or returns the trigger
TRIGger:A:BUS:B<1-4>:AUDio:DATa:WORDSets or returns the trigger
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
TRIGger:A:BUS:B<x>:CAN:FRAMEtypeSets or returns the CAN
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
Description
or returns current A trigger
parameters
trigger type
condition for the AUDIO bus:
Start of Frame or Data
data upper word for the
AUDIO bus
dataoffsetfortheAUDIO
bus
data qualifier for the AUDIO
bus
data lower word for the
AUDIO bus
data alignment for the
AUDIO bus.
condition
trigger condition to be valid
on a READ, WRITE, or either
qualifier
thedatastringinbytestobe
used for CAN trigger
datastringtobeusedfor
CAN trigger
trigger frame type
addressing mode
address string used for the
CAN trigger
MSO4000 and DPO4000 Series Programmer Manual2-49
Command Groups
Table 2-31: Trigger Commands (cont.)
Command
TRIGger:A:BUS:B<x>:FLEXray:CONDitionSets or returns the trigger
TRIGger:A:BUS:B<x>:FLEXray:CYCLEcount:HIVALueSets or returns the binary
TRIGger:A:BUS:B<x>:FLEXray:CYCLEcount:QUALifierSets or returns the FLEXRAY
TRIGger:A:BUS:B<x>:FLEXray:CYCLEcount:VALueSets or returns the binary
TRIGger:A:BUS:B<x>:FLEXray:DATa:HIVALueSets or returns the high
TRIGger:A:BUS:B<x>:FLEXray:DATa:OFFSetSets or returns the offset of
TRIGger:A:BUS:B<x>:FLEXray:DATa:QUALifierSets or returns the FLEXRAY
TRIGger:A:BUS:B<x>:FLEXray:DATa:SIZeSets or returns the length of
TRIGger:A:BUS:B<x>:FLEXray:DATa:VALueSets or returns the low binary
TRIGger:A:BUS:B<x>:FLEXray:EOFTYPESets or returns the end of file
TRIGger:A:BUS:B<x>:FLEXray:ERRTYPESets or returns the error type
TRIGger:A:BUS:B<x>:FLEXray:FRAMEID:HIVALueSets or returns the binary
TRIGger:A:BUS:B<x>:FLEXray:FRAMEID:QUALifierSets or returns the FLEXRAY
TRIGger:A:BUS:B<x>:FLEXray:FRAMEID:VALueSets or returns the binary
TRIGger:A:BUS:B<x>:FLEXray:FRAMETypeSets or returns the frame
TRIGger:A:BUS:B<x>:FLEXray:HEADER:CRCSets or returns the CRC
Description
condition for FLEXRAY
datastringtobeusedfor
FLEXRAY cycle count high
value
cycle count qualifier
datastringtobeusedfor
FLEXRAY cycle count low
value
binary data string to be used
for FLEXRAY trigger
thedatastringinbytes
data qualifier
thedatastringinbytes
datastringtobeusedfor
FLEXRAY trigger condition
type
datastringtobeusedfor
FLEXRAY frame ID high
value
frame ID qualifier
datastringtobeusedfor
FLEXRAY frame ID low
value
type
portion of the binary header
string
2-50MSO4000 and DPO4000 Series Programmer Manual
Table 2-31: Trigger Commands (cont.)
Command Groups
Command
TRIGger:A:BUS:B<x>:FLEXray:HEADER:CYCLEcountSets or returns the c ycle
TRIGger:A:BUS:B<x>:FLEXray:HEADER:FRAMEIDSets or returns the frame id
TRIGger:A:BUS:B<x>:FLEXray:HEADER:INDBitsSets or returns the indicator
TRIGger:A:BUS:B<x>:FLEXray:HEADER:PAYLengthSets or returns the payload
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>: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 length 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
Description
count portion of the binary
header string
portion of the binary header
string
bits portion of the binary
header string
length portion of the binary
header string
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
condition for LIN
datastringtobeusedforLIN
trigger
qualifier
thedatastringinbytestobe
used for LIN trigger
data string
MSO4000 and DPO4000 Series Programmer Manual2-51
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>: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
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
Description
address string used for LIN
trigger
datastringtobeusedfora
Parallel trigger
for an RS-232C trigger
the data string in Bytes for
an RX RS-232 Trigger
data string for an RX RS-232
trigger
of the data string for a TX
RS-232 trigger
data string for an RS-232
trigger if the trigger condition
involves TX
condition for SPI triggering
datastringtobeusedforSPI
trigger
data string used for the SPI
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
2-52MSO4000 and DPO4000 Series Programmer Manual
Table 2-31: Trigger Commands (cont.)
Command Groups
Command
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?
TRIGger:A:LOGIc:INPut:CH<x>Specifies or returns the
TRIGger:A:LOGIc:INPut:CLOCk:EDGESets the polarity of the clock
TRIGger:A:LOGIc:INPut:CLOCk:SOUrceSets or returns the channel
TRIGger:A:LOGIc:INPut:D<x>Sets or returns the logic
TRIGger:A:LOGIc:PATtern?Returns the conditions for
TRIGger:A:LOGIc:PATtern:D ELTatimeSets or returns the pattern
TRIGger:A:LOGIc:PATtern:INPut:D<x>Sets or returns the A logic
Description
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
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
logic setting for the specified
channel
channel
to use as the clock source
pattern for a trigger on digital
channel <x>
generating an A logic pattern
trigger
trigger delta time value
trigger pattern for a trigger
on digital channel <x>
MSO4000 and DPO4000 Series Programmer Manual2-53
Command Groups
Table 2-31: Trigger Commands (cont.)
Command
TRIGger:A:LOGIc:PATtern:WH EnSets or returns the pattern
TRIGger:A:LOGIc:PATtern:WHEn:LESSLimitSets or returns the maximum
TRIGger:A:LOGIc:PATtern:WH En:M OR ELim i tSets or returns the minimum
TRIGger:A:LOGIc:THReshold:CH<x>Sets or queries the trigger
TRIGger:A:LOGIc:THReshold:D<x>Sets or returns the trigger A
TRIGger:A:LOWerthreshold:CH<x>Sets or returns the lower
TRIGger:A:LOWerthreshold:D<x>Sets the A trigger lower
TRIGger:A:LOWerthreshold{:EXT|:AUX}Sets or returns the lower
TRIGger:A:MODeSets or returns the A trigger
TRIGger:A:PULse?
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
Description
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
A logic threshold voltage for
the specified channel
logic threshold level for the
specified digital channel
threshold for the channel
selected
threshold for the digital
channel selected
threshold for the Auxiliary
input.
mode
Returns the A pulse trigger
parameters
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
2-54MSO4000 and DPO4000 Series Programmer Manual
Table 2-31: Trigger Commands (cont.)
Command Groups
Command
TRIGger:A:RUNT?
TRIGger:A:RUNT:POLaritySets or returns 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
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
Description
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
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
MSO4000 and DPO4000 Series Programmer Manual2-55
Command Groups
Table 2-31: Trigger Commands (cont.)
Command
TRIGger:A:SETHold:THReshold:D<x>Sets the A trigger setup
TRIGger:A:UPPerthreshold:CH<x>Sets the upper threshold for
TRIGger:A{:TRANsition|:RISEFall}?
TRIGger:A{:TRANsition|:RISEFall}:DELTatimeSets or 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:CUSTom{:FORMat|:TYPE}Sets or returns the video
TRIGger:A:VIDeo:CUSTom:LINEPeriodSets or queries the line
TRIGger:A:VIDeo:CUSTom:SCANSets or returns the horizontal
TRIGger:A:VIDeo:CUSTom:SYNCIntervalSets or queries the sync
TRIGger:A:VIDeo:HDtv:FORMatSets or returns the HDTV
TRIGger:A:VIDeo:HOLDoff:FIELDSets or returns the video
TRIGger:A:VIDeo:LINESets or returns the video
TRIGger:A:VIDeo:POLaritySets or returns the polarity of
Description
and hold threshold for the
selected digital 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 format
period
line scan rate of the A video
trigger
interval
video signal format on which
to trigger
trigger holdoff
line number on which the
oscilloscope triggers
the A video trigger
2-56MSO4000 and DPO4000 Series Programmer Manual
Table 2-31: Trigger Commands (cont.)
Command Groups
Command
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:BSets the B trigger level to
TRIGger:B:BYSets or returns B trigger time
TRIGger:B:EDGE?
TRIGger:B:EDGE:COUPlingSets or returns the type of B
TRIGger:B:EDGE:SLOpeSets or returns the B edge
TRIGger:B:EDGE:SOUrceSets or returns the B edge
TRIGger:B:EVENTS?
TRIGger:B:EVENTS:COUNtSets or returns the number
TRIGger:B:LEVelSets or returns the level for
TRIGger:B:LEVel:CH<x>Sets or returns the level for
TRIGger:B:LEVel:D<x>Sets or returns the B trigger
TRIGger:B:LOWerthreshold:CH<x>Sets or returns the B trigger
TRIGger:B:LOWerthreshold:D<x>Sets or queries the B trigger
TRIGger:B:STATEReturns the current state of
TRIGger:B:TIMeSets or returns the B trigger
TRIGger:B:TYPeSets or returns the type of B
Description
the video trigger
standard
field trigger
50% or returns the B trigger
parameters
or event qualifiers
Returns B trigger edge type
parameters
trigger coupling
trigger slope
trigger source
Returns the current B trigger
events parameter
of events that must occur
before the B trigger occurs
the B trigger
the B trigger for a specific
channel
level for digital channel <x>
lower threshold for the
channel selected
lower threshold for the digital
channel selected
the B trigger
delay time
trigger
MSO4000 and DPO4000 Series Programmer Manual2-57
Command Groups
Table 2-31: Trigger Commands (cont.)
Command
TRIGger:B:UPPerthreshold:CH<x>Sets or returns the B trigger
TRIGger:EXTernal?
TRIGger:EXTernal:PRObeSets or returns the
TRIGger:EXTernal:YUNIts?
TRIGger:FREQuency?Returns the trigger frequency
TRIGger:STATE?Returns the current state of
Vertical Command Group
Use the commands in the Vertical Command Group to control the vertical setup of
all live (channel) waveforms for acquisition and display of channel, reference,
and math waveforms.
Description
upper threshold for the
channel selected
Returns external trigger
parameters
attenuation factor value of
the external probe connector
Returns the external trigger
vertical (Y) units value
in hertz, if available
the triggering system
Table 2-32: Vertical Commands
CommandDescription
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
AUXin:PRObe:ID:SERnumber?Returns the serial number of the probe that
AUXin:PRObe:ID:TYPE?Returns the type of probe that is attached to
Returns auxiliary input parameters
attached to auxilary 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
is attached to the auxiliary input
the auxiliary input
2-58MSO4000 and DPO4000 Series Programmer Manual
Command Groups
Table 2-32: Vertical Commands (cont.)
CommandDescription
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 s pecified
channel
CH<x>:AMPSVIAVOLTs:ENAbleSets or returns the state of the amps via volts
feature for the specified channel
CH<x>:AMPSVIAVOLTs:FACtorSets or returns the amps via volts factor 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>:INVertSets or returns the invert function for the
specified channel
CH<x>:LABelSets or r eturns 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 TekV PI
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
MSO4000 and DPO4000 Series Programmer Manual2-59
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:MODelSets or returns the probe model for the
specified channel
CH<x>:PRObe:PROPDELaySets or returns the propagation delay for the
probe connected to the specified channel
CH<x>:PRObe:RECDESkew?Returns the recommended deskew for the
probe connected 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 returns channel input termination
CH<x>:YUNitsSets or returns the units for the specified
channel
D<x>
D<x>:LABel
D<x>:THREshold
D<x>:POSitionSets or returns the vertical position for digital
DESkewCauses the deskew values for all channels
DESkew:DISPlaySets or returns the state of the deskew table
REF<x>?Returns reference waveform data for channel
REF<x>:DATE?Returns the date that a reference waveform
REF<x>:HORizontal:DELay:TIMeSets or returns the horizontal position of the
REF<x>:HORizontal:SCAleSets or returns the horizontal scale for a
Returns parameters for digital channel <x>
Sets or returns the waveform label for digital
channel<x>
Sets or returns the logical threshold for digital
channel <x>
channel <x>
to be set to the recommended values
display
<x>
was stored
specified reference waveform in percent of
the waveform that is displayed to the right of
the center vertical graticule
reference waveform
2-60MSO4000 and DPO4000 Series Programmer Manual
Command Groups
Table 2-32: Vertical Commands (cont.)
CommandDescription
REF<x>:LABel
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 w aveforms are
SELect:BUS<x>Turnsonoroffthespecified bus waveform
SELect:CH<x>Turns on or off the specified waveform or
SELect:CONTROlSets or returns the waveform that is selected
SELect:D<x>Turns on the display of digital channel <x>
SELect:MATH[1]Turns on or off the math waveform or returns
SELect:REF<x>Turns on or off the specified reference
Sets or returns the specified reference
waveform label
Sets or returns the vertical position for
reference channel <x>
was stored
specified reference waveform
vertical scale in vertical units/div
on or off and which waveform is selected.
or returns whether the specifi ed bus channel
is on or off
returns whether the specified channel is on
or off
as the implied recipient of channel-related
commands
and resets the acquisition
whether the math waveform is on or off
waveform or returns whether the specified
reference waveform is on or off
Waveform Transfer Command Group
Use the commands i n the Waveform Transfer Command Group to transfer
waveform data points to and from the oscilloscope. Waveform data points are a
collection of values that define a waveform. One data value usually represents
one data point in the waveform record. When working with envelope waveforms,
each data value is either the minimum or maximum of a min/max pair.
Before you transfer waveform data, you must specify the data format, record
length, and waveform source or destination.
MSO4000 and DPO4000 Series Programmer Manual2-61
Command Groups
Data Formats
All data points
for DPO and MSO models are signed integer format only. Valid
data widths for CH1-CH4, MATH, REF1-REF4 and D0-D15 are 1 and 2-byte
widths. The valid data widths for the digital collection 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.
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.
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 the order in which the bytes are
transferred. The four binary formats are RIBinary, RPBinary, SRIbinary, and
SRPbinary.
RIBinary is signed integer where the most significant byte is transferred first, and
RPBinary is positive integer where the most significant byte is transferred first.
SRIbinary and SRPbinary correspond to RIBinary and RPBinary respectively but
2-62MSO4000 and DPO4000 Series Programmer Manual
Command Groups
Waveform Data and Record
Lengths
Waveform Data Locations
and Memory Allocation
use a swapped by
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 th
DATa:STARt and DATa:STOP c ommands 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
command. Next, specify the first data point within the waveform record. For
example, when you set DATa:STARt to 1, data points will be stored starting
with the first point in the record. The oscilloscope will ignore the value set by
DATa:ST
to read or when it has reached the specified record length.
When tra
data points in the waveform record. Setting D ATa:STARt to 1 and DATa:STOP to
the record length will always return the entire waveform.
The DA
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 locations. Use the DATa:DESTination command to specify a reference
memory location.
OP when reading in data. It will stop reading data when there is no data
nsferring data from the oscilloscope, you must specify the first and last
Ta:SOUrce command specifies the waveform source when transferring a
te order where the least significant byte is transferred first. The
e waveform or you can transfer the e ntire record. You can use the
Waveform Preamble
caling Waveform Data
S
Each waveform you transfer has an associated waveform preamble, which
contains information such as horizontal scale, vertical scale, and the other settings
in effect when the waveform was created. Refer to the individual WFMInpre and
WFMOutpre commands for information.
Once you transfer the waveform data to the controller, you can convert the data
points into voltage values for analysis using information from the waveform
preamble.
MSO4000 and DPO4000 Series Programmer Manual2-63
Command Groups
Transferring Waveform
Data from the Oscilloscope
Transferring Waveform
Data to the Oscilloscope
You can transfe
r waveforms from the oscilloscope to an external controller using
the following sequence:
1. Select the waveform source(s) using DATa:SOUrce.
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.
You can transfer 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 of bytes per data point using WFMInpre:BYT_Nr.
5. Specify first data point in the waveform record using DATa:STARt.
6. Transfer waveform preamble information using WFMInpre.
7. Transfer waveform data to t
he oscilloscope using CURVe.
Table 2-34: Waveform Transfer Commands
Command
CURVeThe command format transfers waveform
DATa
DATa:DESTinationSets or returns the reference waveform
DATa:ENCdgSets or returns the format of outgoing
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
for storing wa veform data sent to the
oscilloscope
waveform data
2-64MSO4000 and DPO4000 Series Programmer Manual
Table 2-34: Waveform Transfer Commands (cont.)
Command Groups
Command
DATa:SOUrceSets or returns the location of waveform data
DATa:STARtSets or returns the starting point in waveform
DATa:STOPSets or returns the ending data point in
WAVFrm?Returns a branch query containing waveform
WFMInpre?Returns the waveform formatting
WFMInpre:BIT_Nr
WFMInpre:BN_Fmt
WFMInpre:BYT_Nr
WFMInpre:BYT_OrSets or returns the byte order of waveform
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
transferred from the oscilloscope
transfer
waveform transfer
data in either binary or ASCII format,
waveform formatting data, and the location
of the waveform data source
specification 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
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 in
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
MSO4000 and DPO4000 Series Programmer Manual2-65
Command Groups
Table 2-34: Waveform Transfer Commands (cont.)
Command
WFMInpre:YZEro
WFMOutpre?Returns the waveform formatting data for the
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
WFMOutpre:BYT_OrSets or returns the byte order of waveform
WFMOutpre:ENCdgSets or returns the type of encoding for
WFMOutpre:FRACTional?This query always returns a 0 if the waveform
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: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
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
Description
Sets or returns the vertical offset of the
incoming waveform
waveform specified by the DATA:SOURCE
command
waveform point that outgoing waveforms
contain
the outgoing waveform
outgoing waveform
points for the outgoing waveform
outgoing waveforms
specified by DATA:SOUrce i s on or displayed
waveform transmitted in response to a
CURVe? query
waveform
specified by DATA:SOUrce i s on or displayed
This query always returns LINEAR
Returns a string describing the acquisition
parameters for the outgoing waveform
the outgoing waveform
waveform
outgoing waveform
level for the outgoing waveform
Returns the vertical position in digitizing
levels for the outgoing waveform
waveform
waveform
2-66MSO4000 and DPO4000 Series Programmer Manual
Command Groups
Zoom Command G
roup
Use the commands in the Zoom Command Group to expand and position the
waveform display horizontally, without changing the time base settings.
Table 2-35:
Command
ZOOm?
ZOOm:MODeSets or returns the zoom mode
ZOOm:ZOOM<x>?
ZOOm:ZOOM<x>:FACtor?Returns the zoom factor of the zoom window.
ZOOm:ZOOM<x>:POSitionSets or returns the horizontal position of the
ZOOm:ZOOM<x>:SCAleSets or returns the horizontal zoom scale of
ZOOm:ZOOM<x>:STATESpecifies or returns a trace as zoomed, on or
Sets or returns the MagniVu feature, which provides up to 32 times signal detail
for fast viewing of short events. This feature is not recommended for slow data
formats such as RS-232.
NOTE. MagniVu channel sampling is available on MSO oscilloscopes only.
Acquisition
ACQuire:MAGnivu {<NR1>|OFF|ON}
ACQuire:MAGnivu?
<NR1> = 0 disables the MagniVu feature; any other value turns this feature on.
ON enables the MagniVu feature.
OFF disables the MagniVu feature.
MSO4000 and DPO4000 Series Programmer Manual2-69
Commands Listed in Alphabetical Order
ACQuire:MAXS
Examples
ACQuire:MODe
amplerate? (Query Only)
Returns the maximum real-time sample rate, which varies from model to model.
Group
Syntax
Acquisition
ACQuire:MAXSamplerate?
ACQUIRE:MAXSAMPLERATE? might return 2.5000E+9 in a DPO4034 indicating
the maximum real-time sample rate is 2.5GS/s.
Sets or returns the acquisition mode of the oscilloscope for all live waveforms.
Waveforms are the displayed data point values taken from acquisition intervals.
Each acquisition interval represents a time duration set by the horizontal scale
(time per division). The 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.
SAMple specifies that the displayed data point value is the fi rst sampled value
that is taken during the acquisition interval. In sample mode, all waveform data
has 8 bits of precision. You can request 16 b it data with a CURVe query but the
lower-order 8 bits of data will be zero. SAMple is the default mode.
PEAKdetect specifies the display of high-low range of the samples taken from a
single waveform acquisition. The high-low range is displayed as a vertical column
that extends from the highest to the lowest value sampled during the acquisition
interval. PEAKdetect mode can reveal the presence of aliasing or narrow spikes.
HIRes specifies Hi Res mode where the displayed data point value is the
average of all the samples taken during the acquisition interval. This is a form
2-70MSO4000 and DPO4000 Series Programmer Manual
Commands Listed in Alphabetical Order
of averaging, w
number of samples taken during the acquisition interval determines the number of
data values that compose the average.
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.
ENVelope specifies envelope mode, w here the resulting waveform shows the
PEAKdetect range of data points from every waveform acquisition.
Examples
ACQUIRE:MODE ENVELOPE sets the acquisition mode to display a waveform that
is an envelope of many individual 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)
here the average comes from a single waveform acquisition. The
Group
Syntax
Related Commands
Returns
ACQuire:NUMAVg
Returns the number of waveform acquisitions that have occurred since starting
acquisition with the ACQuire:STATE:RUN command. This value is reset to zero
when any acquisition, horizontal, or vertical arguments that affect the waveform
are changed. The maximum number of acquisitions that can be counted is 2
acquisitions have occurred since executing an ACQuire:STATE RUN command.
Sets or returns the number of waveform acquisitions that make up an averaged
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.
ing that 350
32
1.
MSO4000 and DPO4000 Series Programmer Manual2-71
Commands Listed in Alphabetical Order
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
from 2 to 512 in powers of two.
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 to ON or RUN, a new acquisition
will be started. If the last acquisition was a single acquisition sequence, a new
single sequence acquisition will be started. If the last acquisition was continuous,
a new continuous acquisition will be started.
Group
Syntax
Related Commands
Arguments
If RUN is issued in the middle of completing a single sequence acquisition (for
example, averaging or enveloping), the acquisition sequence is restarted, and
any accumulated 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.
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 m acros but do not include the c apability to
substitute parameters into alias bodies.
To use Alias commands, first define the alias, then turn on the alias state.
Alias
MSO4000 and DPO4000 Series Programmer Manual2-73
Commands Listed in Alphabetical Order
Syntax
Related Commands
Arguments
Examples
ALIas {OFF|ON|
ALIas?
ALIas:DEFine
ALIas[:STATE]
OFF turns alias expansion off. If a defined alias is sent when ALIas is off, a
command error (110) will be generated.
ON turns alias expansion on. When a definedaliasisreceived,thespecified
command sequence is s ubstituted for the alias and executed.
<NR1> = 0 disables alias mode; any other value enables alias mode.
ALIAS ON turns the alias feature on. When a defined alias is received, the specified
command sequence is s ubstituted for the alias and executed.
ALIAS? might return :A LIAS 1 indicating that the alias feature is on.
ALIas:CATalog? (Query Only)
<NR1>}
ALIas:DEFine
Group
Syntax
Examples
Returns a list of the currently definedaliaslabels,separatedbycommas. Ifno
aliases are defined, the query returns the string "".
Alias
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 alia s 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 de finitions 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.
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 c ommands. The sequence
must be less than or equal to 256 characters.
<QString> or <Block> is a complete sequence of program messages.
defines an alias named "ST1" that sets
ALIAS:DEFINE? "ST1" returns :ALIAS:DEFINE "ST1",#246
:RECALL:SETUP 5;:AUTOSET EXECUTE ;:SELECT:CH1 ON
ALIas:DELEte (No Query Form)
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
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.
MSO4000 and DPO4000 Series Programmer Manual2-75
Commands Listed in Alphabetical Order
Examples
ALIAS:DELETE "
SETUP1"
ALIas:DELEte:ALL (No Query Form)
Deletes all existing aliases.
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
deletes the alias named SETUP1.
Arguments
Examples
ALIas[:STATE]
Group
Syntax
Group
Syntax
Alias
ALIas:DELEte[:NAMe] <QString>
<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]?
2-76MSO4000 and DPO4000 Series Programmer Manual
Commands Listed in Alphabetical Order
Arguments
Examples
ALLEv? (Query Only)
Group
Syntax
OFF or <NR1> =0t
ALIas:STATE is OFF, a command error (102) is generated.
ON or <NR1>0tu
specified command sequence is substituted for the alias and executed.
ALIAS[:STATE] OFF turns the command alias feature off.
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.
Status and Error
ALLEv?
urns alias expansion off. If a definedaliasissentwhen
rns alias expansion on. When a defined alias is received, the
Related Commands
Examples
*ESR?, EVMsg?
ALLEV? might return :ALLE V 2225,"Measurement error, No waveform
to measure; "420,"Query UNTERMINATED;"
AUTOSet (No Query Form)
Sets the vertical, horizontal, and trigger controls of the oscill
automatically acquire and display the selected waveform.
Group
Syntax
Arguments
Miscellaneous
AUTOSet {EXECute|UNDo}
EXECute autosets the displayed waveform.
UNDo restores the oscilloscope settings to those p resent prior to the autoset
execution.
oscope to
MSO4000 and DPO4000 Series Programmer Manual2-77
Commands Listed in Alphabetical Order
Examples
AUTOSET EXECUT
automatically acquire and display the selected waveform.
AUTOSet:ENAble
Enables or disables the autoset feature. This is useful for classroom purposes
where the instructor wants the students to achieve the desired instrument settings
without the benefit of the autoset feature. This setting is not saved in setup files or
SET? or *LRN? q ueries. The default state is 1 (autoset enabled).
E
vertical, horizontal, and trigger controls of the oscilloscope to
Group
Syntax
Arguments
Examples
AUXin? (Query Only)
Group
Miscellaneous
AUTOSet:ENAble {OFF|ON|0|1}
AUTOSet:ENAble?
OFFor0disables autoset.
ON or 1 enables autoset.
AUTOSET:ENABLE 1 enables the front-panel Autoset button.
AUTOSET:ENABLE? might return AUTOSET:ENABLE 0 indicating that the autoset
feature is disabled.
Returns all auxiliary input parameters.
Vertical
Syntax
AUXin?
AUXin:PRObe
Returns all information concerning the probe attached to auxilary input.
Group
Syntax
2-78MSO4000 and DPO4000 Series Programmer Manual
Vertical
AUXin:PRObe
AUXin:PRObe?
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–4V1M Hz” sets a Tektronix VPI-DPG
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 o r 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 the probe attached to the front