Your best bet is probably to use Sequence code, and use an array (or set of arrays) to hold the 5 minute values. Then average the 288 values. I have sequence code that does rolling hourly averaging which you could easily modify for your needs. Let me know if you are interested. Good Luck, Mark Dumond FeedForward, Inc -----Original Message----- From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx]On Behalf Of Jaudon, Michael Sent: Thursday, November 29, 2001 8:27 AM To: 'foxboro@xxxxxxxxxxxxx' Subject: [foxboro] 24 hr rolling average I know we have already ventured down this path once but at the time rolling average didn't interest me and I didn't give it a passing thought...now it does. My question is: How would you program for a 24 hour rolling average (my case is a flow) say sampled every 5 minutes (288 samples per day)? I also need to trend the result. Regards, Michael L. Jaudon Kerr-McGee Chemical LLC (662)343-8710 mjaudon@xxxxxxx ___________________________________________________________________ This list is neither sponsored nor endorsed by The Foxboro Company. Use the information obtained here at your own risk. For disclaimer, see http://www.thecassandraproject.org/disclaimer.html#maillist list info: //www.freelists.org/list/foxboro subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave ___________________________________________________________________ This list is neither sponsored nor endorsed by The Foxboro Company. Use the information obtained here at your own risk. For disclaimer, see http://www.thecassandraproject.org/disclaimer.html#maillist list info: //www.freelists.org/list/foxboro subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave