Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66985

running average for 20 sec multiples

$
0
0

Hello, 

 

I am completely new to labview and have a data accqusition/running average question. 

Goal: Record data of every 50 transitions of a square pulse (Frequency 1Hz, 1 full cycle = 800ms), Have a running average of the data collected for over 20ms. 

 

My trigger is a square pulse, I am recording an analog signal and using the NI USB-6009 DAQ hardware. I want to average the data collected for alternating 50 transitions of the square pulse. That is, average 0-50, do not average data from 51-100, average data from the 101th transition to the 150th transition and so on.

 

 

Sampling rate = 2.5 hz. 

number of samples = n 

 

Once the average is obtained, I would like to plot the average after every 50th transitions and also store the averages in a spreadsheet. I have a rough idea of how to go about it, but need a proper direction. 

 

Please help. 

 

Thank You

 

 


Viewing all articles
Browse latest Browse all 66985

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>