LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

averaging of the signal after the "while loop"

Hello everybody
After while loop I got the 10 arrays (matrix). Every array is the
one representation of the signal. I would like to average the
signal. Is there any nice function for doing this or I have to
write it by my own.
Many thanks
PP
0 Kudos
Message 1 of 8
(3,180 Views)
Hi Pawel,

take a look inside the mathematics->statistic menu! There you can find a VI
called "Mean" which will do what you want.

greets
Henrik


"Pawel Pocwiardowski" schrieb im Newsbeitrag
news:3BB4066B.15075CAA@reson.dk...
> Hello everybody
> After while loop I got the 10 arrays (matrix). Every array is the
> one representation of the signal. I would like to average the
> signal. Is there any nice function for doing this or I have to
> write it by my own.
> Many thanks
> PP
0 Kudos
Message 2 of 8
(3,180 Views)
Henrik Skupin wrote:
>
> Hi Pawel,
>
> take a look inside the mathematics->statistic menu! There you can find a VI
> called "Mean" which will do what you want.
>
> greets
> Henrik
>
> "Pawel Pocwiardowski" schrieb im Newsbeitrag
> news:3BB4066B.15075CAA@reson.dk...
> > Hello everybody
> > After while loop I got the 10 arrays (matrix). Every array is the
> > one representation of the signal. I would like to average the
> > signal. Is there any nice function for doing this or I have to
> > write it by my own.
> > Many thanks
> > PP

Hi Henrik
Thank you for answer, but I think we have misunderstood.
The resulting signal is an arrays (after loop - 10 times) of
arrays (my signal - 400 samples) of digits. What I want to do is
to find
not the mean of the signal like e.g. 1;2;3 - mean = 2,
but I want to find the mean values of the every cell in the
signal after 10 measurement eg. 1;2;3 - first try, 1.1; 2.01;
2.99 -second try, 0.9; 2.1 ;3.1 - and so on and then my averaged
signal is [mean[(1,1.1,0.9) ; mean(2,2.01,2.1) ; mean(3,2.99,3.1)
].
In another words I want to find the most common (probable) signal
which appears in set of measurements.

Best regards
PP
0 Kudos
Message 3 of 8
(3,180 Views)
You still use the Mean function. Just put it inside of a for loop with your 2D array wired to it from outside.
0 Kudos
Message 4 of 8
(3,180 Views)
Thank you I have already solved the problem.
Best regards
PP
0 Kudos
Message 7 of 8
(3,180 Views)
> After while loop I got the 10 arrays (matrix). Every array is the
> one representation of the signal. I would like to average the
> signal. Is there any nice function for doing this or I have to
> write it by my own.

If what you need is to average ten arrays and result in one array,
you can do this with two nodes. Drop down the growable plus node
and size it to take in your ten arrays, the output will be the sum.
Wire that array to a divide node and on the bottom, wire up ten as
a constant.

Greg McKaskle
0 Kudos
Message 5 of 8
(3,180 Views)
>
> If what you need is to average ten arrays and result in one array,
> you can do this with two nodes. Drop down the growable plus node
> and size it to take in your ten arrays, the output will be the sum.
> Wire that array to a divide node and on the bottom, wire up ten as
> a constant.
>

Yes but then I have to calculate standard deviation by my own (I
did not mention that I want this, but I want). But anyway, thank
you, I have solved the problem.

best regards
PP
0 Kudos
Message 6 of 8
(3,180 Views)
Hi, I am compiling a program by using Labview. I get one 2D Array after 2 loops : one is inside and the other is outside loop. Right now, what I want to do is to find the mean values of the every cell in the array after measurement eg. [1, 2, 3] - first try; [1.1, 2.01, 2.99] -second try; [0.9, 2.1, 3.1] - and so on and the averaged signal that I want to get is [mean(1, 1.1, 0.9) ; mean(2, 2.01, 2.1) ; mean(3, 2.99, 3.1)].

In another words I want to find the most common (probable) signal which appears in set of measurements.

Although I read the answer that you offered to others, I can't suceed in getting the right result. Can you tell me in more detail and more clearly?
Thanks a lot

Huili
0 Kudos
Message 8 of 8
(3,180 Views)