Terry, I would solve this in control. Using a DTIME block to do the 15 min delay and an AIN or REALM block to do the alarming. The loops can run at regular processing period (0,5 or 1 sec). Martijn Daamen Senior Application Engineer Invensys Systems N.V./S.A. Kontichsesteenweg 54 2630 Aartselaar - Belgium T: +32 (0)3 205.14.56 F: +32 (0)3 232.17.98 M: +31 (0)6 22267610 martijn.daamen@xxxxxxxxxxxxxxxx www.invensys-systems.be ----- Original Message ---- From: "Doucet, Terrence" <tdoucet@xxxxxxxxxxxxxxxxxx> To: foxboro@xxxxxxxxxxxxx Sent: Thursday, 27 September, 2007 9:41:41 PM Subject: [foxboro] AIM Historian List, We have AIM*Historian gathering thousands of measurements every 5 seconds. On the same AW70 we would like to write a C program.. For 100 measurements, we want to look at the latest value (either current or last written to Historian)=20 minus the value 15 minutes ago and set a flag if the difference is greater than=20 a fixed value. (5 sec / sample =3D 180 samples / 15 minutes) *100 What is the best way to read the two values? =20 We would like the caulculations to be performed about every 10 seconds. Does anyone have experience with similar applications using AIMAPI or AIM*DataLink? Thanks, Terry _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave