Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Rolling Average Function

Hello all:

Does anyone know an easy way to get Lookout (I'm using 4.5) to do a rolling
average? I need to sample and average an input signal continuously from
"current time" minus 3 hours. Maybe I'm not understanding the Average
function completely, but there doesn't appear to be any way to tell Lookout
what the time "window" should be to compute the average. There is only the
"Enable" and "Reset" entries.

To complicate matters, I also need to "invalidate" the data whenever a
status bit goes false so that "BAD" data is not averaged with "GOOD" data.
Any ideas"


--
Geoffrey B. Klotz
GK Associates, Inc.
TEL: (805) 523-8700
FAX: (805) 523-1216
EMAIL: gklotz@gkainc.com
0 Kudos
Message 1 of 2
(3,110 Views)
There is an example that I found on ni.com. I searched for lookout and average. The first hit is an example program that can be used as a running average. In order to get it to throw out "BAD" data you should use the Enable field to store an expression that will filter the unwanted data.
0 Kudos
Message 2 of 2
(3,110 Views)