LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Lowpass Filter

Hello,
I like to realize a kind of a lowpass filter. The values which are read in can change over time, so I want to recalibrate the values every minute.
In the attachment you can see the simplified VI. In the lower while-loop there is the normal process. The target is, when the Button "kalibrieren 2" is pushed and in the upper while-loop the time to wait has finished, the resultvalue of the upper loop has to be the new value for the lower loop.
The problem at the moment is, that when the upper loop is running, the cycle of the whole programm is longer for the wait time. Is there an opportunity to uncouple the wait time loop from the normal VI process? Are there any examples for this kind of problem? 
 
Thanks for any kind of help!
 
LV6.i
Win 2k
 
 
Regards
ThomasD
 
0 Kudos
Message 1 of 3
(2,879 Views)
Thomas,

Your VI is missing some parts so it cannot be run. Some things can be seen by examination. The loop connected to "kalibrieren 2" has two Wait until next multiple nodes. Eliminate the longer one. Both inner loops will execute only once. They are set to Continue if True and the condition wired to the continuation node will be False on the first execution (i = 0). If that is what you want, it might be more clear to simply wire a False constant to the continuation nodes.

Since you are running LV 6, you do not have the Event structure, which is ideal for handling the buttons. Perhaps in your case simply putting the "kalibrieren 2" button and the case structure in the lower loop might work. As you have it the output of the upper loop is an input to the lower loop. Thus the lower loop can only execute after the upper loop completes. If they need to be separate loops, pass the data from one to the other with a queue or a functional (LV2-style) global, rather than via a wire (which creates data dependency).

Lynn
0 Kudos
Message 2 of 3
(2,857 Views)
Hello Lynn,
 
thank you for the answer.
The next couple of days, I have no opportunity to continue the project and check your tips. But so far it goes on and there are new results, I will write.
 
 
Regards
ThomasD
 
0 Kudos
Message 3 of 3
(2,838 Views)