background image

The NI USB-6009 is a USB based data acquisition (DAQ) and control device with analog input and 
output and digital input and output. The price is 2100 NOK. The NI USB-6008 is a similar, but 
somewhat simpler (and cheaper) device. 

The main features of NI USB-6009 are as follows (the USB-6008 features which differs, are also 
given): 

l

Analog input (AI)

: 8 inputs with referenced single ended signal coupling or 4 inputs with 

differential signal coupling. Software-configurable voltage ranges: ±20V, ±10V, ±5V, ±4V, 
±2.5V, ±2V, ±1.25V, ±1V. Max sampling rate is 48kS/s (48000 samples per second). 14 bits AD 
converter (USB-6008: 12 bits).  

l

Analog output (AO)

: 2 outputs. Voltage range is 0 - 5V (fixed). Output rate is 150Hz 

(samples/second). 12 bits DA converter.  

l

Digital input (DI) and digital output (DO)

: 12 channels which can be used as either DI or DO 

(configured individually). These 12 channels are organized in ports, with Port 0 having lines 0, .., 
7, and Port 1 having lines 0, .., 3. Input low is between  -0.3V and +0.8V. Input high is between 
2.0V and +5.8V. Output low is below 0.8V. Output high is above 2V (with open-drain and push-
pull as options). (USB-6008 has only open-drain output.)  

l

Counter:

 32 bits. Counting on falling edge.  

l

On-board voltage sources

 (available at individual terminals): 2.5V and 5.0V  

l

Power

: USB-6009 is powered via the USB cable.   

l

Configuring and testing

: USB-6009 can be configured and tested using MAX (Measurement 

and Automation Explorer) 4.0, which is installed with NI-DAQ 8.0. The latter is available on the 
CD shipped with the device, and can alternatively be downloaded for free from 

http://ni.com

 (the 

NI-DAQ 8.0 file is approximately 0,5GB).  

l

Application software

: LabVIEW, C, or Visual Studio. Platforms: Windows, Mac, Linux. The 

present document gives an example of how to use USB-6009 in LabVIEW.  

l

Documentation

: The following relevant documents can be found at 

http://ni.com

¡

USB-6009 product home page

  

¡

USB-6009 Data Sheet

 (which is available from the product home page)  

¡

Getting Started Guide: NI-DAQmx for USB Devices

 (which is available from the product 

home page). This document explains how to test the device in Measurement and 
Automation Explorer (MAX).  

¡

USB-6008/6009 User Guide and Specifications

 (which is available from the product home 

page). This document shows in detail how USB-6008 must be connected to external signals 
for measurement or control.  

[

Table of contents

2 Labeling the I/O terminals 

Before you start using the USB-6009, you should attach labels to the analog and digital terminals. 
Figure 2 below shows the 

analog

 I/O terminals with labels assuming differential signal coupling. (In 

general, differential signal coupling is preferrable to single ended coupling due to better DC noise 
suppression).  

Page 2 of 21

TechTeach: A quick guide to National Instruments USB-6009 and USB-6008 multifuncti ...

2/14/2009

http://techteach.no/tekdok/usb6009/

Содержание NI USB-6008

Страница 1: ...ring the USB 6009 in MAX Video included 5 Using the USB 6009 in LabVIEW Video included 1 Introduction This document is a quick guide to NI USB 6009 multifunction I O device and to the similar NI USB 6...

Страница 2: ...ng and testing USB 6009 can be configured and tested using MAX Measurement and Automation Explorer 4 0 which is installed with NI DAQ 8 0 The latter is available on the CD shipped with the device and...

Страница 3: ...or the individual lines P0 is port 0 and P1 is port 1 For example P0 3 is line 3 in port 0 Figure 3 The digital I O terminals The USB 6008 6009 User Guide and Specifications describes the I O terminal...

Страница 4: ...tomatic install Then the wizard searches the PC for the necessary driver software for the USB 6009 This driver software was installed along with the installation of the NI DAQ software When the wizard...

Страница 5: ...h Norwegian Fullf r If you disconnect the USB 6009 from your PC and then connect it again later the New Data Acquisition Device dialog window pops up giving you several options see Figure 6 Page 5 of...

Страница 6: ...u on the PC Table of contents 4 Testing and configuring the USB 6009 in MAX Testing the USB 6009 in MAX Before you start to use the USB 6008 in an application you should test the device in the MAX uti...

Страница 7: ...Automation Explorer In the MAX window expand the Devices and Interfaces item see Figure 8 Page 7 of 21 TechTeach A quick guide to National Instruments USB 6009 and USB 6008 multifuncti 2 14 2009 http...

Страница 8: ...test which is sufficient if we are to check that both AO0 and AI0 work correctly The test procedure which is denoted loopback is to connect the AI0 channel to the AO0 channel Then we generate some leg...

Страница 9: ...window Figure 10 shows the AI0 and AO0 channels wired together Figure 10 To prepare for the loopback test AI0 and AO0 are wired together Page 9 of 21 TechTeach A quick guide to National Instruments US...

Страница 10: ...The Voltage Output dialog window in the Test Panels window In the Voltage Output dialog window select any voltage between 0V and 5V In Figure 11 an output voltage of 3 57V is set Next click the Analo...

Страница 11: ...ted resolution in the DA converter digital to analog and in the AD converter analog to digital Configuring the USB 6009 in MAX Introduction After the testing has passed successfully cf Section 4 above...

Страница 12: ...al tasks If a global channel is reconfigured all tasks which involve that global channel are updated accordingly All these items i e l tasks l local and global virtual channels l physical channels can...

Страница 13: ...ent type from a list Figure 14 A list of options for the measurement type From the list of measurements type we select in our case Voltage which opens the window shown in Figure 15 where you can enter...

Страница 14: ...ish button in the window shown in Figure 15 the window shown in Figure 16 is opened where you can select the physical channels for your task Page 14 of 21 TechTeach A quick guide to National Instrumen...

Страница 15: ...he default name Voltage has been renamed to meas_speed You can also by right clicking on the virtual channel name define a local virtual channel to become a global virtual channel which means that the...

Страница 16: ...and this signal is fed into a controller which calculates a control signal as a function of the measurement signal then you will use the option 1 Sample On Demand To see the details about a virtual c...

Страница 17: ...e loaded the next time MAX is opened You can also export the conguration to a file via the menu File Export This menu also has an import option After you have finished configuring the device in MAX yo...

Страница 18: ...how the front panel and the block diagram of ao_ai vi In this example the analog output channel AO0 and the analog input channel AI0 are connected as in the loopback testing procedure described earlie...

Страница 19: ...Block diagram of ao_ai vi Comments l The two tasks task_ao and task_ai have been defined in MAX cf Section 5 Page 19 of 21 TechTeach A quick guide to National Instruments USB 6009 and USB 6008 multifu...

Страница 20: ...I Selector you can select the type of data the function will write l This VI runs with a cycle time of 50ms If you want to implement writing data to a log file in your VI take a look at my LabVIEW Tut...

Страница 21: ...contents More free tutorials are available at http techteach no Updated 17 April 2008 Finn Haugen finn techteach no Page 21 of 21 TechTeach A quick guide to National Instruments USB 6009 and USB 6008...

Отзывы: