03-07-2006 08:31 PM
03-08-2006 05:32 PM
03-09-2006 12:14 PM
Here is a sample of the code that is causing the problem. The issue also seems completely independent of how many AI channels are acquired. Thanks for looking at this.
Patrick
03-13-2006 07:40 PM
03-14-2006 11:22 AM
I'd be interested in having a look too, but I would need you to do "Save with Options..." back to LV 7.1 because I don't have 8.0. Saving to a LLB library will be the most convenient way to then post a single file here.
-Kevin P.
03-14-2006 09:02 PM
03-14-2006 09:06 PM
03-15-2006
07:01 PM
- last edited on
04-20-2026
09:56 AM
by
Content Cleaner
Hi Patrick,
This seems more of a CPU/execution speed issue more than a driver or hardware issue. You mentioned you haven't changed the read mode from sleep, so you may already be aware of this. The last sentence in the "Sleep" description seems to be what is happening in your case: "However, it should be noted that if data is arriving or space is being made available fast enough such that the NI-DAQmx process does not have to wait for data, then the process will never be put to sleep and no reduction of CPU usage will occur."
For you, the threshold for the buffer to fill and be ready to read without dominating the CPU seems to be at 40 kHz. At 42 kHz, the data is filling your buffer and being made available so fast that the DAQmx Read VI is executing as soon as it is called, so there is not time for the CPU to sleep. On my PC (3.4 GHz P4, 1 GB ram), my threshold seems to be around 72 kHz while running your VI. I also tested this with a few of the internally timed DAQmx acquisition shipping examples, and each one had a different threshold as well. Sometimes increasing your "samples to read" size helps a bit since it will take more time for your buffer to fill, thus giving your CPU a chance to sleep. This is all somewhat PC/task dependent, and each machine may have a different point where the CPU usage spikes up.
Thaison V