10-26-2009 01:49 PM
Hello everyone,
I need some help creating a sum window on an array. For example, Im trying to make a summing window of 5 elements moving throught an array of 10 elements.
The attached .vi only works for the first 5 elements and I need to move throught the 10 elements point by point.
Thanks for any help or suggestion.
Solved! Go to Solution.
10-26-2009 01:53 PM
One thing that jumps out to me is you're never updating the index on Array Subsets. You've wired a constant 0 to the input. This, of course, means that every iteration of the loop gives you elements 0-4. Try wiring the i terminal to the index inputs.
10-26-2009 03:58 PM
10-27-2009 11:02 AM
Elset, you were right .. I just need to connect the index of the for loop to the array subset to update the values and that was all ... sometimes you just keep giving turns around on a simple solution ..
I am going to attach the solution if somebody have something different or see something wrong just let me know.
Thanks ..