03-07-2011 10:26 PM
Hi
When I try to run this circuit below, it works fine
But when I try to combine the circuit into one loop just like in the attachement below, the error message pop out
Why is that happen? Is that possible I want to combine the circuit in one loop?
Thanks
Solved! Go to Solution.
03-08-2011 12:10 PM
Hi Yusof,
Good post. The problem you're running into here is that your write loops has to execute at least 4 times/second (20kSamples/sec / 5kSamples/iteration) while your reading loop has to execute 10 times/second (10kSamples/sec /1kSamples/read). The DAQmx write should determine the loop speed because it won't write until there is space in the write buffer. To do this, change the samples to read to -1. This tells labVIEW to read all available samples in the buffer.
Best,