05-03-2017 01:28 AM - edited 05-03-2017 01:29 AM
Hi anon,
If I increase the sampling rate I get the 200279 error. This usb-6001 may be low spec but it has up to 20kS/s so it should be able to give 1000 samples over a 10 sec period.
I did NOT recommend to change the samplerate!
I suggest (aka "strongly advise") to get rid of the DAQmxRead with just "1 Sample"!
Read blocks of 100 samples as you did before (as it seems from your quoted message) using DAQmxRead with mode "1 channel N samples"!!!
05-03-2017 05:52 AM
OK, I changed the sampling rate and removed the queue. The problem is that my data is not passed from one while loop to the other. If I uses the queue then obviously the main loop waits for the secondary to output data hence there is a delay. Any suggestions?
05-03-2017 06:11 AM
Hi anon,
The problem is that my data is not passed from one while loop to the other.
In your VI you didn't need to transfer data to the other loop…
If I uses the queue then obviously the main loop waits for the secondary to output data hence there is a delay. Any suggestions?
You could use a timeout on the Dequeue…