LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

running average

No, it's probably me that misunderstands what I mean, or, uh, something like that.

My curiousity got me only far enough to throw a chart on a new vi, wire an array constant into it, then create a read-type local variable.  The datatype of the local was an array, and without thinking any further I just assumed that the array would be the entire contents of the chart history buffer.  I didn't even run it with data to see if the array out would simply be the most recent array passed in.  I'd check it out now but probably won't be able to get on an LV box this afternoon.

-Kevin P.

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 21 of 22
(906 Views)
Perhaps I am missing something but the extraction and secondary looping all seems unnecessary.  Since this is a continuous daq loop, sample rate and buffer size could drive the whole thing.  I canna test on this machine but if you are just looking for .5 sec updates of the mean with a 200 Hz sample rate, the attached should do the trick.

Cheers,
Greg Cole
“It is not the ship so much as the skillful sailing that ensures the prosperous voyage.”
Message 22 of 22
(897 Views)