LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I exclude values from the first 5 iterations of a forloop to be included in the calculation done by the mean.vi

I have done a simple vi. which main purpose is to calculate the mean value of a number of samples, using a forloop that forward the values to a mean.vi. The problem is that the first 5 loops produce incorrect values that mess up the mean values, I wonder if anyone knows a way to exclude those 5 first values from the mean calculation.
0 Kudos
Message 1 of 3
(2,442 Views)
Go to the Array palette and look at the functions there. There's several that will do the trick (i.e. Array Subset, Delete From Array).
0 Kudos
Message 2 of 3
(2,442 Views)
> How can I exclude values from the first 5 iterations of a forloop to
> be included in the calculation done by the mean.vi
>

If you are doing an array, do an array subset. If you are passing
elements, do it optionally by putting the mean inside a case structure
and using something like i>=5 to determine when it is called.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,442 Views)