07-13-2009 09:29 AM
Sorry Norbert,
Not everyone is perfect as you.
I noticed the mistake and have made changes. Here is my latest. I am not assuming that you want an AVG as Norbert does. I assume that you know what you are asking for when you make your post. I hope this one helps.
07-13-2009 09:31 AM
Yes Nobert you are right array 2 results in the last element from each column. What i need to do is substract this last element of say row 1 from all elemnts of row 1 so as the elemnt #255 will become 0 (as it's substracted by itself).
Andreas
07-13-2009 09:37 AM
aeastet wrote:Sorry Norbert,
Not everyone is perfect as you.[...]
Well, i am not perfect for sure! And this postings have nothing to do with "being perfect". So you don't need to excuse yourself.
We all want to help the ones who are in need for answers and every answer can help....
I am just very surprised that just subtracting values read from a DAQ device is the algorithm in demand... so i thought what other algortihm makes sense to me. So if this is not what is needed, please just ignore my post....
Norbert
07-13-2009 09:37 AM
07-13-2009 09:41 AM
Ah, ok, so more like "knowing the variance".....
hope this helps,
Norbert
07-13-2009 09:51 AM
Thank you both for your help. Norbert you are right that this is not the whole algorithm. This is a first step but I feel that if I see how this is done I will be able to learn a few things so as to be able to make the next steps by myself. The thing is that although I am pretty experienced with languages like C,C# I find Labview quite different in manipulating such structures.
Yes like the variance... then I will average this "variance" and save it to another 1x10 vector along with some other values like temperature.
07-13-2009 10:14 AM
Statistically, this approach does not result in the variance, but might get close to it.
Maybe, you should instead browse the mathematic palette from LV (which is propably quite thin if you have LV Base Developement System) for appropriate functions for your needs.
The approach you are just presenting is quite good in approximation if you are lucky and the last read value is not a "runaway".....and it is implemented in pure LV which might have some advantage....so please keep an eye on this algorithm 🙂
Norbert