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.15.0000
Edition
July 31, 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 27, describes the steps you must take
before you can program the oscilloscope.
• Chapter 3, "Getting Started" on page 37, 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 51, 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 89, 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 477, contains an alphabetical
listing of all command elements.
• Chapter 7, "Obsolete and Discontinued Commands" on page 501,
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 545, 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 553, 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 575, 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 585, contains
additional information about oscilloscope programming commands.
Finally, there is a chapter that contains programming examples:
• Chapter 12, "Programming Examples" on page 607.
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.1520
What's New in Version 5.1022
What's New in Version 5.0023
What's New in Version 4.1025
Version 4.00 at Introduction26
Step 1. Install Agilent IO Libraries Suite software28
Step 2. Connect and set up the oscilloscope29
Using the USB (Device) Interface29
Using the LAN Interface29
Using the GPIB Interface30
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide5
Programming the Oscilloscope40
Referencing the IO Library40
Opening the Oscilloscope Connection via the IO Library41
Initializing the Interface and the Oscilloscope41
Using :AUToscale to Automate Oscilloscope Setup42
Using Other Oscilloscope Setup Commands42
Capturing Data with the :DIGitize Command43
Reading Query Responses from the Oscilloscope45
Reading Query Results into String Variables46
Reading Query Results into Numeric Variables46
Reading Definite-Length Block Query Response Data46
Sending Multiple Queries and Reading Results47
Checking Instrument Status48
Other Ways of Sending Commands49
Tel ne t S oc ke ts49
Sending SCPI Commands Using Browser Web Control49
Program Message Syntax 587
Command Tree591
Duplicate Mnemonics601
Tree Traversal Rules and Multiple Commands601
Query Return Values604
All Oscilloscope Commands Are Sequential605
12 Programming Examples
SICL Examples608
SICL Example in C608
SICL Example in Visual Basic617
VISA Examples626
VISA Example in C626
VISA Example in Visual Basic635
VISA Example in C#645
VISA Example in Visual Basic .NET659
16Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
Index
VISA COM Examples672
VISA COM Example in Visual Basic672
VISA COM Example in C#682
VISA COM Example in Visual Basic .NET693
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide17
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.15 20
What's New in Version 5.10 22
What's New in Version 5.00 23
What's New in Version 4.10 25
Version 4.00 at Introduction 26
A
19
1What's New
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 219)Selects the math operation for the internal g(t)
source that can be used as the input to the FFT,
INTegrate, DIFFerentiate, and SQRT functions.
:FUNCtion:GOFT:SOURce1 (see page 220)Selects the first input channel for the g(t)
source.
:FUNCtion:GOFT:SOURce2 (see page 221)Selects the second input channel for the g(t)
source.
:FUNCtion:SOURce1 (see page 227)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 228)Selects the second input channel for the ADD,
SUBTract, and MULTiply arithmetic operations.
:MEASure:VRATio (see page 291)Measures and returns the ratio of AC RMS
values of the specified sources expressed in
dB.
:SYSTem:PROTection:LOCK (see page 339)Disables/enables the fifty ohm input
impedance setting.
20Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
Changed
Commands
Obsolete
Commands
What's New1
CommandDifferences
:ACQuire:COUNt (see page 157)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 223)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 230)You can now select the Blackman-Harris FFT
24Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
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 223)You can now select the SQRT (square root)
:HARDcopy:PDRiver (see page 522)You can now select the new DJPR0kx50,
What's New1
waveform math function.
DJ55xx, PS470, and LJFastraster printer
drivers.
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide25
1What's New
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.
26Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
Agilent InfiniiVision 5000 Series Oscilloscopes
Programmer's Guide
2
Setting Up
Step 1. Install Agilent IO Libraries Suite software 28
Step 2. Connect and set up the oscilloscope 29
Step 3. Verify the oscilloscope connection 31
This chapter explains how to install the Agilent IO Libraries Suite
software, connect the oscilloscope to the controller PC, set up the
oscilloscope, and verify the oscilloscope connection.
A
27
2Setting Up
Step 1. Install Agilent IO Libraries Suite software
Insert the Automation-Ready CD that was shipped with your oscilloscope
into the controller PC's CD-ROM drive, and follow its installation
instructions.
You can also download the Agilent IO Libraries Suite software from the
web at:
• "http://www.agilent.com/find/iolib"
28Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
Step 2. Connect and set up the oscilloscope
The 5000 Series oscilloscope has three different interfaces you can use for
programming: USB (device), LAN, or GPIB.
All three interfaces are "live" by default, but you can turn them off if
desired. To access these settings press the Utility key on the front panel,
then press the I/O softkey, then press the Control softkey.
86%
Setting Up2
'(9,&(
+267
121$8720',;
Figure 1Control Connectors on Rear Panel
Using the USB (Device) Interface
1 Connect a USB cable from the controller PC's USB port to the "USB
DEVICE" port on the back of the oscilloscope.
This is a USB 2.0 high-speed port.
2 On the oscilloscope, verify that the controller interface is enabled:
a Press the Utility button.
b Using the softkeys, press I/O and Control.
c Ensure the box next to USB is selected (). If not (), use the
Entry knob to select USB; then, press the Control softkey again.
/$1
*3,%
Using the LAN Interface
1 If the controller PC isn't already connected to the local area network
(LAN), do that first.
2 Get the oscilloscope's network parameters (hostname, domain, IP
address, subnet mask, gateway IP, DNS IP, etc.) from your network
administrator.
3 Connect the oscilloscope to the local area network (LAN) by inserting
LAN cable into the "LAN" port on the back of the oscilloscope.
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide29
2Setting Up
4 On the oscilloscope, verify that the controller interface is enabled:
a Press the Utility button.
b Using the softkeys, press I/O and Control.
c Ensure the box next to LAN is selected (). If not (), use the
Entry knob to select LAN; then, press the Control softkey again.
5 Configure the oscilloscope's LAN interface:
a Press the Configure softkey until "LAN" is selected.
b Press the LAN Settings softkey.
c Press the Addresses softkey. Use the IP Options softkey and the
Entry knob to select DHCP, AutoIP, or netBIOS. Use the Modify
softkey (and the other softkeys and the Entry knob) to enter the IP
Address, Subnet Mask, Gateway IP, and DNS IP values. When you are
done, press the return (up arrow) softkey.
d Press the Domain softkey. Use the Modify softkey (and the other
softkeys and the Entry knob) to enter the Host name and the
Domain name. When you are done, press the return (up arrow)
softkey.
Using the GPIB Interface
1 Connect a GPIB cable from the controller PC's GPIB interface to the
"GPIB" port on the back of the oscilloscope.
2 On the oscilloscope, verify that the controller interface is enabled:
a Press the Utility button.
b Using the softkeys, press I/O and Control.
c Use the Entry knob to select "GPIB"; then, press the Control softkey
again.
Ensure the box next to GPIB is selected (). If not (), use the
Entry knob to select GPIB; then, press the Control softkey again.
3 Configure the oscilloscope's GPIB interface:
a Press the Configure softkey until "GPIB" is selected.
b Use the Entry knob to select the Address value.
30Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
Loading...
+ 684 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.