background image

represents the configuration of the signal input or signal output operation to be executed by the I/O 
device. Creating tasks is a general feature of the MAX utility, i..e. tasks are used also for configurating 
other I/O devices than the USB-6009. 

In general, a task can contain one or more 

global or local virtual channels

, and one such virtual channel 

is based on one 

physical channel

 (having e.g. a screw terminal on the I/O device). A local virtual 

channel exists only within it's parent task, while a global virtual channel may be used in several 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 be configured in MAX. Tasks and virtual channels can be given any name (e.g. task_motor and 
meas_speed, respectively), while the physical channels will have predefined names (e.g. ai0, ai1, ao0, 
ao1). 

Configuration of an analog input task 

See 

Figure 8

. Selecting 

Create Task

 in the menu opens a window where you can select the 

measurement type, see Figure 13. 

 

Figure 13: Window where you select the measurement type

 

Page 12 of 21

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

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

Отзывы: