LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change from USB-6009 to USB-6002.

Solved!
Go to solution

Friends,
Can the exchange of the NI USB-6009 acquisition board for the NI USB-6002 be done automatically, I mean, is it simply an exchange of the module (hardware) or is some adjustment in the program necessary? If I already have an executable running, will it be necessary to reformulate the program and generate a new executable or can I simply exchange the 6009 for the 6002 and everything will work without me having to worry about the program? The program in which I use the NI USB-6009, acquires voltage signals. The program uses only the module's analog inputs, which, as indicated in the NI USB-6002 manual, have no difference in relation to the NI USB-6009, including the pinout. Thanks for the help!

0 Kudos
Message 1 of 3
(284 Views)
Solution
Accepted by topic author MarceloPinto71

Hi Marcelo,

 


@MarceloPinto71 wrote:

If I already have an executable running, will it be necessary to reformulate the program and generate a new executable or can I simply exchange the 6009 for the 6002 and everything will work without me having to worry about the program?


How do you access the AI channels within your program?

Make sure the new 6002 is listed in MAX with the same label ("Dev1" or similar), then most VIs will have no problem with using the newer hardware.

You might get into problems when you rely on the DAQAssistent or when your program scans the available DAQmx devices to look out for specific hardware (device type, device serial)…

 


@MarceloPinto71 wrote:

as indicated in the NI USB-6002 manual, have no difference in relation to the NI USB-6009, including the pinout.


I guess there are some differences, like in accuracy or samplerates…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(277 Views)
Solution
Accepted by topic author MarceloPinto71

In principle, the code written for a USB-6009 should largely work the same way with a USB-6002.  As @GerdW mentions, you need to set it up in a "compatible" way.  MAX has the concept of "Devices" (so a USB-6001 is a different device from a USB-6009), what I'll call "Modules" (meaning A/D, D/A, possibly Counter/Timers, PFI lines, etc.) which might be the same or different, and different sampling rates and "bits" in such things as A/D (12-bit, 16-bit) and how they relate to the hardware clock(s).

 

As I recall (having done this a few years back), going from a USB 6001 to a 6009 is pretty simple.  If MAX shows the 6009 as Dev1, and the 6001 as Dev2, then find the DAQmx setup functions (Task, Channel) and specify the correct Dev.  Adjust clock rates and sampling parameters as needed, and you should be good to go.  Do try it out on MAX with Test Panels first, though ...

 

Bob Schor 

0 Kudos
Message 3 of 3
(232 Views)