Re: [foxboro] 12 hour ave

At 05:54 PM 2/25/04 -0600, Brian Long wrote:

 >I need to take an analog input running at 1 sec and average it over
 >12 hours.  I need to display the value so I can't use the historian
 >functions. Anybody got a simple solution?

Just thinking out loud here....

Feed the measurement into an ACCUM block, then every 12 hours, average 
the accumulated value before your CLEAR the block.

I have a shell script which is scheduled through cron to clear an ACCUM 
block, and you can average your value there too, but then you have 
omset it to some comp:block.param from the script file.

Or using another tack, you can count time with a CALC block and when 
(12 hrs * 60 minutes * 60 seconds) has elapsed, average the accumulated 
value and output it to a RIxx, and clear the ACCUM block.

Of course all these methods give you only one average value every 12 
hours. If you want running average, you'll have to do something else.

Duc

 
 
_______________________________________________________________________
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:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: