background image

 

A quick guide to National Instruments USB-6009 and USB-
6008 multifunction I/O devices 

 

Figure 1: The USB-6009 (USB-6008 is similar)

 

Table of contents:

 

1 Introduction

 

2 Labeling the I/O terminals

 

3 Connecting the USB-6009 to the PC

 

4 Testing and configuring 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-
6008 device. In the following only the name USB-6009 is used. Special USB-6008 features are 
described separately. 

Page 1 of 21

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

2/14/2009

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

Summary of Contents for NI USB-6008

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Reviews: