National Instruments NI 6232, NI 6233 User Manual

DAQ M Series

NI 6232/6233 User Manual

NI 6232/6233 User Manual
July 2006 371995A-01

Support

Worldwide Technical Support and Product Information

ni.com
11500 North Mopac Expressway Austin, Texas 78759-3504 USA Tel: 512 683 0100

Worldwide Offices

Australia 1800 300 800, Austria 43 0 662 45 79 90 0, Belgium 32 0 2 757 00 20, Brazil 55 11 3262 3599, Canada 800 433 3488, China 86 21 6555 7838, Czech Republic 420 224 235 774, Denmark 45 45 76 26 00, Finland 385 0 9 725 725 11, France 33 0 1 48 14 24 24, Germany 49 0 89 741 31 30, India 91 80 41190000, Israel 972 0 3 6393737, Italy 39 02 413091, Japan 81 3 5472 2970, Korea 82 02 3451 3400, Lebanon 961 0 1 33 28 28, Malaysia 1800 887710, Mexico 01 800 010 0793, Netherlands 31 0 348 433 466, New Zealand 0800 553 322, Norway 47 0 66 90 76 60, Poland 48 22 3390150, Portugal 351 210 311 210, Russia 7 095 783 68 51, Singapore 1800 226 5886, Slovenia 386 3 425 4200, South Africa 27 0 11 805 8197, Spain 34 91 640 0085, Sweden 46 0 8 587 895 00, Switzerland 41 56 200 51 51, Taiwan 886 02 2377 2222, Thailand 662 278 6777, United Kingdom 44 0 1635 523545
For further support information, refer to the Technical Support and Professional Services appendix. To comment on National Instruments documentation, refer to the National Instruments Web site at the info code
feedback.
ni.com/info and enter
© 2006 National Instruments Corporation. All rights reserved.

Important Information

Warranty

The NI 6232/6233 is warranted against defects in materials and workmanship for a period of three years 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 instruc tions 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 WARRANTIES, EXPRESS OR IMPLIED, AND SPECIFICALLY DISCLAIMS ANY WARRANTY OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS 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. NATIONAL INSTRUMENTS 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. This limitation of
the liability of National Instruments will 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.

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.
National Instruments respects the intellectual property of others, and we ask our users to do the same. NI software is protected by copyright and other intellectual property laws. Where NI software may be used to reproduce software or other materials belonging to others, you may use NI software only to reproduce materials that you may reproduce in accordance with the terms of any applicable license or other legal restriction.

Trademarks

National Instruments, NI, ni.com, and LabVIEW are trademarks of National Instruments Corporation. Refer to the Terms of Use section on
ni.com/legal for more information about National Instruments trademarks.
®
is the registered trademark of Apple Computer, Inc. Other product and company names mentioned herein are trademarks or trade names
FireWire of their respective companies.
Members of the National Instruments Alliance Partner Program are business entities independent from National Instruments and have no agency, partnership, or joint-venture relationship with National Instruments.

Patents

For patents covering National Instruments products, refer to the appropriate location: Help»Patents in your software, the patents.txt file on your CD, or
ni.com/patents.

WARNING REGARDING USE OF NATIONAL INSTRUMENTS PRODUCTS

(1) NATIONAL INSTRUMENTS PRODUCTS ARE NOT DESIGNED WITH COMPONENTS 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, RELIABILITY OF OPERATION OF THE 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 ON THE 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

Compliance with FCC/Canada Radio Frequency Interference Regulations
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 industrial-commercial locations only) or Class B (for use in residential or commercial locations). All National Instruments (NI) products are FCC Class A products.
Depending on where it is operated, this Class A 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.
All Class A products display a simple warning statement of one paragraph in length regarding interference and undesired operation. The FCC rules have restrictions regarding the locations where FCC Class A products can be operated.
Consult the FCC Web site at
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 marking 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 NI 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 is required to correct the interference at their own expense.
www.fcc.gov 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.
Compliance with EU Directives
Users in the European Union (EU) should refer to the Declaration of Conformity (DoC) for information* pertaining to the CE marking. Refer to the Declaration of Conformity (DoC) for this product for any additional regulatory compliance information. To obtain the DoC for this product, visit and click the appropriate link in the Certification column.
* The CE marking Declaration of Conformity contains important supplementary information and instructions for the user or
installer.
ni.com/certification, search by model number or product line,

Contents

About This Manual
Conventions ...................................................................................................................xv
Related Documentation..................................................................................................xvi
NI-DAQ........................................................................................................... xvi
NI-DAQmx for Linux......................................................................................xvii
NI-DAQmx Base.............................................................................................xvii
LabVIEW ........................................................................................................xvii
LabWindows™/CVI™....................................................................................xviii
Measurement Studio........................................................................................xviii
ANSI C without NI Application Software ......................................................xix
.NET Languages without NI Application Software ........................................xix
Device Documentation and Specifications...................................................... xix
Training Courses ............................................................................................. xix
Technical Support on the Web ........................................................................xix
Chapter 1 Getting Started
Installing NI-DAQmx ....................................................................................................1-1
Installing Other Software...............................................................................................1-1
Installing the Hardware..................................................................................................1-1
Device Pinouts ...............................................................................................................1-1
Device Specifications .................................................................................................... 1-2
Device Accessories and Cables .....................................................................................1-2
Chapter 2 DAQ System Overview
DAQ Hardware ..............................................................................................................2-1
DAQ-STC2......................................................................................................2-2
Calibration Circuitry........................................................................................2-3
Sensors and Transducers................................................................................................2-3
Cables and Accessories..................................................................................................2-4
Custom Cabling ...............................................................................................2-4
Programming Devices in Software ................................................................................2-5
© National Instruments Corporation vii NI 6232/6233 User Manual
Contents
Chapter 3 Connector Information
I/O Connector Signal Descriptions................................................................................ 3-1
RTSI Connector Pinout ................................................................................................. 3-3
Chapter 4 Analog Input
Analog Input Circuitry .................................................................................................. 4-1
Analog Input Range....................................................................................................... 4-2
Analog Input Ground-Reference Settings ..................................................................... 4-3
Configuring AI Ground-Reference Settings in Software .................4-5
Multichannel Scanning Considerations ......................................................................... 4-6
Use Low Impedance Sources.......................................................................... 4-6
Use Short High-Quality Cabling..................................................................... 4-7
Carefully Choose the Channel Scanning Order ..............................................4-7
Avoid Switching from a Large to a Small Input Range ................... 4-7
Insert Grounded Channel between Signal Channels ........................ 4-8
Minimize Voltage Step between Adjacent Channels ....................... 4-8
Avoid Scanning Faster Than Necessary ......................................................... 4-9
Example 1 ......................................................................................... 4-9
Example 2 ......................................................................................... 4-9
Analog Input Data Acquisition Methods....................................................................... 4-9
Software-Timed Acquisitions ......................................................................... 4-9
Hardware-Timed Acquisitions........................................................................ 4-10
Buffered ............................................................................................ 4-10
Non-Buffered.................................................................................... 4-11
Analog Input Triggering................................................................................................ 4-11
Connecting Analog Voltage Input Signals .................................................................... 4-11
Types of Signal Sources ................................................................................................ 4-12
Floating Signal Sources .................................................................................. 4-13
Ground-Referenced Signal Sources ................................................................ 4-13
Differential Connection Considerations.......................................................... 4-13
Differential Connections for Ground-Referenced Signal Sources.................. 4-14
Differential Input Biasing................................................................. 4-15
Differential Connections for Non-Referenced or Floating Signal Sources .... 4-15
Single-Ended Connection Considerations ...................................................... 4-16
Single-Ended Connections for Floating or
Grounded Signal Sources............................................................... 4-17
Field Wiring Considerations.......................................................................................... 4-18
Analog Input Timing Signals ........................................................................................ 4-19
AI Sample Clock Signal.................................................................................. 4-22
Using an Internal Source .................................................................. 4-23
NI 6232/6233 User Manual viii ni.com
Contents
Using an External Source..................................................................4-23
Routing AI Sample Clock Signal to an Output Terminal.................4-23
Other Timing Requirements..............................................................4-23
AI Sample Clock Timebase Signal..................................................................4-24
AI Convert Clock Signal .................................................................................4-25
Using an Internal Source...................................................................4-25
Using an External Source..................................................................4-26
Routing AI Convert Clock Signal to an Output Terminal ................4-26
Using a Delay from Sample Clock to Convert Clock.......................4-26
Other Timing Requirements..............................................................4-27
AI Convert Clock Timebase Signal.................................................................4-27
AI Hold Complete Event Signal...................................................................... 4-28
AI Start Trigger Signal .................................................................................... 4-28
Using a Digital Source ......................................................................4-28
Routing AI Start Trigger to an Output Terminal .............................. 4-29
AI Reference Trigger Signal ...........................................................................4-29
Using a Digital Source ......................................................................4-30
Routing AI Reference Trigger Signal to an Output Terminal ..........4-30
AI Pause Trigger Signal ..................................................................................4-30
Using a Digital Source ......................................................................4-31
Routing AI Pause Trigger Signal to an Output Terminal .................4-31
Getting Started with AI Applications in Software......................................................... 4-31
Chapter 5 Analog Output
Analog Output Circuitry ................................................................................................ 5-1
Minimizing Glitches on the Output Signal ....................................................................5-2
Analog Output Data Generation Methods .....................................................................5-2
Software-Timed Generations...........................................................................5-2
Hardware-Timed Generations .........................................................................5-3
Non-Buffered ....................................................................................5-3
Buffered ............................................................................................ 5-3
Analog Output Triggering ............................................................................................. 5-4
Connecting Analog Voltage Output Signals.................................................................. 5-4
Analog Output Timing Signals ......................................................................................5-5
AO Start Trigger Signal...................................................................................5-6
Using a Digital Source ......................................................................5-6
Routing AO Start Trigger Signal to an Output Terminal..................5-7
AO Pause Trigger Signal.................................................................................5-7
Using a Digital Source ......................................................................5-8
Routing AO Pause Trigger Signal to an Output Terminal................5-8
© National Instruments Corporation ix NI 6232/6233 User Manual
Contents
AO Sample Clock Signal ................................................................................ 5-8
Using an Internal Source .................................................................. 5-9
Using an External Source ................................................................. 5-9
Routing AO Sample Clock Signal to an Output Terminal ............... 5-9
Other Timing Requirements ............................................................. 5-9
AO Sample Clock Timebase Signal................................................................ 5-10
Getting Started with AO Applications in Software....................................................... 5-10
Chapter 6 Digital Input and Output
I/O Protection ................................................................................................................ 6-1
Programmable Power-Up States.................................................................................... 6-1
Connecting Digital I/O Signals ..................................................................................... 6-2
Logic Conventions......................................................................................................... 6-3
Getting Started with DIO Applications in Software...................................................... 6-4
Chapter 7 Counters
Counter Input Applications ........................................................................................... 7-3
Counting Edges ............................................................................................... 7-3
Single Point (On-Demand) Edge Counting ...................................... 7-3
Buffered (Sample Clock) Edge Counting......................................... 7-4
Non-Cumulative Buffered Edge Counting ....................................... 7-5
Controlling the Direction of Counting.............................................. 7-5
Pulse-Width Measurement.............................................................................. 7-6
Single Pulse-Width Measurement .................................................... 7-6
Buffered Pulse-Width Measurement ................................................ 7-7
Period Measurement ....................................................................................... 7-7
Single Period Measurement.............................................................. 7-8
Buffered Period Measurement.......................................................... 7-8
Semi-Period Measurement.............................................................................. 7-9
Single Semi-Period Measurement .................................................... 7-9
Buffered Semi-Period Measurement ................................................ 7-10
Frequency Measurement ................................................................................. 7-10
Method 1—Measure Low Frequency with One Counter ................. 7-10
Method 1b—Measure Low Frequency with
One Counter (Averaged)................................................................ 7-11
Method 2—Measure High Frequency with Two Counters .............. 7-12
Method 3—Measure Large Range of Frequencies Using
Two Counters................................................................................. 7-13
Choosing a Method for Measuring Frequency ................................. 7-14
NI 6232/6233 User Manual x ni.com
Contents
Position Measurement ..................................................................................... 7-16
Measurements Using Quadrature Encoders......................................7-16
Measurements Using Two Pulse Encoders.......................................7-18
Two-Signal Edge-Separation Measurement....................................................7-19
Single Two-Signal Edge-Separation Measurement ..........................7-19
Buffered Two-Signal Edge-Separation Measurement ......................7-20
Counter Output Applications ......................................................................................... 7-21
Simple Pulse Generation .................................................................................7-21
Single Pulse Generation .................................................................... 7-21
Single Pulse Generation with Start Trigger ......................................7-21
Retriggerable Single Pulse Generation .............................................7-22
Pulse Train Generation ....................................................................................7-23
Continuous Pulse Train Generation ..................................................7-23
Frequency Generation .....................................................................................7-24
Using the Frequency Generator ........................................................7-24
Frequency Division ......................................................................................... 7-25
Pulse Generation for ETS................................................................................7-25
Counter Timing Signals.................................................................................................7-26
Counter n Source Signal..................................................................................7-27
Routing a Signal to Counter n Source...............................................7-27
Routing Counter n Source to an Output Terminal ............................ 7-28
Counter n Gate Signal ..................................................................................... 7-28
Routing a Signal to Counter n Gate ..................................................7-28
Routing Counter n Gate to an Output Terminal................................ 7-28
Counter n Aux Signal ......................................................................................7-28
Routing a Signal to Counter n Aux................................................... 7-29
Counter n A, Counter n B, and Counter n Z Signals.......................................7-29
Routing Signals to A, B, and Z Counter Inputs ................................ 7-29
Routing Counter n Z Signal to an Output Terminal.......................... 7-29
Counter n Up_Down Signal ............................................................................7-29
Counter n HW Arm Signal ..............................................................................7-30
Routing Signals to Counter n HW Arm Input...................................7-30
Counter n Internal Output and Counter n TC Signals .....................................7-30
Routing Counter n Internal Output to an Output Terminal...............7-31
Frequency Output Signal.................................................................................7-31
Routing Frequency Output to a Terminal .........................................7-31
Default Counter Terminals ............................................................................................7-31
Counter Triggering ........................................................................................................ 7-32
Arm Start Trigger ............................................................................................7-32
Start Trigger..................................................................................................... 7-32
Pause Trigger...................................................................................................7-33
Other Counter Features..................................................................................................7-33
Cascading Counters .........................................................................................7-33
Counter Filters .................................................................................................7-33
© National Instruments Corporation xi NI 6232/6233 User Manual
Contents
Chapter 8 PFI
Using PFI Terminals as Timing Input Signals .............................................................. 8-2
Exporting Timing Output Signals Using PFI Terminals............................................... 8-3
Using PFI Terminals as Static Digital Inputs and Outputs............................................ 8-3
Connecting PFI Input Signals........................................................................................ 8-3
PFI Filters ...................................................................................................................... 8-4
I/O Protection ................................................................................................................ 8-5
Programmable Power-Up States.................................................................................... 8-6
Connecting Digital I/O Signals ..................................................................................... 8-6
Prescaling ........................................................................................................ 7-34
Duplicate Count Prevention ............................................................................ 7-35
Duplicate Count Prevention Example .............................................. 7-35
Duplicate Count Example.................................................................7-36
Example Application That Prevents Duplicate Count...................... 7-37
When To Use Duplicate Count Prevention ...................................... 7-38
Enabling Duplicate Count Prevention in NI-DAQmx...................... 7-38
Synchronization Modes................................................................................... 7-38
80 MHz Source Mode....................................................................... 7-39
Other Internal Source Mode ............................................................. 7-40
External Source Mode ...................................................................... 7-40
Chapter 9 Isolation and Digital Isolators
Digital Isolation............................................................................................................. 9-2
Benefits of an Isolated DAQ Device ............................................................................. 9-2
Chapter 10 Digital Routing and Clock Generation
Clock Routing................................................................................................................ 10-1
80 MHz Timebase........................................................................................... 10-2
20 MHz Timebase........................................................................................... 10-2
100 kHz Timebase .......................................................................................... 10-2
External Reference Clock ...............................................................................10-2
10 MHz Reference Clock................................................................................ 10-3
Synchronizing Multiple Devices ................................................................................... 10-3
Real-Time System Integration Bus (RTSI) ................................................................... 10-3
RTSI Connector Pinout................................................................................... 10-4
Using RTSI as Outputs ................................................................................... 10-5
NI 6232/6233 User Manual xii ni.com
PXI Clock and Trigger Signals......................................................................................10-8
Chapter 11 Bus Interface
DMA Controllers ...........................................................................................................11-1
PXI Considerations ........................................................................................................11-2
Data Transfer Methods ..................................................................................................11-3
Contents
Using RTSI Terminals as Timing Input Signals .............................................10-6
RTSI Filters ..................................................................................................... 10-6
PXI_CLK10.....................................................................................................10-8
PXI Triggers ....................................................................................................10-8
PXI_STAR Trigger ......................................................................................... 10-8
PXI_STAR Filters ...........................................................................................10-9
PXI Clock and Trigger Signals........................................................................11-2
PXI and PXI Express.......................................................................................11-2
Using PXI with CompactPCI ..........................................................................11-3
Direct Memory Access (DMA) .......................................................................11-3
Interrupt Request (IRQ)...................................................................................11-4
Programmed I/O .............................................................................................. 11-4
Changing Data Transfer Methods between DMA and IRQ ............................11-4
Chapter 12 Triggering
Triggering with a Digital Source ...................................................................................12-1
Appendix A Device-Specific Information
Appendix B Troubleshooting
Appendix C Technical Support and Professional Services
Glossary
Index
© National Instruments Corporation xiii NI 6232/6233 User Manual

About This Manual

The NI 6232/6233 User Manual contains information about using the National Instruments 6232/6233 M Series data acquisition (DAQ) devices with NI-DAQmx 8.0 and later. NI 6232/6233 devices feature eight analog input (AI) channels, four analog output (AO) channels, two counters, six lines of digital input (DI), and four lines of digital output (DO).

Conventions

The following conventions are used in this manual:
<> Angle brackets that contain numbers separated by an ellipsis represent
a range of values associated with a bit or signal name—for example, AO <3..0>.
[ ] Square brackets enclose optional items—for example, [
» 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.
This icon denotes a caution, which advises you of precautions to take to avoid injury, data loss, or a system crash. When this symbol is marked on a product, refer to the NI 6232/6233 Specifcations for information about precautions to take.
When symbol is marked on a product, it denotes a warning advising you to take precautions to avoid electrical shock.
When symbol is marked on a product, it denotes a component that may be hot. Touching this component may result in bodily injury.
bold Bold text denotes items that you must select or click in the software, such
as menu items and dialog box options. Bold text also denotes parameter names.
italic Italic text denotes variables, emphasis, a cross-reference, or an introduction
to a key concept. Italic text also denotes text that is a placeholder for a word or value that you must supply.
response].
© National Instruments Corporation xv NI 6232/6233 User Manual
About This Manual
monospace 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.

Related Documentation

Each application software package and driver includes information about writing applications for taking measurements and controlling measurement devices. The following references to documents assume you have NI-DAQmx 8.0 or later, and where applicable, version 7.0 or later of the NI application software.

NI-DAQ

The DAQ Getting Started Guide describes how to install your NI-DAQmx for Windows software, your NI-DAQmx-supported DAQ device, and how to confirm that your device is operating properly. Select Start»All
Programs»National Instruments»NI-DAQ»DAQ Getting Started Guide.
The NI-DAQ Readme lists which devices are supported by this version of NI-DAQ. Select Start»All Programs»National Instruments»NI-DAQ» NI-DAQ Readme.
The NI-DAQmx Help contains general information about measurement concepts, key NI-DAQmx concepts, and common applications that are applicable to all programming environments. Select Start»All Programs» National Instruments»NI-DAQ»NI-DAQmx Help.

NI-DAQmx for Linux

The DAQ Getting Started Guide describes how to install your NI-DAQmx-supported DAQ device and confirm that your device is operating properly.
The NI-DAQ Readme for Linux lists supported devices and includes software installation instructions, frequently asked questions, and known issues.
The C Function Reference Help describes functions and attributes.
NI 6232/6233 User Manual xvi ni.com
About This Manual
The NI-DAQmx for Linux Configuration Guide provides configuration instructions, templates, and instructions for using test panels.
Note All NI-DAQmx documentation for Linux is installed at
natinst/nidaqmx/docs

NI-DAQmx Base

LabVIEW

/usr/local/
.
The NI-DAQmx Base Getting Started Guide describes how to install your NI-DAQmx Base software, your NI-DAQmx Base-supported DAQ device, and how to confirm that your device is operating properly. Select Start»All
Programs»National Instruments»NI-DAQmx Base»Documentation» Getting Started Guide.
The NI-DAQmx Base Readme lists which devices are supported by this version of NI-DAQmx Base. Select Start»All Programs»National Instruments»NI-DAQmx Base»Documentation»Readme.
The NI-DAQmx Base VI Reference Help contains VI reference and general information about measurement concepts. In LabVIEW, select Help» NI-DAQmx Base VI Reference Help.
The NI-DAQmx Base C Reference Help contains C reference and general information about measurement concepts. Select Start»All Programs»
National Instruments»NI-DAQmx Base»Documentation»C Function Reference Manual.
If you are a new user, use the Getting Started with LabVIEW manual to familiarize yourself with the LabVIEW graphical programming environment and the basic LabVIEW features you use to build data acquisition and instrument control applications. Open the Getting Started
with LabVIEW manual by selecting Start»All Programs»National Instruments»LabVIEW»LabVIEW Manuals or by navigating to the
labview\manuals directory and opening LV_Getting_Started.pdf.
Use the LabVIEW Help, available by selecting Help»Search the LabVIEW Help in LabVIEW, to access information about LabVIEW
programming concepts, step-by-step instructions for using LabVIEW, and reference information about LabVIEW VIs, functions, palettes, menus, and tools. Refer to the following locations on the Contents tab of the LabVIEW Help for information about NI-DAQmx:
© National Instruments Corporation xvii NI 6232/6233 User Manual
About This Manual
Getting Started»Getting Started with DAQ—Includes overview
information and a tutorial to learn how to take an NI-DAQmx measurement in LabVIEW using the DAQ Assistant.
VI and Function Reference»Measurement I/O VIs and Functions—Describes the LabVIEW NI-DAQmx VIs and properties.
Taking Measurements—Contains the conceptual and how-to information you need to acquire and analyze measurement data in LabVIEW, including common measurements, measurement fundamentals, NI-DAQmx key concepts, and device considerations.
LabWindows™/CVI
The Data Acquisition book of the LabWindows/CVI Help contains measurement concepts for NI-DAQmx. This book also contains Taking an NI-DAQmx Measurement in LabWindows/CVI, which includes step-by-step instructions about creating a measurement task using the DAQ Assistant. In LabWindows/CVI, select Help»Contents, then select Using LabWindows/CVI»Data Acquisition.
The NI-DAQmx Library book of the LabWindows/CVI Help contains API overviews and function reference for NI-DAQmx. Select Library Reference»NI-DAQmx Library in the LabWindows/CVI Help.

Measurement Studio

The NI Measurement Studio Help contains function reference, measurement concepts, and a walkthrough for using the Measurement Studio NI-DAQmx .NET and Visual C++ class libraries. This help collection is integrated into the Microsoft Visual Studio .NET documentation. In Visual Studio .NET, select Help»Contents.
Note You must have Visual Studio .NET installed to view the NI Measurement Studio Help.

ANSI C without NI Application Software

The NI-DAQmx Help contains API overviews and general information about measurement concepts. Select Start»All Programs»National Instruments»NI-DAQmx Help.

.NET Languages without NI Application Software

The NI Measurement Studio Help contains function reference and measurement concepts for using the Measurement Studio NI-DAQmx
NI 6232/6233 User Manual xviii ni.com
.NET and Visual C++ class libraries. This help collection is integrated into the Visual Studio .NET documentation. In Visual Studio .NET, select Help»Contents.
Note You must have Visual Studio .NET installed to view the NI Measurement Studio Help.

Device Documentation and Specifications

The NI 6232/6233 Specifications contains all specifications for NI 6232/6233 M Series devices.
NI-DAQ 7.0 and later includes the Device Document Browser, which contains online documentation for supported DAQ, SCXI, and switch devices, such as help files describing device pinouts, features, and operation, and PDF files of the printed device documents. You can find, view, and/or print the documents for each device using the Device Document Browser at any time by inserting the CD. After installing the Device Document Browser, device documents are accessible from Start»
All Programs»National Instruments»NI-DAQ»Browse Device Documentation.
About This Manual

Training Courses

If you need more help getting started developing an application with NI products, NI offers training courses. To enroll in a course or obtain a detailed course outline, refer to
ni.com/training.

Technical Support on the Web

For additional support, refer to ni.com/support or zone.ni.com.
Note You can download these documents at
DAQ specifications and some DAQ manuals are available as PDFs. You must have Adobe Acrobat Reader with Search and Accessibility 5.0.5 or later installed to view the PDFs. Refer to the Adobe Systems Incorporated Web site at National Instruments Product Manuals Library at updated documentation resources.
© National Instruments Corporation xix NI 6232/6233 User Manual
www.adobe.com to download Acrobat Reader. Refer to the
ni.com/manuals.
ni.com/manuals for
Getting Started
M Series NI 6232/6233 devices feature sixteen analog input (AI) channels, two analog output (AO) channels, two counters, six lines of digital input (DI), and four lines of digital output (DO). If you have not already installed your device, refer to the DAQ Getting Started Guide. For NI 6232/6233 device specifications, refer to the NI 6232/6233 Specifications on
ni.com/manuals.
Before installing your DAQ device, you must install the software you plan to use with the device.

Installing NI-DAQmx

The DAQ Getting Started Guide, which you can download at
ni.com/manuals, offers NI-DAQmx users step-by-step instructions for
installing software and hardware, configuring channels and tasks, and getting started developing an application.
1

Installing Other Software

If you are using other software, refer to the installation instructions that accompany your software.

Installing the Hardware

The DAQ Getting Started Guide contains non-software-specific information on how to install PCI and PXI devices, as well as accessories and cables.

Device Pinouts

Refer to Appendix A, Device-Specific Information, for the NI 6232/6233 device pinout.
© National Instruments Corporation 1-1 NI 6232/6233 User Manual
Chapter 1 Getting Started

Device Specifications

Refer to the NI 6232/6233 Specifications, available on the NI-DAQ Device Document Browser or on the NI 6232/6233 device.
ni.com/manuals, for more detailed information

Device Accessories and Cables

NI offers a variety of accessories and cables to use with your DAQ device. Refer to Appendix A, Device-Specific Information, or information.
ni.com for more
NI 6232/6233 User Manual 1-2 ni.com
DAQ System Overview
Figure 2-1 shows a typical DAQ system, which includes sensors, transducers, cables that connect the various devices to the accessories, the M Series device, programming software, and a PC. The following sections cover the components of a typical DAQ system.
2
Sensors and
Transducers

DAQ Hardware

Cables and
Accessories
DAQ hardware digitizes signals, performs D/A conversions to generate analog output signals, and measures and controls digital I/O signals. Figure 2-2 features the components of the NI 6232/6233 device.
DAQ
Hardware

Figure 2-1. Components of a Typical DAQ System

DAQ
Software
Personal
Computer
© National Instruments Corporation 2-1 NI 6232/6233 User Manual
Chapter 2 DAQ System Overview
Analog Input
Analog Output
I/O Connector
Counters
PFI/Static DI
AI GND
AO GND
P0.GND
A
Isolation
Barrier
A
Digital
A
Digital
Isolators
P0
Routing
and Clock
Generation
RTSI
Bus
Interface
Bus

DAQ-STC2

PFI/Static DO
P1.GND
P1

Figure 2-2. General NI 6232/6233 Block Diagram

The DAQ-STC2 implements a high-performance digital engine for NI 6232/6233 data acquisition hardware. Some key features of this engine include the following:
Flexible AI and AO sample and convert timing
Many triggering modes
Independent AI and AO FIFOs
Generation and routing of RTSI signals for multi-device synchronization
Generation and routing of internal and external timing signals
Two flexible 32-bit counter/timer modules with hardware gating
Static DIO signals
PLL for clock synchronization
PCI/PXI interface
Independent scatter-gather DMA controllers for all acquisition and generation functions
NI 6232/6233 User Manual 2-2 ni.com

Calibration Circuitry

The M Series analog inputs and outputs have calibration circuitry to correct gain and offset errors. You can calibrate the device to minimize AI and AO errors caused by time and temperature drift at run time. No external circuitry is necessary; an internal reference ensures high accuracy and stability over time and temperature changes.
Factory-calibration constants are permanently stored in an onboard EEPROM and cannot be modified. When you self-calibrate the device, software stores new constants in a user-modifiable section of the EEPROM. To return a device to its initial factory calibration settings, software can copy the factory-calibration constants to the user-modifiable section of the EEPROM. Refer to the NI-DAQmx Help or the LabVIEW 8.x Help for more information on using calibration constants.

Sensors and Transducers

Sensors can generate electrical signals to measure physical phenomena, such as temperature, force, sound, or light. Some commonly used sensors are strain gauges, thermocouples, thermistors, angular encoders, linear encoders, and resistance temperature detectors (RTDs).
Chapter 2 DAQ System Overview
To measure signals from these various transducers, you must convert them into a form that a DAQ device can accept. For example, the output voltage of most thermocouples is very small and susceptible to noise. Therefore, you may need to amplify or filter the thermocouple output before digitizing it, or use the smallest measurement range available within the DAQ device.
For more information about sensors, refer to the following documents.
For general information about sensors, visit
If you are using LabVIEW, refer to the LabVIEW Help by selecting
Help»Search the LabVIEW Help in LabVIEW, and then navigate to the Taking Measurements book on the Contents tab.
If you are using other application software, refer to Common Sensors in the NI-DAQmx Help, which can be accessed from Start»All Programs»National Instruments»NI-DAQ»NI-DAQmx Help.
© National Instruments Corporation 2-3 NI 6232/6233 User Manual
ni.com/sensors.
Chapter 2 DAQ System Overview

Cables and Accessories

NI offers a variety of products to use with NI 6232/6233 devices, including cables, connector blocks, and other accessories, as follows:
Cables and cable assemblies
Shielded
Unshielded ribbon
Screw terminal connector blocks, shielded and unshielded
RTSI bus cables

Custom Cabling

For more specific information about these products, refer to
Refer to the Custom Cabling section of this chapter, the Field Wiring
Considerations section of Chapter 4, Analog Input, and Appendix A, Device-Specific Information, for information on how to select accessories
for your M Series device.
NI offers cables and accessories for many applications. However, if you want to develop your own cable, the following kits can assist you:
TB-37F-37SC—37-pin solder cup terminals, shell with strain relief
TB-37F-37CP—37-pin crimp & poke terminals, shell with strain
relief
Also, adhere to the following guidelines for best results:
For AI signals, use shielded, twisted-pair wires for each AI pair of differential inputs. Connect the shield for each signal pair to the ground reference at the source.
Route the analog lines separately from the digital lines.
When using a cable shield, use separate shields for the analog and digital sections of the cable. Failure to do so results in noise coupling into the analog signals from transient digital signals.
ni.com.
For more information on the connectors used for DAQ devices, refer to the KnowledgeBase document, Specifications and Manufacturers for Board Mating Connectors, by going to
rdspmb.
NI 6232/6233 User Manual 2-4 ni.com
ni.com/info and entering the info code

Programming Devices in Software

National Instruments measurement devices are packaged with NI-DAQ driver software, an extensive library of functions and VIs you can call from your application software, such as LabVIEW or LabWindows/CVI, to program all the features of your NI measurement devices. Driver software has an application programming interface (API), which is a library of VIs, functions, classes, attributes, and properties for creating applications for your device.
NI-DAQ includes two NI-DAQ drivers, Traditional NI-DAQ (Legacy) and NI-DAQmx. M Series devices use the NI-DAQmx driver. Each driver has its own API, hardware configuration, and software configuration. Refer to the DAQ Getting Started Guide for more information about the two drivers.
NI-DAQmx includes a collection of programming examples to help you get started developing an application. You can modify example code and save it in an application. You can use examples to develop a new application or add example code to an existing application.
To locate LabVIEW and LabWindows/CVI examples, open the National Instruments Example Finder.
In LabVIEW, select Help»Find Examples.
In LabWindows/CVI, select Help»NI Example Finder.
Chapter 2 DAQ System Overview
Measurement Studio, Visual Basic, and ANSI C examples are located in the following directories:
NI-DAQmx examples for Measurement Studio-supported languages are in the following directories:
MeasurementStudio\VCNET\Examples\NIDaq
MeasurementStudio\DotNET\Examples\NIDaq
NI-DAQmx examples for ANSI C are in the
NI-DAQ\Examples\DAQmx ANSI C Dev directory
For additional examples, refer to
© National Instruments Corporation 2-5 NI 6232/6233 User Manual
zone.ni.com.
3
Connector Information
The I/O Connector Signal Descriptions and RTSI Connector Pinout sections contain information on M Series connectors. Refer to Appendix A, Device-Specific Information, for device I/O connector pinouts.

I/O Connector Signal Descriptions

Table 3-1 describes the signals found on the I/O connectors. Not all signals are available on all devices.

Table 3-1. I/O Connector Signals

Signal Name Reference Direction Description
AI GND Analog Input Ground—These terminals are the input bias
current return point. AI GND and AO GND are connected on the device.
Note: AI GND and AO GND are isolated from earth ground, chassis ground, P0.GND, and P1.GND.
AI <0..15> AI GND Input Analog Input Channels 0 to 15—For single-ended
measurements, each signal is an analog input voltage channel. In RSE mode, AI GND is the reference for these signals.
For differential measurements, AI 0 and AI 8 are the positive and negative inputs of differential analog input channel 0. Similarly, the following signal pairs also form differential input channels:
<AI1,AI9>, <AI2,AI10>, <AI3,AI11>, <AI4,AI12>, <AI5,AI13>, <AI6,AI14>, <AI7,AI15>
Also refer to the Analog Input Ground-Reference Settings section of Chapter 4, Analog Input.
Note: AI <0..15> are isolated from earth ground and chassis ground.
AO <0..1> AO GND Output Analog Output Channels 0 to 1—These terminals supply the
voltage output of AO channels 0 to 1.
Note: AO <0..1> are isolated from earth ground and chassis ground.
© National Instruments Corporation 3-1 NI 6232/6233 User Manual
Chapter 3 Connector Information
Table 3-1. I/O Connector Signals (Continued)
Signal Name Reference Direction Description
AO GND Analog Output Ground—AO GND is the reference for
AO <0..1>. AI GND and AO GND are connected on the device.
Note: AI GND and AO GND are isolated from earth ground, chassis ground, P0.GND, and P1.GND.
PFI <0..5>/P0.<0..5> P0.GND Input Programmable Function Interface or Static Digital Input
Channels 0 to 5—Each of these terminals can be individually configured as an input directional PFI terminal or a digital input terminal.
As an input, each input PFI terminal can be used to supply an external source for AI or AO timing signals or counter/timer inputs.
Note: PFI <0..5>/P0.<0..5> are isolated from earth ground, chassis ground, AI GND, AO GND, and P1.GND.
PFI <6..9>/P1.<0..3> P1.GND Output Programmable Function Interface or Static Digital
Output Channels 6 to 9—Each of these terminals can be individually configured as an output directional PFI terminal or a digital output terminal.
As a PFI output, you can route many different internal AI or AO timing signals to each PFI terminal. You also can route the counter/timer outputs to each PFI terminal.
Note: PFI <6..9>/P1.<0..3> are isolated from earth ground, chassis ground, AI GND, AO GND, and P0.GND.
NC No connect—Do not connect signals to these terminals.
P0.GND Digital Input Ground—P0.GND supplies the reference for
input PFI <0..5>/P0.<0..5>.
Note: P0.GND is isolated from earth ground, chassis ground, AI GND, AO GND, and P1.GND.
P1.GND Digital Output Ground—P1.GND supplies the reference for
P1.VCC Digital Output Power—P1.VCC supplies the power for
NI 6232/6233 User Manual 3-2 ni.com
output PFI <6..9>/P1.<0..3>.
Note: P1.GND is isolated from earth ground, chassis ground, AI GND, AO GND, and P0.GND.
digital output lines. The actual power consumed depends on the load connected between the digital output and P1.GND.

RTSI Connector Pinout

Refer to the RTSI Connector Pinout section of Chapter 10, Digital Routing
and Clock Generation, for information on the RTSI connector.
Chapter 3 Connector Information
© National Instruments Corporation 3-3 NI 6232/6233 User Manual
Analog Input
Figure 4-1 shows the analog input circuitry of NI 6232/6233 devices.
4
Isolation
Barrier
AI <0..n>
I/O Connector
AI GND
Mux
DIFF,
RSE,
or NRSE
AI Terminal
Configuration
Selection
NI-PGIA
Input Range
Selection

Analog Input Circuitry

I/O Connector
You can connect analog input signals to the M Series device through the I/O connector. The proper way to connect analog input signals depends on the analog input ground-reference settings, described in the Analog Input
Ground-Reference Settings section. Also refer to Appendix A, Device-Specific Information, for device I/O connector pinouts.
MUX
Each M Series device has one analog-to-digital converter (ADC). The multiplexers (MUX) route one AI channel at a time to the ADC through the NI-PGIA.
ADC

Figure 4-1. NI 6232/6233 Analog Input Circuitry

Digital
Isolators
AI FIFO
AI Data
© National Instruments Corporation 4-1 NI 6232/6233 User Manual
Chapter 4 Analog Input
Ground-Reference Settings
The analog input ground-reference settings circuitry selects between differential and referenced single-ended modes. Each AI channel can use a different mode.
Instrumentation Amplifier (NI-PGIA)
The NI programmable gain instrumentation amplifier (PGIA) is a measurement and instrument class amplifier that minimizes settling times for all input ranges. The NI-PGIA can amplify or attenuate an AI signal to ensure that you use the maximum resolution of the ADC.
M Series devices use the NI-PGIA to deliver high accuracy even when sampling multiple channels with small input ranges at fast rates. M Series devices can sample channels in any order at the maximum conversion rate, and you can individually program each channel in a sample with a different input range.
A/D Converter
The analog-to-digital converter (ADC) digitizes the AI signal by converting the analog voltage into a digital number.
Isolation Barrier and Digital Isolators
The digital isolators across the isolation barrier provide a ground break between the isolated analog front end and the earth/chassis/building ground.
AI FIFO
M Series devices can perform both single and multiple A/D conversions of a fixed or infinite number of samples. A large first-in-first-out (FIFO) buffer holds data during AI acquisitions to ensure that no data is lost. M Series devices can handle multiple A/D conversion operations with DMA, interrupts, or programmed I/O.

Analog Input Range

Input range refers to the set of input voltages that an analog input channel can digitize with the specified accuracy. The NI-PGIA amplifies or attenuates the AI signal depending on the input range. You can individually program the input range of each AI channel on your M Series device.
The input range affects the resolution of the M Series device for an AI channel. Resolution refers to the voltage of one ADC code. For example, a
NI 6232/6233 User Manual 4-2 ni.com
Chapter 4 Analog Input
16-bit ADC converts analog inputs into one of 65,536 (= 216) codes—that is, one of 65,536 possible digital values. These values are spread fairly evenly across the input range. So, for an input range of –10 V to 10 V, the voltage of each code of a 16-bit ADC is:
(10 V – (–10 V))
16
2
M Series devices use a calibration method that requires some codes (typically about 5% of the codes) to lie outside of the specified range. This calibration method improves absolute accuracy, but it increases the nominal resolution of input ranges by about 5% over what the formula shown above would indicate.
Choose an input range that matches the expected input range of your signal. A large input range can accommodate a large signal variation, but reduces the voltage resolution. Choosing a smaller input range improves the voltage resolution, but may result in the input signal going out of range.
For more information on programming these settings, refer to the NI-DAQmx Help or the LabVIEW 8.x Help.
Table 4-1 shows the input ranges and resolutions supported by the NI 6232/6233 device.

Table 4-1. Input Ranges for NI 6232/6233

Input Range
–10 V to 10 V 320 μV
= 305 mV
Nominal Resolution Assuming
5% Over Range
–5 V to 5 V 160 μV
–1 V to 1 V 32 μV
–200 mV to 200 mV 6.4 μV

Analog Input Ground-Reference Settings

NI 6232/6233 devices support the analog input ground-reference settings shown in Table 4-2.
© National Instruments Corporation 4-3 NI 6232/6233 User Manual
Loading...
+ 150 hidden pages