You are on page 1of 2

Module - -1

0.1 Trend
FUNCTION:
Retrieves collection/summary data from the RealTimeDB collect table and the timeline
table.

SYNTAX:
Trend <table_name> <tag_name> <column_name> <start_time> <end_time>

Table 0-1 Trend Parameters

Name Description
table_name The name of the RealTimeDB/HistoricalDB table that contains
the data to be accessed. This can be any the following:
• collect
• hour
• day
• month
• year
tag_name The name of the point to be viewed.
column_name The column of the RealTimeDB/HistoricalDB tables to view.
This can be any of the following:
• value
• minimum
• maximum
• average
average If the table name is collect, then the only column allowed
is the value column. If the table name is not collect,
then the value column is the instantaneous value of point.
(The value at the top of the hour.)
start_time The time from which to begin the trend data. This is entered in
MM/DD/YY HH:MM:SS format.
end_time The time at which the trend data ends. This is entered in MM/
DD/YY HH:MM:SS format.

EXAMPLE:
(1) testperlblt Trend collect analog.CROSS0001.curval value 801355616
802373010

time milliseconds value status


801355616 0 80.000000 s
801355680 0 2.034600
801355740 0 40.000000 s
802373010 0 12.000000 s
(4 rows affected)

(2)testperlblt Trend hour status.CROSS0002.cursta average

OASyS® DNA SCADA Suite Baseline Document Revision 1.2


Proprietary and Confidential to Telvent
-2 Business Object Reference - Baseline

801355616 802373010

time milliseconds value status


801355616 0 0.000000 s
801360000 0 0.000000 s
801363600 0 0.000000 s
801367200 0 0.000000 s
801370800 0 0.000000 s
801374400 0 0.000000 s
801378000 0 0.000000 s
801381600 0 0.000000 s
801385200 0 0.000000 s
801388800 0 0.000000 s
801392400 0 0.000000 s
801396000 0 0.000000 s
801399600 0 0.000000 s
801403200 0 0.000000 s
801406800 0 0.000000 s
801410400 0 0.000000 s
802368000 0 0.000000
802373010 0 0.000000

(18 rows affected)

SEE ALSO:
Collect_tables (Section 3.8), Collect_fields (Section 3.7)

OASyS® DNA SCADA Suite Baseline Document Revision 1.2


Proprietary and Confidential to Telvent