Configure a trend
- Last UpdatedJul 16, 2024
- 2 minute read
When you configure a trend, you must select the tag(s) for which you want to query the trend data. This data is queried from the Historian database(s) to which you are currently logged on. After you select tags for the trend, you can set the start date and end date for the trend. The default settings in the Trend app are generally adequate to enable you to begin tracking trends.
The following list summarizes the key steps to configure the HistoricalTrendApp during runtime.
-
Place the HistoricalTrendApp on a layout pane.
-
Configure the HistoricalTrendApp properties. You can use the default settings, or change them as needed. Default settings are as follows:
-
Follow Current Context: Enabled
-
Max Context Tags to Show: Up to 10 context tags are shown by default. If the asset you are viewing has more than 10 tags, the first 10 that are listed alphabetically are shown. Showing more than 10 may impact performance.
-
Pens: Empty (null). You can add additional context tags to show their trend data by entering the static value or bind to a reference. The pens configured here are in addition to the max context tags setting. List additional pens by entering fully qualified attribute names (for example, ObjectName.AttributeName). Use a comma to separate attribute names. You can also bind a reference to you pen list. To create a reference:
-
Create a ViewApp Namespace object in the Visualization folder and rename it (for example, "TrendSettings").
-
Create an attribute of string type in the ViewApp Namespace. In the following example, the attribute name is "MyPens."
-
Add the fully qualified attribute names you want to add to the trend. Multiple names must be separated by commas.
-
For the Pens property, create the dynamic binding read-only reference to the ViewApp Namespace (for example, MyViewApp.TrendSettings.MyPens).
-
-
-
Deploy and start the ViewApp containing the HistoricalTrendApp.
-
Log in to the Historian Server that contains the data to you want to show in a trend.