03-03-2013 11:22 PM
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.
03-04-2013 04:45 AM
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
09-03-2013 10:52 AM
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
09-03-2013 10:55 AM
@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.