Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

not recognizing daq (USB-6009) in my executable

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

 

0 Kudos
Message 1 of 7
(4,069 Views)
You can run the test panels in MAX and everything works there? Did you also import any tasks that you created on the development pc?
0 Kudos
Message 2 of 7
(4,068 Views)

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

---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 3 of 7
(4,060 Views)

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

0 Kudos
Message 4 of 7
(4,017 Views)

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

0 Kudos
Message 5 of 7
(3,989 Views)
I usually look for the serial number to determine the device name as it will not change.  Once you find your device, set a global to the DAQmx name and use the global wherever you had "/dev1"
0 Kudos
Message 6 of 7
(3,956 Views)

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

0 Kudos
Message 7 of 7
(3,938 Views)