USB-6009用户使用手册
发布时间:2024-11-08
发布时间:2024-11-08
NI USB-6009数据采集卡 用户使用手册
USER GUIDE AND SPECIFICATIONS
NI USB-6008/6009
Bus-Powered Multifunction DAQ USB Device
This user guide describes how to use the National Instruments USB-6008 and National Instruments USB-6009 data acquisition (DAQ) devices and lists specifications.
The NI USB-6008/6009 provides connection to eight single-ended analog input (AI) channels, two analog output (AO) channels, 12 digital input/output (DIO) channels, and a 32-bit counter with a full-speed USB interface. Table1 compares the devices.
Table 1. NI USB-6008 and NI USB-6009 Comparison
Feature
AI resolution
Maximum AI sample rate, singlechannel*
Maximum AI sample rate, multiplechannels (aggregate)*DIO configuration
NI USB-600812 bits differential,11 bits single-ended
10 kS/s
10 kS/sOpen collector
NI USB-600914 bits differential,13 bits single-ended
48 kS/s48 kS/s
Each channel individually programmable as open collector
oractive drive
* System-dependent.
This document uses NI-DAQmx naming conventions. Open-drain is called open collector and push-pull is called activedrive.
NI USB-6009数据采集卡 用户使用手册
Figure1 shows key functional components of the NIUSB-6008/6009.
Figure 1. NI USB-6008/6009 Block Diagram
Contents
Safety Guidelines.................................................................................................................................3Electromagnetic Compatibility Guidelines..........................................................................................3Unpacking............................................................................................................................................4Setting Up the NIUSB-6008/6009......................................................................................................4Using the NIUSB-6008/6009 in an Application.................................................................................6Features................................................................................................................................................7
USB Connector and USB Cable Strain Relief.............................................................................7LED Indicator..............................................................................................................................8Screw Terminal Connector Plugs................................................................................................8Firmware......................................................................................................................................8Cables and Accessories........................................................................................................................9Pinout and Signal Descriptions............................................................................................................9
NI USB-6008/6009 User Guide and http://
NI USB-6009数据采集卡 用户使用手册
Analog Input........................................................................................................................................11
Analog Input Modes and Signal Sources.....................................................................................11
Floating Signal Sources.......................................................................................................12Ground-Referenced Signal Sources.....................................................................................13Taking Differential Measurements......................................................................................14Taking Referenced Single-Ended Measurements................................................................15Digital Trigger.............................................................................................................................15AnalogOutput......................................................................................................................................16
Connecting Analog Output Loads...............................................................................................16Minimizing Glitches on the Output Signal..................................................................................16DigitalI/O............................................................................................................................................17
Source/Sink Information..............................................................................................................18I/O Protection...............................................................................................................................19Power-On States..........................................................................................................................19Static DIO....................................................................................................................................19PFI0.....................................................................................................................................................19
Using PFI0 as a Digital Trigger..................................................................................................19Using PFI0 as an Event Counter.................................................................................................19External Reference and Power Source.................................................................................................20
+2.5V External Reference...........................................................................................................20+5 V Power Source......................................................................................................................20Specifications.......................................................................................................................................20Where to Go from Here.......................................................................................................................27
Example Programs.......................................................................................................................27Related Documentation................................................................................................................27Where to Go for Support.....................................................................................................................30
Safety Guidelines
Operate the NIUSB-6008/6009 device only as described in this user guide.
Do not operate the NI USB-6008/6009 in a manner not specified in this document. Misuse
of the device can result in a hazard. You can compromise the safety protection built into the device if the device is damaged in any way. If the device is damaged, contact National Instruments for repair.
Caution
Do not substitute parts or modify the device except as described in this document. Use the
device only with the chassis, modules, accessories, and cables specified in the installation instructions. You must have all covers and filler panels installed during operation of the device.
Caution
Do not operate the device in an explosive atmosphere or where there may be flammable
gases or fumes. If you must operate the device in such an environment, it must be in a suitably rated enclosure.
Caution
Electromagnetic Compatibility Guidelines
This product was tested and complies with the regulatory requirements and limits for electromagnetic compatibility (EMC) as stated in the product specifications. These requirements and limits are designed to provide reasonable protection against harmful interference when the product is operated in its intended operational electromagnetic environment.
This product is intended for use in industrial locations. There is no guarantee that harmful interference will not occur in a particular installation, when the product is connected to a test object, or if the product
is used in residential areas. To minimize the potential for the product to cause interference to radio and
© National Instruments Corporation3NI USB-6008/6009 User Guide and Specifications
NI USB-6009数据采集卡 用户使用手册
television reception or to experience unacceptable performance degradation, install and use this product in strict accordance with the instructions in the product documentation.
Furthermore, any changes or modifications to the product not expressly approved by National Instruments could void your authority to operate it under your local regulatory rules.
To ensure the specified EMC performance, operate this product only with shielded cables
and accessories.
CautionCautionCautionCaution
This product may become more sensitive to electromagnetic disturbances in the operational
environment when test leads are attached or when connected to a test object.
Emissions that exceed the regulatory requirements may occur when this product is
connected to a test object.
Changes or modifications not expressly approved by National Instruments could void the
user’s authority to operate the hardware under the local regulatory rules.
Unpacking
The NIUSB-6008/6009 device ships in an antistatic package to prevent electrostatic discharge (ESD). ESD can damage several components on the device.
Caution
Never touch the exposed pins of connectors.
To avoid ESD damage in handling the device, take the following precautions:
Ground yourself with a grounding strap or by touching a grounded object.
Touch the antistatic package to a metal part of your computer chassis before removing the device from the package.
Remove the device from the package and inspect it for loose components or any other signs of damage. Notify NI if the device appears damaged in any way. Do not install a damaged device in your computer or chassis.
Store the device in the antistatic package when the device is not in use.
Setting Up the NIUSB-6008/6009
Complete the following steps to get started with the NI USB-6008/6009.
For information about non-Windows operating system support, refer to the Getting Started with NI-DAQmx Base for Linux and Mac OS X Users document available from http:///manuals.
Note
1.2.
Install the application software (if applicable), as described in the installation instructions that accompany your software.Install NI-DAQmx1.
The NI-DAQmx software is included on the disk shipped with your kit and is available for download at http:///support. The documentation for NI-DAQmx is available after installation from Start»All Programs»National Instruments»NI-DAQ. Other NI documentation is available from http:///manuals.
Note
1
NI USB-6008/6009 devices are supported by NI-DAQmx 7.5 and later.
NI USB-6008/6009 User Guide and http://
NI USB-6009数据采集卡 用户使用手册
3.
Install the 16-position screw terminal connector plugs by inserting them into the connector jacks as shown in Figure2.
12Overlay Label with Pin Orientation GuidesScrew Terminal Connector Plug
34
Figure 2. Signal Label Application Diagram
Signal LabelUSB Cable
4.
Affix the provided signal labels to the screw terminal connector plugs. You can choose labels with pin numbers, signal names, or blank labels, as shown in Figure3. Choose one of the labels, align the correct label with the terminals printed on the top panel of your device and apply the label, as shown in Figure2.
123User-Defined Custom LabelTerminal Number LabelDigital I/O Label
45Analog Input Differential Signal Name LabelAnalog Input Single-Ended Signal Name Lab
el
Figure 3. NI USB-6008/6009 Signal Labels
Note
After you label the screw terminal connector plugs, you must only insert them into the matching connector jack, as indicated by the overlay label on the device.
Plug one end of the USB cable into the NI USB-6008/6009 and the other end into an available USBport on the computer.
5.
© National Instruments Corporation5NI USB-6008/6009 User Guide and Specifications
NI USB-6009数据采集卡 用户使用手册
6.7.
Double-click the Measurement & Automation icon, shown at left, on the desktop to open Measurement & Automation Explorer (MAX).
Expand My System»Devices and Interfaces and verify that the NIUSB-6008/6009 is listed. If your device does not appear, press <F5> to refresh the view in MAX. If your device is still not recognized, refer to http:///support/daqmx for troubleshooting information.
Self-test your device in MAX by right-clicking NIUSB-600x and selecting Self-Test. Self-test performs a brief test to determine successful device installation. When the self-test finishes, a message indicates successful verification or if an error occurred. If an error occurs, refer to http:///support/daqmx.
To ensure the specified EMC performance, operate this product only with shielded cables
and accessories.
Caution
8.
9.
Connect the wires (16 to 28 AWG) of a shielded, multiconductor cable to the screw terminals by stripping 6.35 mm (0.25 in.) of insulation, inserting the wires into the screw terminals, and securely tightening the screws with the flathead screwdriver to a torque of 0.22–0.25 N · m (2.0–2.2lb· in.). Refer to Figure6 for the NIUSB-6008/6009 pinout.
If using a shielded cable, connect the cable shield to a nearby GND terminal.
Note
For information about sensors, go to http:///sensors. For information about IEEE 1451.4 TEDS smart sensors, go to http:///teds.
Click Start to test the device functions, or Help for operating instructions. Click Close to exit the test panel.
10.Run a Test Panel in MAX by right-clicking NIUSB-600x and selecting Test Panels.
Using the NIUSB-6008/6009 in an Application
You can use the DAQ Assistant through many NI application software programs to configure virtual and measurement channels. Table2 lists DAQ Assistant tutorial locations for NI applications.
Table 2. DAQ Assistant Tutorial Locations
NI ApplicationLabVIEW
Tutorial Location
Go to
Help»LabVIEW Help. Next, go to Getting Started with LabVIEW»Getting Started with DAQ»Taking an NI-DAQmx Measurement in LabVIEW.
Go to Help»Contents. Next, go to Using LabWindows/CVI»Data Acquisition»Taking an NI-DAQmx Measurement in LabWindows/CVI.
Go to NI Measurement Studio Help»Getting Started with the Measurement
Studio Class Libraries»Measurement Studio Walkthroughs»Walkthrough: Creating a Measurement Studio NI-DAQmx Application.Go to Help»Taking an NI-DAQmx Measurement in SignalExpress.
LabWindows /CVI Measurement Studio
LabVIEW SignalExpress
Refer to the Where to Go from Here section for information about programming examples for NI-DAQmx and NI-DAQmx Base.
NI USB-6008/6009 User Guide and http://
NI USB-6009数据采集卡 用户使用手册
Features
The NI USB-6008/6009 features a USB connector, USB cable strain relief, two screw terminal connector plugs for I/O, and an LED indicator, as shown in Figure4.
12
USB Cable Strain Relief
Screw Terminal Connector Plug
34
LED IndicatorUSB Connector
Figure 4. NI USB-6008/6009 Top and Back Views
USB Connector and USB Cable Strain Relief
The NI USB-6008/6009 features a USB connector for full-speed USB interface. You can provide strain relief for the USB cable by threading a zip tie through the USB cable strain relief ring and tightening around a looped USB cable, as shown in Figure5.
Figure 5. NI USB-6008/6009 Strain Relief
© National Instruments Corporation7NI USB-6008/6009 User Guide and Specifications
NI USB-6009数据采集卡 用户使用手册
LED Indicator
The NI USB-6008/6009 device has a green LED indicator that indicates device status, as listed in Table3. When the device is connected to a USB port, the LED blinks steadily to indicate that the device is initialized and is receiving power from the connection.
Table 3. LED State/Device Status
LED StateNot litOn, not blinking
Device not connected or in suspend
Device Status
Device connected but not initialized, or the computer is in standby mode.
In order for the device to be recognized, the device must be connected to a computer that has NI-DAQmx installed on it.
Single-blinkOperating normally
Screw Terminal Connector Plugs
The NI USB-6008/6009 ships with one detachable screw terminal connector plug for analog signals and one detachable screw terminal connector plug for digital signals. These screw terminal connectors provide 16 connections that use 16–28AWG wire. Refer to step4 of the Setting Up the
NIUSB-6008/6009 section for information about selecting labels for the screw terminal connector plugs. Refer to the Pinout and Signal Descriptions section for the device pinout and signal descriptions.You can order additional connectors and labels for your device. Refer to the Cables and Accessories section for ordering information.
Firmware
The firmware on the NIUSB-6008/6009 refreshes whenever the device is connected to a computer with NI-DAQmx. NI-DAQmx automatically uploads the compatible firmware version to the device. The firmware version may be upgraded when new versions of NI-DAQmx release.
NI USB-6008/6009 User Guide and http://
NI USB-6009数据采集卡 用户使用手册
Cables and Accessories
Table4 contains information about cables and accessories available for the NIUSB-6008/6009. For a complete list of accessories and ordering information, refer to the pricing section of the NIUSB-6008 or NIUSB-6009 product page at http://.
Table 4. NI USB-6008/6009 Cables and Accessories
Accessory
USB-6008/6009 Accessory KitUSB-6000 Series Prototyping Accessory
Part Number779371-01779511-01
Description
Four additional screw-terminal connectors, connectorlabels, and a screwdriver
Unshielded breadboarding accessory for
custom-defined signal conditioning and prototyping. You can use up to two accessories per device.1 m and 2 m lengths
Hi-Speed USB Cable
184125-01184125-02
Caution: For compliance with Electromagnetic Compatibility (EMC) requirements, this product must be operated with shielded cables and accessories. If unshielded cables or accessories are used, the EMC specifications are no longer
guaranteed unless all unshielded cables and/or accessories are installed in a shielded enclosure with properly designed and shielded input/output ports.
Pinout and Signal Descriptions
Figure6 shows the pinout of the NI USB-6008/6009. Analog input signal names are listed as
single-ended analog input name, AI x, and then differential analog input name, (AI x+/–). Refer to Table5 for a detailed description of each signal.
Figure 6. NI USB-6008/6009 Pinout
© National Instruments Corporation9
NI USB-6008/6009 User Guide and Specifications
NI USB-6009数据采集卡 用户使用手册
Table 5. Signal Descriptions
Signal NameGND
Reference
—
Direction—
Description
Ground—The reference point for the single-ended analog input
measurements, analog output voltages, digital signals, +5VDC supply, and +2.5VDC at the I/Oconnector, and the bias current return point for differential mode measurements.
Analog Input Channels 0 to 7—For single-ended measurements, each signal is an analog input voltage channel. For differential measurements, AI0and AI4 are the positive and negative inputs of differential analog input channel 0. Thefollowing signal pairs also form differential input channels: AI<1, 5>, AI<2, 6>, and AI<3, 7>. RefertotheAnalog Input section for more information.
Analog Output Channels 0 and 1—Supplies the voltage output of AOchannel0 or AO channel 1. RefertotheAnalogOutputsection for more information.
Port0 Digital I/O Channels0to7—You can individually configure each signal as an input or output. RefertotheDigitalI/O section for more information.
Port1 Digital I/O Channels0to3—You can individually configure each signal as an input or output. Refer to the DigitalI/O section for more information.
PFI 0—This pin is configurable as either a digital trigger or an event counter input. Refer to the PFI0 section for more information.+2.5 V External Reference—Provides a reference for wrap-back testing. Refer to the +2.5V External Reference section for more information.
+5 V Power Source—Provides +5V power up to 200mA. Refer to the +5 V Power Source section for more information.
AI <0..7>VariesInput
AO <0, 1>GNDOutput
P0.<0..7>GNDInput or Output
P1.<0..3>GNDInput or Output
PFI 0+2.5 V
GNDGND
Input Output
+5 VGNDOutput
NI USB-6008/6009 User Guide and http://
NI USB-6009数据采集卡 用户使用手册
Analog Input
The NI USB-6008/6009 has eight analog input channels that you can use for four differential analog input measurements or eight single-ended analog input measurements.Figure7 shows the analog input circuitry of the NI USB-6008/6009.
Figure 7. NI USB-6008/6009 Analog Input Circuitry
The main blocks featured in the NI USB-6008/6009 analog input circuitry are as follows:
MUX—The NI USB-6008/6009 has one analog-to-digital converter (ADC). Themultiplexer (MUX) routes one AI channel at a time to the PGA.
PGA—The progammable-gain amplifier provides input gains of 1, 2, 4, 5, 8, 10, 16, or 20 when configured for differential measurements and gain of 1 when configured for single-ended
measurements. ThePGA gain is automatically calculated based on the voltage range selected in the measurement application.
ADC—The analog-to-digital converter (ADC) digitizes the AI signal by converting the analog voltage into digital code.
AI FIFO—The NI USB-6008/6009 can perform both single and multiple analog-to-digital
conversions of a fixed or infinite number of samples. A first-in-first-out (FIFO) buffer holds data during AI acquisitions to ensure that no data is lost.
Analog Input Modes and Signal Sources
You can configure the AI channels on the NI USB-6008/6009 to take differential or referenced
single-ended (RSE) measurements. Table6 summarizes the recommended analog input mode(s) for floating signal sources and ground-referenced signal sources. Refer to Table5 for more information about I/O connections for single-ended or differential measurements.
© National Instruments Corporation11NI USB-6008/6009 User Guide and Specifications
NI USB-6009数据采集卡 用户使用手册
Table 6. Analog Input Configurations
Floating Signal Sources
A floating signal source is not connected to the building ground system, but has an isolated ground-reference point. Some examples of floating signal sources are outputs of transformers,
thermocouples, battery-powered devices, optical isolators, and isolation amplifiers. An instrument or device that has an isolated output is a floating signal source.
Refer to the NI Developer Zone document, Field Wiring and Noise Considerations for Analog Signals, for more information. To access this document, go to http:///info and enter the Info Code rdfwn3.When to Use Differential Connections with Floating Signal Sources
Use DIFF input connections for any channel that meets any of the following conditions:
Your application requires input ranges other than ±10 V.The input signal is low level and requires greater accuracy.
The leads connecting the signal to the device are greater than 3m (10ft).The input signal requires a separate ground-reference point or return signal.
NI USB-6008/6009 User Guide and http://
NI USB-6009数据采集卡 用户使用手册
The signal leads travel through noisy environments.
Two analog input channels, AI+ and AI–, are available for the signal.
DIFF signal connections reduce noise pickup and increase common-mode noise rejection. DIFF signal connections also allow input signals to float within the working voltage of the device.Refer to the Taking Differential Measurements section for more information about differential connections.
When to Use Referenced Single-Ended (RSE) Connections with Floating Signal SourcesOnly use RSE input connections if the input signal meets all of the following conditions:
The input signal can share a common reference point, GND, with other signals that use RSE.Your application permits the use of the ±10 V input range.
The leads connecting the signal to the device are less than 3m (10ft).
DIFF 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 DIFF configurations. The coupling is the result of differences in the signal path. Magnetic coupling is proportional to the area between the two signal conductors. Electrical coupling is a function of how much the electric field differs between the two conductors.
With this type of connection, the PGA rejects both the common-mode noise in the signal and the ground potential difference between the signal source and the device ground.
Refer to the Taking Referenced Single-Ended Measurements section for more information about RSE connections.
Ground-Referenced Signal Sources
A ground-referenced signal source is a signal source connected to the building system ground. It is already connected to a common ground point with respect to the device, assuming that the computer is plugged into the same power system as the source. Non-isolated outputs of instruments and devices that plug into the building power system fall into this category.
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. Follow the connection instructions for grounded signal sources to eliminate this ground potential difference from the measured signal.
Refer to the NI Developer Zone document, Field Wiring and Noise Considerations for Analog Signals, for more information. To access this document, go to http:///info and enter the Info Code rdfwn3.When to Use Differential Connections with Ground-Referenced Signal Sources
Use DIFF input connections for any channel that meets any of the following conditions:
Your application requires input ranges other than ±10 V.The input signal is low level and requires greater accuracy.
The leads connecting the signal to the device are greater than 3m (10ft).The input signal requires a separate ground-reference point or return signal.The signal leads travel through noisy environments.
Two analog input channels, AI+ and AI–, are available for the signal.
© National Instruments Corporation13NI USB-6008/6009 User Guide and Specifications
NI USB-6009数据采集卡 用户使用手册
DIFF signal connections reduce noise pickup and increase common-mode noise rejection. DIFF signal connections also allow input signals to float within the working voltage of the device.Refer to the Taking Differential Measurements section for more information about differential connections.
When to Use Referenced Single-Ended (RSE) Connections with Ground-Referenced Signal SourcesDo not use RSE connections with ground-referenced signal sources. Use differential connections instead.
As shown in the bottom-rightmost cell of Table6, there can be a potential difference between GND and the ground of the sensor. In RSE mode, this ground loop causes measurement errors.
Taking Differential Measurements
For differential signals, connect the positive lead of the signal to the AI+terminal, and the negative lead to the AI– terminal.
Figure 8. Connecting a Differential Voltage Signal
The differential input mode can measure ±20 V signals in the ±20V range. However, the maximum voltage on any one pin is ±10 V with respect to GND. For example, if AI 1 is +10 V and AI 5 is –10 V, then the measurement returned from the device is +20 V.
Figure 9. Example of a Differential 20 V Measurement
NI USB-6008/6009 User Guide and http://
NI USB-6009数据采集卡 用户使用手册
Connecting a signal greater than ±10 V on either pin results in a clipped output.
Figure 10. Exceeding ±10 V on AI Returns Clipped Output
Taking Referenced Single-Ended Measurements
To connect referenced single-ended (RSE) voltage signals to the NIUSB-6008/6009, connect the positive voltage signal to an AIterminal, and the ground signal to a GND terminal, as shown in Figure11.
Figure 11. Connecting a Referenced Single-Ended Voltage Signal
When no signals are connected to the analog input terminal, the internal resistor divider may cause the terminal to float to approximately 1.4 V when the analog input terminal is configured as RSE. This behavior is normal and does not affect the measurement when a signal is connected.
Digital Trigger
You can configure PFI0 as a digital trigger input for analog input tasks. Refer to the Using PFI0 as a Digital Trigger section for more information.
© National Instruments Corporation15NI USB-6008/6009 User Guide and Specifications
NI USB-6009数据采集卡 用户使用手册
AnalogOutput
The NI USB-6008/6009 has two independent analog output channels that can generate outputs from 0 to 5 V. All updates of analog output channels are software-timed. GND is the ground-reference signal for the analog output channels.
Figure12 shows the circuitry of one analog output channel on the NI USB-6008/6009.
Figure 12. Circuitry of One Analog Output Channel
The main block featured in the NI USB-6008/6009 analog output circuitry is the digital-to-analog converter (DAC), which converts digital codes to analog voltages. There is one DAC for each analog output line.
Connecting Analog Output Loads
To connect loads to the NI USB-6008/6009, connect the positive lead of the load to the AO terminal, and connect the ground of the load to a GND terminal, as shown in Figure13.
Figure 13. Connecting a Load
Minimizing Glitches on the Output Signal
When you use a DAC to generate a waveform, you may observe glitches in the output signal. These glitches are normal; when a DAC switches from one voltage to another, it produces glitches due to released charges. The largest glitches occur when the most significant bit of the DAC code changes. You can build a lowpass deglitching filter to remove some of these glitches, depending on the frequency and nature of the output signal. For more information about minimizing glitches. refer to the
KnowledgeBase document, Reducing Glitches on the Analog Output of MIO DAQ Devices. To access this document, go to http:///info and enter the Info Code exszek.
NI USB-6008/6009 User Guide and http://