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.20.0000
Edition
December 5, 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 book is your guide to programming the 5000 Series oscilloscopes:
Table 1InfiniiVision 5000 Series Oscilloscope Models
changes in the latest version of oscilloscope software.
• Chapter 2, "Setting Up" on page 31, describes the steps you must take
before you can program the oscilloscope.
• Chapter 3, "Getting Started" on page 41, gives a general overview of
oscilloscope program structure and shows how to program the
oscilloscope using a few simple examples.
• Chapter 4, "Commands Quick Reference" on page 55, is a brief listing of
the 5000 Series oscilloscope commands and syntax.
The next chapters provide reference information:
• Chapter 5, "Commands by Subsystem" on page 95, describes the set of
commands that belong to an individual subsystem and explains the
function of each command. Command arguments and syntax are
described. Some command descriptions have example code.
• Chapter 6, "Commands A- Z" on page 535, contains an alphabetical
listing of all command elements.
• Chapter 7, "Obsolete and Discontinued Commands" on page 563,
describes obsolete commands which still work but have been replaced
by newer commands and discontinued commands which are no longer
supported.
• Chapter 8, "Error Messages" on page 615, lists the instrument error
messages that can occur while programming the oscilloscope.
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.
Then, there are chapters that describe programming topics and conceptual
information in more detail:
• Chapter 9, "Status Reporting" on page 623, describes the oscilloscope's
status registers and how to check the status of the instrument.
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide3
• Chapter 10, "Synchronizing Acquisitions" on page 647, describes how to
wait for acquisitions to complete before querying measurement results
or performing other operations with the captured data.
• Chapter 11, "More About Oscilloscope Commands" on page 657, contains
additional information about oscilloscope programming commands.
Finally, there is a chapter that contains programming examples:
• Chapter 12, "Programming Examples" on page 679.
See Also• For more information on using the SICL, VISA, and VISA COM libraries
in general, see the documentation that comes with the Agilent IO
Libraries Suite.
• For information on controller PC interface configuration, see the
documentation for the interface card used (for example, the Agilent
82350A GPIB interface).
• For information on oscilloscope front-panel operation, see the User's
Guide.
• For detailed connectivity information, refer to the Agilent Technologies
USB/LAN/GPIB Connectivity Guide. For a printable electronic copy of
the Connectivity Guide, direct your Web browser to "www.agilent.com"
and search for "Connectivity Guide".
• For the latest versions of this and other manuals, see:
"http://www.agilent.com/find/5000manual"
4Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
Contents
1 What's New
2 Setting Up
In This Book3
What's New in Version 5.2020
What's New in Version 5.1523
What's New in Version 5.1025
What's New in Version 5.0026
What's New in Version 4.1028
Version 4.00 at Introduction29
Step 1. Install Agilent IO Libraries Suite software32
Step 2. Connect and set up the oscilloscope33
Using the USB (Device) Interface33
Using the LAN Interface33
Using the GPIB Interface34
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide5
Programming the Oscilloscope44
Referencing the IO Library44
Opening the Oscilloscope Connection via the IO Library45
Initializing the Interface and the Oscilloscope45
Using :AUToscale to Automate Oscilloscope Setup46
Using Other Oscilloscope Setup Commands46
Capturing Data with the :DIGitize Command47
Reading Query Responses from the Oscilloscope49
Reading Query Results into String Variables50
Reading Query Results into Numeric Variables50
Reading Definite-Length Block Query Response Data50
Sending Multiple Queries and Reading Results51
Checking Instrument Status52
Other Ways of Sending Commands53
Tel ne t S oc ke ts53
Sending SCPI Commands Using Browser Web Control53
Program Message Syntax 659
Command Tree663
Duplicate Mnemonics674
Tree Traversal Rules and Multiple Commands675
Query Return Values677
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide17
All Oscilloscope Commands Are Sequential678
12 Programming Examples
SICL Examples680
SICL Example in C680
SICL Example in Visual Basic689
VISA Examples698
VISA Example in C698
VISA Example in Visual Basic707
VISA Example in C#717
VISA Example in Visual Basic .NET731
VISA COM Examples744
VISA COM Example in Visual Basic744
VISA COM Example in C#754
VISA COM Example in Visual Basic .NET765
Index
18Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
Agilent InfiniiVision 5000 Series Oscilloscopes
Programmer's Guide
1
What's New
What's New in Version 5.20 20
What's New in Version 5.15 23
What's New in Version 5.10 25
What's New in Version 5.00 26
What's New in Version 4.10 28
Version 4.00 at Introduction 29
A
19
1What's New
What's New in Version 5.20
New features in version 5.20 of the InfiniiVision 5000 Series oscilloscope
software are:
• Mask testing, enabled with Option LMT.
• Tracking cursors (markers) have been added.
• Measurement statistics have been added.
• Labels can now be up to 10 characters.
More detailed descriptions of the new and changed commands appear
below.
New Commands
CommandDescription
:ACQuire:SEGMented:ANALyze (see page 171)Calculates measurement statistics and/or
infinite persistence over all segments that have
been acquired.
:CALibrate:OUTPut (see page 183)Selects the signal output on the rear panel
TRIG OUT BNC.
:HARDcopy:LAYout (see page 252)Sets the hardcopy layout mode.
:MEASure:RESults (see page 291)Returns measurement statistics values.
:MEASure:STATistics (see page 299)Sets the type of measurement statistics to
return.
:MEASure:STATistics:INCRement (see
page 300)
:MEASure:STATistics:RESet (see page 301)Resets the measurement statistics values.
:MTEenable (Mask Test Event Enable Register)
(see page 141)
:MTERegister[:EVENt] (Mask Test Event Event
Register) (see page 143)
:MTESt Commands (see page 318)Commands and queries to control the mask
:RECall:MASK[:STARt] (see page 366)Recalls a mask.
:SAVE:MASK[:STARt] (see page 366)Saves the current mask.
Updates the statistics once (incrementing the
count by one) using the current measurement
values.
Sets a mask in the Mask Test Event Enable
register.
Returns the integer value contained in the
Mask Test Event Event Register and clears the
register.
test (Option LMT) features.
:SAVE:WAVeform:SEGMented (see page 372)Specifies which segments are included when
the waveform is saved.
:TRIGger:UART:BASE (see page 487)Selects the front panel UART/RS232 trigger
setup data selection option from HEX or
BINary.
20Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
Changed
Commands
What's New1
CommandDifferences
:CHANnel<n>:LABel (see page 197)Labels can now be up to 10 characters.
:DISPlay:LABList (see page 214)Labels can now be up to 10 characters.
:MARKer:MODE (see page 258)You can now select the WAVeform tracking
cursors mode.
:RECall:PWD (see page 355)You can set the present working directory in
addition to querying for this information.
:SAVE:IMAGe[:STARt] (see page 360)The file extension specified will change the
:SAVE:IMAGe:FORMat setting if it is a valid
image file extension.
:SAVE:PWD (see page 367)You can set the present working directory in
addition to querying for this information.
:SAVE:WAVeform[:STARt] (see page 360)The file extension specified will change the
:SAVE:WAVeform:FORMat setting if it is a valid
waveform file extension.
Obsolete
Commands
:TRIGger:CAN:SIGNal:BAUDrate (see
page 429)
:TRIGger:LIN:SIGNal:BAUDrate (see page 465)The baud rate value can now be set in 100 b/s
:TRIGger:UART:BAUDrate (see page 488)The baud rate value can now be set in 100 b/s
:TRIGger:UART:DATA (see page 491)You can now specify the data value using a
There are various commands
for setting the source with
different types of triggers.
22Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
What's New in Version 5.15
New features in version 5.15 of the InfiniiVision 5000 Series oscilloscope
software are:
• Waveform math can be performed using channels 3 and 4, and there is
a new ADD operator.
• Ratio of AC RMS values measurement.
• Analog channel impedance protection lock.
More detailed descriptions of the new and changed commands appear
below.
New Commands
CommandDescription
:FUNCtion:GOFT:OPERation (see page 233)Selects the math operation for the internal g(t)
What's New1
source that can be used as the input to the FFT,
INTegrate, DIFFerentiate, and SQRT functions.
:FUNCtion:GOFT:SOURce1 (see page 234)Selects the first input channel for the g(t)
source.
:FUNCtion:GOFT:SOURce2 (see page 235)Selects the second input channel for the g(t)
source.
:FUNCtion:SOURce1 (see page 241)Selects the first source for the ADD, SUBTract,
and MULTiply arithmetic operations or the
single source for the FFT, INTegrate,
DIFFerentiate, and SQRT functions.
:FUNCtion:SOURce2 (see page 242)Selects the second input channel for the ADD,
SUBTract, and MULTiply arithmetic operations.
:MEASure:VRATio (see page 312)Measures and returns the ratio of AC RMS
values of the specified sources expressed in
dB.
:SYSTem:PROTection:LOCK (see page 396)Disables/enables the fifty ohm input
impedance setting.
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide23
1What's New
Changed
Commands
Obsolete
Commands
CommandDifferences
:ACQuire:COUNt (see page 167)The :ACQuire:COUNt 1 command has been
deprecated. The AVERage acquisition type with
a count of 1 is functionally equivalent to the
HRESolution acquisition type; however, you
should select the high-resolution acquisition
mode with the :ACQuire:TYPE HRESolution
command instead.
:FUNCtion:OPERation (see page 237)The ADD parameter is new, and now that
waveform math can be performed using
channels 3 and 4, this command selects the
operation only.
:FUNCtion:WINDow (see page 244)You can now select the Blackman-Harris FFT
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide27
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 237)You can now select the SQRT (square root)
:HARDcopy:PDRiver (see page 584)You can now select the new DJPR0kx50,
waveform math function.
DJ55xx, PS470, and LJFastraster printer
drivers.
28Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
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 Guide29
1What's New
30Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
Loading...
+ 758 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.