LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Restart Averaging input for Vibration Level and Octave Analysis VIs

Hello,

 

I am taking vibration measurements (acceleration) for 2 minutes and need to analyze the 1/3 Octave Band content every 30 seconds (I need to have the average values for the following times: 0-30, 30-60, 60-90 and 90-120 seconds)

 

I used a for loop that uses the TDMS read.vi inside the loop to read the portion of data that I need to analyze on each iteration (by multiplying the amount of seconds to analyze by the sampling rate of the measured signal and accounting for a different offset per iteration).

 

Afterwards, I pass the 1D array of waveform through a "convert to dynamic data" and then directly to the Vibration Level.vi (to integrate to velocity) and then the integrated signal is conected to the Octave Analysis.vi

 

The Octave Values for the first run are good, but for the next ones the VIs have saved previous values and the result is giving me the average from the beginning up to that moment instead of the average for the specific 30 second lapse.

 

I have tried to use the "restart averaging" input for both VIs (Vibration Level and Octave Analysis) and I have followed what it is said on the following forum post: http://forums.ni.com/t5/LabVIEW/Restart-averaging-function-in-FFT-Mag-Phase-vi/m-p/74867/highlight/t... Which is pretty similar to my issue.

 

But I have not been able to get the desired results: 4 columns with the values of the 1/3 Octave Band data for each 30 second span (0-30, 30-60, 60-90 and 90-120 seconds. Instead, I have been getting: 0-30, 0-60, 0-90 and 0-120 seconds).

 

Any insights on how I should use the restart averaging input? Thank you very much for your help!!!

 

Gabriel

0 Kudos
Message 1 of 3
(2,557 Views)

Hello Gabriel,

 

Have you tried using the examples included with LabVIEW?

 

Is it possible for you to share the block diagram (or the VI itself)? I think it will be important understanding how you are acquiring the data.

 

Richard.

0 Kudos
Message 2 of 3
(2,452 Views)

Hi Richard,

 

I was using the express VI called "octave analysis" and it only has the option for "restart averaging" (Which I do not understand its funcionallity)

 

I started using a lower level VI called "fractional-octave analysis" which has an input called "reset filter" and if it is TRUE it will reset the values and start averaging from zero on each loop.

 

Thank you for your reply.

 

Gabriel

0 Kudos
Message 3 of 3
(2,442 Views)