LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ensemble Averages

Hello,


I have 3 questions and the ensembled average is by far the most important one...

1)


I am intrested in doing ensambled averages in Labview.

I have for example 20 points.

for each point i want to take 1000 samples, 1000 times so inessence i have 10^6 data points. for each of the 20 points

I want in labview to be able to do an ensembled average for each of the 20 points..how do i achieve this?

Do i need an extra bit of software for this or is this option already existent in labview...?

Currently i use continous acquization waveform (in a n loop) to generate my 1000*1000 readings for each point. And then a fotran code has been written to do ensablmed averages from this. But i relaly need everything to be done in one go...so that i dont ahve to keep running my code for each point as i can potnetially ahve 100s of points.

2)

One other thing in labview one of the MOST annoying thing is that if i am saving a data to files, and appending the file instead of creatinga new one...For each time i append a file it writes the new data underneath teh old one, in essence increasing the number of rows...is there anyway to make it write in column each time a data is appended.


3)

Further more, what is the easiest method of removing the two extra columns when the file is written (such as the dt and t columns)


Would appreciate a quick response if there are any suggestions oh i use labview 6.1 so is there anybenefit in upgrading to the newer versions?

Mansoor
0 Kudos
Message 1 of 4
(3,005 Views)
1/ see the attached vi : you can separate the Y component of the waveform, for each channel, and average it.
2 & 3/ If you need to open your file with a spreadsheet application, such as Excel, I believe it is much better to stay with data organized as rows, instead of columns, specially if you have to work with 1000 elements !
Anyway, since in 1/, the Y column was separated, you can simply save the averaged values as in the attched vi.

CC
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 4
(2,982 Views)
hi,

When ever i open the file it opens the same file as before except for differnt name so not sure what is happening?
0 Kudos
Message 3 of 4
(2,972 Views)
Seems that I mixed a few things up. Sorry...
Here is the right vi !

CC
Chilly Charly    (aka CC)
0 Kudos
Message 4 of 4
(2,946 Views)