The serial hardware is warranted against defects in materials and workmanship for a period of one year from the date of shipment,
as evidenced by receipts or other documentation. National Instruments will, at its option, repair or replace equipment that proves
to be defective during the warranty period. This warranty includes parts and labor.
The media on which you receive National Instruments software are warranted not to fail to execute programming instructions,
due to defects in materials and workmanship, for a period of 90 days from date of shipment, 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 Instruments receives notice of such defects during the warranty period. National Instruments does not
warrant that the operation of the software shall be uninterrupted or error free.
A Return Material Authorization (RMA) number must be obtained from the factory and clearly marked on the outside of
the package before any equipment will be accepted for warranty work. National Instruments will pay the 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 document or the information contained in it.
E
XCEPT AS SPECIFIED HEREIN,NATIONAL INSTRUMENTS MAKES NO WAR RANTIES, EXPRESS OR IMPLIED, AND SPECIFICALLY DISCLAIMS ANY
WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
NEGLIGENCE ON THE PART OF
INSTRUMENTS WILL NOT BE LIABLE FOR DAMAGES RESULTING F ROM LOSS OF DATA, PROFITS, USE OF PRODUCTS, OR INCIDENTAL OR
CONSEQUENTIAL DAMAGES
apply regardless of the form of action, whether in contract or tort, including negligence. 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,
malfunctions, or service failures caused by owner’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.
NATIONAL INSTRUMENTS SHALL BE LIMITED TO THE AMOUNT THERETOFORE PAID BY THE CUSTOMER.NATIONAL
, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. This limitation of the liability of National Instruments will
.CUSTOMER’S RIGHT TO RECOVER DAMAGES CAUSED BY FAULT OR
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.
Trademarks
CVI™,LabVIEW™, National Instruments™,ni.com™,andPXI™are trademarks of National Instruments Corporation.
Product and company names mentioned herein are trademarks or trade names of their respective companies.
WARNING REGARDING USE OF NATIONAL INSTRUMENTS PRODUCTS
(1) NATIONAL INSTRUMENTS PRODUCTS ARE NOT DESIGNED WITHCOMPONENTS AND TESTING FOR A LEVEL
OF RELIABILITY SUITABLE FOR USE IN OR IN CONNECTION WITH SURGICAL IMPLANTS OR AS CRITICAL
COMPONENTS IN ANY LIFE SUPPORT SYSTEMS WHOSE FAILURE TO PERFORM CAN REASONABLY BE
EXPECTED TO CAUSE SIGNIFICANT INJURY TO A HUMAN.
(2) IN ANY APPLICATION, INCLUDING THE ABOVE, RELIABILITYOF OPERATION OFTHE SOFTWARE PRODUCTS
CAN BE IMPAIRED BY ADVERSE FACTORS, INCLUDING BUT NOT LIMITED TO FLUCTUATIONS IN ELECTRICAL
POWER SUPPLY, COMPUTER HARDWARE MALFUNCTIONS, COMPUTER OPERATING SYSTEM SOFTWARE
FITNESS, FITNESS OF COMPILERS AND DEVELOPMENT SOFTWARE USED TO DEVELOP AN APPLICATION,
INSTALLATION ERRORS, SOFTWARE AND HARDWARE COMPATIBILITY PROBLEMS, MALFUNCTIONS OR
FAILURES OF ELECTRONIC MONITORING OR CONTROL DEVICES, TRANSIENT FAILURES OF ELECTRONIC
SYSTEMS (HARDWARE AND/OR SOFTWARE), UNANTICIPATED USES OR MISUSES, OR ERRORS ONTHE PART OF
THE USER OR APPLICATIONS DESIGNER (ADVERSE FACTORS SUCH AS THESE ARE HEREAFTER
COLLECTIVELY TERMED “SYSTEM FAILURES”). ANY APPLICATION WHERE A SYSTEM FAILURE WOULD
CREATE A RISK OF HARM TO PROPERTY OR PERSONS (INCLUDING THE RISK OF BODILY INJURY AND DEATH)
SHOULD NOT BE RELIANT SOLELY UPON ONE FORM OF ELECTRONIC SYSTEM DUE TO THE RISK OF SYSTEM
FAILURE. TO AVOID DAMAGE, INJURY, OR DEATH, THE USER OR APPLICATION DESIGNER MUST TAKE
REASONABLY PRUDENT STEPS TO PROTECT AGAINST SYSTEM FAILURES, INCLUDING BUT NOT LIMITED TO
BACK-UP OR SHUT DOWN MECHANISMS. 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 MANNER NOT
EVALUATED OR CONTEMPLATED BY NATIONAL INSTRUMENTS, THE 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, PROCESS AND
SAFETY LEVEL OF SUCH SYSTEM OR APPLICATION.
Compliance
FCC/Canada Radio Frequency Interference Compliance*
Determining FCC Class
The Federal Communications Commission (FCC) has rules to protect wireless communications from interference.
The FCC places digital electronics into two classes. These classes are known as Class A (for use in industrialcommercial locations only) or Class B (for use in residential or commercial locations). Depending on where it is
operated, this product could be subject to restrictions in the FCC rules. (In Canada, the Department of
Communications (DOC), of Industry Canada, regulates wireless interference in much the same way.)
Digital electronics emit weak signals during normal operation that can affect radio, television, or other wireless
products. By examining the product you purchased, you can determine the FCC Class and therefore which of the two
FCC/DOC Warnings apply in the following sections. (Some products may not be labeled at all for FCC; if so, the
reader should then assume these are Class A devices.)
FCC Class A products only display a simple warning statement of oneparagraph in length regarding interference and
undesired operation. Most of our products are FCC Class A. The FCC rules have restrictions regarding the locations
where FCC Class A products can be operated.
FCC Class B products display either a FCC ID code, starting with the letters EXN,
or the FCC Class B compliance mark that appears as shown here on the right.
Consult the FCC web site
http://www.fcc.gov
FCC/DOC Warnings
This equipment generates and uses radio frequency energy and, if not installed and used in strict accordance with the
instructions in this manual and the CE Mark Declaration of Conformity**, may cause interference to radio and
television reception. Classification requirements are the same for the Federal Communications Commission (FCC)
and the Canadian Department of Communications (DOC).
Changes or modifications not expressly approved by National Instruments could void the user’s authority to operate
the equipment under the FCC Rules.
Class A
Federal Communications Commission
This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part 15
of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the
equipment is operated in a commercial environment. This equipment generates, uses, and can radiate radio frequency
energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to
radio communications. Operation of this equipment in a residential area is likely to cause harmful interference in
which case the user will be required to correct the interference at his own expense.
for more information.
Canadian Department of Communications
This Class A digital apparatus meets all requirements of the Canadian Interference-Causing Equipment Regulations.
Cet appareil numérique de la classe A respecte toutes les exigences du Règlement sur le matériel brouilleur du
Canada.
Class B
Federal Communications Commission
This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15
of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a
residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed
and used in accordance with the instructions, may cause harmful interference to radio communications. However,
there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful
interference to radio or television reception, which can be determined by turning the equipment off and on, the user
is encouraged to try to correct the interference by one or more of the following measures:
• Reorient or relocate the receiving antenna.
• Increase the separation between the equipment and receiver.
• Connect the equipment into an outlet on a circuit different from that to which the receiver is connected.
• Consult the dealer or an experienced radio/TV technician for help.
Canadian Department of Communications
This Class B digital apparatus meets all requirements of the Canadian Interference-Causing Equipment Regulations.
Cet appareil numérique de la classe B respecte toutes les exigences du Règlement sur le matériel brouilleur du
Canada.
European Union - Compliance to EEC Directives
Readers in the EU/EEC/EEA must refer to the Manufacturer's Declaration of Conformity (DoC) for information**
pertaining to the CE Mark compliance scheme. The Manufacturer includes a DoC for most every hardware product
except for those bought for OEMs, if also available from an original manufacturer that also markets in the EU, or
where compliance is not required as for electrically benign apparatus or cables.
* Certain exemptions may apply in the USA, see FCC Rules §15.103 Exempted devices,and§15.105(c).
Also available in sections of CFR 47.
** The CE Mark Declaration of Conformity will contain important supplementary information and instructions
This manual contains instructions to help you install and configure the
National Instruments serial hardware and the NI-Serial software for
Windows 2000/NT/Me/9x. This manual includes information about the
following serial hardware:
•PCI-232/2, PCI-232/4, PCI-232/8, PCI-232/16, PCI-485/2,
PCI-485/4, and PCI-485/8 boards in both isolated and nonisolated
versions
•PXI-8420 (two, four, eight, and 16 port), PXI-8421 (two, four, and
eight port), PXI-8422 (two and four port), and PXI-8423 (two and
four port)
•PCMCIA-232, PCMCIA-232/2, PCMCIA-232/4, PCMCIA-485, and
PCMCIA-485/2
•AT-232/2, AT-232/4, AT-485/2, and AT-485/4 boards in both isolated
and nonisolated versions
This manual assumes that you are already familiar with
Windows 2000/NT/Me/9x.
Conventions
The following conventions appear in this manual:
»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.
♦The ♦ symbol indicates that the following text applies only to a specific
product, a specific operating system, or a specific software version.
This icon denotes a note, which alerts you to important information.
This icon denotes a caution, which advises you of precautions to take to
avoid injury, data loss, or a system crash.
AT serial boardsAT serial boards refers to all port versions of the AT serial boards.
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.
DTR
italicItalic text denotes variables, emphasis, a cross reference, or an introduction
monospace
monospace bold
PCI serial boardsPCI serial boards refers to all port versions of the PCI serial boards.
PCMCIA serial boardsPCMCIA serial boards refers to all versions of the PCMCIA serial boards.
PXI serial boardsPXI serial boards refers to all port versions of the PXI serial boards.
Signal names with an overscore, such as DTR, indicate that the signal is
active low.
to a key concept. This font also denotes text that is a placeholder for a word
or value that you must supply.
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 might find helpful
as you read this manual:
•ANSI/EIA-232-D Standard, Interface Between Data Terminal
Equipment and Data Circuit-Terminating Equipment Employing
Serial Binary Data Interchange
•EIA/RS-422-A Standard, Electrical Characteristics of Balanced
Voltage Digital Interface Circuits
•EIA-485 Standard, Standard for Electrical Characteristics of
Generators and Receivers for Use in Balanced Digital
Multipoint Systems
•Microsoft Win32 Software Developer Kit, Online Documentation for
Win32 Overviews, Win32 Reference, Microsoft Programmer’s Guide
to Windows 98/95,andMicrosoft Windows NT System Guide,
Microsoft Corporation
Serial Hardware and Software for Windowsxivni.com
About This Manual
•NS16550AF Universal Asynchronous Receiver/Transmitter with
FIFOs, National Semiconductor
•ST16C654 Asynchronous Receiver/Transmitter with FIFOs,
EXAR Corporation
This chapter explains how to use this manual, lists what you need to get
started and optional equipment you can order, and briefly describes the
serial hardware and the NI-Serial software.
•10-position modular jack to DB-9 cable (PCI, PXI, and AT four-port
boards only)
•10-position modular jack to DB-25 cable (PCI, PXI, and AT four-port
boards only)
•68-pin to DB-9 adapter cable (PCI and PXI eight-port boards only)
•RS-232 9-pin to 9-pin null modem cable
•RS-232 9-pin to 25-pin null modem cable
•RS-485 9-pin to 9-pin null modem cable
•Breakout box (PCI/PXI-232 16-port board only)
Serial Hardware Overview
Chapter 1Introduction
PCI Kits
The serial hardware gives you a variety of solutions for serial
communication. The PCI-232 boards work with the RS-232 protocols, and
the PCI-485 boards work with the RS-422 and RS-485 protocols. You can
use the PCI-232 boards for serial communication up to distances of 50 ft.
You can connect the PCI-485 boards to up to 31 devices using serial cable
lengths up to 4,000 ft.
Additionally, the PCI serial boards are available in a two-port version
(PCI-232/2 and PCI-485/2), a four-port version (PCI-232/4 and
PCI-485/4), an eight-port version (PCI-232/8 and PCI-485/8), and a
sixteen-port version (PCI-232/16). The two-port versions use DB-9
connectors. The four-port versions use 10-position modular jacks to
provide all four connections on a single back panel. Optional cable
accessories convert the 10-position modular jacks to either DB-9 or DB-25
connectors with standard pinouts. The eight-port versions use adapter
cables to convert the 68-pin connector on the board to eight DB-9
connectors. The 16-port version uses a breakout box to convert the 100-pin
connector on the board to sixteen DB-9 connectors. Throughout this
manual, PCI serial boards refers to all versions of the PCI serial boards.
The isolated PCI-232 and PCI-485 boards are designed for applications in
harsh environments. Isolated ports provide reliable communication in
situations involving ground loops from different ground levels or high
common mode voltage induced on the lines in noisy environments.
Non-isolated ports may not provide reliable communication in those
situations. The isolation between each communication port and the host PC
ensures the safe operation of the PC and the devices connected to other
ports on the same board, in case of accidental high voltages on
communication lines.
The PCI-485 boards support four hardware transceiver control modes
for reliable communication with two- and four-wire devices. For more
information about transceiver control modes, refer to Chapter 6, Using
Your Serial Hardware.
All serial hardware uses standard 16550-compatible UARTs (Universal
Asynchronous Receiver/Transmitters) for complete compatibility
with standard PC COM ports. The serial hardware contains FIFOs
(First-In-First-Out) buffers to reduce susceptibility to interrupt latency
for faster transmission rates. Full Plug and Play compatibility allows
switchless configuration and installation. For more information about
the serial hardware specifications and operating conditions, refer to
Appendix E, Specifications.
PXI Kits
The serial hardware gives you a variety of solutions for serial
communication. The RS-232 boards (PXI-8420 and PXI-8422) work with
the RS-232 protocols. The RS-485 boards (PXI-8421 and PXI-8423) work
with the RS-422 and RS-485 protocols. You can use the RS-232 boards for
serial communication up to distances of 50 ft. You can connect the RS-485
boardstoupto31devicesusingserialcablelengthsupto4,000ft.
Additionally, the PXI serial boards are available in a two-port version, a
four-port version, an eight-port version (PXI-8420 and PXI-8421 only),
and a 16-port version (PXI-8420 only). The two-port versions use DB-9
connectors. The four-port versions use 10-position modular jacks to
provide all four connections on a single front panel. Optional cable
accessories convert the 10-position modular jacks to either DB-9 or DB-25
connectors with standard pinouts. The eight-port versions use two different
adapter cables to convert the 68-pin connector on the board to eight DB-9
connectors. The 16-port version uses a breakout box to convert the 100-pin
connector on the board to sixteen DB-9 connectors. Throughout this
manual, PXI serial boards refers to all versions of the PXI serial boards.
Serial Hardware and Software for Windows1-4ni.com
Chapter 1Introduction
The isolated PXI boards are designed for applications in harsh
environments. Isolated ports provide reliable communication in situations
involving ground loops from different ground levels or high common mode
voltage induced on the lines in noisy environments. Non-isolated ports may
not provide reliable communication in those situations. The isolation
between each communication port and the host PC ensures the safe
operation of the PC and the devices connected to other ports on the same
board, in case of accidental high voltages on communication lines.
The RS-485 boards (PXI-8421 and PXI-8423) support four hardware
transceiver control modes for reliable communication with two- and
four-wire devices. For more information about transceiver control modes,
refer to Chapter 6, Using Your Serial Hardware.
All serial hardware uses standard 16550-compatible UARTs (Universal
Asynchronous Receiver/Transmitters) for complete compatibility
with standard PC COM ports. The serial hardware contains FIFOs
(First-In-First-Out) buffers to reduce susceptibility to interrupt latency
for faster transmission rates. Full Plug and Play compatibility allows
switchless configuration and installation. For more information about
the serial hardware specifications and operating conditions, refer to
Appendix E, Specifications.
Table 1-1 lists the PXI serial board numbers and corresponding board
descriptions.
The serial hardware gives you a variety of solutions for serial
communications. The PCMCIA-232 interfaces work with the RS-232
protocols, and the PCMCIA-485 interfaces work with the RS-422 and
RS-485 protocols. You can use the PCMCIA-232 hardware for serial
communication up to distances of 50 ft. You can connect the PCMCIA-485
hardware with up to 31 devices using serial cable lengths up to 4,000 ft.
The PCMCIA-232 is available with one, two, or four ports. The
PCMCIA-485 is available in a one-port version or two-port version.
All PCMCIA cards come with cables for each port that terminates in a
standard DB-9 D-Sub connector. Throughout this manual, references to
PCMCIA serial interfaces generally refer to all versions of the interfaces.
The PCMCIA-485 interfaces support four hardware transceiver control
modes for reliable communication with two-wire and four-wire devices.
Refer to Chapter 6, Using Your Serial Hardware, for more information
about transceiver control modes.
All of the serial hardware uses standard 16550-compatible UARTs
(Universal Asynchronous Receiver/Transmitters) for 100 percent
compatibility with standard PC COM ports. The serial hardware contains
FIFOs (First-In-First-Out buffers) for reduced susceptibility to interrupt
latency and faster transmission rates. Full Plug and Play compatibility gives
you the convenience of switchless configuration and installation. Refer to
Appendix E, Specifications,for more information about the serial hardware
specifications and operating conditions.
AT Kits
The serial hardware gives you a variety of solutions for serial
communications. The AT-232 boards work with the RS-232 protocols, and
the AT-485 boards work with the RS-422 and RS-485 protocols. You can
use the AT-232 hardware for serial communication up to distances of 50 ft.
You can connect the AT-485 hardware with up to 31 devices using serial
cable lengths up to 4,000 ft.
The AT boards are available in three different versions:
•Shared IRQ: All ports on the board share the same IRQ.
•Isolated: All ports on the board are isolated and share the same IRQ.
Serial Hardware and Software for Windows1-6ni.com
Chapter 1Introduction
Additionally, the AT serial boards are available in a two-port version
(AT-232/2 and AT-485/2) or a four-port version (AT-232/4 and AT-485/4).
The two-port versions use DB-9 connectors. The four-port versions use
10-position modular jacks to provide all four connections on a single back
panel. Optional cable accessories convert the 10-position modular jacks to
either DB-9 or DB-25 connectors with standard pinouts. Throughout this
manual, references to AT serial boards generally refer to all versions of the
boards.
The isolated AT-232 and AT-485 boards are designed for applications in
harsh environments. Isolated ports provide reliable communication in
situations involving ground loops from different ground levels or high
common mode voltage induced on the lines in noisy environments. The
non-isolated ports may not provide reliable communication in those
situations. The isolation between each communication port and the host PC
ensures safe operation of the PC and the devices connected to other ports
on the same board in case of accidental high voltages on communication
lines.
The AT-485 boards support four hardware transceiver control modes
for reliable communication with two- and four-wire devices. For more
information about transceiver control modes, refer to Chapter 6, Using
Your Serial Hardware.
All serial hardware uses standard 16550-compatible UARTs (Universal
Asynchronous Receiver/Transmitters) for complete compatibility
with standard PC COM ports. The serial hardware contains FIFOs
(First-In-First-Out) buffers to reduce susceptibility to interrupt latency
for faster transmission rates. Full Plug and Play compatibility allows
switchless configuration and installation. For more information about
the serial hardware specifications and operating conditions, refer to
Appendix E, Specifications.
The NI-Serial software for Windows 2000/NT/Me/9x includes a native
Windows 2000/Me/9x device driver and Windows NT kernel driver that
provide full interrupt-driven, buffered I/O for multiple COM ports. You
can obtain a maximum baud rate of either 460.8 KBaud (PCI/PXI-485 kits)
or 115.2 KBaud (PCI/PXI/PCMCIA/AT-232 kits). You can also use up to
256 serial ports under Windows 2000 or up to 99 serial ports under
Windows NT/Me/9x. The NI-Serial software also includes a configuration
utility, which is fully integrated into the Windows 2000/Me/9x Device
Manager and Windows NT Control Panel. For more information about
software specifications, refer to Appendix E, Specifications.
The NI-Serial software includes the following components:
•Device driver
•Diagnostic utility
•Configuration utility
•Product manuals
Time-Saving Development Tools
Your kit includes the NI-Serial software for Windows 2000/NT/Me/9x.In
addition, you can order the Measurement Studio or LabVIEW software
from National Instruments to speed your application development time and
make it easier to communicate with your instruments.
LabVIEW is an easy-to-use, graphical programming environment you can
use to acquire data from thousands of different instruments, including
IEEE 488.2 devices, VXI devices, serial devices, PLCs, and plug-in data
acquisition boards. After you have acquired raw data, you can convert it
into meaningful results using the powerful data analysis routines in
LabVIEW. LabVIEW also comes with hundreds of instrument drivers,
which dramatically reduce software development time, because you do not
have to spend time programming the low-level control of each instrument.
Serial Hardware and Software for Windows1-8ni.com
Chapter 1Introduction
Measurement Studio bundles LabWindows/CVI for C programmers,
ComponentWorks for Microsoft Visual C++ programmers, and
ComponentWorks++ for Microsoft Visual C++ programmers.
Measurement Studio is designed for building measurement and automation
applications with the programming environment of your choice:
•LabWindows/CVI is an interactive ANSIC programming environment
designed for building virtual instrument applications.
LabWindows/CVI delivers a drag-and-drop editor for building user
interfaces, a complete ANSI C environment for building your test
program logic, and a collection of automated code generation tools, as
well as utilities for building automated test systems, monitoring
applications, or laboratory experiments.
•ComponentWorks for Visual Basic is a collection of ActiveX controls
designed for building virtual instrumentation systems. Based on
ActiveX technology, ComponentWorks controls are configured
through simple property pages. You can use the ComponentWorks
GPIB, Serial, and VISA I/O controls and property pages to set up
communication with your instruments.
•ComponentWorks++ for Visual C++ takes advantage of integrated
C++ libraries and ActiveX to help you build measurement and
automation applications. With the ComponentWorks++ instrument
classes, you can use the IEEE 488.2 library and VISA, an
industry-standard I/O library, to communicate with GPIB, VXI, or
Serial devices using the same set of components.
After you install your serial hardware and the NI-Serial software, you can
use standard serial I/O functions in LabVIEW and Measurement Studio
with your serial interface. If you already have one or more of these
applications and want to use them with your serial interface, refer to your
product documentation for information about serial I/O functions. For
ordering information, contact National Instruments.
PCI Serial Hardware Installation,
Verification, and Configuration
This chapter describes how to install the NI-Serial software and PCI serial
hardware and how to verify the installation. It also describes how to
configure the communication port settings.
To begin your installation, see the section of this chapter containing
instructions for your operating system (Windows 2000, Windows Me/9x,or
Windows NT.)
Windows 2000
Install the Software
Before you install your serial hardware, complete the following steps to
install the NI-Serial software for Windows 2000:
1.Select Start»Settings»Control Panel.
2.Double-click on the Add/Remove Programs icon. The Add/RemovePrograms dialog box appears.
3. ClickontheAdd New Programs button and then the CD or Floppy
button.
4.When prompted, insert the NI-Serial Software for Windows 2000/NT/Me/9x CD and click on the Next button.
5.When prompted, click on the Finish button to install the program files
from the CD.
6.The setup wizard begins. The setup wizard guides you through the
necessary steps to install the NI-Serial software. To exit the setup
wizard at any time, click on the Cancel button.
7.If you need to install your hardware, or if this is your first time to install
the NI-Serial software for Windows 2000, skip to the next section,
Install the Hardware. Otherwise, continue to step 8.
8.If your hardware is already installed, restart Windows 2000.
Chapter 2PCI Serial Hardware Installation, Verification, and Configuration
9.Windows 2000 should automatically detect your hardware and display
the Found New Hardware Wizard. Complete the wizard by clicking
Next in each window and then Finish. When you complete the wizard,
continue to the Verify the Installation section.
If the Found New Hardware Wizard does not appear, refer to the
Forcing Windows to Detect Your Hardware section in Appendix D,
Troubleshooting and Common Questions.
Install the Hardware
Note
If you are installing a PCI-485, you might need to adjust the value of the bias
resistors, depending on your application. Bias resistors are not available on the eight-port
PCI-485. For more information, refer to Appendix B, Serial Port Information.
Caution
Before you remove your board from the package, touch the antistatic plastic
package to a metal part of your system chassis to discharge electrostatic energy, which can
damage several components on your serial board.
To install your PCI serial board, complete the following steps:
1.Turn off your computer. Keep the computer plugged in so that it
remains grounded while you install the PCI serial board.
2.Remove the top or side cover of the computer.
3.Find an unused PCI expansion slot in your computer.
4.Remove the corresponding expansion slot cover on the back panel of
the computer.
5.Touch a metal part on your chassis to discharge any static electricity.
6.Insert the PCI serial board into the slot with the serial connectors
toward the opening on the back panel. Make sure that you insert the
board all the way into the slot. The board might seem to click firmly
into place, even though it is only part of the way in. Figure 2-1 shows
how to install the PCI serial board into an expansion slot.
Serial Hardware and Software for Windows2-2ni.com
Chapter 2PCI Serial Hardware Installation, Verification, and Configuration
2
1
1PC2 PCI Serial Board3PCISlot
Figure 2-1. PCI Serial Board Installation
3
7.Screw the PCI serial board mounting bracket to the back panel
mounting rail of the computer.
8.Replace the cover.
9.Turn on your computer and start Windows 2000.
10. Windows 2000 should automatically detect your hardware and display
the Found New Hardware Wizard. Complete the wizard by clicking
Next in each window and then Finish.
If the Found New Hardware Wizard does not appear, refer to the
Forcing Windows to Detect Your Hardware section in Appendix D,
Troubleshooting and Common Questions.
The serial hardware installation is complete. Continue to the next section,
Chapter 2PCI Serial Hardware Installation, Verification, and Configuration
Verify the Installation
To verify the hardware and software installation, complete the following
steps:
1.Select Start»Settings»Control Panel and double-click on the
System icon.
2.Click on the Hardware tabandclickontheDevice Manager button.
3.Double-click on the Ports (COM & LPT) icon to display all of
the ports.
4.Double-click on the Multi-function adapters icon.
The PCI serial boards are configured as devices belonging to the
multi-function adapters class. The multi-function parent device is
listed under the Multi-function adapters icon, and each child device
is listed as a port under the Ports (COM & LPT) icon.
Figure 2-2 shows the Device Manager tab for serial hardware that is
installed properly.
Figure 2-2. Device Manager for PCI Serial Board Ports
Serial Hardware and Software for Windows2-4ni.com
Chapter 2PCI Serial Hardware Installation, Verification, and Configuration
5.Verify the hardware resources, as follows:
a.In the Device Manager under Multi-function adapters,
double-click on a serial board.
b. ClickontheResources tab. If the resources were assigned
properly, the Resources tab shows which resources are assigned
to your serial ports.
c.Repeat steps 5a and 5b until you have verified the resources for
each board.
6.(Optional) To determine which physical port is associated with COMx,
note the Port 1, Port 2, etc. entries next to the COM numbers. For all
serial hardware, PORT1 refers to the top port, PORT2 refers to the next
port down, and so on.
7.Run the diagnostic utility, as follows: select Start»Programs»National Instruments»NI-Serial»Diagnostics.
The diagnostic utility verifies that your serial driver is installed
properly, that the configuration of your hardware does not conflict with
anything else in your system, and that the serial driver can
communicate with your hardware correctly.
If the test is successful, your serial hardware and software are installed
properly. If the test fails, refer to Appendix D, Troubleshooting and
Common Questions, to troubleshoot the problem.
8.After you verify the hardware and software installation, connect the
cables. See Appendix A, Connector Descriptions, for information
about cable connections.
Configure Communication Port Settings
The serial configuration utility is fully integrated into the Windows 2000
Device Manager. You can use it to view or change the configuration of
your serial ports.
To configure a serial port, complete the following steps:
1.Select Start»Settings»Control Panel and double-click on the
System icon.
Chapter 2PCI Serial Hardware Installation, Verification, and Configuration
4.Double-click on the port you want to configure and refer to the
following instructions:
•To view the hardware resources assigned to the serial port, click
on the Resources tab.
•To view or change the port settings, click on the Port Settings tab.
For more information about the settings, refer to the next section,
Port Settings Tab.
•To change the RS-485 transceiver mode, or to enable or disable
the FIFOs on the serial hardware, in the Port Settings tab, click
on the Advanced button. For more information about the settings,
refer to the next section, Port Settings Tab.
Note
Transceiver modes apply to RS-485 interfaces only. For more information about
transceiver modes, refer to Chapter 6, Using Your Serial Hardware.
5.To save your changes, click on the OK button. To exit without saving
the changes, click on the Cancel button.
Port Settings Tab
In the Port Settings tab, you can change any of the settings by clicking on
the arrow button to the right of a field. When you click on the arrow button,
a list of valid values for that field appears and you can select the desired
setting from the list. Figure 2-3 shows the Port Settings tab.
Serial Hardware and Software for Windows2-6ni.com
Chapter 2PCI Serial Hardware Installation, Verification, and Configuration