Averaging 100 Cluster Waveforms from Oscilloscope in LabVIEW

Updated Jan 25, 2023

I acquire 100 cluster waveforms from an oscilloscope. How can I average them to get one waveform with the same properties?

Waveform cluster consists of initial time, the time increment and the actual data values. All you waveforms should have the same values for the first two properties and we will work to average the data values.

1. Using Unbundle by Name function get the waveform array values of each of your waveform.
2. Combine all the values arrays. You get a 2D array, where each row will be one of your waveforms.

You will need to average the values in each column to get an averaged waveform.

3. Transpose the 2D array.
4. Using a for loop average each row with a Mean.vi
5. Using Bundle by Name function, create the averaged waveform cluster.

Below you can see the block diagram that includes all the steps above.
article.png