LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

averaging single spectrums

Hi All.
I want to pick certain part of an array that is running. As u can see from the attached vi, i ihave 2 arrays one of which  simply  consists of ramping numbers. What it does it generates ramped numbers (lets say x) each of has corresponding y value supplied from random umber generator. If I set increment 1, start and end 3, -3 respectively.
3      a
2      b
1      c
0       d
-1      e
-2     :              
-3
-3
-2
-1
0
1
2
3
3
2
:     And I m plotting this contiously. Now i want to define a single spectrum which is from 3 back to 3 which has 14 x elemnts and 14 y elements. As my loop runs, i want to pick only this first spectrum (14 elements) and plot. And i wanna pick second spectrum from 15th to 29th elemnent, and average it with first one and plot. and third spectrum average it with previous averaged spectrum. I tried but i can not make thos order, besides i have no idea how to pick that specific arrays as loop runs.
please help me
thanks
0 Kudos
Message 1 of 7
(3,850 Views)
sorry forgot to attach
0 Kudos
Message 2 of 7
(3,846 Views)
Hi,
 
thank you for your post but I am sorry to say, that I didnt really get what you are looking for.
Can you discribe your problem in a different way?  If you feel more comfortable writing your post in german, do so.
 
Regards,
Stefan Henke
NIG
0 Kudos
Message 3 of 7
(3,830 Views)
Danke Stefan..

I have solved the problem anyway..
0 Kudos
Message 4 of 7
(3,823 Views)
OK,
 
sounds good, but if you have any further questions - feel free to post.
 
Schönes Wochenende
 
Stefan Henke
NIG
0 Kudos
Message 5 of 7
(3,821 Views)
Thanks..
have a nice weekend too
tschus
0 Kudos
Message 6 of 7
(3,813 Views)
Hi stefan!
U have told me to feel free for asking questions:)
Well, briefly describing, I have been writing a code to control devices and data acquisation to be used for some experiment. So far I  finished almost everything except data averaging proces..
 As u can see from attached file, on  the left side flat structure i set a ramping machine to sweep current , meanwhile i measure from a voltmeter ( represented with random number generator). And I get one spectrum when every time a a total sweep is finished, and these are averaged by using quo. and remain., function.
My problem is that i want to exlude first spectrum from averaging. Since in my case first spectrum is quite noisy, i dont wanna include it in the average spectrum. I am not able to manage modify this code to do so.
can u help me please?
0 Kudos
Message 7 of 7
(3,795 Views)