LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How the input changes on each iteration of while loop

Solved!
Go to solution

Hello,

 

can someone explain(clarify) of how or what input will be feeded as the input d(n) of the adaptive filtering block for the first,second and rest iterations of the while loop as shown in the attached image..

As I need to feed the e(n) coming out of the while loop as input d(n)to the adaptive block for the first iteration and for the next iteration the previous output e(n) of adaptive block has to be feeded back as input d(n) and other input x(n) form the DAQmx.

 

Thanks.

 

0 Kudos
Message 1 of 2
(2,821 Views)
Solution
Accepted by topic author GoviRe

You have a shift register on the loop boundary, so for the first iteration the d(n) input will get whatever is fed to the shift register on the left from the outside. After the adaptive filtering has executed, e(n) is fed into the shift register on the right, to be read from the shift register on the left at the next iteration. And so on. This seems pretty much what you want.


PatanGova wrote:

As I need to feed the e(n) coming out of the while loop as input d(n)to the adaptive block for the first iteration and for the next iteration the previous output e(n) of adaptive block has to be feeded back as input d(n) and other input x(n) form the DAQmx.


If you need to retain the value across calls, use a globally initialized feedback node to feed the output of the while loop to the input.

0 Kudos
Message 2 of 2
(2,796 Views)