LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mean;Standart Deviation;Tunnels

Hello,

 

I am testing two ways to calculate the mean. When I am outside the loop testing, both got got the same results.However, using the For Loop, I got two different answers. I know this is probably due to the different tunnel of each one. In my opinion, auto-index should be disable so you can do calculate the array properly. Nevertheless, I saw lots of examples which they use the auto-index along with statistics.vi. Therefore, I didn't get which one is the right way to calculate.

0 Kudos
Message 1 of 4
(2,449 Views)

In your loop you only sent the last result to the Mean function, but a 1D array to the Statistics, thus you're not calculating the same data.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 4
(2,435 Views)

For people who may be interested in my topic, this is the final VI I will use. Any comments?

 

Sorry if it is in a zipped file it work for version 8.6 and upper

0 Kudos
Message 3 of 4
(2,373 Views)

@ziedhosni wrote:

For people who may be interested in my topic, this is the final VI I will use. Any comments?

 

Sorry if it is in a zipped file it work for version 8.6 and upper


I think you've posted in the wrong thread, and it won't open in 8.6, it says 9 or newer. I am interested in seeing how it ended up thogh.

0 Kudos
Message 4 of 4
(2,368 Views)