04-15-2011 05:37 AM
Hi,
I have a 3D array containing XY points of several loops and i am trying to average the data points of my array into a 1D array that should contain 1Loop with XY points. Can someone help me out?
Thanks
Mutah
******************
Qui ose vaincra.
Solved! Go to Solution.
04-15-2011 06:29 AM
Hi Mutah,
can you please add a small VI with some sample data to illustrate your problem?
What is an array containing "1Loop"?
How do you want "XY points" to be represented in the resulting array?
What du you understand by "XY points"?
04-15-2011 08:36 AM
Hi GerdW,
Enclosed is the small v.i.
The idea is to average data points of the X axis and data points from the Y axis and have a final loop.
With the v.i, you need to change the sampling rate, the frequency and the amplitude to see a loop.
Hope this makes it a little bit more clear..
Mutah
04-15-2011 08:47 AM - edited 04-15-2011 08:48 AM
Hi Mutah,
it really doesn't help so much...
There is no 3D array in your VI, just two 2D arrays. You also don't mention what to average in those arrays: rows, columns, or something completely different?
Also: what do you mean by "loop" ("see a loop", "final loop")? Do you mean FOR loops, WHILE loops? Or rows/columns of an array?
At least a small hint in the attachment...
04-15-2011 09:12 AM
Hi GerdW,
The sine signal generator gives an array of X0.....Xn data points.
The triangle signal simulator gives an array of Y0...Yn data points. so what i am trying to do is plot the two signals
and they come out on the XY graph as a loop( the loop being the figure on the XY graph).
My point is that i can generate multiple Loops of X0....Xn and Y0...Yn data points by changing the sampling rate. so i would like to be able
to average the sum of loops generated by the signal generators.
so, i would have an array of 2D data for my final loop.
Thanks!!
Mutah
04-15-2011 09:21 AM
04-15-2011 09:38 AM
Hi GerdW,
You got the right thing!!
It is doing the right thing!
Thanks a lot!
Mutah