08-11-2005 02:34 PM
08-12-2005 08:59 AM
08-12-2005
11:22 AM
- last edited on
07-15-2025
01:33 PM
by
Content Cleaner
Hi All-
Daniel's suggestions should be quite helpful- you need to make absolutely sure that you are only accessing the resource from a single call at a time and that you are monitoring error conditions because the commands will not execute if an error has been throw previously. Creating and destroying the task globally rather than with each iteration of the loop will also provide much greater efficiency in terms of operation.
Finally, you may be interested to know that the USB-6008 is now fully supported by NI-DAQmx 7.5. This driver is considerably more powerful and offers many advantages over the NI-DAQmx Base driver in terms of speed and flexibility. Instructions for configuring your USB-6008 for use with NI-DAQmx can be found here.
Hopefully this helps-
08-15-2005 08:03 AM
Thanks for the info. Since this was just a quick trial I was simply stepping through and monitoring the Status variable, which was always good. What the problem ended up being was that I never closed the task. Once I added the close task function all was fine. The CVI documentation was weak and I missed seeing the Closetask function in the sample code.
I will properly rewrite this so that it is clean per your suggestions.
One thing I can say is that the Base driver leaves a lot to be desired for a NI product. I was expecting to purchase this DAQ, install the driver, and use function panels, but there is no "base" .fp to be found. I may give the mx7.5 driver a try.
Thanks all!
Jim
08-15-2005 08:40 AM