LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cadensed loop containing long time operations

Hi,

I'm writing a program where I need to read an analog value with a high rate (say 10kHz), and depending on the value, I'll have to start a counter pulse whose length may be longer (10ms). If I make a loop where I read my DAQmx input at 10kHz, most of the iterations will last 100µs as expected, except for the ones where I send a pulse which last 10ms.
Is there a way to avoid this problem and go to the next iteration without waiting for the pulse to finish?

Thanks in advance,
Arnaud


Message Edited by Arnaud_ on 06-12-2008 06:31 AM
0 Kudos
Message 1 of 2
(2,386 Views)
I would use two parallel loops. One with the AI and the other with the CO task.
0 Kudos
Message 2 of 2
(2,378 Views)