07-20-2009 10:47 PM
07-21-2009 05:03 PM
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,
07-21-2009 05:27 PM
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...
07-22-2009 11:35 AM
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,
07-23-2009 12:00 AM
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.
07-23-2009 12:43 PM
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,