LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

digital filter doesent filter continously

Hi
I am using a N6025E daq card to aquire a signal. Then i am digital filtering this signal using notch filter. Then i am outputting this signal. I dont think i did the outputting right way. Whenever i have boolean inside the is the task done function set  true filter filters contionusly. Otherwise filter only filters for short period of time. When i have the boolean inside the is the task done is true i cant get  the output. can somebody help me?
 
Thanks
0 Kudos
Message 1 of 3
(2,243 Views)
I don't think you understand how a while loop works. That while loop with the Is Task Done will spin until there is either an error or until you make the Boolean true. When the loop is spinning, nothing else is executing. That's basic dataflow and understanding dataflow is essential to knowing how a LabVIEW program runs. I don't see the point of that while loop at all. Remove it. You can OR the status of the Is Task Done, DAQmx Write and your stop button toghether.
0 Kudos
Message 2 of 3
(2,216 Views)
This seems to be related to this thread as well, where I believe the inner while loop is causing the same problem the poster is asking about in that thread.
0 Kudos
Message 3 of 3
(2,209 Views)