Applies To: |
|
Summary: |
Question: I need to have an event based trend. How can I do this in Citect, it seems only to be able to support time based trends? |
Solution: |
Citect currently only supports time based
trends, however you can get realtime event based trends by writing
some Cicode and maintaining the trend data yourself. The Cicode
function DspTrend() allows you to draw a trend on a page. If you
gather the event data via a report or Cicode task and place into an
array, you can then call DspTrend to display the event based trend
on the screen. If you want to store historical data, you can write
the events into a database or other device.
To gather the data, use a Cicode task or report and put the data into an array. The size of the array is determined by the required number of samples. Then call the DisplayEvenTrend function on your trend page to display the event trend, and while still on the trend page call UpdateEventTrend to update the trend display: REAL EventData[100]; FUNCTION UpdateEventTrend() |
Keywords: |
Related Links
Attachments