LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to calculate the average of a signal between two time points t1 and t2 in LabVIEW?

Hello everyone,

I'm working with a waveform in LabVIEW and I would like to calculate the average value of the signal between two specific time points, t1 and t2. These points are marked on the graph (see attached image).
Specifically, I want to extract the data between t1 (around 15 seconds) and t2 (around 50 seconds), and then compute the average.

What would be the best way to do this? Should I extract a portion of the waveform using a specific function, or use indices to slice the amplitude array? Any suggestions or example VIs would be greatly appreciated.

Thanks in advance for your help!

0 Kudos
Message 1 of 2
(148 Views)

Hi ameletudiante,

 


@ameletudiante99 wrote:

I'm working with a waveform in LabVIEW and I would like to calculate the average value of the signal between two specific time points, t1 and t2.


  1. Use the GetWfmSubset function to get the subset between t1 and t2 of your waveform.
  2. Use BasicAveragedDC-RMS function (from analog waveform measurements palette) to get the DC (aka average) value…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(142 Views)