Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 50002 with 6008 DAQ

Have been using a 6008 DAQ with this set-up for some time.  Tried to use a different 6008 which passes self-test and is fine in MAX, but in LabView get "Error 50002 occurred at DAQmx Start Task.  The specified device is not a valid device".  This now occurs on two different 6008s, but the original still works fine.  How can I get LabView to recognise other cards?
0 Kudos
Message 1 of 6
(3,985 Views)

Hello saucypie,

 

Thank you for using NI forums.  Usually this error occurs when trying to run a self-test in MAX so that's strange that it would work in MAX but not in LabVIEW.  Are you able to run a test panel and acquire data in MAX with the two new 6008's?

 

Regards,

0 Kudos
Message 2 of 6
(3,972 Views)

Thanks Brandon,

 

Yes, I am able to acquire data in the test panels using all 6008s.  They all seem to running fine until hitting start in LabVIEW when the new cards produce the error - strange I know...

0 Kudos
Message 3 of 6
(3,968 Views)

Saucypie,

 

Do each of the 6008's show up under a different device number in Measurement and Automation Explorer?  One thing I would try is opening up a basic example program and trying to run that with the new cards.  You can go to the NI Example Finder in LabVIEW (Help>>Find Examples) and select Hardware Input and Output>>DAQmx>>Analog Measurements>>Voltage>>Acq&Graph Voltage-Int Clk.vi.  Make sure that the device name in the physical channels list of the VI matches the corresponding device name and number in MAX.  Let me know how that goes.

 

Regards,

0 Kudos
Message 4 of 6
(3,955 Views)

Thanks Brandon, you were right!!

 

The initial 6008 was labelled dev1 in MAX, so the new cards I plugged in were obviously labelled dev2 & dev3.  The LabVIEW vi was programmed to only use dev1.  I simply deleted the old 6008 and renamed the new one dev1 in MAX, and the vi ran perfectly with the new card.  This is fine for now, but is there a way to program my vi so that it recognises any device?

 

Thanks for all of your help.  I'm quite new to LabVIEW etc, so it's great that NI has a forum that works so well.

0 Kudos
Message 5 of 6
(3,939 Views)

I'm glad this worked for you.  You shouldn't have had to delete the old 6008 from MAX.  You can add a control to the 'Physical Channels' input of the DAQmx Create Virtual Channel VI which allows you to set which device you will be using on the front panel.  This is done by right clicking on the Physical Channels node of the DAQmx Create Virtual Channel VI and selecting Create>>Control.  Everytime you open your VI it will recognize the devices connected and will populate the drop down list on your front panel accordingly.  Please let me know if you have any questions about this.

 

Have a great day,

0 Kudos
Message 6 of 6
(3,930 Views)