LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

each for loop as a new array column

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.

Tim
GHSP
0 Kudos
Message 11 of 17
(1,043 Views)

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

0 Kudos
Message 12 of 17
(1,041 Views)

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 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 13 of 17
(1,037 Views)
Here is closer to what you want I think.
Tim
GHSP
Message 14 of 17
(1,036 Views)

Ah, ok, so more like "knowing the variance".....

 

Scaling.PNG

 

hope this helps,

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 15 of 17
(1,031 Views)

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.

0 Kudos
Message 16 of 17
(1,016 Views)

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 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 17 of 17
(999 Views)