No part of this manual may be reproduced
in any form or by any means (including
electronic storage and retrieval or translation into a foreign language) without prior
agreement and written consent from Agilent Technologies, Inc. as governed by
United States and international copyright
laws.
Trademarks
Microsoft®, MS-DOS®, Windows®, Windows 2000®, and Windows XP® are U.S.
registered trademarks of Microsoft Corporation.
Adobe®, Acrobat®, and the Acrobat
Logo® are trademarks of Adobe Systems
Incorporated.
Manual Part Number
Version 05.00.0001
Edition
January 28, 2008
Available in electronic format only
Agilent Technologies, Inc.
1900 Garden of the Gods Road
Colorado Springs, CO 80907 USA
Warranty
The material contained in this document is provided “as is,” and is subject to being changed, without notice,
in future editions. Further, to the maximum extent permitted by applicable
law, Agilent disclaims all warranties,
either express or implied, with regard
to this manual and any information
contained herein, including but not
limited to the implied warranties of
merchantability and fitness for a particular purpose. Agilent shall not be
liable for errors or for incidental or
consequential damages in connection
with the furnishing, use, or performance of this document or of any
information contained herein. Should
Agilent and the user have a separate
written agreement with warranty
terms covering the material in this
document that conflict with these
terms, the warranty terms in the separate agreement shall control.
Technology Licenses
The hardware and/or software described in
this document are furnished under a
license and may be used or copied only in
accordance with the terms of such license.
Restricted Rights Legend
agency regulation or contract clause. Use,
duplication or disclosure of Software is
subject to Agilent Technologies’ standard
commercial license terms, and non-DOD
Departments and Agencies of the U.S. Government will receive no greater than
Restricted Rights as defined in FAR
52.227-19(c)(1-2) (June 1987). U.S. Government users will receive no greater than
Limited Rights as defined in FAR 52.227-14
(June 1987) or DFAR 252.227-7015 (b)(2)
(November 1995), as applicable in any
technical data.
Safety Notices
CAUTION
A CAUTION notice denotes a hazard. It calls attention to an operating procedure, practice, or the like
that, if not correctly performed or
adhered to, could result in damage
to the product or loss of important
data. Do not proceed beyond a
CAUTION notice until the indicated
conditions are fully understood and
met.
WARNING
A WARNING notice denotes a
hazard. It calls attention to an
operating procedure, practice, or
the like that, if not correctly performed or adhered to, could result
in personal injury or death. Do not
proceed beyond a WARNING
notice until the indicated conditions are fully understood and met.
If software is for use in the performance of
a U.S. Government prime contract or subcontract, Software is delivered and
licensed as “Commercial computer software” as defined in DFAR 252.227-7014
(June 1995), or as a “commercial item” as
defined in FAR 2.101(a) or as “Restricted
computer software” as defined in FAR
52.227-19 (June 1987) or any equivalent
In This Book
This programmer's reference gives detailed information on all the
commands available for controlling these oscilloscope models:
Table 1InfiniiVision 5000 Series Oscilloscope Models
The command descriptions in this reference show upper and lowercase
characters. For example, :AUToscale indicates that the entire command
name is :AUTOSCALE. The short form, :AUT, is also accepted by the
oscilloscope.
Command arguments and syntax are described for each command. Some
command descriptions have example code.
• "What's New" on page 17
• "Commands Quick Reference" on page 23
• "Commands by Subsystem" on page 59
• "Commands A- Z" on page 435
• "Obsolete and Discontinued Commands" on page 457
• "Error Messages" on page 499
• "Status Reporting" on page 507
• "More About Oscilloscope Commands" on page 529
• "Programming Examples" on page 549
See the Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's
Quick Start Guide for information on installing the IO libraries,
connecting the oscilloscope to the controller PC, and getting started with
oscilloscope programming.
See your oscilloscope's User's Guide for more information on front-panel
operation.
Example
Programs
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference3
The example programs are designed to work with multiple InfiniiVision
5000 Series oscilloscopes. Therefore, the commands may not match the
example code exactly, but the example code should run because of the
designed- in backward compatibility with earlier commands.
4Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference19
1What's New
What's New in Version 4.10
New features in version 4.10 of the InfiniiVision 5000 Series oscilloscope
software are:
• The square root waveform math function.
• Several new hardcopy printer drivers.
More detailed descriptions of the new and changed commands appear
below.
Changed
Commands
CommandDifferences
:FUNCtion:OPERation (see page 186)You can now select the SQRT (square root)
:HARDcopy:PDRiver (see page 477)You can now select the new DJPR0kx50,
waveform math function.
DJ55xx, PS470, and LJFastraster printer
drivers.
20Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
Version 4.00 at Introduction
The Agilent InfiniiVision 5000 Series oscilloscopes were introduced with
version 4.00 of oscilloscope operating software. The command set is
similar to the 6000 Series oscilloscopes (and the 54620/54640 Series
oscilloscopes before them) except that digital channels, rear-panel 10 Mhz
reference BNC input/output, and serial bus triggering/decode features are
not present.
What's New1
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference21
1What's New
22Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
Agilent InfiniiVision 5000 Series Oscilloscopes
Programmer's Reference
2
Commands Quick Reference
Command Summary 24
Syntax Elements 56
A
23
2Commands Quick Reference
Command Summary
Table 2Common (*) Commands Summary
CommandQueryOptions and Query Returns
*CLS (see page 65)n/an/a
*ESE <mask> (see
page 66)
n/a*ESR? (see page 68)<status> ::= 0 to 255; an integer
n/a*IDN? (see page 68)AGILENT TECHNOLOGIES,<model>,
n/a*LRN? (see page 71)<learn_string> ::= current
*ESE? (see page 67)<mask> ::= 0 to 255; an integer
in NR1 format:
Bit Weight Name Enables
--- ------ ---- ---------7128PONPower On
664URQUser Request
532CMECommand Error
416EXEExecution Error
38DDEDev. Dependent Error
24QYEQuery Error
12RQLRequest Control
01OPCOperation Complete
in NR1 format
<serial number>,X.XX.XX
<model> ::= the model number of
the instrument
<serial number> ::= the serial
number of the instrument
<X.XX.XX> ::= the software
revision of the instrument
instrument setup as a block of
data in IEEE 488.2 # format
*OPC (see page 72)*OPC? (see page 72)ASCII "1" is placed in the output
queue when all pending device
operations have completed.
24Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
Commands Quick Reference2
Table 2Common (*) Commands Summary (continued)
CommandQueryOptions and Query Returns
n/a*OPT? (see page 73)<return_value> ::= 0,0,<license
32Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
Commands Quick Reference2
Table 9:FUNCtion Commands Summary (continued)
CommandQueryOptions and Query Returns
:FUNCtion:RANGe
<range> (see
page 187)
:FUNCtion:REFerence
<level> (see
page 188)
:FUNCtion:SCALe
<scale
value>[<suffix>] (see
page 189)
:FUNCtion:SOURce
<source> (see
page 190)
:FUNCtion:RANGe? (see
page 187)
:FUNCtion:REFerence?
(see page 188)
:FUNCtion:SCALe? (see
page 189)
:FUNCtion:SOURce?
(see page 190)
<range> ::= the full-scale
vertical axis value in NR3
format.
The range for ADD, SUBT, MULT is
8E-6 to 800E+3. The range for the
INTegrate function is 8E-9 to
400E+3.
The range for the DIFFerentiate
function is 80E-3 to 8.0E12
(depends on current sweep speed).
The range for the FFT function is
8 to 800 dBV.
<level> ::= the current reference
level in NR3 format.
The range of legal values is from
400.0 dBV to +400.0 dBV
(depending on current range
value).
<scale value> ::= integer in NR1
format
<suffix> ::= {V | dB}
<source> ::= {CHANnel<n> | ADD |
SUBT | MULT}
<n> ::= 1-2 or 1-4 in NR1 format
:FUNCtion:SPAN <span>
(see page 191)
:FUNCtion:WINDow
<window> (see
page 192)
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference33
:FUNCtion:SPAN? (see
page 191)
:FUNCtion:WINDow?
(see page 192)
<span> ::= the current frequency
span in NR3 format.
<mode> ::= {IIC | SPI | CAN | LIN
| FLEXray | UART}
:SBUS:SPI:WIDTh
<word_width> (see
page 287)
:SBUS:UART:BASE
<base> (see page 288)
n/a:SBUS:UART:COUNt:ERRo
:SBUS:UART:COUNt:RESe
t (see page 290)
n/a:SBUS:UART:COUNt:RXFR
42Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
:SBUS:SPI:WIDTh? (see
page 287)
:SBUS:UART:BASE? (see
page 288)
r? (see page 289)
n/an/a
ames? (see page 291)
<word_width> ::= integer 4-16 in
NR1 format
<base> ::= {ASCii | BINary | HEX}
<frame_count> ::= integer in NR1
format
<frame_count> ::= integer in NR1
format
Commands Quick Reference2
Table 1 5 :SBUS Commands Summary (continued)
CommandQueryOptions and Query Returns
n/a:SBUS:UART:COUNt:TXFR
ames? (see page 292)
:SBUS:UART:FRAMing
<value> (see
page 293)
:SBUS:UART:FRAMing?
(see page 293)
<frame_count> ::= integer in NR1
format
<value> ::= {OFF | <decimal> |
<nondecimal>}
<decimal> ::= 8-bit integer from
0-255 (0x00-0xff)
<nondecimal> ::= #Hnn where n ::=
{0,..,9 | A,..,F} for hexadecimal
<nondecimal> ::= #Bnn...n where n
::= {0 | 1} for binary
Table 1 6 :SYSTem Commands Summary
CommandQueryOptions and Query Returns
:SYSTem:DATE <date>
(see page 295)
:SYSTem:DATE? (see
page 295)
<date> ::= <year>,<month>,<day>
<year> ::= 4-digit year in NR1
format
<month> ::= {1,..,12 | JANuary |
FEBruary | MARch | APRil | MAY |
JUNe | JULy | AUGust | SEPtember
| OCTober | NOVember | DECember}
<day> ::= {1,..31}
:TRIGger:GLITch:LEVel
<level> [<source>]
(see page 350)
:TRIGger:GLITch:POLar
ity <polarity> (see
page 351)
:TRIGger:GLITch:QUALi
fier <qualifier> (see
page 352)
:TRIGger:GLITch:RANGe
<greater than
time>[suffix], <less
than time>[suffix]
(see page 353)
:TRIGger:GLITch:LEVel
? (see page 350)
:TRIGger:GLITch:POLar
ity? (see page 351)
:TRIGger:GLITch:QUALi
fier? (see page 352)
:TRIGger:GLITch:RANGe
? (see page 353)
For internal triggers, <level>
::= .75 x full-scale voltage from
center screen in NR3 format.
For external triggers, <level>
::= 2 volts with probe
attenuation at 1:1 in NR3 format.
<source> ::= {CHANnel<n> |
EXTernal}
<n> ::= 1-2 or 1-4 in NR1 format
<polarity> ::= {POSitive |
NEGative}
<qualifier> ::= {GREaterthan |
LESSthan | RANGe}
<greater than time> ::= start
time from 10 ns to 9.99 seconds
in NR3 format
<less than time> ::= stop time
from 15 ns to 10 seconds in NR3
format
[suffix] ::= {s | ms | us | ns |
ps}
:TRIGger:GLITch:SOURc
e <source> (see
page 354)
:TRIGger:GLITch:SOURc
e? (see page 354)
<source> ::= {CHANnel<n> |
EXTernal}
<n> ::= 1-2 or 1-4 in NR1 format
Table 2 3 :TRIGger:IIC Commands Summary
CommandQueryOptions and Query Returns
:TRIGger:IIC:PATTern:
ADDRess <value> (see
page 356)
:TRIGger:IIC:PATTern:
DATA <value> (see
page 357)
:TRIGger:IIC:PATTern:
DATa2 <value> (see
page 358)
:TRIGger:IIC:PATTern:
ADDRess? (see
page 356)
:TRIGger:IIC:PATTern:
DATA? (see page 357)
:TRIGger:IIC:PATTern:
DATa2? (see page 358)
<value> ::= integer or <string>
<string> ::= "0xnn" n ::= {0,..,9
| A,..,F}
<value> ::= integer or <string>
<string> ::= "0xnn" n ::= {0,..,9
| A,..,F}
<value> ::= integer or <string>
<string> ::= "0xnn" n ::= {0,..,9
| A,..,F}
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference49
<count> ::= an integer from 1 to
65536 in NR1 format
n/a:WAVeform:DATA? (see
page 410)
:WAVeform:FORMat
<value> (see
page 412)
:WAVeform:FORMat?
(see page 412)
<binary block length bytes>,
<binary data>
For example, to transmit 1000
bytes of data, the syntax would
be: #800001000<1000 bytes of
data><NL>
8 is the number of digits that
follow
00001000 is the number of bytes
to be transmitted
<1000 bytes of data> is the
actual data
<value> ::= {WORD | BYTE | ASCII}
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference53
2Commands Quick Reference
Table 2 7 :WAVeform Commands Summary (continued)
CommandQueryOptions and Query Returns
:WAVeform:POINts
<# points> (see
page 413)
:WAVeform:POINts:MODE
<points_mode> (see
page 415)
n/a:WAVeform:PREamble?
:WAVeform:POINts?
(see page 413)
:WAVeform:POINts:MODE
? (see page 415)
(see page 417)
<# points> ::= {100 | 250 | 500 |
1000 | <points_mode>} if waveform
points mode is NORMal
<# points> ::= {100 | 250 | 500 |
1000 | 2000 ... 8000000 in 1-2-5
sequence | <points_mode>} if
waveform points mode is MAXimum
or RAW
<return_value> ::= x-increment
in the current preamble in NR3
format
<return_value> ::= x-origin
value in the current preamble in
NR3 format
<return_value> ::= 0
(x-reference value in the current
preamble in NR1 format)
<return_value> ::= y-increment
value in the current preamble in
NR3 format
<return_value> ::= y-origin in
the current preamble in NR3
format
<return_value> ::= y-reference
value in the current preamble in
NR1 format
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference55
2Commands Quick Reference
Syntax Elements
• "Number Format" on page 56
• "<NL> (Line Terminator)" on page 56
• "[ ] (Optional Syntax Terms)" on page 56
• "{ } (Braces)" on page 56
• "::= (Defined As)" on page 56
• "< > (Angle Brackets)" on page 57
• "... (Ellipsis)" on page 57
• "n,..,p (Value Ranges)" on page 57
• "d (Digits)" on page 57
• "Quoted ASCII String" on page 57
• "Definite- Length Block Response Data" on page 57
Number Format
NR1 specifies integer data.
NR3 specifies exponential data in floating point format (for example,
-1.0E-3).
<NL> (Line Terminator)
<NL> = new line or linefeed (ASCII decimal 10).
The line terminator, or a leading colon, will send the parser to the "root"
of the command tree.
[ ] (Optional Syntax Terms)
Items enclosed in square brackets, [ ], are optional.
{ } (Braces)
When several items are enclosed by braces, { }, only one of these elements
may be selected. Vertical line ( | ) indicates "or". For example, {ON | OFF}
indicates that only ON or OFF may be selected, not both.
::= (Defined As)
::= means "defined as".
56Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
For example, <A> ::= <B> indicates that <A> can be replaced by <B> in any
statement containing <A>.
< > (Angle Brackets)
< > Angle brackets enclose words or characters that symbolize a program
code parameter or an interface command.
... (Ellipsis)
... An ellipsis (trailing dots) indicates that the preceding element may be
repeated one or more times.
n,..,p (Value Ranges)
n,..,p ::= all integers between n and p inclusive.
d (Digits)
Commands Quick Reference2
d ::= A single ASCII numeric character 0 - 9.
Quoted ASCII String
A quoted ASCII string is a string delimited by either double quotes (") or
single quotes ('). Some command parameters require a quoted ASCII
string. For example, when using the Agilent VISA COM library in Visual
Basic, the command:
myScope.WriteString ":CHANNEL1:LABEL 'One'"
has a quoted ASCII string of:
'One'
In order to read quoted ASCII strings from query return values, some
programming languages require special handling or syntax.
Definite-Length Block Response Data
Definite- length block response data allows any type of device-dependent
data to be transmitted over the system interface as a series of 8- bit binary
data bytes. This is particularly useful for sending large quantities of data
or 8- bit extended ASCII codes. This syntax is a pound sign (#) followed by
a non- zero digit representing the number of digits in the decimal integer.
After the non-zero digit is the decimal integer that states the number of
8- bit data bytes being sent. This is followed by the actual data.
For example, for transmitting 1000 bytes of data, the syntax would be
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference57
2Commands Quick Reference
#800001000<1000 bytes of data> <NL>
8 is the number of digits that follow
00001000 is the number of bytes to be transmitted
<1000 bytes of data> is the actual data
58Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
Agilent InfiniiVision 5000 Series Oscilloscopes
Programmer's Reference
3
Commands by Subsystem
SubsystemDescription
"Common (*) Commands" on page 61Commands defined by IEEE 488.2 standard that
are common to all instruments.
"Root (:) Commands" on page 86Control many of the basic functions of the
oscilloscope and reside at the root level of the
command tree.
":ACQuire Commands" on page 123Set the parameters for acquiring and storing
data.
":CALibrate Commands" on page 134Utility commands for determining the state of
the calibration factor protection switch.
":CHANnel<n> Commands" on page 142Control all oscilloscope functions associated
with individual analog channels or groups of
channels.
":DISPlay Commands" on page 161Control how waveforms, graticule, and text are
displayed and written on the screen.
":EXTernal Trigger Commands" on page 171Control the input characteristics of the external
trigger input.
":FUNCtion Commands" on page 181Control functions in the measurement/storage
module.
":HARDcopy Commands" on page 193Set and query the selection of hardcopy device
and formatting options.
":MARKer Commands" on page 203Set and query the settings of X-axis markers
(X1 and X2 cursors) and the Y-axis markers (Y1
and Y2 cursors).
":MEASure Commands" on page 214Select automatic measurements to be made
and control time markers.
":RECall Commands" on page 257Recall previously saved oscilloscope setups
and traces.
":SAVE Commands" on page 262Save oscilloscope setups and traces, screen
images, and data.
A
59
3Commands by Subsystem
SubsystemDescription
":SBUS Commands" on page 276Control oscilloscope functions associated with
":SYSTem Commands" on page 294Control basic system functions of the
":TIMebase Commands" on page 302Control all horizontal sweep functions.
":TRIGger Commands" on page 313Control the trigger modes and parameters for
":WAVeform Commands" on page 401Provide access to waveform data.
Command TypesThree types of commands are used:
• Common (*) Commands — See "Introduction to Common (*)
Commands" on page 63 for more information.
• Root Level (:) Commands — See "Introduction to Root (:) Commands"
on page 88 for more information.
the serial decode bus.
oscilloscope.
each trigger type.
• Subsystem Commands — Subsystem commands are grouped together
under a common node of the "Command Tree" on page 535, such as the
:TIMebase commands. Only one subsystem may be selected at any given
time. When the instrument is initially turned on, the command parser is
set to the root of the command tree; therefore, no subsystem is
selected.
60Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
Commands by Subsystem3
Common (*) Commands
Commands defined by IEEE 488.2 standard that are common to all
instruments. See "Introduction to Common (*) Commands" on page 63.
Table 2 8 Common (*) Commands Summary
CommandQueryOptions and Query Returns
*CLS (see page 65)n/an/a
*ESE <mask> (see
page 66)
n/a*ESR? (see page 68)<status> ::= 0 to 255; an integer
n/a*IDN? (see page 68)AGILENT TECHNOLOGIES,<model>,
n/a*LRN? (see page 71)<learn_string> ::= current
*ESE? (see page 67)<mask> ::= 0 to 255; an integer
in NR1 format:
Bit Weight Name Enables
--- ------ ---- ---------7128PONPower On
664URQUser Request
532CMECommand Error
416EXEExecution Error
38DDEDev. Dependent Error
24QYEQuery Error
12RQLRequest Control
01OPCOperation Complete
in NR1 format
<serial number>,X.XX.XX
<model> ::= the model number of
the instrument
<serial number> ::= the serial
number of the instrument
<X.XX.XX> ::= the software
revision of the instrument
instrument setup as a block of
data in IEEE 488.2 # format
*OPC (see page 72)*OPC? (see page 72)ASCII "1" is placed in the output
queue when all pending device
operations have completed.
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference61
3Commands by Subsystem
Table 2 8 Common (*) Commands Summary (continued)
CommandQueryOptions and Query Returns
n/a*OPT? (see page 73)<return_value> ::= 0,0,<license
n/a*TST? (see page 84)<result> ::= 0 or non-zero value;
an integer in NR1 format
*WAI (see page 85)n/an/a
Introduction to
Common (*)
Commands
The common commands are defined by the IEEE 488.2 standard. They are
implemented by all instruments that comply with the IEEE 488.2 standard.
They provide some of the basic instrument functions, such as instrument
identification and reset, reading the instrument setup, and determining
how status is read and cleared.
Common commands can be received and processed by the instrument
whether they are sent over the interface as separate program messages or
within other program messages. If an instrument subsystem has been
selected and a common command is received by the instrument, the
instrument remains in the selected subsystem. For example, if the program
message ":ACQuire:TYPE AVERage; *CLS; COUNt 256" is received by the
instrument, the instrument sets the acquire type, then clears the status
information and sets the average count.
In contrast, if a root level command or some other subsystem command is
within the program message, you must re-enter the original subsystem
after the command. For example, the program message ":ACQuire:TYPE
AVERage; :AUToscale; :ACQuire:COUNt 256" sets the acquire type,
completes the autoscale, then sets the acquire count. In this example,
:ACQuire must be sent again after the :AUToscale command in order to
re- enter the ACQuire subsystem and set the count.
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference63
3Commands by Subsystem
NOTE
Each of the status registers has an enable (mask) register. By setting the bits in the enable
register, you can select the status information you want to use.
64Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
*CLS (Clear Status)
(see page 530)
Commands by Subsystem3
Command Syntax
NOTE
See Also• "Introduction to Common (*) Commands" on page 63
*CLS
The *CLS common command clears the status data structures, the
device-defined error queue, and the Request-for- OPC flag.
If the *CLS command immediately follows a program message terminator, the output queue
and the MAV (message available) bit are cleared.
• "*STB (Read Status Byte)" on page 81
• "*ESE (Standard Event Status Enable)" on page 66
• "*ESR (Standard Event Status Register)" on page 68
• "*SRE (Service Request Enable)" on page 79
• ":SYSTem:ERRor" on page 297
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference65
3Commands by Subsystem
*ESE (Standard Event Status Enable)
(see page 530)
Command Syntax
*ESE <mask_argument>
<mask_argument> ::= integer from 0 to 255
The *ESE common command sets the bits in the Standard Event Status
Enable Register. The Standard Event Status Enable Register contains a
mask value for the bits to be enabled in the Standard Event Status
Register. A "1" in the Standard Event Status Enable Register enables the
corresponding bit in the Standard Event Status Register. A zero disables
the bit.
321854(;(''(4<(54/23&&0(
(65"
(6(
(6("
6WDQGDUG(YHQW
6WDWXV5HJLVWHU
6WDQGDUG(YHQW
6WDWXV(QDEOH
0DVN5HJLVWHU
25
7R(6%ELWLQ
6WDWXV%\WH
5HJLVWHU
Table 2 9 Standard Event Status Enable (ESE)
BitNameDescriptionWhen Set (1 = High = True), Enables:
7PONPower OnEvent when an OFF to ON transition occurs.
6URQUser RequestEvent when a front-panel key is pressed.
5CMECommand ErrorEvent when a command error is detected.
4EXEExecution ErrorEvent when an execution error is detected.
3DDEDevice Dependent ErrorEvent when a device-dependent error is detected.
2QYEQuery ErrorEvent when a query error is detected.
66Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
Table 2 9 Standard Event Status Enable (ESE) (continued)
BitNameDescriptionWhen Set (1 = High = True), Enables:
1RQLRequest ControlEvent when the device is requesting control. (Not
0OPCOperation CompleteEvent when an operation is complete.
Query Syntax*ESE?
The *ESE? query returns the current contents of the Standard Event
Status Enable Register.
Commands by Subsystem3
used.)
Return Format
See Also• "Introduction to Common (*) Commands" on page 63
<mask_argument><NL>
<mask_argument> ::= 0,..,255; an integer in NR1 format.
• "*ESR (Standard Event Status Register)" on page 68
• "*OPC (Operation Complete)" on page 72
• "*CLS (Clear Status)" on page 65
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference67
3Commands by Subsystem
*ESR (Standard Event Status Register)
(see page 530)
Query Syntax
*ESR?
The *ESR? query returns the contents of the Standard Event Status
Register. When you read the Event Status Register, the value returned is
the total bit weights of all of the bits that are high at the time you read
the byte. Reading the register clears the Event Status Register.
The following table shows bit weight, name, and condition for each bit.
321854(;(''(4<(54/23&&0(
25
(65"
(6(
(6("
6WDQGDUG(YHQW
6WDWXV5HJLVWHU
6WDQGDUG(YHQW
6WDWXV(QDEOH
0DVN5HJLVWHU
7R(6%ELWLQ
6WDWXV%\WH
5HJLVWHU
Table 3 0 Standard Event Status Register (ESR)
BitNameDescriptionWhen Set (1 = High = True), Indicates:
7PONPower OnAn OFF to ON transition has occurred.
6URQUser RequestA front-panel key has been pressed.
5CMECommand ErrorA command error has been detected.
4EXEExecution ErrorAn execution error has been detected.
3DDEDevice Dependent ErrorA device-dependent error has been detected.
2QYEQuery ErrorA query error has been detected.
68Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
Table 3 0 Standard Event Status Register (ESR) (continued)
BitNameDescriptionWhen Set (1 = High = True), Indicates:
1RQLRequest ControlThe device is requesting control. (Not used.)
0OPCOperation CompleteOperation is complete.
Return Format<status><NL>
<status> ::= 0,..,255; an integer in NR1 format.
Commands by Subsystem3
NOTE
See Also• "Introduction to Common (*) Commands" on page 63
Reading the Standard Event Status Register clears it. High or 1 indicates the bit is true.
• "*ESE (Standard Event Status Enable)" on page 66
• "*OPC (Operation Complete)" on page 72
• "*CLS (Clear Status)" on page 65
• ":SYSTem:ERRor" on page 297
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference69
3Commands by Subsystem
*IDN (Identification Number)
(see page 530)
Query Syntax
Return Format
See Also• "Introduction to Common (*) Commands" on page 63
*IDN?
The *IDN? query identifies the instrument type and software version.
<serial number> ::= the serial number of the instrument
X.XX.XX ::= the software revision of the instrument
• "*OPT (Option Identification)" on page 73
70Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
*LRN (Learn Device Setup)
(see page 530)
Commands by Subsystem3
Query Syntax
Return Format<learn_string><NL>
NOTE
See Also• "Introduction to Common (*) Commands" on page 63
*LRN?
The *LRN? query result contains the current state of the instrument. This
query is similar to the :SYSTem:SETup? (see page 299) query, except that
it contains ":SYST:SET " before the binary block data. The query result is a
valid command that can be used to restore instrument settings at a later
time.
<learn_string> ::= :SYST:SET <setup_data>
<setup_data> ::= binary block data in IEEE 488.2 # format
<learn string> specifies the current instrument setup. The block size is
subject to change with different firmware revisions.
The *LRN? query return format has changed from previous Agilent oscilloscopes to match
the IEEE 488.2 specification which says that the query result must contain ":SYST:SET "
before the binary block data.
• "*RCL (Recall)" on page 74
• "*SAV (Save)" on page 78
• ":SYSTem:SETup" on page 299
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference71
3Commands by Subsystem
*OPC (Operation Complete)
(see page 530)
Command Syntax
Query Syntax
Return Format
See Also• "Introduction to Common (*) Commands" on page 63
*OPC
The *OPC command sets the operation complete bit in the Standard Event
Status Register when all pending device operations have finished.
*OPC?
The *OPC? query places an ASCII "1" in the output queue when all
pending device operations have completed. The interface hangs until this
query returns.
<complete><NL>
<complete> ::= 1
• "*ESE (Standard Event Status Enable)" on page 66
• "*ESR (Standard Event Status Register)" on page 68
• "*CLS (Clear Status)" on page 65
72Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
*OPT (Option Identification)
(see page 530)
Commands by Subsystem3
Query Syntax
Return Format
*OPT?
The *OPT? query reports the options installed in the instrument. This
query returns a string that identifies the module and its software revision
level.
No modules attached0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
See Also• "Introduction to Common (*) Commands" on page 63
• "*IDN (Identification Number)" on page 70
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference73
3Commands by Subsystem
*RCL (Recall)
(see page 530)
Command Syntax
See Also• "Introduction to Common (*) Commands" on page 63
*RCL <value>
<value> ::= {0|1|2|3|4|5|6|7|8|9}
The *RCL command restores the state of the instrument from the specified
save/recall register.
• "*SAV (Save)" on page 78
74Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
*RST (Reset)
Commands by Subsystem3
(see page 530)
Command Syntax
*RST
The *RST command places the instrument in a known state. Reset
conditions are:
Acquire Menu
ModeNormal
RealtimeOn
AveragingOff
# Averages8
Analog Channel Menu
Channel 1On
Channel 2Off
Volts/division5.00 V
Offset0.00
CouplingDC
Probe attenuationAutoProbe (if AutoProbe is connected),
otherwise 1.0:1
VernierOff
InvertOff
BW limitOff
Impedance1 M Ohm
UnitsVolts
Skew0
Cursor Menu
SourceChannel 1
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference75
3Commands by Subsystem
Display Menu
Definite persistenceOff
Grid33%
VectorsOn
Quick Meas Menu
SourceChannel 1
Run Control
Time Base Menu
Scope is running
Main time/division100 us
Main time base delay0.00 s
Delay time/division500 ns
Delay time base delay0.00 s
Referencecenter
Modemain
VernierOff
Trigger Menu
Ty p eEd g e
ModeAuto
Couplingdc
SourceChannel 1
Level0.0 V
SlopePositive
HF Reject and noise rejectOff
Holdoff60 ns
External probe attenuationAutoProbe (if AutoProbe is connected),
otherwise 1.0:1
76Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
Commands by Subsystem3
Trigger Menu
External UnitsVolts
External Impedance1 M Ohm
See Also• "Introduction to Common (*) Commands" on page 63
Example Code
' RESET - This command puts the oscilloscope into a known state.
' This statement is very important for programs to work as expected.
' Most of the following initialization commands are initialized by
' *RST.It is not necessary to reinitialize them unless the default
' setting is not suitable for your application.
myScope.WriteString "*RST"' Reset the oscilloscope to the defaults.
Example program from the start: "VISA COM Example in Visual Basic" on
page 578
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference77
3Commands by Subsystem
*SAV (Save)
(see page 530)
Command Syntax
See Also• "Introduction to Common (*) Commands" on page 63
*SAV <value>
<value> ::= {0|1|2|3|4|5|6|7|8|9}
The *SAV command stores the current state of the instrument in a save
register. The data parameter specifies the register where the data will be
saved.
• "*RCL (Recall)" on page 74
78Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
*SRE (Service Request Enable)
(see page 530)
Commands by Subsystem3
Command Syntax
*SRE <mask>
<mask> ::= integer with values defined in the following table.
The *SRE command sets the bits in the Service Request Enable Register.
The Service Request Enable Register contains a mask value for the bits to
be enabled in the Status Byte Register. A one in the Service Request
Enable Register enables the corresponding bit in the Status Byte Register.
A zero disables the bit.
)URP
)URP
2SHUDWLRQ
6WDWXV
5HJLVWHUV
23(575*0$9(6%
546
066
6WDQGDUG
(YHQW
6WDWXV
5HJLVWHUV
2XWSXW
4XHXH
06*
865
75*
7(5"7ULJJHU(YHQW5HJLVWHU
5HJ
67%"6WDWXV%\WH5HJLVWHU
65(
65("
25
654
Table 3 1 Service Request Enable Register (SRE)
BitNameDescriptionWhen Set (1 = High = True), Enables:
7OPEROperation Status RegisterInterrupts when enabled conditions in the
6------(Not used.)
6HUYLFH5HTXHVW
Operation Status Register (OPER) occur.
6HUYLFH5HTXHVW(QDEOH
0DVN5HJLVWHU
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference79
3Commands by Subsystem
Table 3 1 Service Request Enable Register (SRE) (continued)
BitNameDescriptionWhen Set (1 = High = True), Enables:
5ESBEvent Status BitInterrupts when enabled conditions in the
4MAVMessage AvailableInterrupts when messages are in the Output
3------(Not used.)
2MSGMessageInterrupts when an advisory has been displayed
1USRUser EventInterrupts when enabled user event conditions
0TRGTriggerInterrupts when a trigger occurs.
Query Syntax*SRE?
Standard Event Status Register (ESR) occur.
Queue.
on the oscilloscope.
occur.
The *SRE? query returns the current value of the Service Request Enable
Register.
Return Format
<mask><NL>
<mask> ::= sum of all bits that are set, 0,..,255;
an integer in NR1 format
See Also• "Introduction to Common (*) Commands" on page 63
• "*STB (Read Status Byte)" on page 81
• "*CLS (Clear Status)" on page 65
80Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
*STB (Read Status Byte)
(see page 530)
Commands by Subsystem3
Query Syntax
Return Format
*STB?
The *STB? query returns the current value of the instrument's status byte.
The MSS (Master Summary Status) bit is reported on bit 6 instead of the
RQS (request service) bit. The MSS indicates whether or not the device
has at least one reason for requesting service.
<value><NL>
<value> ::= 0,..,255; an integer in NR1 format
)URP
)URP
2SHUDWLRQ
6WDWXV
5HJLVWHUV
23(575*0$9(6%
546
066
6WDQGDUG
(YHQW
6WDWXV
5HJLVWHUV
2XWSXW
4XHXH
06*
865
75*
7(5"7ULJJHU(YHQW5HJLVWHU
5HJ
67%"6WDWXV%\WH5HJLVWHU
65(
65("
25
654
Table 3 2 Status Byte Register (STB)
BitNameDescriptionWhen Set (1 = High = True), Indicates:
7OPEROperation Status RegisterAn enabled condition in the Operation Status
6HUYLFH5HTXHVW
Register (OPER) has occurred.
6HUYLFH5HTXHVW(QDEOH
0DVN5HJLVWHU
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference81
3Commands by Subsystem
Table 3 2 Status Byte Register (STB) (continued)
BitNameDescriptionWhen Set (1 = High = True), Indicates:
6RQSRequest ServiceWhen polled, that the device is requesting service.
5ESBEvent Status BitAn enabled condition in the Standard Event Status
4MAVMessage AvailableThere are messages in the Output Queue.
3------(Not used, always 0.)
2MSGMessageAn advisory has been displayed on the
1USRUser EventAn enabled user event condition has occurred.
0TRGTriggerA trigger has occurred.
MSSMaster Summary StatusWhen read (by *STB?), whether the device has a
reason for requesting service.
Register (ESR) has occurred.
oscilloscope.
NOTE
See Also• "Introduction to Common (*) Commands" on page 63
To read the instrument's status byte with RQS reported on bit 6, use the interface Serial
Poll.
• "*SRE (Service Request Enable)" on page 79
82Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
*TRG (Trigger)
Commands by Subsystem3
(see page 530)
Command Syntax
See Also• "Introduction to Common (*) Commands" on page 63
*TRG
The *TRG command has the same effect as the :DIGitize command with no
parameters.
• ":DIGitize" on page 96
• ":RUN" on page 116
• ":STOP" on page 120
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference83
3Commands by Subsystem
*TST (Self Test)
(see page 530)
Query Syntax
Return Format
See Also• "Introduction to Common (*) Commands" on page 63
*TST?
The *TST? query performs a self- test on the instrument. The result of the
test is placed in the output queue. A zero indicates the test passed and a
non-zero indicates the test failed. If the test fails, refer to the
troubleshooting section of the Service Guide.
<result><NL>
<result> ::= 0 or non-zero value; an integer in NR1 format
84Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
*WAI (Wait To Continue)
(see page 530)
Commands by Subsystem3
Command Syntax
See Also• "Introduction to Common (*) Commands" on page 63
*WAI
The *WAI command has no function in the oscilloscope, but is parsed for
compatibility with other instruments.
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference85
3Commands by Subsystem
Root (:) Commands
Control many of the basic functions of the oscilloscope and reside at the
root level of the command tree. See "Introduction to Root (:) Commands"
on page 88.
Table 3 3 Root (:) Commands Summary
CommandQueryOptions and Query Returns
n/a:AER? (see page 89){0 | 1}; an integer in NR1 format
:AUToscale
[<source>[,..,<source
>]] (see page 90)
:AUToscale:AMODE
<value> (see page 92)
:AUToscale:CHANnels
<value> (see page 93)
:BLANk [<source>]
(see page 94)
:CDISplay (see
page 95)
:DIGitize
[<source>[,..,<source
>]] (see page 96)
:HWEenable <n> (see
page 98)
n/a<source> ::= CHANnel<n>
<source> can be repeated up to 5
times
<n> ::= 1-2 or 1-4 in NR1 format
:AUToscale:AMODE?
(see page 92)
:AUToscale:CHANnels?
(see page 93)
n/a<source> ::= {CHANnel<n>} |
n/an/a
n/a<source> ::= {CHANnel<n> |
:HWEenable? (see
page 98)
<value> ::= {NORMal | CURRent}}
<value> ::= {ALL | DISPlayed}}
FUNCtion | MATH}
<n> ::= 1-2 or 1-4 in NR1 format
FUNCtion | MATH}
<source> can be repeated up to 5
times
<n> ::= 1-2 or 1-4 in NR1 format
<n> ::= 16-bit integer in NR1
format
n/a:HWERregister:CONDiti
on? (see page 100)
n/a:HWERegister[:EVENt]?
(see page 102)
:MERGe <pixel memory>
(see page 104)
:OPEE <n> (see
page 105)
n/a:OPERregister:CONDiti
n/a:OPERegister[:EVENt]?
86Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
n/a<pixel memory> ::= {PMEMory{0 | 1
:OPEE? (see page 106)<n> ::= 16-bit integer in NR1
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference87
3Commands by Subsystem
Introduction to
Root (:)
Commands
Root level commands control many of the basic operations of the
instrument. These commands are always recognized by the parser if they
are prefixed with a colon, regardless of current command tree position.
After executing a root- level command, the parser is positioned at the root
of the command tree.
88Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
:AER (Arm Event Register)
(see page 530)
Commands by Subsystem3
Query Syntax
Return Format
See Also• "Introduction to Root (:) Commands" on page 88
:AER?
The AER query reads the Arm Event Register. After the Arm Event
Register is read, it is cleared. A "1" indicates the trigger system is in the
armed state, ready to accept a trigger.
The Armed Event Register is summarized in the Wait Trig bit of the
Operation Status Event Register. A Service Request can be generated when
the Wait Trig bit transitions and the appropriate enable bits have been set
in the Operation Status Enable Register (OPEE) and the Service Request
Enable Register (SRE).
<value><NL>
<value> ::= {0 | 1}; an integer in NR1 format.
• ":OPEE (Operation Status Enable Register)" on page 105
• ":OPERegister:CONDition (Operation Status Condition Register)" on
page 107
• ":OPERegister[:EVENt] (Operation Status Event Register)" on page 109
• "*STB (Read Status Byte)" on page 81
• "*SRE (Service Request Enable)" on page 79
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference89
<n> ::= {1 | 2} for the two channel oscilloscope models
The <source> parameter may be repeated up to 5 times.
The :AUToscale command evaluates all input signals and sets the correct
conditions to display the signals. This is the same as pressing the
Autoscale key on the front panel.
If one or more sources are specified, those specified sources will be
enabled and all others blanked. The autoscale channels mode (see
":AUToscale:CHANnels" on page 93) is set to DISPlayed channels. Then, the
autoscale is performed.
When the :AUToscale command is sent, the following conditions are
affected and actions are taken:
• Thresholds.
• Channels with activity around the trigger point are turned on, others
are turned off.
• Channels are reordered on screen; analog channel 1 first, followed by
the remaining analog channels.
• Delay is set to 0 seconds.
• Time/Div.
The :AUToscale command does not affect the following conditions:
• Label names.
• Trigger conditioning.
The :AUToscale command turns off the following items:
• Cursors.
• Measurements.
• Trace memories.
• Delayed time base mode.
For further information on :AUToscale, see the User's Guide.
See Also• "Introduction to Root (:) Commands" on page 88
• ":AUToscale:CHANnels" on page 93
90Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
• ":AUToscale:AMODE" on page 92
Commands by Subsystem3
Example Code
' AUTOSCALE - This command evaluates all the input signals and sets
' the correct conditions to display all of the active signals.
myScope.WriteString ":AUTOSCALE"' Same as pressing Autoscale key.
Example program from the start: "VISA COM Example in Visual Basic" on
page 578
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference91
3Commands by Subsystem
:AUToscale:AMODE
(see page 530)
Command Syntax
Query Syntax
Return Format
See Also• "Introduction to Root (:) Commands" on page 88
:AUToscale:AMODE <value>
<value> ::= {NORMal | CURRent}
The :AUTOscale:AMODE command specifies the acquisition mode that is
set by subsequent :AUToscales.
• When NORMal is selected, an :AUToscale command sets the NORMal
acquisition type and the RTIMe (real- time) acquisition mode.
• When CURRent is selected, the current acquisition type and mode are
kept on subsequent :AUToscales.
Use the :ACQuire:TYPE and :ACQuire:MODE commands to set the
acquisition type and mode.
:AUToscale:AMODE?
The :AUToscale:AMODE? query returns the autoscale acquire mode setting.
<value><NL>
<value> ::= {NORM | CURR}
• ":AUToscale" on page 90
• ":AUToscale:CHANnels" on page 93
• ":ACQuire:TYPE" on page 132
• ":ACQuire:MODE" on page 129
92Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
:AUToscale:CHANnels
(see page 530)
Commands by Subsystem3
Command Syntax
Query Syntax
Return Format
See Also• "Introduction to Root (:) Commands" on page 88
:AUToscale:CHANnels <value>
<value> ::= {ALL | DISPlayed}
The :AUTOscale:CHANnels command specifies which channels will be
displayed on subsequent :AUToscales.
• When ALL is selected, all channels that meet the requirements of
:AUToscale will be displayed.
• When DISPlayed is selected, only the channels that are turned on are
autoscaled.
Use the :VIEW or :BLANk root commands to turn channels on or off.
:AUToscale:CHANnels?
The :AUToscale:CHANnels? query returns the autoscale channels setting.
<value><NL>
<value> ::= {ALL | DISP}
• ":AUToscale" on page 90
• ":AUToscale:AMODE" on page 92
• ":VIEW" on page 122
• ":BLANk" on page 94
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference93
3Commands by Subsystem
:BLANk
(see page 530)
Command Syntax
NOTE
NOTE
See Also• "Introduction to Root (:) Commands" on page 88
<n> ::= {1 | 2} for the two channel oscilloscope models
The :BLANk command turns off (stops displaying) the specified channel or
math function. The :BLANk command with no parameter turns off all
sources.
To turn on (start displaying) a channel, etc., use the :VIEW command. The DISPlay
commands, :CHANnel<n>:DISPlay or :FUNCtion:DISPlay are the preferred method to turn
on/off a channel, etc.
MATH is an alias for FUNCtion.
• ":CDISplay" on page 95
• ":CHANnel<n>:DISPlay" on page 147
• ":FUNCtion:DISPlay" on page 184
• ":STATus" on page 119
• ":VIEW" on page 122
Example Code• "Example Code" on page 122
94Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
:CDISplay
Commands by Subsystem3
(see page 530)
Command Syntax
See Also• "Introduction to Root (:) Commands" on page 88
:CDISplay
The :CDISplay command clears the display and resets all associated
measurements. If the oscilloscope is stopped, all currently displayed data
is erased. If the oscilloscope is running, all the data in active channels and
functions is erased; however, new data is displayed on the next
acquisition.
• ":DISPlay:CLEar" on page 163
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference95
<n> ::= {1 | 2} for the two channel oscilloscope models
The <source> parameter may be repeated up to 5 times.
The :DIGitize command is a specialized RUN command. It causes the
instrument to acquire waveforms according to the settings of the :ACQuire
commands subsystem. When the acquisition is complete, the instrument is
stopped. If no argument is given, :DIGitize acquires the channels currently
displayed. If no channels are displayed, all channels are acquired.
To halt a :DIGitize in progress, use the device clear command.
MATH is an alias for FUNCtion.
See Also• "Introduction to Root (:) Commands" on page 88
• ":RUN" on page 116
• ":SINGle" on page 118
• ":STOP" on page 120
• ":ACQuire Commands" on page 123
• ":WAVeform Commands" on page 401
Example Code
' DIGITIZE - Used to acquire the waveform data for transfer over
' the interface.Sending this command causes an acquisition to
' take place with the resulting data being placed in the buffer.
'
' NOTE!The DIGITIZE command is highly recommended for triggering
' modes other than SINGLE.This ensures that sufficient data is
' available for measurement.If DIGITIZE is used with single mode,
' the completion criteria may never be met.The number of points
' gathered in Single mode is related to the sweep speed, memory
' depth, and maximum sample rate.For example, take an oscilloscope
' with a 1000-point memory, a sweep speed of 10 us/div (100 us
' total time across the screen), and a 20 MSa/s maximum sample rate.
' 1000 divided by 100 us equals 10 MSa/s.Because this number is
' less than or equal to the maximum sample rate, the full 1000 points
' will be digitized in a single acquisition.Now, use 1 us/div
' (10 us across the screen).1000 divided by 10 us equals 100 MSa/s;
96Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference
Commands by Subsystem3
' because this is greater than the maximum sample rate by 5 times,
' only 400 points (or 1/5 the points) can be gathered on a single
' trigger.Keep in mind when the oscilloscope is running,
' communication with the computer interrupts data acquisition.
' Setting up the oscilloscope over the bus causes the data buffers
' to be cleared and internal hardware to be reconfigured.If a
' measurement is immediately requested, there may have not been
' enough time for the data acquisition process to collect data, and
' the results may not be accurate.An error value of 9.9E+37 may be
' returned over the bus in this situation.
'
myScope.WriteString ":DIGITIZE CHAN1"
Example program from the start: "VISA COM Example in Visual Basic" on
page 578
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Reference97
3Commands by Subsystem
:HWEenable (Hardware Event Enable Register)
(see page 530)
Command Syntax
25
7R+:(ELWLQ
2SHUDWLRQ6WDWXV
&RQGLWLRQ5HJLVWHU
:HWEenable <mask>
<mask> ::= 16-bit integer
The :HWEenable command sets a mask in the Hardware Event Enable
register. Set any of the following bits to "1" to enable bit 12 in the
Operation Status Condition Register and potentially cause an SRQ (Service
Request interrupt to be generated.