The media on which you receive National Instruments software are warranted not to fail to execute programming
instructions, due to defects in materials an d work man sh ip, for a peri od of 9 0 da ys from d ate o f sh ipm ent, as evidenced
by receipts or other documentation. National Instruments will, at its option, repair or replace software media that do not
execute programming instructions if National Instrumen ts recei ves no ti ce of such defect s d uring th e warranty perio d.
National Instruments does not warrant that the op eratio n of t he soft ware shall b e uni nterrup ted or erro r free.
A Return Material Authorization (RMA) number mu st b e ob tain ed fro m the facto ry an d cl earl y marked o n t he outsi de
of the package before any equipment wil l be accepted for warranty work. National Instruments will pay t he shipping costs
of returning to the owner parts which are covered by warranty .
National Instruments believes that the information in this document is accurate. The document has been carefully
reviewed for technical accuracy. In the event that technical or typographical errors exist, National Instruments reserves
the right to make changes to subsequent editions of this document without prior notice to holders of this edition. The
reader should consult National Instruments if errors are suspected. In no event shall National Instruments be liable for
any damages arising out of or related to this d ocum ent o r th e in formati on con tained in i t.
XCEPT AS SPECIFIED HEREIN
E
ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
BY FAULT OR NEGLIGENCE ON THE PART OF NATIONAL INSTRUMENTS SHALL BE LIMITED TO THE AMOUNT THERETOFORE PAID BY THE
CUSTOMER
OR INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY THEREOF
National Instruments will apply regardless of th e form o f action, wh eth er in con tract or t ort , incl udin g n e gligen ce.
Any action against National Instruments must be brought within one year after the cause of action accrues. National
Instruments shall not be liable for any delay in performance due to causes beyond its reasonable control. The warranty
provided herein does not cover damages, defects, malfuncti ons, or s ervice failu res cau sed by owne r ’s failure to follow
the National Instruments installation, operation, or maintenance instructions; owner’s modification of the product;
owner’s abuse, misuse, or negligent acts; and power failure or surges, fire, flood, accident, actions of third parties,
or other events outside reasonable control.
ATIONAL INSTRUMENTS WILL NOT BE LIABLE FOR DAMAGES RESULTING FROM LOSS OF DATA, PROFITS, USE OF PRODUCTS
. N
ATIONAL INSTRUMENTS MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AND SPECIFICALLY DISCLAIMS
, N
Copyright
Under the copyright laws, this publication may not be reproduced or transmitted in any form, electronic or mechanical,
including photocopying, recording, storing in an information retrieval system, or translating, in whole or in part, without
the prior written consent of National Instruments Corporation.
USTOMER’S RIGHT TO RECOVER DAMAGES CAUSED
. C
. This limitation of the liability of
,
Trademarks
HS488™, natinst.com™, NI-488.2™, and TNT4882™C are trademarks of National Instruments Corporation.
Product and company names mentioned herein are trad em arks o r trad e nam es of t heir resp ect ive com pan ies.
WARNING REGARDING MEDICAL AND CLINICAL USE OF NATIONAL INSTRUMENTS PRODUCTS
National Instruments products are not designed with com ponent s and testi ng for a level o f reli ability su itabl e for use in
or in connection with surgical implants o r as cri tical co m pon ent s in an y li fe su pp ort sy stem s wh os e failure t o p erform
can reasonably be expected to cause s ignifi cant inju ry t o a hu man . Appl i catio ns of Nati on al In strum ent s prod ucts
involving medical or clinical treatment can create a p ote ntia l for d eath or bod il y inj ury caus ed b y p rodu ct fai l ure, or by
errors on the part of the user or application designer. Because each end-user system is customized and differs from
National Instruments testing platforms and because a user or application designer may use National Instruments products
in combination with other products in a m ann er no t ev alu a ted or cont em p lated b y N ati onal Ins trum ents , t he user or
application designer is ultimately responsible for verifying and validating the suitability of National Instruments products
whenever National Instruments products are incorporated in a system or application, including, without limitation,
the appropriate design , p rocess and safety l evel of such syst em or ap plicat io n.
Contents
About This Manual
Using the NI-488.2 Documentation...............................................................................xi
Accessing the NI-488.2 Online Help...............................................................xi
Table D-1.Device Manager Status Codes.............................................................. D-3
NI-488.2 User Manual for Windowsxwww.natinst.com
About This Manual
This manual describes the features and functions of the NI-488.2 software
for Windows. You can use the NI-488.2 software for Windows with
Windows 95, Windows 98, Windows NT version 4.0, or Windows 2000.
This manual assumes that you are already familiar with Windows.
Using the NI-488.2 Documentation
The following NI-488.2 documentation is available on your NI-488.2 for
Windows CD:
•The Getting Started card briefly describes how to install the NI-488.2
software and your GPIB hardware.
•This manual, NI-488.2 User Manual for Windows, describes the
features and functions of the NI-488.2 software for Windows.
•The NI-488.2 Function Reference Manual for Windows describes the
NI-488.2 API.
•The GPIB Hardware Guide contains detailed instructions on how to
install and configure your GPIB hardware. This guide also includes
hardware and software specifications and compliance information.
To view these documents online, insert your NI-488.2 for Windows CD.
When the NI-488.2 Software for Windows screen appears, select the View Documentation option. The Vie w Documentation W izard helps you
find the documentation that you want to view. You can also view these
documents at
http://www.natinst.com/manuals/
.
Accessing the NI-488.2 Online Help
The NI-488.2 for Windows Online Help addresses questions you might
have about NI-488.2, includes troubleshooting information, and describes
the NI-488.2 API. You can access the NI-488.2 online help as follows:
»The » symbol leads you through nested menu items and dialog box options
to a final action. The sequence File»Page Setup»Options directs you to
pull down the File menu, select the Page Setup item, and select Options
from the last dialog box.
This icon denotes a note, which alerts you to important information.
boldBold text denotes items that you must select or click on in the software,
such as menu items and dialog box options. Bold text also denotes
parameter names.
IEEE 488 andIEEE 488 and IEEE 488.2 refer to the ANSI/IEEE Standard 488.1-1987
IEEE 488.2and the ANSI/IEEE Standard 488.2-1992, respectively, which define
the GPIB.
italicItalic text denotes variables, emphasis, a cross reference, or an introduction
to a key concept. This font also denotes text that is a placeholder for a w ord
or value that you must supply.
monospace
monospace bold
Text in this font denotes text or characters that you should enter from the
keyboard, sections of code, programming examples, and syntax examples.
This font is also used for the proper names of disk drives, paths, directories,
programs, subprograms, subroutines, device names, functions, operations,
variables, filenames and extensions, and code excerpts.
Bold text in this font denotes the messages and responses that the computer
automatically prints to the screen. This font also emphasizes lines of code
that are different from the other examples.
Related Documentation
The following documents contain information that you may find helpful as
you read this manual:
•ANSI/IEEE Standard 488.1-1987, IEEE Standard Digital Interface
for Programmable Instrumentation
•ANSI/IEEE Standard 488.2-1992, IEEE Standard Codes, Formats,
Protocols, and Common Commands
NI-488.2 User Manual for Windowsxiiwww.natinst.com
Introduction
This chapter describes how to set up your GPIB system.
Setting up and Configuring Your System
Devices are usually connected with a cable assembly consisting of a
shielded 24-conductor cable with both a plug and receptacle connector at
each end. With this design, you can link devices in a linear configuration,
a star configuration, or a combination of the two configurations. Figure 1-1
shows the linear and star configurations.
Figure 1-2 shows an example of a multiboard system configuration.
is the access interface for the voltmeter, and
for the plotter and printer. The control functions of the devices
automatically access their respective interfaces.
One
GPIB
Another
GPIB
Digital
Voltometer
gpib0
Plotter
gpib1
is the access interface
gpib1
gpib0
Printer
Figure 1-2.
Example of Multiboard System Configuration
Configuration Requirements
To achieve the high data transfer rate that the GPIB was designed for,
you must limit the number of devices on the bus and the physical distance
between devices. The following restrictions are typical:
•A maximum separation of 4 m between any two devices and an
average separation of 2 m over the entire bus.
•A maximum total cable length of 20 m.
•A maximum of 15 devices connected to each bus, with at least
two-thirds powered on.
NI-488.2 User Manual for Windows1-2www.natinst.com
Chapter 1Introduction
For high-speed operation, the following restrictions apply:
•All devices in the system must be powered on.
•Cable lengths must be as short as possible with up to a maximum of
15 m of cable for each system.
•There must be at least one equivalent device load per meter of cable.
If you want to exceed these limitations, you can use a bus extender to
increase the cable length or a bus expander to increase the number of device
loads. You can order bus extenders and expanders from National
Instruments.
To get started with GPIB instrument communication using Measurement &
Automation Explorer, complete the following steps:
1.Refer to your Getting Started card and install the NI-488.2 software
and your GPIB hardware.
If you do not have a Getting Started card, complete the following steps
to view your getting started documentation:
a.Insert the NI-488.2 for Windows CD.
NI-488.2 User Manual for Windows2-2www.natinst.com
Chapter 2Measurement & Automation Explorer
b.When the NI-488.2 Software for Windows screen appears, select
the View Documentation option, as shown in Figure 2-2.
Figure 2-2.
Viewing Documentation on Your CD
The View Documentation Wizard helps you find the
documentation that you want to view.
2.Use the NI-488.2 Getting Started Wizard to verify the installation and
establish basic communication with your GPIB instruments.
Note
After you install the NI-488.2 software and restart your system, the NI-488.2
Getting Started Wizard runs automatically . To start it within Measurement & Automation
Explorer, select Measurement & Automation in the left window pane and select
Help»Getting Started»NI-488.2 Getting Started Wizard.
After you install the NI-488.2 software and your GPIB hardware, you can
run an existing NI-488.2 application or develop a new NI-488.2
application.
If the
pane, Measurement & Automation Explorer did not find any instruments.
To solve this problem, make sure that your GPIB instruments are powered
on and properly connected to the GPIB interface with a GPIB cable. Then,
scan for instruments again, as described in the previous section, Scan for
GPIB Instruments.
Instruments Enumeration Failed
Instruments Enumeration Failed
If the
window pane, Measurement & Automation Explorer found too many
Listeners on the GPIB. To solve this problem, refer to the following
possible solutions:
•If you have a running GPIB Analyzer with the GPIB handshake option
enabled, disable the GPIB handshake option in the GPIB Analyzer.
•If you have a GPIB extender in your system, Measurement &
Automation Explorer cannot detect any instruments connected to
your GPIB interface. Instead, you can verify communication with
your instruments using the Interactive Control utility. To do so,
select Tools»NI-488.2 Utilities»Interactive Control. For more
information about verifying instrument communication, type
"Interactive Control:getting started"
Control command prompt.
message appears in the right window
message appears in the right
help
at the Interactive
Communicate with Your Instrument
To establish basic or advanced communication with your instruments, refer
to the following sections.
For more information about instrument communication and a list of the
commands that your instrument understands, refer to the documentation
that came with your GPIB instrument. Most instruments respond to the
command by returning an identification string.
*IDN?
Basic Communication (Query/Write/Read)
To establish basic communication with your instrument, use the NI-488.2
Communicator, as follows:
1.If you have not already done so, scan for connected instruments as
described in the previous section, Scan for GPIB Instruments.
The Properties dialog box appears. Figure 2-6 shows the Properties
dialog box for an AT-GPIB/TNT (Plug and Play) interface.
Figure 2-6. Properties Dialog Box in Windows 98/95
If you need more information about a field in the Properties dialog
box, click on the ? button in the upper-right corner of the dialog box,
then click on the field.
4.(Optional) Change the settings for your interface.
Windows 2000/NT
To view or change GPIB interface information, complete the following
steps:
3.Expand the Devices and Interfaces directory by clicking on the + next
to the folder.
4.Click on your GPIB interface and select Tools»Settings»NI-488.2
from the Explorer menu.
5.Enable or disable DOS support in the NI-488.2 Settings dialog box
and click on the OK button.
6.If you are prompted to do so, restart your system.
Windows 2000/NT
To enable NI-488.2 DOS support in Windows 2000/NT, complete the
following steps:
1.Open your
directory (for example,
2.Find the following lines:
REM ***To run DOS GPIB applications, uncomment the
REM ***following line
REM device=<path>\doswin16\gpib-nt.com
where
<path>
software.
3.Remove
device=<path>\doswin16\gpib-nt.com
config.nt
is the directory in which you installed the NI-488.2
from the last line so that it reads as follows:
REM
file, located in the Windows NT system32
c:\windows\system32
).
To disable DOS support, add
back to the line where it was removed.
REM
Access Additional Help and Resources
To access additional help and resources for the NI-488.2 software and your
GPIB hardware, refer to the following sections.
NI-488.2 Online Help
The NI-488.2 for Windows Online Help addresses questions you might
have about NI-488.2, includes troubleshooting information, and describes
the NI-488.2 API. You can access the NI-488.2 online help as follows:
2.Expand the Devices and Interfaces directory by clicking on the + next
to the folder.
NI-488.2 User Manual for Windows2-14www.natinst.com
Chapter 2Measurement & Automation Explorer
3.Right-click on your GPIB interface and select NI-488.2 Help from the
drop-down menu that appears.
National Instruments GPIB Web Site
To access the National Instruments Web site for GPIB, select
Start»Programs»National Instruments NI-488.2»Explore GPIB to
start Measurement & Automation Explorer. Then, select Help»National Instruments on the Web»GPIB Home Page.
View or Change GPIB-ENET Network Settings
(Windows 98/95 Only)
To view or change the network settings of your GPIB-ENET, refer to the
following sections. For more information about your GPIB-ENET network
settings, refer to the Getting Started with Your GPIB-ENET and the NI-488.2 Software for Windows 98/95 manual.
Assign IP Address
You can run the Assign IP Address utility in Measurement & Automation
Explorer, as follows:
1.Contact your network administrator to determine whether you should
use the Assign IP Address utility to assign the IP address manually.