03-22-2006 10:08 PM
03-24-2006 10:40 AM
Daniel,
It looks like that code should be working. I'm going to try to recreate it here on my end...I've already gotten it to compile and run on my machine, now I just have to get my hands on a 6501 to test it out. I'll update you as soon as I try it.
-Justin
03-24-2006 02:38 PM
03-24-2006 06:42 PM
03-28-2006 06:03 PM
I ended up creating 2 identical programs to reset the hardware...one using DAQmx and the other using DAQmx Base. The DAQmx program worked fine, but the DAQmx Base version threw that same error.
It looks like this is a bug in the DAQmx Base code. I have submitted a bug report on the issue, and am hoping for a response sometime next week. I'll try to post back as soon as I get an update on the issue.
-Justin
03-30-2006 05:31 PM
03-31-2006 05:03 PM
Hi Daniel,
Thank you very much for your patience in this matter. I have heard back from R&D on the issue, and it's definitely a bug in the code. The reset function fails to initialize the device list when it is called, which is why we were getting that "device not found" error. This bug will be fixed in the next release.
As a workaround until then, call the create task function followed by the clear task function first, then call the reset device function. This will work for C as well as for the LabVIEW users out there. For LabVIEW, you can also run the config tool inside of LabVIEW first, then call Reset Device. The extra step is added in to correctly load the device list so that the device is found correctly when the reset function is called.
I hope this helps. Again, sorry for the long delay!
Thanks,
Justin M
National Instruments