DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

I'd like to have the average of 2 y-values for 1 x-value

Hello,
 
I have acquired data from tests. The data is logged throughout a sweep. This means that for one X value I have got two Y values.
Does anybody know how to get the averages so I got one graph. The data is stored in one channel.
 
Thanks in advance.
 
Robert 
0 Kudos
Message 1 of 3
(3,404 Views)
Hello Robert,

Seems like the reduced loading of data channels could solve your request. If you choose 2 as "Intervall width" and Mean Value as "Reduction mode" you get a new channel with the means for each two values in the input channel. Either interactively from the short cut menue in the browser window of DIAdem NAVIGATOR or in a script using the command DataFileLoadRed.

Hope this helps,
Ralf
0 Kudos
Message 2 of 3
(3,391 Views)

Hi Robert,

If your data are arranged such that multiple Y values for the same X value occur right next to each other, then Ralf's suggestion is ideal.  Are they arranged like this?

Y1 for X1
Y2 for X1
Y1 for X2
Y2 for X2
      :
Y1 for Xn
Y2 for Xn

If not, are the X values equidistant (equally spaced: 1, 3, 5, 7...)?
Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 3 of 3
(3,379 Views)