National Instruments DIO 6533 User Manual

DIO 6533
User Manual
High-Speed Digital I/O Boards for
PCI, PXI, CompactPCI, AT, EISA, or
PCMCIA Bus Systems
July 1997 Edition
Part Number 321464B-01
© Copyright 1997 National Instruments Corporation. All rights reserved.
Internet Support
E-mail: info@natinst.com FTP Site: ftp.natinst.com Web Address: http://www.natinst.com
Bulletin Board Support
BBS United States: (512) 794 -5422 BBS United Kingdom: 01635 551422 BBS France: 01 48 65 15 5 9
Fax-on-Demand Support
(512) 418-1111
Telephone Support (U.S.)
Tel: (512) 795-8248 Fax: (512) 794-5678
International Offices
Australia 03 9879 5166, Austria 0662 45 79 90 0, Belgium 02 757 00 20, Canada (Ontario) 905 785 0085, Canada (Québec ) 514 694 8521, Denmark 45 76 26 00, Finland 09 725 725 11, France 01 48 14 24 24, Germany 089 741 31 30, Hong Kong 2645 3186, Israel 03 5734815, Ital y 02 413091, Jap an 03 5472 2970, Korea 02 596 7456, Mexico 5 520 2635, Nethe rlands 034 8 433466, Nor way 32 84 84 00, Singapore 2265886, Spain 91 640 0085, Swede n 08 730 49 70, Switzerland 056 200 51 51, Taiwan 02 377 1200, United Kingdom 01635 523545
National Instruments Corporate Headquarters
6504 Bridge Point Parkw ay Austin, TX 78730-503 9 Tel: (512) 794-0100
Important Information

Warranty

The PCI-DIO-32HS, PXI-6533, AT-DIO-32HS, and DAQCard-6533 devices are 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 l abor.
The media on which you receive National Instru ments software ar e warranted not to fail to execute pro grammi ng 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 soft ware media that do not execute programming instructions if National Instruments receives notice of such defects during the warranty period. National Instrument s does not war rant that the oper ation of the softwar e shall be un interr upted 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 par ts whi ch are cov ered by w arranty .
National Instruments believes that the information in this manual 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 ch anges to subsequent edition s of this document withou t prior notice to hol ders 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 docum ent or the in format ion contai ned in it.
E
XCEPT AS SPECIFIED HEREIN
SPECIFICALLY DISCLAIMS ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
C
USTOMER’S RIGHT TO RECOVER DAMAGES CAUSED BY FAULT OR NEGLIGENCE ON THE PART OF NATIONAL
I
NSTRUMENTS SHALL BE LIMITED TO THE AMOUNT THERETOFORE PAID BY THE CUSTOMER WILL NOT BE LIABLE FOR DAMAGES RESULTING FROM LOSS OF DATA, PROFITS, USE OF PRODUCTS, OR INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY THEREOF
Instruments will apply regardles s of the fo rm of acti on, whether i n contract or tort, incl uding neg lig ence. Any acti on against National Instruments must be brought wit hin one year after the cause of action accrues. Nation al Instrument s shall not be liable for any delay in performan ce due to causes beyo nd it s reasonable cont rol. The warranty pr ovided herein does not cover damages, defects, malf unctio ns, or s ervice fai lures caused by owne r’s fail ure to fol low the National Instruments in sta llat ion, o perat ion, or ma inte na nce instr uct ions; owner ’s modif icat ion of the p roduct; 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.
, N
ATIONAL INSTRUMENTS MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AND
.
. N
ATIONAL INSTRUMENTS
. This limitation of the liability of National

Copyright

Under the copyright laws, this publication may not be reproduced or transmitted in any form, electronic or mechanical, including photocopying, reco rding, storin g in an in format ion retr iev al system , or tra nslati ng, in wh ole or in par t, without the prior written consent of Nation al Inst rument s Corpo ration .

Trademarks

LabVIEW®, NI-DAQ®, RTSI®, ComponentWorks™, CVI™, DAQCard™, MITE™, SCXI™, and VirtualBench™ are trademarks of National Instruments Corpor ation.
Product and company names listed are trademarks or trade names of their respective companies.
WARNING REGARDING MEDICAL AND CLINICAL USE OF NATIONAL INSTRUMENTS PRODUCTS
National Instruments products are not design ed with comp onents and testing in tend ed to ensure a level o f reliabi lity suitable for use in treatment and diag nosi s of humans . Appli cations of Nation al Instru men ts product s invol vin g medical or clinical treatment can create a potential for accidental injury caused by product failure, or by err ors on the part of the user or application designer . Any us e or applicat ion of Nat ional Ins trum ent s products for or involvi ng medical or clinical treatment must be performed by properly trained and qualified medical personnel, and all traditional medical safeguards, equipment, and procedures that are appropriate in the particular situation to prevent serious injury or death should always continue to be used when National Instruments prod ucts ar e being used. National Instruments products are NOT intended to be a substitute f or any for m of establ ished pr ocess, proce dure, or equi pmen t used to monitor or safegua rd huma n he alth and sa fety in med ical or clin ical t reat ment .
About This Manual
Organization of This Manual................................................ ...... ..... .............................xi
Conventions Used in This Manual................................................................................ xii
National Instruments Documentation.............................. ..... ........................................xii
Related Documentation.................................................................................................xiii
Customer Communication............................................................................................xiv
Chapter 1 Introduction
About the DIO 6533 Devices........................................................................................1-1
Using PXI with CompactPCI........................................................................................1-2
What You Need to Get Started.....................................................................................1-3
Software Programming Choices...................................................................................1-4
National Instruments Application Software...................................................1-4
NI-DAQ Driver Software...............................................................................1-5
Register-Level Programming.........................................................................1-6
Optional Equipment......................................................................................................1-7
Unpacking.....................................................................................................................1-8
Table of
Contents
Chapter 2 Installation and Configuration
Software Installation.....................................................................................................2-1
Hardware Installation....................................................................................................2-1
Installing the PCI-DIO-32HS.........................................................................2-1
Installing the PXI-6533..................................................................................2-2
Installing the AT-DIO-32HS..........................................................................2-3
Installing the DAQCard-6533........................................................................ 2-3
PCI, PXI, and DAQCard Device Configuration...........................................................2-4
©
National Instruments Corporation v DIO 6533 User Manual
Table of Contents
AT Device Configuration.............................................................................................2-5
Bus Interface..................................................................................................2-5
Chapter 3 Hardware Overview
Unstrobed I/O...............................................................................................................3-4
Strobed I/O—Pattern Generation and Handshaking.................................................... 3-5
Pattern and Change Detection........................................................................ 3-6
Handshaking Protocols .................................................................................. 3-8
Comparing Protocols............................ ..... ..................................................... 3-10
Starting a Handshaking Transfer.................................................................... 3-12
Transfer Rates............................................................................................................... 3-13
Plug and Play Mode.........................................................................2-5
Switchless Data Acquisition............................................................ 2-5
Base I/O Address Selection...............................................2-6
DMA Channel Selection ...................................................2-6
Interrupt Channel Selection............................................... 2-6
Pattern-Detection Triggers ..............................................................3-6
Change Detection ............................................................................3-7
Message Generation ........................................................................ 3-8
8255 Emulation................................................................................ 3-9
Level ACK....................................................................................... 3-9
Leading-Edge Pulse........................................... ..............................3-9
Long Pulse....................................................................................... 3-9
Trailing-Edge Pulse......................................................................... 3-9
Burst Mode...................................................................................... 3-10
Controlling the Startup Sequence.................................................... 3-12
Controlling Line Polarities .............................................................. 3-13
Chapter 4 Signal Connections
I/O Connector............................................................................................................... 4-1
Signal Descriptions............................................... ......................................... 4-3
Signal Characteristics................................................... ...... ............. 4-6
Control Signal Summary.................................................................4-7
RTSI Bus Interface.........................................................................................4-7
Board and RTSI Clocks................................................................... 4-8
RTSI Triggers..................................................................................4-8
Data Signal Connections.............................................................................................. 4-9
Unstrobed I/O.................................................................................................4-10
Strobed I/O.....................................................................................................4-12
DIO 6533 User Manual vi
©
National Instruments Corporation
Timing Connections......................................................................................................4-13
Pull-Up and Pull-Down Connections ...........................................................................4-13
Power Connections .............................................. ...... ...... .............................................4-14
Field Wiring and Termination ......................................................................................4-14
Chapter 5 Signal Timing
Pattern-Generation Timing...........................................................................................5-1
Handshake Timing........................................................................................................5-4
Table of Contents
Request Timing ..............................................................................................5-2
Internal Requests..............................................................................5-2
External Requests.............................................................................5-2
Trigger Timing...............................................................................................5-3
8255 Emulation ..............................................................................................5-4
Input.................................................................................................5-5
Output...............................................................................................5-6
8255 Emulation Mode Timing Specifications.................................5-8
Other Asynchronous Modes...........................................................................5-9
Level-ACK Mode ............................................................................5-9
Input...................................................................................5-9
Output................................................................................5-10
Level-ACK Mode Timing Specifications..........................5-11
Leading-Edge Mode....................................... ..... ...... .......................5-14
Input............................................................ ...... .................5-14
Output................................... ..... ........................................5-14
Leading-Edge Mode Timing Specifications......................5-16
Long-Pulse Mode.............................................................................5-19
Long-Pulse Mode Timing Specifications..........................5-20
Trailing-Edge Mode .........................................................................5-23
Input...................................................................................5-23
Output................................................................................5-23
Trailing-Edge Mode Timing Specifications......................5-25
Burst Mode.....................................................................................................5-27
Burst Mode Timing Specifications..................................................5-28
©
National Instruments Corporation vii DIO 6533 User Manual
Table of Contents
Appendix A Specifications
Appendix B Optional Adapter Description
Appendix C Customer Communication
Glossary
Index

Figures

Figure 1-1. The Relationship Between the Programming Environment, NI-DAQ,
and Your Hardware ............................................................................... 1-6
Figure 2-1. DAQCard-6533 Completed Installation................................................ 2-4
Figure 3-1. PCI-DIO-32HS/PXI-6533 Block Diagram ........................................... 3-2
Figure 3-2. AT-DIO-32HS Block Diagram.............................................................3-3
Figure 3-3. DAQCard-6533 Block Diagram............................................................3-4
Figure 3-4. Pattern Detection Example....................................................................3-7
Figure 4-1. 6533 Device I/O Connector Pin Assignments....................................... 4-2
Figure 4-2. RTSI Bus Signal Connection ................................................................ 4-9
Figure 4-3. Example of Data Signal Connections.................................................... 4-11
Figure 4-4. Transmission Line Terminations........................................................... 4-16
Figure 5-1. Pattern-Generation Timing.................................................................... 5-1
Figure 5-2. Internal Request Timing........................................................................ 5-2
Figure 5-3. External Request Timing....................................................................... 5-3
Figure 5-4. Trigger Input Signal Timing.................................................................. 5-4
Figure 5-5. 8255 Emulation Mode Input.................................................................. 5-6
Figure 5-6. 8255 Emulation Mode Output............................................................... 5-7
Figure 5-7. 8255 Emulation Timing......................................................................... 5-8
Figure 5-8. Level-ACK Mode Input ........................................................................5-10
Figure 5-9. Level-ACK Mode Output......................................................................5-11
Figure 5-10. Level-ACK Mode Input Timing............................................................ 5-12
DIO 6533 User Manual viii
©
National Instruments Corporation
Table of Contents
Figure 5-11. Level-ACK Mode Output Timing.........................................................5-13
Figure 5-12. Leading-Edge Mode Input.....................................................................5-15
Figure 5-13. Leading-Edge Mode Output.................................................................. 5-16
Figure 5-14. Leading-Edge Mode Input Timing........................................................5-17
Figure 5-15. Leading-Edge Mode Output Timing......................................................5-18
Figure 5-16. Long-Pulse Mode Input.........................................................................5-19
Figure 5-17. Long-Pulse Mode Output.......................................................................5-20
Figure 5-18. Long-Pulse Mode Input Timing ............................................................5-21
Figure 5-19. Long-Pulse Mode Output Timing..........................................................5-22
Figure 5-20. Trailing-Edge Mode Input.....................................................................5-24
Figure 5-21. Trailing-Edge Mode Output...................................................................5-25
Figure 5-22. Trailing-Edge Mode Input Timing........................................................5-26
Figure 5-23. Trailing-Edge Mode Output Timing......................................................5-27
Figure 5-24. Input Burst Mode Transfer Example.....................................................5-28
Figure 5-25. Output Burst Mode Transfer Example...................................................5-29
Figure 5-26. Burst Mode Output Timing (Default)....................................................5-30
Figure 5-27. Burst Mode Input Timing (Default).......................................................5-31
Figure 5-28. Burst Mode Output Timing (PCLK Reversed)......................................5-32
Figure 5-29. Burst Mode Input Timing (PCLK Reversed)........................................5-33
Figure B-1. 68-to-50-Pin Adapter Pin Assignments.................................................B-2
Table
Table 1-1. Pins Used by the PXI-6533 Device.......................................................1-3
Table 2-1. PC AT I/O Address Map .......................................................................2-6
Table 2-2. PC AT Interrupt Assignment Map.........................................................2-8
Table 2-3. PC AT 16-Bit DMA Channel Assignment Map....................................2-9
Table 3-1. 6533 Handshaking Protocols.................................................................3-11
Table 4-1. Signal Descriptions................................................................................4-3
Table 4-2. Control Signal Summary .......................................................................4-7
©
National Instruments Corporation ix DIO 6533 User Manual
This manual describes the elect rical and mechanical aspects of the DIO6533 (formerly called DIO-32HS) family of devices, and contains information concerning their ope ration and programming. U nless otherwise noted, text applies to all devices in the DIO6533 family. The devices named DIO-32HS and 6533 are the same in functionality; their primary difference is the bus interface.
The DIO6533 family includes the following devices:
• PCI-DIO-32HS
• PXI-6533
• AT-DIO-32HS
• DAQCard-6533

Organization of This Manual

About
This
Manual
The DIO 6533 User Manual is orga nized as follows:
• Chapter1, Introduction, describes the DIO 6533 (DIO -32HS) devices, lists what you need to get started, descr ibes optional equipment, and explains how to unpack your de vice.
• Chapter2, Installation and Configuration, explains how to install and configure your DIO 6533 device.
• Chapter3, Hardware Overview, provides an overview of the hardware functions of your DIO 6533 devic e.
• Chapter4, output signal connections to your DIO 6533 device via the device I/O connector and RTSI connector.
• Chapter5, Signal Timing, provides detailed timing specifications for DIO 6533 pattern generation and for the various full, two- way handshaking modes.
• AppendixA, Specifications, lists the specifications for the DIO 6533 devices.
©
National Instruments Corporation xi DIO 6533 User Manual
Signal Connections, describes how to ma ke input a nd
About This Manual
AppendixB, Optional Adapter Description, describes the optional 68-to-50-pin DIO 6533 device adapter.
• AppendixC, Customer Communication, contains forms you can use to request help from National Instruments or to comment on our products.
•The Glossary contains an alphabetical list and descriptions of terms used in this manual, including acronyms, abbreviations, definitions, metric prefixes, mnemonics, and symbols.
•The Index alphabetically lists topics covered in this manual, including the page where you can f ind the topic.

Conventions Used in This Manual

The following conventions are used in this manual:
<> Angle brackets containing numbers separated by an ellipsis represent a
range of values associate d with a bit or signal name (for example, DIOB<3..0>).
The symbol indicates that the text following it applies only to a
specific DIO6533 device.
bold italic Bold italic text denotes a note, caution, or warning. 6533 device 6533 device refers to the PCI-D IO- 32HS, PXI- 6533, A T-DI O-32HS,
and DAQCard-6533 devices, unless otherwise noted.
italic Italic text denotes emphasis, a cross reference, or an introduction to a
key concept.
SCXI SCXI stands for Signal Conditioning eXtensions for Instrumentation
and is a National Instruments product line designed to perform front-end signal conditioning for National Instruments plug-in DAQ boards.
The Glossary lists abbreviations, acronyms, def initions, metric prefixes, mnemonics, symbols, and ter ms.

National Instruments Documentation

The DIO 6533 User Manual is one piece of the doc umentation set for your DAQ system. You could have any of seve ral types of documents, depending on the hardwa re a nd sof twa re in your syste m. U se the documentation you have as follows:
©
DIO 6533 User Manual xii
National Instruments Corporation
About This Manual
Getting Started with SCXI—If you are using SCXI, this is the first manual you should re ad. I t giv es an o ve rview of the SC XI sy stem and contains the most commonly needed information for the modules, chassis, and software.
Your SCXI hardware user manuals—If you are using SCXI, read these manuals next for detailed information about signal connections and module configuration. They also explain in greater detail how the module works and contain application hints.
Your DAQ hardware documentation— This docum entation ha s detailed information about the DAQ ha rdware that plu gs into or is connected to your computer. Use this documentation for hardware installation and configuration instructions, specification information about your DAQ hardw are, an d applicatio n hints.
Software documentation—You may have both application software and NI-DAQ software docum entation. National Instrum ents
®
application software incl udes LabV IE W, L abW indow s
/CVI, ComponentWorks, and Vir tualBe nch. Afte r you se t up y our hardware system, use either your applic ation softw are documentation or the N I-D AQ docu me ntation to he lp y ou write your application. If y ou have a la rge, comp lica ted system, it is worthwhile to look through the software documentation before you configure your har dwar e.
Accessory installation guides or manuals—If you are using accessory products, read the terminal block and cable assembly installation guides. They explain how to physically connect the relevant pieces of the system. Consult these guides when you are making your connec tions.
SCXI Chassis Manual—If you are using SCXI, read this manual for maintenance information on the chassis and installation instructions.

Related Documentation

The following documents contain information that you may find helpful as you read this manual:
Your computer’s technical reference manual
National Instruments PXI Specification, rev. 1.0
PICMG CompactPCI 2 .0 R2 .1
©
National Instruments Corporation xiii DIO 6533 User Manual
About This Manual

Customer Communication

National Instruments wants to receive your comments on our products and manuals. We are interested in the applications you develop with our products, and we want to help if you have problems with them. To make it easy for you to contact us, this manual contains comment and configuration forms for you to complete. These for ms are in AppendixC, Customer Communication, at the end of this manual.
DIO 6533 User Manual xiv
©
National Instruments Corporation
Chapter
Introduction
This chapter describes the DIO6533 (DIO-32HS) devices, lists what you need to get started, describes optional equipment, and explains how to unpack your device.

About the DIO 6533 Devices

Thank you for buying a National Instruments DIO6533 device . The 6533devices are 32-bit, parallel digital I/O interfaces for PC-compatible computers, or PXI or CompactPCI chassis. The 6533 devices offer digital data acquisition, digital waveform generation, and high-speed, flexible handshaking.
The PCI-DIO-32HS and PXI-6533 are com pletely switchless, jumperless DAQ devices for PCI buses and PXI or CompactPCI chassis, respectively. Both contain the National Instruments MITE PCI interface. The MITE offers bus-master operation, PCI burst transfers, and high-speed DMA controllers for continuous, scatter-gather DMA without requiring DMA resources from your computer. See the Using
PXI with CompactPCI section in this chapter for more informatio n on
your PXI-6533 device.
1
The AT-DIO-32HS is a completely switchless, jumperless DAQ device for AT (16-bit ISA) buses. The AT-DIO-32HS implements the Plug and Play ISA Specification so that your operating system can configur e all DMA channels, interrupts, and base I/O addresses. You ca n easily change device configurations without removing the devic e from your computer. The AT-DIO-32HS offers dual DMA with channel switching for uninterrupted, high-speed data transfer.
The DAQCard-6533 is a general-purpose d igital I/O card for com puters equipped with Type II PCMCIA slots. The small size and weight of the DAQCard-6533, coupled with low power consumption, make this card ideal for use in portable computers, making remote digital data acquisition practical. The card requires very little operating power and has a standby mode that uses even less power, thus extending the life of your computer batteries.
© National Instruments Corporation 1-1 DIO 6533 User Manual
Chapter 1 Introduction
Each 6533 device contains the National Instruments DAQ-DIO chip, providing two independent channels of digital input and output, pattern generation, and handshaking. Each channel offers the following functions:
• Selectable data path width (8, 16, or 32 bits)
• 16-sample-deep FIFO buffer
• 16-bit and 32-bit counters for timeba se a nd inter val genera tion, with a maximum timing resolution of 50 ns
• A handshaking controller implementing six flexible timing protocols
• Start and stop trigger detection and digital pattern detection
• 24mA outputs
• Hysteresis and diode-based line termination on all inputs
With 6533 devices, you can use your c omputer or c hassis a s a digital I/O tester, logic analyzer, or system controller for laboratory testing, production testing, and industrial process monitoring and contr ol.
For detailed 6533 device speci fications, see AppendixA,
Specifications.

Using PXI with CompactPCI

Using PXI-compatible products with standard CompactPCI products is an important feature provided by the PXI Specification, rev.1.0. If you use a PXI compatible plug-in device in a standard Comp actPCI chassis, you will be unable to use PXI-specific functions, but you can still use the basic plug-in device functions. For example, the RTSI bus on your PXI-6533 device is available in a PXI chassis, but n ot in a CompactPCI chassis.
The CompactPCI specification permits vendors to develop sub-buses that coexist with the basic PCI interface on the CompactPCI bus. Compatible operation is not guaranteed between Compa ctPCI device s with different sub-buses nor between CompactPCI devices with sub-buses and PXI. The standard implementation for CompactPCI does not include these sub-buses. Your PXI-6533 device wi ll work in any standard CompactPCI chassis adhering to the PICMG CompactPCI2.0R2.1 document.
DIO 6533 User Manual 1-2 © National Instruments Corporation
Chapter 1 Introduction
PXI specific features are impleme nted on the J2 connec tor of the CompactPCI bus. Table 1-1 lists the J2 pins used by yo ur PXI-6 533 device. Your PXI device is compatible with any CompactPCI chassis with a sub-bus that does not drive these lines. Even if the sub-bus is capable of driving these lines, the PXI device is still compatible as long as those pins on the sub-bus are disabled by default and not ever enabled. Damage m a y resu lt if these lines ar e dr iven b y the sub- bus.
Table 1-1.
PXI-6533
Signal
RTSI Trigger (0..6)
Reserved PXI Star D17 RTSI Clock PXI Trigger (7) E16 Reserved LBR (7, 8, 10, 11,
PXI Pin Name PXI J2 Pin Number
PXI Trigger (0..6) B16, A16, A17, A18, B18,
12)

What You Need to Get Started

To set up and use your DIO 6533 device, you will need the following:
One of the following devices:
PCI-DIO-32HS PXI-6533 AT-DIO-32HS DAQCard-6533
Pins Used by the PXI-6533 Device
C18, E18
A3, C3, E3, A2, B2
D IO 6 533 Us er Man ual
© National Instruments Corporation 1-3 DIO 6533 User Manual
Chapter 1 Introduction
One of the following software packages and documentation:
NI-DAQ for PC compatibles LabVIEW for Windows LabWindows/CVI ComponentWorks VirtualBen ch
Appropriate cable:
PSHR68-68M (DAQCard-6 533 only) Shielded or ribbon c able (f or all de vices)
Your computer, PXI, or CompactPCI chassis and controller

Software Programming Choices

There are several op tions to choo se from whe n programm ing your National Instruments DAQ hardware. You can use LabVIEW, LabWindows/CVI, Comp one ntWorks, V irtu alBench, or NI -DA Q.

National Instruments Application Software

LabVIEW features interactive graphics, a state-of-the art user interface, and a powerful gr aphic al progra mm ing lan gua ge. Th e LabV IEW D ata Acquisition VI Library, a series of VIs for using LabVIE W with National Instruments DAQ hardware, is included with LabVIEW. The LabVIEW Data Acquisition VI Library is f unctionally equivalent to the NI-DAQ software.
LabWindows/CVI features interactive graphics and a state-of-the-art user interface, and uses the ANSI sta ndard C pro gram ming langua ge. The LabWindows/CVI Data A cquisition Lib rary, a serie s of fun ction s for using National Instruments DAQ hardware, is included with LabWindows/CVI. The LabWindows/CVI Data Acquisition Library is functionally equivalent to the NI-DAQ software.
ComponentWorks con tains tools for data acq uisition and instr ument control built on NI-DAQ driver softw are. Component Works provide s a higher-level programming interface for building virtual instruments through standard OLE controls and DLLs. With ComponentWorks, you can use all of the configuration tools, resource management utilities, and interactive control utilities included with NI-DAQ.
DIO 6533 User Manual 1-4 © National Instruments Corporation
VirtualBench features virtual instruments that combine DAQ products, software, and your co mputer to create a stand- alone instrumen t with the added benefit of the processing, display, and storage capabilities of your computer. VirtualBench instruments load and save waveform data to disk in the same forms that can be used i n popular s preads heet programs and word proce ssors.
Using LabVIEW, LabWindows/CVI, ComponentWorks, or VirtualBench software will greatly reduce the development time for your data acquisition and control application.

NI-DAQ Driver Software

The NI-DAQ driver software is included at no ch ar ge with all Natio n al Instruments DAQ hardware. NI-DAQ is not packaged with SCXI or accessory products, except for the SCXI-1200. NI-DAQ has an extensive library of functions that you can c all from your application programming enviro nment. These fu nctions includ e routines for analo g input (A/D conversion), buffered data acquisition (high-speed A/D conversion), analog output (D/A conversion), wavefor m generation (timed D/A conversion), digital I/O, counter/timer operations, SCXI, RTSI, calibration, messaging, and acquiring da ta to extended memory.
Chapter 1 Introduction
NI-DAQ has both high-level DAQ I/O functions for maximum ease of use and low-level DAQ I/O functions for maximum flexibility and performance. Examples for high-l evel funct ions a re strea ming dat a t o disk or acquiring a certain number of da ta points. An example of a low-level function is writing directly to registers on the DAQ device. NI-DAQ does not sacrifice performance of National Instruments DAQ devices because it lets multiple devices operate at their peak performance, even simul taneous ly.
NI-DAQ also internally addresses many of the com plex issues between the computer and the DAQ hardware such as programming interrupts and DMA controllers. NI-DAQ maintains a consistent software interface so that you can change platforms with minimal modifications to your code. Whether you are using c onventional program ming languages or NI-DAQ software, your application uses the NI-DAQ driver software, as illustrated in Figure1-1.
© National Instruments Corporation 1-5 DIO 6533 User Manual
Chapter 1 Introduction
Conventional Programming
Environment
NI-DAQ
Driver Software
DAQ or
SCXI Hardware
Figure 1-1. The Relationship Between the Programming Environment, NI-DAQ,
and Your Hardware
ComponentWorks,
LabVIEW,
LabWindows/CVI,
or VirtualBench
Personal
Computer or
Workstation
You can use your 6533 device, together wi th other AT (16-b it ISA), PCI, PC, EISA, DAQCard, and DAQPad Series DAQ hardware, with NI-DAQ software for PC compatibles. The PCI-DIO-32HS or AT-DIO-32HS requires version 5 .0 or late r. T he PXI -65 33 or DAQCard-6533 requires ve rsion 5.1 or later.

Register-Level Programming

The final option for programming any National Instruments DAQ hardware is t o wr it e r eg iste r- lev el softw are . Writ ing re gist er-l ev el programming software can be very time-consuming and inefficient and is not recommended for most u ser s.
Even if you are an experienced register-level programmer, consider using NI-DAQ or National I nstruments applicatio n software to prog ram your National Instruments DAQ hardware. Using National Instruments application softw are is as easy and as flex ible as regis ter-lev el programming and can save weeks of develop ment time.
DIO 6533 User Manual 1-6 © National Instruments Corporation

Optional Equipment

National Instruments offers a variety of pr oducts to use with your 6533device, including cables, connector blocks, and other accessories, as follows:
• Cables and cable assemblies, shielded and ribbon
• Connector blocks, shielded and unshielded 50 a nd 68- pin scr ew terminals
• Real Time System Integration (RTSI) bus cables
• SCXI modules and accessories for isolating digital signals, controlling relays, and creating isolated analog outputs
• Low channel-count signal conditioning modules, devices, and accessories, including relays and optical isolation
Some cables and accessories require use of the 68 to 50-pin DIO 6533 device adaptor, detailed in Appe ndixB, Optional Adapter D escription.
For more specific information about these products, refer to your National Instruments catalogue or web site, or c all the office near est you.
Chapter 1 Introduction
© National Instruments Corporation 1-7 DIO 6533 User Manual
Chapter 1 Introduction

Unpacking

Your 6533 device is ship ped in an a ntistatic p ackage to pr ev ent electrostatic damage to the device. El ectrostatic disc harge can da mage several components on the device. To avoid such damage in handling the device, take the following precautions:
Ground yourself via a grounding strap or by hold ing a ground ed object.
Touch the antistatic package to a metal part of your computer chassis before rem oving the d evic e f rom the pack age .
Remove the device from the package and inspect the device for loose components or a ny sign of d amag e. N otify N atio na l Instruments if the device appear s damaged in any way. Do not install a damaged dev ice into yo ur comp uter .
Never touch the exposed pins of connectors.
Store your 6533 device in the antistatic envelope when not in use.
DIO 6533 User Manual 1-8 © National Instruments Corporation
Installation and
Chapter
Configuration
This chapter expla ins how to insta ll and co nfig ure y our DIO 653 3 device.

Software Installation

Install your software before you install your 6533 devi ce. Refe r to the appropriate release notes indicated be low for specific instruc tions on the software ins tall ation sequ ence .
If you are using NI-DAQ, refer to your NI-D AQ release notes. Find the insta llation section fo r your o perating sy stem and fo llow the instructions given there.
If you are using LabV IEW, L a bWindow s/CVI, or o ther N ationa l Instruments applica tion sof tware packag es, refe r to th e appro priat e release notes. After you have installed yo ur application software, refer to your NI-DAQ relea se no tes an d follow th e instruc tions give n there for your operating sy stem a nd ap plica tion softwa re p acka ge.
2

Hardware Installation

Following are general installation instructions for each device. Consult your computer or chassis user manual or technical reference manual for specific instructions about installing new devices in your com puter or chassis.

Installing the PCI-DIO-32HS

You can install a PCI-DIO-32HS in any ava ilable 5 V PCI expansion slot in your computer.
1. Turn off and unplug your comp uter .
2. Remove the top cover or access port to the e xpan sion slots.
3. Remove the expansion slot cover on the back panel of the computer.
© National Instruments Corporation 2-1 DIO 6533 User Manual
Chapter 2 Installation and Configuration
4. Touch the metal part inside your computer to discharge any static electricity that might be on your clothes or body.
5. Insert the PCI-DIO-32HS into a 5 V PCI slot. It may be a tight fit, but do not force the device into place.
6. Screw the mounting bracket of the PCI-DIO-32HS to the back panel rail of the computer.
7. Visually verify the installation.
8. Replace the top cover of your com puter.
9. Plug in and turn on your compute r.

Installing the PXI-6533

You can install a PXI-6533 in any available 5V periphera l slot in your PXI or CompactPCI chassis.
Note: The PXI-6533 has connections to several reserved lines on the
CompactPCI J2 connector. Before installing a PXI-6533 in a CompactPCI system that uses J2 connector lines for purposes other than PXI, see Using
PXI with CompactPCI in Chapter1, Introduction, of this manual.
1. Turn off and unplug your PXI or CompactPCI c hassis.
2. Choose an unused PXI or CompactPCI 5V peri phera l slot. For maximum performance, install the PXI-6533 in a slot that supports bus arbitration, or bus-master cards. T he PX I-6533 c ontains onboard bus-master DMA logic that can operate only in such a slot. If you choose a slot that does not support bus masters, you will have to disable the onboard DMA controller using your software. PXI­compliant chassis must have bus arbitration for all slots.
3. Remove the filler panel for the peripheral slot you have chosen.
4. Touch a metal part on your cha ssis to discha rge a ny sta tic electricity that might be on your clothes or body.
5. Insert the PXI-6533 in the selected 5V slo t. Use the injector/ejector handle to fully inject the device into place.
6. Screw the front panel of the PXI-6533 to the front panel mounting rails of the PXI or CompactPCI chassis.
DIO 6533 User Manual 2-2 © National Instruments Corporation
7. Visually verify the installation.
8. Plug in and turn on the PXI or CompactPCI chassis.

Installing the AT-DIO-32HS

You can install an AT-DIO-32HS in any available AT (16-bit ISA) or EISA expansion slot in your com puter.
1. Turn off and unplug your computer.
2. Remove the top cover or access port to the expansion slots.
3. Remove the expansion slot cover on the back panel of the computer.
4. Touch the metal part inside your computer to discharge any static electricity that might be on your clothes or body.
5. Insert the AT-DIO-32HS into an AT (16-bit ISA) or EISA slot. It may be a tight fit, but do not force the device into place.
6. Screw the mounting bracket of the AT-DIO-32HS to the back panel rail of the computer.
7. Visually verify the installation.
8. Replace the top cover of the computer.
9. Plug in and turn on your compute r.
Chapter 2 Installation and Configuration

Installing the DAQCard-6533

You can install your DAQCard-6533 in any available Type II PCMCIA slot in your computer. See Figure2-1 for the completed installation.
1. Turn off your computer. If your compute r supports hot insertion, you may insert or remove the DAQCard-6533 at any time, whether the computer is powered on or off.
2. Remove the PCMCIA slot cover on your computer, if any.
3. Insert the PCMCIA bus connector of the DAQCard-6533 into the PCMCIA slot. The card is keye d so tha t you ca n insert it only one way.
4. Attach the I/O cable. Be very careful not to put strain on the I/O cable when inserting it into and removing it from the DAQCard-6533. When plugging and unplugging the cable, always grasp the cable by the connector. Never pull directly on the I/O cable to unplug it from the DAQCard-6533.
© National Instruments Corporation 2-3 DIO 6533 User Manual
Chapter 2 Installation and Configuration
Portable
Computer
PCMCIA Socket
I/O Cable
CB-68
I/O Signals
Figure 2-1. DAQCard-6533 Completed Installation
Your 6533 device is insta lled. T he d evice is now r eady f or softwa re configuration.

PCI, PXI, and DAQCard Device Configuration

The PCI-DIO-32HS , PXI -65 33, a nd DAQC ard-6 533 a re c omple tely software configurable. The system software automatically allocates all device resources, incl uding b ase m emor y add ress a nd inte rrupt level. These devices do not require DMA controller resources from your computer.
DIO 6533 User Manual 2-4 © National Instruments Corporation

AT Device Configuration

The plug and play feature of the AT-DIO -32HS mak es it completely software configurable. You can use software to configure the base I/O address, DMA cha nnels, an d in terr upt lev els.

Bus Interface

The AT-DIO-32HS works in either a Plug and Play mo de or a switchless mode. These modes dictate how system resources are determined and assigned to the devic e.
Plug and Play Mode
The AT-DIO-32HS is fully compatible with the industry-standard Intel/Microsoft Plug and Play Specification version 1.0a. A Plug and Play system arbitrates and assigns system resources through software, freeing you from man ually se tting switc hes and jump ers. Th ese resources include the device base I/O address, DMA channels, and interrupt channels. Th e A T-DI O-32 HS is c onf igured a t the f act ory to request these resources from the Plug and Play Configuration Manager.
Chapter 2 Installation and Configuration
The Configuration Manager receives all of the resource requests at startup, compares the available resources to those requested, and assigns the available resou rces as efficie ntly as possible to the Plug and Play devices. Applicatio n softwa re c an qu er y th e Configu ratio n Manager to determine the resources assigned to each device without your involvement. The Plug and Play so ftware is instal led a s a d ev ice driver or as an integra l com pon en t of the c om puter BIOS .
Switchless Data Acquisition
You can use your AT-DIO-32HS device in a non-Plug and Play system as a switchless DAQ device. A non-Plug and Play system is a system in which the Configuration Manager has not been installed and which does not contain any non-National Instruments Plug and Play products. Use a configuration utility, such as the NI-PnP or Intel configuration utilities, to enter the base address, DMA, and interrupt selections, and the application software assigns them to the device.
Note: Avoid resource conflicts with non-National Instruments d evices. For
example, do not configure two devices to have the same base address.
© National Instruments Corporation 2-5 DIO 6533 User Manual
Chapter 2 Installation and Configuration
Base I/O Address Selection
The AT-DIO-32HS device can be configured to use a base address in the range of 100 to 3E 0 hex. T he A T-D IO-32 H S occ upies 1 6 b ytes of address space and must be located on a 16-byte boun dary. Therefore , valid addresses include 100, 110, 120, ..., 3D0, 3E0 hex. This selection is software configured and does not require you to manually change any settings on the device.
DMA Channel Selection
The AT-DIO-32HS can a chieve h igh tra nsfe r ra tes by usin g u p to two 16-bit DMA channels. The AT-DI O-32HS can use only 16-bit DMA channels, w h ich co rr esp ond t o ch an ne ls 5, 6 , a nd 7 i n an AT (1 6-b i t ISA) computer and channels 0, 1, 2, 3, 5, 6, and 7 in an EISA computer. These selections are all software configured and do not require you to manually change any settings on the device.
Interrupt Channel Selection
The AT-DIO-32HS increases bus efficiency by using an interrupt channel for event notification. Th e AT-DI O-32HS can use interrupt channel 3, 4, 5, 6, 7, 9, 10, 11, 12, 14, or 15. This selection is software­configured and does not require you to manually change any settings on the device.
Tables 2-1, 2-2, and 2-3 provide information concerning possible conflicts in base address, DMA cha nnel, and interr upt chan nel assignment when configuring you r AT-DIO -32HS de vice.
Table 2-1.
I/O Address Range (Hex) Device
100 to 1EF
1F0 to 1F8 IBM PC AT Fixed Disk
200 to 20F PC and PC AT Game Controller, reserve d
210 to 213 PC-DIO-24 – default
218 to 21F
220 to 23F Previous generation of AT-MIO boards – default
DIO 6533 User Manual 2-6 © National Instruments Corporation
PC AT I/O Address Map
Chapter 2 Installation and Configuration
Table 2-1. PC AT I/O Address Map (Continued)
I/O Address Range (Hex) Device
240 to 25F AT-DIO-32F – default
260 to 27F Lab-PC/PC+ – default
278 to 28F AT Parallel Printer Port 2 (LPT 2)
279 Reserved for Plug and Play operation
280 to 29F WD EtherCard+ – default
2A0 to 2BF
2E2 to 2F7
2F8 to 2FF PC, AT Serial Port 2 (COM2)
300 to 30F 3Com EtherLink – defa ul t
310 to 31F
320 to 32F IBM PC/XT Fixed Disk Controll er
330 to 35F
360 to 363 PC Network (low address)
364 to 367 Reserved
368 to 36B PC Network (high address)
36C to 36F Reserved
370 to 366 PC, AT Parallel Printer Port 1 (LPT1)
380 to 38C SDLC Communications
380 to 389 Bisynchronous (BSC) Communications (alternate )
390 to 393 Cluster Ada pter 0
394 to 39F
3A0 to 3A9 BSC Communications (primary)
3AA to 3AF
3B0 to 3BF Monochrome Display/Parallel Printer Adapter 0
© National Instruments Corporation 2-7 DIO 6533 User Manual
Chapter 2 Installation and Configuration
I/O Address Range (Hex) Device
Table 2-2 shows the PC AT interrupt assignments.
Table 2-1. PC AT I/O Address Map (Continued)
3C0 to 3CF Enhanced Graphics Adapter, VGA
3D0 to 3DF Color/Graphics Monitor Adapter, VGA
3E0 to 3EF
3F0 to 3F7 Diskette Controller
3F8 to 3FF Serial Port 1 (COM1)
A79 Reserved for Plug and Play operation
Table 2-2. PC AT Interrupt Assignment Map
IRQ Device
15 Available
14 Fixed Disk Controller
13 Coprocessor
12 AT-DIO-32F – default
11 AT-DIO-32F – default
10 AT-MIO-16 – default
9 PC Network – default
8 Real-Time Clock
7 Parallel Port 1 (LPT1)
6 Diskette Drive Control ler
5 Parallel Port 2 (LPT2)
4 Serial Port 1 (COM1)
PC Network Alternate – defa ult
Fixed Disk and Diskette Drive Controller
PC-DIO-24 – default Lab-PC/PC+ – default
BSC, BSC Alternate
DIO 6533 User Manual 2-8 © National Instruments Corporation
Chapter 2 Installation and Configuration
Table 2-2. PC AT Interrupt Assignment Map (Continued)
IRQ Device
3 Serial Port 2 (COM2)
2 IRQ 8-15 Chain (from in terrupt controller 2)
1 Keyboard Controller Output Buffer Full
0 Timer Channel 0 Output
BSC, BSC Alternate Cluster (primary) PC Network, PC Network Alte rna te WD EtherCard+ – default 3Com EtherLink – default
Table 2 -3 shows the PC AT 16- bit DMA chan nel assignmen ts.
Table 2-3. PC AT 16-Bit DMA Channel Assignment Map
Channel Device
7 AT-MIO-16 Series – default
6 AT-MIO-16 Series – default
5 AT-DIO-32F – default
4 Cascade for DMA Controll er #1 (ch ann els<0..3>)
AT-DIO-32F – default
Note: EISA computers also have channels<0..3> available as 16-bit DMA
channels.
© National Instruments Corporation 2-9 DIO 6533 User Manual
Chapter
Hardware Overview
This chapter provides an overview of the ha rdwa re f unc tions of your DIO6533 device.
Each 6533 device contains the National Instruments DAQ-DIO chip, a 32-bit general-purpose digital I/O interface. The DAQ-DIO chip enables the 6533 device to perform single-line and single-point input and output, digital data acquisition, digital waveform generation, a nd high-speed data transfer using a wide range of ha ndshaking protoc ols.
Figures3-1,3-2, and3-3 show the block diagrams for the 6533devices.
3
© National Instruments Corporation 3-1 DIO 6533 User Manual
Loading...
+ 95 hidden pages