Trendview
- Last UpdatedNov 02, 2023
- 1 minute read
Retrieves collection or summary data from the PI Archive over a specified time range.
Syntax
Trend <table_name> <tag_name> <column_name> <start_time> <end_time> <show DQ>
Parameters
|
Name |
Description |
|---|---|
|
table_name |
This parameter displays the length of the summary period used to calculate the summary values. This can be any of the following: instant, hour, day, month, or year. |
|
tag_name |
This parameter displays the name of the point to be viewed. |
|
column_name |
This parameter displays the summary type of the data to be viewed. It can be any one of the following: value, minimum, maximum, average. |
|
start_time |
This parameter indicates the time at which the trend data begins. This is entered in the MM/DD/YYHH:MM:SS format. |
|
end_time |
This parameter indicates the time at which the trend data stops. This is entered in the MM/DD/YYHH:MM:SS format. |
|
show_DQ |
This parameter indicates whether or not the return value will show data quality. This is an optional field. The default value is set to yes. |
Example
TrendView collect analog.a1.curval value "03/21/1999 17:00:00" "03/21/1999 17:15:00"