Applies To: |
|
Summary: |
I want Citect to be able to log a value and to report what the minimum, maximum and the average value was over a period of time. |
Solution: |
To get Citect to log data so that you can
calculate the Min, Max and Average values of a Tag over a period of
time, set up a "Trend Tag" first. Be sure to set the sample period
to the longest time possible.
Next set up a report as per the example; Example of Min, Max and Average values of a tag in a report.
Then use the following Cicode functions that the report needs to calculate the Min, Max and Average values, see below. The time period covered will be from the current time back over the number of hours specified when calling the GetTrendFileData() from the report. Example of GetTrendFileData() & ReportMath() Cicode Functions called by the report. /* /* /* |
Keywords: |
Related Links
Attachments