National Instruments USB-6210 User Manual

National Instruments USB-6210 User Manual

Bus-powered usb devices
Hide thumbs Also See for USB-6210:
Table of Contents

Advertisement

DAQ M Series
NI USB-621x User Manual
Bus-Powered M Series USB Devices
NI USB-621x User Manual
Français
Deutsch
ni.com/manuals
April 2009
371931F-01

Advertisement

Table of Contents
loading

Summary of Contents for National Instruments USB-6210

  • Page 1 DAQ M Series NI USB-621x User Manual Bus-Powered M Series USB Devices NI USB-621x User Manual Français Deutsch ni.com/manuals April 2009 371931F-01...
  • Page 2 Thailand 662 278 6777, Turkey 90 212 279 3031, 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 and enter ni.com/info the info code feedback ©...
  • Page 3 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.
  • Page 4: Table Of Contents

    USB Device Security Cable Slot ...................1-8 Chapter 2 DAQ System Overview DAQ Hardware ......................2-1 DAQ-STC2......................2-2 Calibration Circuitry..................2-2 Signal Conditioning .......................2-3 Sensors and Transducers .................2-3 Cables and Accessories....................2-4 USB-621x Mass Termination Custom Cabling..........2-4 Programming Devices in Software ................2-5 © National Instruments Corporation NI USB-621x User Manual...
  • Page 5 Contents Chapter 3 Connector and LED Information I/O Connector Signal Descriptions................3-1 +5 V Power........................3-3 +5 V Power as an Output ................3-3 +5 V Power as an Input................... 3-3 USB Chassis Ground..................... 3-4 USB Device Fuse Replacement..................3-4 PWR/ACT LED Indicator .....................
  • Page 6 Contents Getting Started with AI Applications in Software............4-22 Connecting Analog Input Signals on USB-6210/6211/6212 Devices......4-23 Connecting Floating Signal Sources ...............4-25 What Are Floating Signal Sources? ..........4-25 When to Use Differential Connections with Floating Signal Sources..............4-25 When to Use Referenced Single-Ended Connections with Floating Signal Sources..............4-25...
  • Page 7 Digital I/O on USB-6210/6211/6215/6218 Devices ............. 6-1 Static DIO on USB-6210/6211/6215/6218 Devices ........6-2 I/O Protection on USB-6210/6211/6215/6218 Devices........6-2 Increasing Current Drive on USB-6210/6211/6215/6218 Devices ....6-3 Connecting Digital I/O Signals on USB-6210/6211/6215/6218 Devices..6-3 Getting Started with DIO Applications in Software on USB-6210/6211/6215/6218 Devices ............
  • Page 8 Using the Frequency Generator ............8-25 Frequency Division ..................8-26 Pulse Generation for ETS................8-26 Counter Timing Signals ....................8-27 Counter n Source Signal..................8-28 Routing a Signal to Counter n Source..........8-28 Routing Counter n Source to an Output Terminal ......8-28 © National Instruments Corporation NI USB-621x User Manual...
  • Page 9 Contents Counter n Gate Signal ..................8-29 Routing a Signal to Counter n Gate..........8-29 Routing Counter n Gate to an Output Terminal ....... 8-29 Counter n Aux Signal..................8-29 Routing a Signal to Counter n Aux ..........8-29 Counter n A, Counter n B, and Counter n Z Signals ........8-30 Routing Signals to A, B, and Z Counter Inputs........
  • Page 10 Device-Specific Information USB-6210 ........................A-2 USB-6211/6215 ......................A-4 USB-6212/6216 Screw Terminal...................A-6 USB-6212/6216 Mass Termination ................A-8 USB-6212/6216 BNC ....................A-13 USB-6218 Screw Terminal....................A-19 USB-6218 BNC ......................A-21 Appendix B Troubleshooting Appendix C Technical Support and Professional Services © National Instruments Corporation NI USB-621x User Manual...
  • Page 11 Contents Glossary Index Device Pinouts Figure A-1. USB-6210 Pinout .................. A-2 Figure A-2. USB-6211/6215 Pinout ................. A-4 Figure A-3. USB-6212/6216 Screw Terminal Pinout ..........A-6 Figure A-4. USB-6212/6216 Mass Termination Pinout........... A-9 Figure A-5. USB-6212/6216 BNC Top Panel and Pinout........A-14 Figure A-13.
  • Page 12: About This Manual

    The NI USB-621x User Manual contains information about using the National Instruments USB-621x data acquisition (DAQ) devices with NI-DAQmx 8.9 and later. NI USB-6210, USB-6211, USB-6212, USB-6215, USB-6216, and USB-6218 devices feature up to 32 analog input (AI) channels, up to two analog output (AO) channels, two counters, and up to eight lines of digital input (DI) and up to eight lines of digital output (DO), or 32 bidirectional static DIO lines.
  • Page 13: Related Documentation

    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»NI-DAQmx for USB Devices Getting Started. The NI-DAQ Readme lists which devices are supported by this version of NI-DAQ.
  • Page 14 The NI-DAQmx Base Readme lists which devices are supported by this version of NI-DAQmx Base. In Windows, select Start»All Programs» National Instruments»NI-DAQmx Base»DAQmx Base Readme. The NI-DAQmx Base VI Reference Help contains VI reference and general information about measurement concepts. In LabVIEW, select Help»...
  • Page 15 About This Manual 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: •...
  • Page 16 Select Start»All Programs»National Instruments»NI-DAQmx Help. The NI-DAQmx C Reference Help describes the NI-DAQmx Library functions, which you can use with National Instruments data acquisition devices to develop instrumentation, acquisition, and control applications. Select Start»All Programs»National Instruments»NI-DAQ» NI-DAQmx C Reference Help.
  • Page 17 Device Documentation and Specifications The NI USB-621x Specifications contains all specifications for the USB-6210, USB-6211, USB-6212, USB-6215, USB-6216, and USB-6218 M Series devices. Documentation for supported devices and accessories, including PDF and help files describing device terminals, specifications, features, and operation are on the NI-DAQmx media that includes Device Documentation.
  • Page 18: Getting Started

    The NI-DAQmx for USB Devices Getting Started Guide contains non-software-specific information about how to install USB devices. Before installing your DAQ device, you must install the software you plan to use with the device. © National Instruments Corporation NI USB-621x User Manual...
  • Page 19: Device Self-Calibration

    Chapter 1 Getting Started Device Self-Calibration NI recommends that you self-calibrate your USB-621x device after installation and whenever the ambient temperature changes. Self-calibration should be performed after the device has warmed up for the recommended time period. Refer to the NI USB-621x Specifications to find your device warm-up time.
  • Page 20: Applying Signal Labels To The Usb-621X

    Figure 1-1. P/N 19XXXX REVX 6000 Terminal Number Label Differential Signal Name Label Single-Ended Signal Name Label User-Defined Custom Label Figure 1-1. USB-621x Screw Terminal Signal Labels © National Instruments Corporation NI USB-621x User Manual...
  • Page 21: Usb Cable Strain Relief

    Chapter 1 Getting Started USB Cable Strain Relief You can provide strain relief for the USB cable in the following ways: • Cable Strain Relief Groove Method— (USB-621x Screw Terminal/Mass Termination Devices) Press the USB cable into one of the two grooves on the underside of the USB-621x.
  • Page 22 You can provide cable management for signal wires to/from the screw terminals and BNC connectors on USB-621x BNC devices by threading a zip tie through the strain relief holes and tightening it around the signal wires and BNC cables, as shown in Figure 1-3. © National Instruments Corporation NI USB-621x User Manual...
  • Page 23: Mounting The Usb-621X

    Chapter 1 Getting Started Mounting the USB-621x You can use the USB-621x on a desktop or mount it to a standard DIN rail or a panel. Desktop Use You can use the USB-621x on a desktop. USB-621x Screw Terminal/Mass Termination devices have grooves on the underside that allow it to be stacked with other like-sized USB-621x devices, as shown in Figure 1-2.
  • Page 24: Panel Mounting

    Using the template, mark the bottom point and top point on the panel. (USB-621x Screw Terminal Devices) The points will be 171.45 mm (6.75 in.) from each other. The points will be 182.56 mm (USB-621x Mass Termination Devices) (7.188 in.) from each other. © National Instruments Corporation NI USB-621x User Manual...
  • Page 25: Usb Device Security Cable Slot

    Chapter 1 Getting Started Remove the USB cable from the connector on the USB-621x. Screw a #8 or M4 screw into the bottom point on the panel. Set the USB-621x on the screw by fitting it into the bottom screw notch on the underside of the USB-621x.
  • Page 26: Daq System Overview

    Devices Only) Devices Only) Figure 2-1. Components of a Typical DAQ System DAQ Hardware DAQ hardware digitizes signals, performs D/A conversions to generate analog output signals, and measures and controls digital I/O signals. © National Instruments Corporation NI USB-621x User Manual...
  • Page 27: Daq-Stc2

    Chapter 2 DAQ System Overview Figure 2-2 features components common to all USB-621x devices. Isolation Barrier Analog Input (USB-6215/ 6216/6218 devices only) Analog Output Digital Routing Digital Digital I/O and Clock Isolators Interface Generation Counters Figure 2-2. USB-621x Block Diagram DAQ-STC2 The DAQ-STC2 implements a high-performance digital engine for M Series data acquisition hardware.
  • Page 28: Signal Conditioning

    • 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. © National Instruments Corporation NI USB-621x User Manual...
  • Page 29: Cables And Accessories

    Chapter 2 DAQ System Overview • If you are using other application software, refer to Common Sensors in the NI-DAQmx Help or the LabVIEW Help in version 8.0 or later. Cables and Accessories Cable and accessory options for USB-621x devices are as follows: •...
  • Page 30: Programming Devices In Software

    Chapter 2 DAQ System Overview 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...
  • Page 31: Connector And Led Information

    <AI 20, AI 28>, <AI 21, AI 29>, <AI 22, AI 30>, <AI 23, AI 31> AI SENSE — Input Analog Input Sense—In NRSE mode, the reference for each AI <0..31> signal is AI SENSE. © National Instruments Corporation NI USB-621x User Manual...
  • Page 32 D GND Input or +5 V Power—These terminals provide a +5 V power source or Output can be used to externally power the digital outputs. (USB-6210/6211/6215/6218 Devices) Programmable PFI <0..3>, D GND Input PFI <8..11>/P0.<0..7> Function Interface or Static Digital Input Channels 0 to 7—Each PFI terminal can be used to supply an...
  • Page 33: +5 V Power

    Chapter 3 Connector and LED Information Table 3-1. I/O Connector Signals (Continued) Signal Name Reference Direction Description (USB-621x BNC Devices) User-Defined Channel—The USER USER — — BNC connector allows you to use a BNC connector for a digital or timing I/O signal of your choice. The USER BNC connector is internally routed to the USER screw terminal.
  • Page 34: Usb Chassis Ground

    Remove the USB cable and any I/O signal wires from the device. Remove the four Phillips screws on the bottom of the device to remove the device top. You may have to remove the rubber feet. © National Instruments Corporation NI USB-621x User Manual...
  • Page 35 Chapter 3 Connector and LED Information Replace the broken fuse in the socket. Figure 3-2 shows the fuse location. 0.75A,125V Fuse, Socketed Figure 3-2. USB-621x Mass Termination Fuse Location Replace the device top and reattach with the screws. Unscrewing and reinstalling the thread-forming screws over time will produce a Note compromised connection between the device top and bottom.
  • Page 36: Pwr/Act Led Indicator

    Operating normally. Connected to USB Hi-Speed port. Refer to the NI USB-621x Specifications for more information. Double-blink Connected to USB Full-Speed port. Device performance might be affected. Refer to the NI USB-621x Specifications for more information. © National Instruments Corporation NI USB-621x User Manual...
  • Page 37: Analog Input

    ADC through the NI-PGIA. • AI Ground-Reference Settings—The analog input ground-reference settings circuitry selects between differential (DIFF), referenced single-ended (RSE), and non-referenced single-ended (NRSE) input modes. Each AI channel can use a different mode. © National Instruments Corporation NI USB-621x User Manual...
  • Page 38: Analog Input Range

    Chapter 4 Analog Input • NI-PGIA—The NI programmable gain instrumentation amplifier (NI-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.
  • Page 39: Analog Input Ground-Reference Settings

    AI signals to the USB-621x device. For more information, refer to one of the following sections depending on your device: • Connecting Analog Input Signals on USB-6210/6211/6212 Devices • Connecting Analog Input Signals on USB-6215/6216/6218 Devices Ground-reference settings are programmed on a per-channel basis.
  • Page 40 Chapter 4 Analog Input with this amplified voltage. The amount of amplification (the gain) is determined by the analog input range, as shown in Figure 4-2. Instrumentation Amplifier PGIA Measured in– Voltage – ] × Gain = [V – V in–...
  • Page 41: Configuring Ai Ground-Reference Settings In Software

    ADC. The NI USB-621x Specifications lists settling time. USB-621x devices are designed to have fast settling times. However, several factors can increase the settling time which decreases the accuracy © National Instruments Corporation NI USB-621x User Manual...
  • Page 42 The capacitance of the cable also can increase the settling time. National Instruments recommends using individually shielded, twisted-pair wires that are 2 m or less to connect AI signals to the device. Refer to the...
  • Page 43 –4 V and 0 V. Scanning channels in the order 0, 2, 4, 1, 3, 5 produces more accurate results than scanning channels in the order 0, 1, 2, 3, 4, 5. © National Instruments Corporation NI USB-621x User Manual...
  • Page 44: Analog Input Data Acquisition Methods

    Chapter 4 Analog Input • Avoid Scanning Faster Than Necessary—Designing your system to scan at slower speeds gives the NI-PGIA more time to settle to a more accurate level. Consider the following examples: – Example 1—Averaging many AI samples can increase the accuracy of the reading by decreasing noise effects.
  • Page 45 PC buffer fast enough to keep up with the data transfer, the buffer could reach an overflow condition, causing an error to be generated. © National Instruments Corporation NI USB-621x User Manual...
  • Page 46: Analog Input Digital Triggering

    Chapter 4 Analog Input Analog Input Digital Triggering Analog input supports three different triggering actions: • Start trigger • Reference trigger • Pause trigger Refer to the AI Start Trigger Signal, AI Reference Trigger Signal, and AI Pause Trigger Signal sections for information about these triggers.
  • Page 47: Analog Input Timing Signals

    USB-621x devices use AI Sample Clock (ai/SampleClock) and AI Convert Clock (ai/ConvertClock) to perform interval sampling. As Figure 4-5 shows, AI Sample Clock controls the sample period, which is determined by the following equation: 1/Sample Period = Sample Rate © National Instruments Corporation 4-11 NI USB-621x User Manual...
  • Page 48 Chapter 4 Analog Input Channel 0 Channel 1 Convert Period Sample Period Figure 4-5. Interval Sampling AI Convert Clock controls the Convert Period, which is determined by the following equation: 1/Convert Period = Convert Rate The sampling rate is the fastest you can acquire data on the device and still achieve Note accurate results.
  • Page 49 AI Convert Clock Signal • AI Convert Clock Timebase Signal • AI Hold Complete Event Signal • AI Start Trigger Signal • AI Reference Trigger Signal • AI Pause Trigger Signal © National Instruments Corporation 4-13 NI USB-621x User Manual...
  • Page 50: Ai Sample Clock Signal

    Chapter 4 Analog Input AI Sample Clock Signal Use the AI Sample Clock (ai/SampleClock) signal to initiate a set of measurements. Your USB-621x device samples the AI signals of every channel in the task once for every AI Sample Clock. A measurement acquisition consists of one or more samples.
  • Page 51: Ai Sample Clock Timebase Signal

    AI Sample Clock Timebase is divided down to provide one of the possible sources for AI Sample Clock. You can configure the polarity selection for AI Sample Clock Timebase as either rising or falling edge. © National Instruments Corporation 4-15 NI USB-621x User Manual...
  • Page 52: Ai Convert Clock Signal

    Chapter 4 Analog Input AI Convert Clock Signal Use the AI Convert Clock (ai/ConvertClock) signal to initiate a single A/D conversion on a single channel. A sample (controlled by the AI Sample Clock) consists of one or more conversions. You can specify either an internal or external signal as the source of AI Convert Clock.
  • Page 53: Using A Delay From Sample Clock To Convert Clock

    4-13 show timing sequences for a four-channel acquisition (using AI channels 0, 1, 2, and 3) and demonstrate proper and improper sequencing of AI Sample Clock and AI Convert Clock. © National Instruments Corporation 4-17 NI USB-621x User Manual...
  • Page 54 Chapter 4 Analog Input AI Sample Clock AI Convert Clock Channel Measured 1 2 3 1 2 3 1 2 3 Sample #1 Sample #2 Sample #3 Figure 4-10. AI Sample Clock Too Fast For AI Convert Clock; AI Sample Clock Pulses Are Gated Off AI Sample Clock AI Convert Clock 1 2 3...
  • Page 55: Ai Convert Clock Timebase Signal

    The polarity of AI Hold Complete Event is software-selectable, but is typically configured so that a low-to-high leading edge can clock external AI multiplexers indicating when the input signal has been sampled and can be removed. © National Instruments Corporation 4-19 NI USB-621x User Manual...
  • Page 56: Ai Start Trigger Signal

    Using a Digital Source To use AI Start Trigger with a digital source, specify a source and an edge. The source can be any of the following signals: • PFI <0..3> (USB-6210/6211/6215 Devices) • (USB-6212/6216 Devices) PFI <0..15> • PFI <0..3>, PFI <8..11>...
  • Page 57: Ai Reference Trigger Signal

    Figure 4-15 shows the final buffer. Reference Trigger Pretrigger Samples Posttrigger Samples Complete Buffer Figure 4-15. Reference Trigger Final Buffer © National Instruments Corporation 4-21 NI USB-621x User Manual...
  • Page 58: Using A Digital Source

    Chapter 4 Analog Input Using a Digital Source To use AI Reference Trigger with a digital source, specify a source and an edge. The source can be any input PFI signal. The source also can be one of several internal signals on your DAQ device. Refer to Device Routing in MAX in the NI-DAQmx Help or the LabVIEW Help in version 8.0 or later for more information.
  • Page 59: Connecting Analog Input Signals On Usb-6210/6211/6212 Devices

    NI-DAQmx Help or the LabVIEW Help in version 8.0 or later. Connecting Analog Input Signals on USB-6210/6211/6212 Devices Table 4-2 summarizes the recommended input configuration for both types of signal sources on USB-6210/6211/6212 devices. © National Instruments Corporation 4-23 NI USB-621x User Manual...
  • Page 60 Chapter 4 Analog Input Table 4-2. USB-6210/6211/6212 Analog Input Configuration Floating Signal Sources (Not Connected to Ground-Referenced † Building Ground) Signal Sources Examples: Example: • Ungrounded thermocouples • Plug-in instruments with non-isolated outputs • Signal conditioning with isolated outputs AI Ground-Reference Setting •...
  • Page 61: Connecting Floating Signal Sources

    • The input signal is high-level (greater than 1 V). • The leads connecting the signal to the device are less than 3 m (10 ft). © National Instruments Corporation 4-25 NI USB-621x User Manual...
  • Page 62: When To Use Non-Referenced Single-Ended Connections With Floating Signal Sources

    Chapter 4 Analog Input Differential input connections are recommended for greater signal integrity for any input signal that does not meet the preceding conditions. In the single-ended modes, more electrostatic and magnetic noise couples into the signal connections than in differential configurations. The coupling is the result of differences in the signal path.
  • Page 63: Using Differential Connections For Floating Signal Sources

    This configuration does not load down the source (other than the very high input impedance of the NI-PGIA). © National Instruments Corporation 4-27 NI USB-621x User Manual...
  • Page 64 You can fully balance the signal path by connecting another resistor of the same value between the positive input and AI GND on the USB-6210/6211/6212 device, as shown in Figure 4-18. This fully balanced configuration offers slightly better noise rejection, but has the disadvantage of loading the source down with the series combination (sum) of the two resistors.
  • Page 65 Input Multiplexers AI SENSE AI GND I/O Connector USB-6210/6211/6212 Device Configured in Differential Mode Figure 4-18. Differential Connections for Floating Signal Sources with Balanced Bias Resistors Both inputs of the NI-PGIA require a DC path to ground in order for the NI-PGIA to work.
  • Page 66: Using Non-Referenced Single-Ended Connections For Floating Signal Sources

    Chapter 4 Analog Input AC Coupling AC-Coupled Floating Signal – Source AI– AI SENSE AI GND Figure 4-19. Differential Connections for AC Coupled Floating Sources with Balanced Bias Resistors Using Non-Referenced Single-Ended Connections for Floating Signal Sources It is important to connect the negative lead of a floating signals source to AI GND (either directly or through a resistor).
  • Page 67: Using Referenced Single-Ended Connections For Floating Signal Sources

    DAQ Assistant. Using Referenced Single-Ended Connections for Floating Signal Sources Figure 4-21 shows how to connect a floating signal source to the USB-6210/6211/6212 device configured for referenced single-ended mode. AI <0..n> Programmable Gain Instrumentation...
  • Page 68: When To Use Differential Connections With Ground-Referenced Signal Sources

    Chapter 4 Analog Input The difference in ground potential between two instruments connected to the same building power system is typically between 1 and 100 mV, but the difference can be much higher if power distribution circuits are improperly connected. If a grounded signal source is incorrectly measured, this difference can appear as measurement error.
  • Page 69: When To Use Referenced Single-Ended Connections With Ground-Referenced Signal Sources

    As shown in the bottom-rightmost cell of Table 4-2, there can be a potential difference between AI GND and the ground of the sensor. In referenced single-ended mode, this ground loop causes measurement errors. © National Instruments Corporation 4-33 NI USB-621x User Manual...
  • Page 70: Using Differential Connections For Ground-Referenced Signal Sources

    Chapter 4 Analog Input Using Differential Connections for Ground-Referenced Signal Sources Figure 4-22 shows how to connect a ground-referenced signal source to the USB-6210/6211/6212 device configured in differential mode. AI + Ground- Referenced Instrumentation Signal Amplifier – Source PGIA AI –...
  • Page 71: Using Non-Referenced Single-Ended Connections For Ground-Referenced Signal Sources

    Chapter 4 Analog Input Using Non-Referenced Single-Ended Connections for Ground-Referenced Signal Sources Figure 4-23 shows how to connect ground-reference signal sources to the USB-6210/6211/6212 device in non-referenced single-ended mode. I/O Connector AI <0..15> or AI <16..n> Instrumentation Ground- Amplifier Referenced Signal –...
  • Page 72: Connecting Analog Input Signals On Usb-6215/6216/6218 Devices

    Chapter 4 Analog Input Using the DAQ Assistant, you can configure the channels for referenced single-ended or non-referenced single-ended input modes. Refer to the Configuring AI Ground-Reference Settings in Software section for more information about the DAQ Assistant. Connecting Analog Input Signals on USB-6215/6216/6218 Devices You can connect the USB-6215/6216/6218 directly to a variety of devices and other signal sources.
  • Page 73: Taking Referenced Single-Ended Measurements

    If you leave the AI GND pin unconnected, the signals float outside the working input Note range of the USB-6215/6216/6218. This can result in unreliable measurements because you cannot ensure that the input signal is within 10 V of AI GND. © National Instruments Corporation 4-37 NI USB-621x User Manual...
  • Page 74: Taking Non-Referenced Single-Ended Measurements

    Chapter 4 Analog Input AI 1 PGIA AI 2 AI GND USB-6215/6216/6218 Figure 4-25. Connecting to the USB-6215/6216/6218 in Referenced Single-Ended Mode In an referenced single-ended connection configuration, each input channel is measured with respect to AI GND. Taking Non-Referenced Single-Ended Measurements To reach a compromise between referenced single-ended and differential measurements, you can use an non-referenced single-ended measurement configuration.
  • Page 75: Analog Output

    It is a first-in-first-out (FIFO) memory buffer between the computer and the DACs. It allows you to download the points of a waveform to your USB-621x device without host computer interaction. © National Instruments Corporation NI USB-621x User Manual...
  • Page 76: Ao Range

    Chapter 5 Analog Output • AO Sample Clock—The AO Sample Clock signal reads a sample from the DAC FIFO and generates the AO voltage. Refer to the AO Sample Clock Signal section for more information. • Isolation Barrier and Digital Isolators—Refer to Chapter 9, Isolation and Digital Isolators on USB-6215/6216/6218 Devices, for more information.
  • Page 77 If the program does not write new data to the buffer at a fast enough rate to keep up with the generation, the buffer underflows and causes an error. © National Instruments Corporation NI USB-621x User Manual...
  • Page 78: Analog Output Digital Triggering

    Chapter 5 Analog Output Analog Output Digital Triggering Analog output supports two different triggering actions: • Start trigger • Pause trigger A digital trigger can initiate these actions on USB-621x devices. Refer to AO Start Trigger Signal AO Pause Trigger Signal sections for more information about these triggering actions.
  • Page 79: Analog Output Timing Signals

    To use AO Start Trigger, specify a source and an edge. The source can be one of the following signals: • A pulse initiated by host software • PFI <0..3> (USB-6211/6215 Devices) • (USB-6212/6216 Devices) PFI <0..15> © National Instruments Corporation NI USB-621x User Manual...
  • Page 80: Routing Ao Start Trigger To An Output Terminal

    Chapter 5 Analog Output • PFI <0..3>, PFI <8..11> (USB-6218 Devices) • AI Start Trigger (ai/StartTrigger) The source also can be one of several internal signals on your USB-621x device. Refer to Device Routing in MAX in the NI-DAQmx Help or the LabVIEW Help in version 8.0 or later for more information.
  • Page 81: Using A Digital Source

    LabVIEW Help in version 8.0 or later for more information. You also can specify whether the samples are paused when AO Pause Trigger is at a logic high or low level. © National Instruments Corporation NI USB-621x User Manual...
  • Page 82: Ao Sample Clock Signal

    Chapter 5 Analog Output AO Sample Clock Signal Use the AO Sample Clock (ao/SampleClock) signal to initiate AO samples. Each sample updates the outputs of all of the DACs. You can specify an internal or external source for AO Sample Clock. You also can specify whether the DAC update begins on the rising edge or falling edge of AO Sample Clock.
  • Page 83: Ao Sample Clock Timebase Signal

    If you want to use an external sample clock signal, but do not need to divide the signal, then you should use AO Sample Clock rather than AO Sample Clock Timebase. © National Instruments Corporation NI USB-621x User Manual...
  • Page 84: Getting Started With Ao Applications In Software

    Chapter 5 Analog Output Getting Started with AO Applications in Software You can use a USB-621x device in the following analog output applications: • Single-point (on-demand) generation • Finite generation • Continuous generation • Waveform generation You can perform these generations through programmed I/O or USB Signal Stream data transfer mechanisms.
  • Page 85: Digital I/O

    Refer to one of the following sections, depending on your device: • Digital I/O on USB-6210/6211/6215/6218 Devices— USB-6210/6211/6215/6218 devices have up to eight lines of digital inputs (DI) and up to eight lines of digital output (DO). • Digital I/O on USB-6212/6216 Devices—USB-6212/6216 devices...
  • Page 86: Static Dio On Usb-6210/6211/6215/6218 Devices

    I/O Protection 47 kΩ Pull-Down Figure 6-1. USB-6210/6211/6215/6218 Digital I/O Circuitry The DI terminals are named P0.<0..7> on the USB-6210/6211/6215/6218 device I/O connector. The DO terminals are named P1.<0..7> on the USB-6210/6211/6215/6218 device I/O connector. The voltage input and output levels and the current drive levels of the DIO lines are listed in the NI USB-621x Specifications.
  • Page 87: Increasing Current Drive On Usb-6210/6211/6215/6218 Devices

    Chapter 3, Connector and LED Information. Connecting Digital I/O Signals on USB-6210/6211/6215/6218 Devices The DI and DO signals, P0.<0..7> and P1.<0..7> are referenced to D GND. Digital input applications include receiving TTL signals and sensing external device states, such as the state of the switch shown in the figure.
  • Page 88: Getting Started With Dio Applications In Software On Usb-6210/6211/6215/6218 Devices

    Chapter 6 Digital I/O Getting Started with DIO Applications in Software on USB-6210/6211/6215/6218 Devices You can use the USB-6210/6211/6215/6218 device in the following digital I/O applications: • Static digital input • Static digital output For more information about programming digital I/O applications and triggers in Note software, refer to the NI-DAQmx Help or the LabVIEW Help in version 8.0 or later.
  • Page 89: Static Dio On Usb-6212/6216 Devices

    AI signals. • Treat the DAQ device as you would treat any static sensitive device. Always properly ground yourself and the equipment when handling the DAQ device or connecting to it. © National Instruments Corporation NI USB-621x User Manual...
  • Page 90: Programmable Power-Up States On Usb-6212/6216 Devices

    Chapter 6 Digital I/O Programmable Power-Up States on USB-6212/6216 Devices At system startup and reset, the hardware sets all PFI and DIO lines to high-impedance inputs by default. The DAQ device does not drive the signal high or low. Each line has a weak pull-down resistor connected to it, as described in the NI USB-621x Specifications.
  • Page 91: Getting Started With Dio Applications In Software On Usb-6212/6216 Devices

    Static digital input • Static digital output For more information about programming digital I/O applications and triggers in Note software, refer to the NI-DAQmx Help or the LabVIEW Help in version 8.0 or later. © National Instruments Corporation NI USB-621x User Manual...
  • Page 92: Pfi

    PFI line. Isolation Barrier Static DI (USB-6215/ 6216/6218 PFI/DIO Pin I/O Protection devices only) Digital To Input Timing Weak Pull-Down Isolators Signal Selectors Filters Figure 7-1. USB-621x PFI Input Circuitry © National Instruments Corporation NI USB-621x User Manual...
  • Page 93: Using Pfi Terminals As Timing Input Signals

    Chapter 7 Figure 7-2 shows the circuitry of an output PFI line. Isolation Barrier (USB-6215/ 6216/6218 devices only) Digital Timing Signals Isolators PFI/DIO Pin I/O Protection Static DO Buffer 47 kΩ Pull-Down Direction Control Figure 7-2. USB-621x PFI Output Circuitry When a terminal is used as a timing input or output signal, it is called PFI x.
  • Page 94: Exporting Timing Output Signals Using Pfi Terminals

    P0.x. Each output PFI line can be individually configured as a static digital output, called P1.x. On USB-6212/6216 devices, all PFI lines can be individually configured as static digital inputs or static digital outputs, called P0.x. © National Instruments Corporation NI USB-621x User Manual...
  • Page 95: Connecting Pfi Input Signals

    Chapter 7 Connecting PFI Input Signals All PFI input connections are referenced to D GND. Figure 7-3 shows this reference, and how to connect an external PFI 0 source and an external PFI 2 source to two PFI terminals. PFI 0 PFI 2 PFI 0 PFI 2...
  • Page 96 10.025 μs. Refer to the KnowledgeBase document, Digital Filtering with M Series, for more information about digital filters and counters. To access this KnowledgeBase, go to and enter the info code ni.com/info rddfms © National Instruments Corporation NI USB-621x User Manual...
  • Page 97: I/O Protection

    Chapter 7 I/O Protection Each DI, DO, and PFI signal is protected against overvoltage, undervoltage, and overcurrent conditions as well as ESD events. However, you should avoid these fault conditions by following these guidelines: • Do not connect a DO or PFI output lines to any external signal source, ground signal, or power supply.
  • Page 98 Counter 1 HW Arm Counter 1 A Counter 0 TC Counter 1 B (Counter 1 Up_Down) Counter 1 Z Input Selection Muxes Frequency Generator Frequency Output Timebase Freq Out Figure 8-1. USB-621x Counters © National Instruments Corporation NI USB-621x User Manual...
  • Page 99: Counters

    Chapter 8 Counters The counters have seven input signals, although in most applications only a few inputs are used. For information about connecting counter signals, refer to the Default Counter/Timer Pinouts section. Counter Input Applications Counting Edges In edge counting applications, the counter counts edges on its Source after the counter is armed.
  • Page 100: Buffered (Sample Clock) Edge Counting

    Gate. Counter Armed Sample Clock (Sample on Rising Edge) SOURCE Counter Value Buffer Figure 8-4. Buffered (Sample Clock) Edge Counting © National Instruments Corporation NI USB-621x User Manual...
  • Page 101: Controlling The Direction Of Counting

    Chapter 8 Counters Controlling the Direction of Counting In edge counting applications, the counter can count up or down. You can configure the counter to do the following: • Always count up • Always count down • Count up when the Counter n B input is high; count down when it is low For information about connecting counter signals, refer to the Default...
  • Page 102: Buffered Pulse-Width Measurement

    Note that if you are using an external signal as the Source, at least one Source pulse should occur between each active edge of the Gate signal. This condition ensures that correct values are returned by the counter. If this © National Instruments Corporation NI USB-621x User Manual...
  • Page 103: Period Measurement

    Chapter 8 Counters condition is not met, consider using duplicate count prevention, described in the Duplicate Count Prevention section. For information about connecting counter signals, refer to the Default Counter/Timer Pinouts section. Period Measurement In period measurements, the counter measures a period on its Gate input signal after the counter is armed.
  • Page 104: Buffered Period Measurement

    The rising edge of Gate indicates the end of the first period. The USB-621x device stores the counter value in the buffer. The rising edge of Gate indicates the end of the second period. The USB-621x device stores the counter value in the buffer. Figure 8-8. Buffered Period Measurement © National Instruments Corporation NI USB-621x User Manual...
  • Page 105: Semi-Period Measurement

    Chapter 8 Counters Note that if you are using an external signal as the Source, at least one Source pulse should occur between each active edge of the Gate signal. This condition ensures that correct values are returned by the counter. If this condition is not met, the counter returns a zero.
  • Page 106: Buffered Semi-Period Measurement

    Refer to the Duplicate Count Prevention section for more information. For information about connecting counter signals, refer to the Default Counter/Timer Pinouts section. © National Instruments Corporation NI USB-621x User Manual...
  • Page 107: Frequency Measurement

    Chapter 8 Counters Frequency Measurement You can use the counters to measure frequency in several different ways. You can choose one of the following methods depending on your application: • Method 1: Measure Low Frequency with One Counter—In this method, you measure one period of your signal using a known timebase.
  • Page 108 1 2 ...N 1..N … 1..N Source Buffered Period Measurement + …N × Average Period of F1 = K × Ft Frequency of F1 = + …N Figure 8-11. Method 1b © National Instruments Corporation 8-11 NI USB-621x User Manual...
  • Page 109 Chapter 8 Counters • Method 2: Measure High Frequency with Two Counters—In this method, you measure one pulse of a known width using your signal and derive the frequency of your signal from the result. This method is good for high frequency signals. In this method, you route a pulse of known duration (T) to the Gate of a counter.
  • Page 110 0.02 Hz, use a slower known timebase. Configure Counter 1 to perform a single pulse-width measurement. Suppose the result is that the pulse width is J periods of the F2 clock. © National Instruments Corporation 8-13 NI USB-621x User Manual...
  • Page 111: Choosing A Method For Measuring Frequency

    Chapter 8 Counters From Counter 0, the length of the pulse is N/F1. From Counter 1, the length of the same pulse is J/F2. Therefore, the frequency of F1 is given by F1 = F2 * (N/J). Choosing a Method for Measuring Frequency The best method to measure frequency depends on several factors including the expected frequency of the signal to measure, the desired accuracy, how many counters are available, and the measurement duration.
  • Page 112: Position Measurement

    X1, X2, and X4 angular encoders. Linear position can be measured with two-pulse encoders. You can choose either a single point (on-demand) position measurement or a buffered (sample clock) position measurement. You must arm a counter to begin position measurements. © National Instruments Corporation 8-15 NI USB-621x User Manual...
  • Page 113: Measurements Using Quadrature Encoders

    Chapter 8 Counters Measurements Using Quadrature Encoders The counters can perform measurements of quadrature encoders that use X1, X2, or X4 encoding. A quadrature encoder can have up to three channels—channels A, B, and Z. • X1 Encoding—When channel A leads channel B in a quadrature cycle, the counter increments.
  • Page 114 The reload occurs within one maximum timebase period after the reload phase becomes true. After the reload occurs, the counter continues to count as before. The figure illustrates channel Z reload with X4 decoding. © National Instruments Corporation 8-17 NI USB-621x User Manual...
  • Page 115: Measurements Using Two Pulse Encoders

    Chapter 8 Counters Ch A Ch B Ch Z Max Timebase Counter Value A = 0 B = 0 Z = 1 Figure 8-17. Channel Z Reload with X4 Decoding Measurements Using Two Pulse Encoders The counter supports two pulse encoders that have two channels—channels A and B.
  • Page 116: Two-Signal Edge-Separation Measurement

    Use this type of measurement to count events or measure the time that occurs between edges on two signals. This type of measurement is sometimes referred to as start/stop trigger measurement, second gate measurement, or A-to-B measurement. © National Instruments Corporation 8-19 NI USB-621x User Manual...
  • Page 117: Single Two-Signal Edge-Separation Measurement

    Chapter 8 Counters Single Two-Signal Edge-Separation Measurement With single two-signal edge-separation measurement, the counter counts the number of rising (or falling) edges on the Source input occurring between an active edge of the Gate signal and an active edge of the Aux signal.
  • Page 118: Counter Output Applications

    You can specify a pulse width. The pulse width is also measured in terms of a number of active edges of the Source input. You also can specify the active edge of the Source input (rising or falling). © National Instruments Corporation 8-21 NI USB-621x User Manual...
  • Page 119: Single Pulse Generation With Start Trigger

    Chapter 8 Counters Figure 8-22 shows a generation of a pulse with a pulse delay of four and a pulse width of three (using the rising edge of Source). Counter Armed SOURCE Figure 8-22. Single Pulse Generation Single Pulse Generation with Start Trigger The counter can output a single pulse in response to one pulse on a hardware Start Trigger signal.
  • Page 120: Pulse Train Generation

    The counter can begin the pulse train generation as soon as the counter is armed, or in response to a hardware start trigger. You can route the Start Trigger to the Gate input of the counter. © National Instruments Corporation 8-23 NI USB-621x User Manual...
  • Page 121: Finite Pulse Train Generation

    Chapter 8 Counters You also can use the Gate input of the counter as a Pause Trigger (if it is not used as a Start Trigger). The counter pauses pulse generation when the Pause Trigger is active. Figure 8-25 shows a continuous pulse train generation (using the rising edge of Source).
  • Page 122: Frequency Generation

    Frequency Output Timebase. Figure 8-28 shows the frequency generator output waveform when the divider is set to 5. Frequency Output Timebase FREQ OUT (Divisor = 5) Figure 8-28. Frequency Generator Output Waveform © National Instruments Corporation 8-25 NI USB-621x User Manual...
  • Page 123: Frequency Division

    Chapter 8 Counters Frequency Output can be routed out to any output PFI terminal. All PFI terminals are set to high-impedance at startup. The FREQ OUT signal also can be routed to DO Sample Clock and DI Sample Clock. In software, program the frequency generator as you would program one of the counters for pulse train generation.
  • Page 124: Counter Timing Signals

    In this section, n refers to either Counter 0 or 1. For example, Counter n Source refers to two signals—Counter 0 Source (the source input to Counter 0) and Counter 1 Source (the source input to Counter 1). © National Instruments Corporation 8-27 NI USB-621x User Manual...
  • Page 125: Counter N Source Signal

    • 80 MHz Timebase • 20 MHz Timebase • 100 kHz Timebase • (USB-6210/6211/6215 Devices) PFI <0..3> • (USB-6212/6216 Devices) PFI <0..15> • PFI <0..3>, PFI <8..11> (USB-6218 Devices) In addition, Counter 1 TC or Counter 1 Gate can be routed to Counter 0 Source.
  • Page 126: Counter N Gate Signal

    Any of the following signals can be routed to the Counter n Aux input: • (USB-6210/6211/6215 Devices) PFI <0..3> • PFI <0..15> (USB-6212/6216 Devices) • (USB-6218 Devices) PFI <0..3>, PFI <8..11> © National Instruments Corporation 8-29 NI USB-621x User Manual...
  • Page 127: Counter N A, Counter N B, And Counter N Z Signals

    Chapter 8 Counters • AI Reference Trigger (ai/ReferenceTrigger) • AI Start Trigger (ai/StartTrigger) In addition, Counter 1 Internal Output, Counter 1 Gate, Counter 1 Source, or Counter 0 Gate can be routed to Counter 0 Aux. Counter 0 Internal Output, Counter 0 Gate, Counter 0 Source, or Counter 1 Gate can be routed to Counter 1 Aux.
  • Page 128: Routing Signals To Counter N Hw Arm Input

    Frequency Output Signal The Frequency Output (FREQ OUT) signal is the output of the frequency output generator. Routing Frequency Output to a Terminal You can route Frequency Output to any output PFI terminal. © National Instruments Corporation 8-31 NI USB-621x User Manual...
  • Page 129: Default Counter/Timer Pinouts

    Chapter 8 Counters Default Counter/Timer Pinouts By default, NI-DAQmx routes the counter/timer inputs and outputs to the USB-6210/6211/6215 device PFI pins as shown in Table 8-4. Table 8-4. Default NI-DAQmx Counter/Timer Pins for USB-6210/6211/6215 Devices Counter/Timer Signal Default Terminal Number (Name)
  • Page 130: Counter Triggering

    When using a pause trigger, the pause trigger source is routed to the Counter n Gate signal input of the counter. © National Instruments Corporation 8-33 NI USB-621x User Manual...
  • Page 131: Other Counter Features

    Chapter 8 Counters Other Counter Features Sample Clock When taking counter measurements, you can enable a sample clock. When you use a sample clock, measurements are saved after an active edge of the sample clock. Figure 8-30 shows an example of using a sample clock with a buffered period measurement.
  • Page 132: Cascading Counters

    The filter setting for each input can be configured independently. On power up, the filters are disabled. Figure 8-31 shows an example of a low-to-high transition on an input that has its filter set to 125 ns (N = 5). © National Instruments Corporation 8-35 NI USB-621x User Manual...
  • Page 133: Prescaling

    Chapter 8 Counters Filtered input goes high PFI Terminal when terminal is sampled high on five consecutive Filter Clock filter clocks. (40 MHz) Filtered Input Figure 8-31. Filter Example Enabling filters introduces jitter on the input signal. For the 125 ns and 6.425 μs filter settings, the jitter is up to 25 ns.
  • Page 134: Duplicate Count Prevention

    The counter synchronizes or samples the Gate signal with the Source signal, so the counter does not detect a rising edge in Gate until the next Source pulse. In this example, the counter stores the values in the buffer on © National Instruments Corporation 8-37 NI USB-621x User Manual...
  • Page 135: Example Application That Works Incorrectly (Duplicate Counting)

    Chapter 8 Counters the first rising Source edge after the rising edge of Gate. The details of when exactly the counter synchronizes the Gate signal vary depending on the synchronization mode. Example Application That Works Incorrectly (Duplicate Counting) In Figure 8-34, after the first rising edge of Gate, no Source pulses occur, so the counter does not write the correct data to the buffer.
  • Page 136: Enabling Duplicate Count Prevention In Ni-Daqmx

    Counter n Internal Output signals change synchronously to the 80 MHz Timebase. Enabling Duplicate Count Prevention in NI-DAQmx Duplicate count prevention is automatically used with USB-621x devices. Disabling duplicate count prevention is not supported. © National Instruments Corporation 8-39 NI USB-621x User Manual...
  • Page 137: Isolation And Digital Isolators On Usb-6215/6216/6218 Devices

    Figure 9-1. USB-6215/6216/6218 Block Diagram The bus interface circuitry is referenced to a non-isolated ground. The following table lists the ground symbols. Ground Type Symbol Isolated Ground Non-Isolated Ground USB-6216 devices have PFI/static DIO circuitry. © National Instruments Corporation NI USB-621x User Manual...
  • Page 138: Digital Isolation

    Analog Input • Connecting Analog Output Signals section of Chapter 5, Analog Output • Connecting Digital I/O Signals on USB-6210/6211/6215/6218 Devices Connecting Digital I/O Signals on USB-6212/6216 Devices section of Chapter 6, Digital I/O • Connecting PFI Input Signals section of Chapter 7, Digital Isolation USB-6215/6216/6218 devices use digital isolators.
  • Page 139: Reducing Common-Mode Noise

    Chapter 9 Isolation and Digital Isolators on USB-6215/6216/6218 Devices of error and noise, are the result of a measurement system having multiple grounds at different potentials. • Improved Safety—The isolation barrier allows you to make floating measurements while protecting the USB host computer against large transient voltage spikes.
  • Page 140: Isolated Systems

    AC return path is only needed for high or source impedances. An AC return path can be created by connecting a capacitor between the device’s isolated ground and earth ground. © National Instruments Corporation NI USB-621x User Manual...
  • Page 141: Digital Routing And Clock Generation

    The 100 kHz Timebase also can be used as the Source input to the 32-bit general-purpose counter/timers. The 100 kHz Timebase is generated by dividing down the 20 MHz Timebase by 200. © National Instruments Corporation 10-1 NI USB-621x User Manual...
  • Page 142: Bus Interface

    Programmed I/O is typically used in software-timed (on-demand) operations. Refer to the Analog Output Data Generation Methods section of Chapter 5, Analog Output, for more information. © National Instruments Corporation 11-1 NI USB-621x User Manual...
  • Page 143: Changing Data Transfer Methods

    Chapter 11 Bus Interface Changing Data Transfer Methods USB-621x devices have four dedicated USB Signal Stream channels. To change your data transfer mechanism between USB Signal Streams and programmed I/O, use the Data Transfer Mechanism property node function in NI-DAQmx. NI USB-621x User Manual 11-2 ni.com...
  • Page 144: Triggering

    A rising edge is a transition from a low logic level to a high logic level. A falling edge is a high to low transition. Figure 12-1 shows a falling-edge trigger. Digital Trigger Falling Edge Initiates Acquisition Figure 12-1. Falling-Edge Trigger © National Instruments Corporation 12-1 NI USB-621x User Manual...
  • Page 145 Chapter 12 Triggering You also can program your USB-621x device to perform an action in response to a trigger from a digital source. The action can affect the following: • Analog input acquisition • Analog output generation • Counter behavior NI USB-621x User Manual 12-2 ni.com...
  • Page 146: Device-Specific Information

    Refer to the NI USB-621x Specifications, available on the NI-DAQ Device Documentation Browser or from , for more detailed ni.com/manuals information about USB-621x devices. To obtain documentation for devices not listed here, refer to ni.com/ manuals © National Instruments Corporation NI USB-621x User Manual...
  • Page 147: Usb-6210

    Appendix A Device-Specific Information USB-6210 USB-6210 Pinout Figure A-1 shows the pinout of the USB-6210. For a detailed description of each signal, refer to the I/O Connector Signal Descriptions section of Chapter 3, Connector and LED Information. PFI 0/P0.0 (In) PFI 1/P0.1 (In)
  • Page 148 FREQ OUT 8 (PFI 6) Note For more information about default NI-DAQmx counter inputs, refer to Connecting Counter Signals in the NI-DAQmx Help or the LabVIEW Help in version 8.0 or later. © National Instruments Corporation NI USB-621x User Manual...
  • Page 149: Usb-6211/6215

    Appendix A Device-Specific Information USB-6211/6215 USB-6211/6215 Pinout Figure A-2 shows the pinout of the USB-6211 and USB-6215. For a detailed description of each signal, refer to the I/O Connector Signal Descriptions section of Chapter 3, Connector and LED Information. PFI 0/P0.0 (In) PFI 1/P0.1 (In) PFI 2/P0.2 (In) PFI 3/P0.3 (In)
  • Page 150 FREQ OUT 8 (PFI 6) Note For more information about default NI-DAQmx counter inputs, refer to Connecting Counter Signals in the NI-DAQmx Help or the LabVIEW Help in version 8.0 or later. © National Instruments Corporation NI USB-621x User Manual...
  • Page 151: Usb-6212/6216 Screw Terminal

    Appendix A Device-Specific Information USB-6212/6216 Screw Terminal USB-6212/6216 Screw Terminal Pinout Figure A-3 shows the pinout of the USB-6212 Screw Terminal and USB-6216 Screw Terminal. For a detailed description of each signal, refer to the I/O Connector Signal Descriptions section of Chapter 3, Connector and LED Information.
  • Page 152 FREQ OUT 40 (PFI 14) Note For more information about default NI-DAQmx counter inputs, refer to Connecting Counter Signals in the NI-DAQmx Help or the LabVIEW Help in version 8.0 or later. © National Instruments Corporation NI USB-621x User Manual...
  • Page 153: Usb-6212/6216 Mass Termination

    Appendix A Device-Specific Information USB-6212/6216 Mass Termination USB-6212/6216 Mass Termination Pinout Figure A-4 shows the pinout of the USB-6212 Mass Termination and USB-6216 Mass Termination. For a detailed description of each signal, refer to the I/O Connector Signal Descriptions section of Chapter 3, Connector and LED Information.
  • Page 154 PFI 13/P2.5 PFI 6/P1.6 PFI 15/P2.7 D GND PFI 7/P1.7 PFI 9/P2.1 PFI 8/P2.0 PFI 12/P2.4 D GND PFI 14/P2.6 D GND NC = No Connect Figure A-4. USB-6212/6216 Mass Termination Pinout © National Instruments Corporation NI USB-621x User Manual...
  • Page 155 Appendix A Device-Specific Information Table A-4. Default NI-DAQmx Counter/Timer Pins Counter/Timer Signal Default Terminal Number (Name) CTR 0 SRC 37 (PFI 8) CTR 0 GATE 3 (PFI 9) CTR 0 AUX 45 (PFI 10) CTR 0 OUT 2 (PFI 12) CTR 0 A 37 (PFI 8) CTR 0 Z...
  • Page 156 BNC-2090A—Desktop/rack-mountable device with 22 BNCs for connecting analog, digital, and timing signals Screw Terminal Accessories National Instruments offers several styles of screw terminal connector blocks. Use an SH68-68-EPM shielded cable to connect a USB-6212/6216 Mass Termination device to a connector block, such as the following: •...
  • Page 157 Appendix A Device-Specific Information Cables In most applications, you can use the following cables: • SH68-68-EPM—High-performance cable with individual bundles separating analog and digital signals. Each differential analog input channel is routed on an individually shielded twisted pair of wires. Analog outputs are also individually shielded •...
  • Page 158: Usb-6212/6216 Bnc

    Figure A-5 shows the pinout of the USB-6212 BNC and USB-6216 BNC. For a detailed description of each signal, refer to the I/O Connector Signal Descriptions section of Chapter 3, Connector and LED Information. © National Instruments Corporation A-13 NI USB-621x User Manual...
  • Page 159 Appendix A Device-Specific Information AI x + – AI x – Floating Source 5 kΩ 0.1 µF AI GND USB-621x Device AI x + – AI x – Ground- Referenced Source 0.1 µF 5 kΩ AI GND NI USB-6212/6216 USB-621x Device Figure A-5.
  • Page 160 (FS) source or a ground-referenced signal (GS) source. Refer to the Connecting Analog Input Signals on USB-6210/6211/6212 Devices Connecting Analog Input Signals on USB-6215/6216/6218 Devices section of Chapter 4, Analog Input, for more information.
  • Page 161 Appendix A Device-Specific Information AI 0 Figure A-6. FS/GS Switch Figure A-7 shows the analog input circuitry on the USB-6212/6216 BNC. When the switch is set to the FS position, AI x – is grounded through a 0.1 μF capacitor in parallel with a 5 kΩ resistor. AI x + AI x + –...
  • Page 162 For information on how to connect your signals in single-ended mode, Connecting Analog Input AI GND, and/or AI SENSE, refer to the Signals on USB-6210/6211/6212 Devices Connecting Analog Input Signals on USB-6215/6216/6218 Devices section of Chapter 4, Analog Input.
  • Page 163 Appendix A Device-Specific Information Refer to the Digital I/O on USB-6212/6216 Devices section of Chapter 6, Digital I/O, and the Connecting PFI Input Signals section of Chapter 7, PFI, for more information. USER The USER BNC connector allows you to use a BNC connector for a digital or timing I/O signal of your choice.
  • Page 164: Usb-6218 Screw Terminal

    AI 29 AI GND AI GND AI 6 AI 22 AI 14 AI 30 AI 7 AI 23 AI 15 AI 31 NC = No Connect Figure A-13. USB-6218 Screw Terminal Pinout © National Instruments Corporation A-19 NI USB-621x User Manual...
  • Page 165 Appendix A Device-Specific Information Table A-6. Default NI-DAQmx Counter/Timer Pins Counter/Timer Signal Default Terminal Number (Name) CTR 0 SRC 1 (PFI 0) CTR 0 GATE 2 (PFI 1) CTR 0 AUX 34 (PFI 9) CTR 0 OUT 6 (PFI 4) CTR 0 A 1 (PFI 0) CTR 0 Z...
  • Page 166: Usb-6218 Bnc

    Figure A-14 shows the pinout of the USB-6218 BNC. For a detailed description of each signal, refer to the I/O Connector Signal Descriptions section of Chapter 3, Connector and LED Information. © National Instruments Corporation A-21 NI USB-621x User Manual...
  • Page 167 Appendix A Device-Specific Information AI x + – AI x – Floating Source 5 kΩ 0.1 µF AI GND USB-621x Device AI x + – AI x – Ground- Referenced Source 0.1 µF 5 kΩ AI GND NI USB-6218 USB-621x Device Figure A-14.
  • Page 168 To measure a ground-referenced signal source, move the switch to the GS position. Figure A-15 shows the AI 0 BNC and corresponding FS/GS switch on the top panel of the USB-6218 BNC. © National Instruments Corporation A-23 NI USB-621x User Manual...
  • Page 169 Appendix A Device-Specific Information AI 0 Figure A-15. FS/GS Switch Figure A-16 shows the analog input circuitry on the USB-6218 BNC. When the switch is set to the FS position, AI x – is grounded through a 0.1 μF capacitor in parallel with a 5 kΩ resistor. AI x + AI x + –...
  • Page 170 You can access analog output signals on the BNC connectors labeled AO 0 and AO 1. Figure A-18 shows the analog output circuitry on the USB-6218 BNC. AO x AO GND Figure A-18. Analog Output Circuitry © National Instruments Corporation A-25 NI USB-621x User Manual...
  • Page 171 Appendix A Device-Specific Information Refer to the Connecting Analog Output Signals section of Chapter 5, Analog Output, for more information. USER The USER BNC connector allows you to use a BNC connector for a digital or timing I/O signal of your choice. The USER BNC connector is routed (internal to the USB-6218 BNC) to the USER screw terminal, as shown in Figure A-19.
  • Page 172: Appendix B Troubleshooting

    Troubleshooting This section contains common questions about USB-621x devices. If your questions are not answered here, refer to the National Instruments KnowledgeBase at ni.com/kb Analog Input I am seeing crosstalk or ghost voltages when sampling multiple channels. What does this mean?
  • Page 173 There are various methods of achieving this reference while maintaining a high common-mode rejection ratio (CMRR). These methods are outlined in the Connecting Analog Input Signals on USB-6210/6211/6212 Devices Connecting Analog Input Signals on USB-6215/6216/6218 Devices sections of Chapter 4, Analog Input.
  • Page 174 You can build a lowpass deglitching filter to remove some of these glitches, depending on the frequency and nature of the output signal. Visit for more information about minimizing glitches. ni.com/support © National Instruments Corporation NI USB-621x User Manual...
  • Page 175 Technical Support and Professional Services Visit the following sections of the award-winning National Instruments Web site at for technical support and professional services: ni.com • Support—Technical support at includes the ni.com/support following resources: – Self-Help Technical Resources—For answers and solutions,...
  • Page 176 Appendix C Technical Support and Professional Services • Declaration of Conformity (DoC)—A DoC is our claim of compliance with the Council of the European Communities using the manufacturer’s declaration of conformity. This system affords the user protection for electromagnetic compatibility (EMC) and product safety.
  • Page 177 – Negative of, or minus. ± Plus or minus. < Less than. > Greater than. ≤ Less than or equal to. ≥ Greater than or equal to. Per. º Degree. Ω Ohm. © National Instruments Corporation NI USB-621x User Manual...
  • Page 178 Glossary Amperes—the unit of electric current. Analog-to-Digital. Most often used as A/D converter. Alternating current. accuracy A measure of the capability of an instrument or sensor to faithfully indicate the value of the measured signal. This term is not related to resolution; however, the accuracy level can never be better than the resolution of the instrument.
  • Page 179 (calibrated) for best accuracy. cascading Process of extending the counting range of a counter chip by connecting to the next higher counter. European emissions control standard. © National Instruments Corporation NI USB-621x User Manual...
  • Page 180 Glossary channel Pin or wire lead to which you apply or from which you read the analog or digital signal. Analog signals can be single-ended or differential. For digital signals, you group channels to form ports. Ports usually consist of either four or eight digital channels.
  • Page 181 An electronic board that performs general analog or digital I/O functions on one or multiple channels, connected to a PC through a bus or I/O port, such as PCI, PXI, Ethernet, USB, or serial. © National Instruments Corporation NI USB-621x User Manual...
  • Page 182 Glossary differential input An input circuit that actively responds to the difference between two terminals, rather than the difference between one terminal and ground. Often associated with balanced input circuitry, but also may be used with an unbalanced source. digital I/O The capability of an instrument to generate and acquire digital signals.
  • Page 183 1. A built-in execution element, comparable to an operator, function, or statement in a conventional language. 2. A set of software instructions executed by a single line of code that may have input and/or output parameters and returns a value when executed. © National Instruments Corporation NI USB-621x User Manual...
  • Page 184 Glossary glitch An unwanted signal excursion of short duration that is usually unavoidable. See ground. ground 1. A pin. 2. An electrically neutral wire that has the same potential as the surrounding earth. Normally, a noncurrent-carrying circuit intended for safety. 3.
  • Page 185 See interrupt, interrupt request line. LabVIEW A graphical programming language. Light-Emitting Diode—A semiconductor light source. lowpass filter A filter that passes signals below a cutoff frequency while blocking signals above that frequency. Least Significant Bit. © National Instruments Corporation NI USB-621x User Manual...
  • Page 186 Glossary Meter. M Series An architecture for instrumentation-class, multichannel data acquisition devices based on the earlier E Series architecture with added new features. measurement The quantitative determination of a physical characteristic. In practice, measurement is the conversion of a physical quantity or observation to a domain where a human being or computer can determine the value.
  • Page 187 Programmable Function Interface. PGIA Programmable Gain Instrumentation Amplifier. physical channel See channel. posttriggering The technique used on a DAQ device to acquire a programmed number of samples after trigger conditions are met. © National Instruments Corporation G-11 NI USB-621x User Manual...
  • Page 188 Glossary power source An instrument that provides one or more sources of AC or DC power. Also known as power supply. Parts per million. pretriggering The technique used on a DAQ device to keep a continuous buffer filled with data, so that when the trigger conditions are met, the sample includes the data leading up to the trigger condition.
  • Page 189 Describes a device that acquires a specified number of samples from one or more channels and returns the data when the acquisition is complete. single-ended input A circuit that responds to the voltage on one input terminal and ground. See also differential input. © National Instruments Corporation G-13 NI USB-621x User Manual...
  • Page 190 Glossary single-ended output A circuit whose output signal is present between one output terminal and ground. software triggering A method of triggering in which you simulate an analog trigger using software. Also called conditional retrieval. source impedance A parameter of signal sources that reflects current-driving ability of voltage sources (lower is better) and the voltage-driving ability of current sources (higher is better).
  • Page 191 USB 2.0 retains compatibility with the original USB specification. Volts. Common-mode voltage. Ground loop voltage. Volts, input high. Volts, input low. Volts in. Measured voltage. Volts, output high. Volts, output low. Volts out. © National Instruments Corporation G-15 NI USB-621x User Manual...
  • Page 192 Glossary Signal source voltage. virtual channel See channel. waveform 1. The plot of the instantaneous amplitude of a signal as a function of time. 2. Multiple voltage readings taken at a specific sampling rate. NI USB-621x User Manual G-16 ni.com...
  • Page 193 AI Convert Clock, B-2 20 MHz Timebase, 10-1 charge injection, B-1 80 MHz Timebase, 10-1 circuitry, 4-1 connecting signals on USB-6210/6211/6212 devices, 4-23 connecting signals on A/D converter, 4-2 USB-6215/6216/6218 devices, 4-36 AC return path, creating, 9-4 connecting through I/O connector, 4-1...
  • Page 194 Index AI Reference Trigger, 4-21 AI Sample Clock, 4-14 AI Sample Clock Timebase, 4-15 cables, 2-4 AI Start Trigger, 4-20 connecting signals, A-15, A-23 analog output, 5-1 board mounting, 1-7 circuitry, 5-1 buffered connecting signals, 5-4 edge counting, 8-3 data generation methods, 5-2 hardware-timed acquisitions, 4-9 fundamentals, 5-1 hardware-timed generations, 5-3...
  • Page 195 Counter n HW Arm signal, 8-30 analog output signals, 5-4 Counter n Internal Output signal, 8-31 digital I/O signals Counter n Source signal, 8-28 on USB-6210/6211/6215/6218, 6-3 Counter n TC signal, 8-31 on USB-6212/6216, 6-6 Counter n Up_Down signal, 8-30 floating signal sources, 4-25...
  • Page 196 Index prescaling, 8-36 USB-6210, A-2 USB-6211, A-4 pulse train generation, 8-23 retriggerable single pulse USB-6212 BNC, A-13 generation, 8-22 USB-6212 Mass Termination, A-8 simple pulse generation, 8-21 USB-6212 Screw Terminal, A-6 single pulse generation, 8-21 USB-6215, A-4 single pulse generation with start...
  • Page 197 USB-6212/6216, A-13 NI-DAQmx, 8-39 USB-6218, A-21 encoders, quadrature, 8-16 fuse replacement (USB devices), 3-4 encoding X1, 8-16 X2, 8-16 X4, 8-17 equivalent time sampling, 8-26 © National Instruments Corporation NI USB-621x User Manual...
  • Page 198 C-1 frequency, 8-25 hardware-timed, 5-2 pulse for ETS, 8-26 I/O connector, 3-1 pulse train, 8-23 USB-6210 pinout, A-2 retriggerable single pulse, 8-22 USB-6211 pinout, A-4 simple pulse, 8-21 USB-6212 BNC pinout, A-13 single pulse, 8-21 USB-6212 Mass Termination pinout, A-8...
  • Page 199 4-5 MUX, 4-1 Mac OS X, xiv Measurement Studio documentation, xvi measurements buffered period, 8-7 National Instruments support and buffered pulse-width, 8-5 services, C-1 buffered semi-period, 8-9 .NET languages documentation, xvii buffered two-signal edge-separation, 8-20 NI support and services, C-1...
  • Page 200 8-5 pin assignments. See pinouts single, 8-4 pinouts PWR LED, 3-6 counter default, 8-32 device, 1-2 USB-6210, A-2 USB-6211, A-4 quadrature encoders, 8-16 USB-6212 BNC, A-13 USB-6212 Mass Termination, A-8 USB-6212 Screw Terminal, A-6 USB-6215, A-4 NI USB-621x User Manual...
  • Page 201 USB-6215/6216/6218 devices, 4-36 sample clock, 8-34 connecting analog output, 5-4 edge counting, 8-3 connecting digital I/O measurement, 8-18 on USB-6210/6211/6215/6218, 6-3 scan speed, 4-8 on USB-6212/6216, 6-6 scanning speed, 4-8 connecting PFI input, 7-4 self-calibration, 1-2 Counter n A, 8-30...
  • Page 202 4-10 stacking, 1-6 counter, 8-33 start trigger, 8-33 with a digital source, 12-1 static DIO troubleshooting USB-6210/6211/6215/6218, 6-2 analog input, B-1 USB-6212/6216, 6-5 analog output, B-3 using PFI terminals as, 7-3 NI resources, C-1 strain relief, 1-4 two-signal edge-separation...
  • Page 203 USB-6212 Screw Terminal, A-6 pinout, A-19 analog input signals, 4-23 USB-621x default counter/timer pins, A-7 cable management, 1-5 digital I/O, 6-4 cables and accessories, 2-4 pinout, A-6 cabling, 2-4 chassis ground, 3-4 © National Instruments Corporation I-11 NI USB-621x User Manual...
  • Page 204 Index combicon, 2-4 desktop use, 1-6 device security, 1-8 DIN rail mounting kit, 1-6 fuse replacement, 3-4 information, A-1 labeling, 1-3 LED, 3-6 panel mounting, 1-7 signal labels, 1-3 signal wire management, 1-5 specifications, xviii stacking, 1-6 USB cable strain relief, 1-4 using low impedance sources, 4-6 using PFI terminals as static digital I/Os, 7-3...

Table of Contents