We do a rolling three hour average with a sequence block , taking a sample once per minute. To trend the average , you need only to put the sequence block real output into a historian and assign that value to a trend point. If you like , I can send you a copy of the code. -----Original Message----- From: Jaudon, Michael [mailto:MJAUDON@xxxxxxx] Sent: Thursday, November 29, 2001 7: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