Hello,
I have a problem with 100% CPU usage during DAQmx continuous acquisition. The subject is similar than what observed another member in the .NET section : http://forums.ni.com/ni/board/message?board.id=232&message.id=426
Actually, I perform a continuous voltage acquistion using a PXI 6254 DAQ card. I have plenty of other modules running in parallel and I MUST check CPU usage of my application to make sure all operations can be performed correctly. We also have other apps running on this PC and we cannot tolerate a constant high CPU load.
I read continuously 1000 samples at 10kHz on my channel, so every 100ms I get these data and need to send them to other VIs. Unfornutaley, CPU usage is 100% when I use a While loop with a DAQmx read VI, to get these data cyclically, even if I place a "Wait" VI inside the loop.
I know that people said on this forum (see link above to other topic) that this behavior was - normal - ...
Nevertheless, I managed to do something work quite well using a new functionality offered with LabView 7.1 : the Timed Loop. When using the DAQmx Read inside this loop it take almost no resource, but I have to associate a DAQmx Create Timing Source VI with the Sample Clock signal as parameter. I still have an error when I run the task, but afterwards it continues to run correctly.
In fact, I already did this kind of work in traditional NI DAQ using an "Occurrence"... but the PXI 6254 (M series) seems to work only with DAQmx...
Does anyone have gone through this ?
Is the Timed Loop a possibility offered by NI to overcome the 100% CPU usage in DAQmx ?