01-24-2014 08:51 AM - edited 01-24-2014 09:03 AM
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?
01-26-2014 10:32 AM
Anyone has ever encountered similar issues?
01-26-2014 11:59 AM
With continuous samples will the task ever be done?
Lynn
01-27-2014 05:22 AM
That solved the problem, thank you!. I have changed to Finite Samples and it works now