LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issues checking whether a data acquisition task is done

Hello, I'm trying to generate a signal (2 different waveforms on 2 separate channels) on a DAQ board, and I'm having issues checking whether the task is done before I stop and clear it.

 

I have attached a picture of my code below (the subVI shown runs in a loop to continuosuly generate a finite number of samples at a time). It works and produces the expected results at the DAQ board's output in the current condition.

 

I've tried two ways to check whether the task is done before the Stop and Clear blocks run:

-DAQmx Wait Until Done block

-DAQmx Is Task Done in a While loop with a 100ms wait until next multiple timer (so it doesn't run as many times as possible using up tons of processing power) that's supposed to stop when the Task Done Boolean Flag is True.

Both solutions have failed in the same way: they never detect the task is done, and the program stops there.

 

Any idea what I'm doing wrong?

 

DAQ.png

0 Kudos
Message 1 of 4
(2,265 Views)

Anyone has ever encountered similar issues?

0 Kudos
Message 2 of 4
(2,221 Views)

With continuous samples will the task ever be done?

 

Lynn

0 Kudos
Message 3 of 4
(2,208 Views)

That solved the problem, thank you!. I have changed to Finite Samples and it works now

0 Kudos
Message 4 of 4
(2,191 Views)