02-12-2010 10:52 AM
Hey Guys
I'm using the USB-6009 to read 4 analog signals using the DAQ assistant in my a relatively simple labVIEW program I wrote. The problem I'm having is when make my program into an executable and put it on another computer, the program no longer detects/reads from the USB 6009. Instead of getting zeros (or near zero) I'm getting NaN's. I have installed the drivers on that computer to recognize the USB-6009. In fact, if I unplug and then plug in the device the computer recognizes the device and asks whether I want to open signal express. And using the computer I wrote the program with is not a problem, it works great.
Any suggestions to get my executable to detect the USB-6009 (is there a device index or something like that)?
Thanks,
Lucas
a stumped graduate student...
02-12-2010 10:55 AM
02-12-2010 12:44 PM
If you have Max installed on both PCs, check to make sure the device name is the on both machines. If you've hard coded the DAQ addressing, it may be looking in the wrong place for it.
Best bet here is add some kind of Setup tab or screen so you can select your DAQ hardware at runtime. This will make your executables a lot more "portable."
02-16-2010 04:36 PM
Hey guys,
So I checked MAX and the device had been given a different name (dev2 instead of dev1). Once I changed the name in MAX, the device was recognized in my executable program!! It works!
Is there are way using the daq assistant to specify the device (and/or device name) to use as the daq? I've noticed when using it, there is no way of inputing a device name, there are no wire terminals for a device name or type. (I found the find DAQ device vi that was previously posted that I could use to find a daq device and tell the name of the device. Now I need a way of specifying that name in my program).
Thanks,
Lucas
02-19-2010 11:39 AM
Well there is not way you can set the device names programtically but you can use DAQmx property node get the device name programatically and then use them instead. I have play with that and it is a lot better way of DAQ programming.
Here is an example that might help you.
http://decibel.ni.com/content/docs/DOC-3723
cheers
lab
02-22-2010 07:03 AM
02-23-2010 07:11 AM
lucasdellis,
There is a way to export the hardware config from MAX to a text file, edit the name of the device in the file and then import the file back into MAX.
See this http://forums.ni.com/ni/board/message?board.id=170&message.id=412248&query.id=2542454#M412248