- Getting started
- Creating projects
- OPC UA
- Graphic objects
- Predefined graphic objects
- Object and variable references
- Extending projects
- NetLogic
- Tutorials
- Dynamic links tutorial
- Graphic objects tutorial
- NetLogic tutorial
- OPC UA tutorial
Configure a trend
Configure the source of the data to display in the Trend object. Add a pen for each
data point to draw on the trend chart. When trending historical data from a database, a trend
line is drawn between points when the logger is not capturing data.
- InProject view, right-click a node to contain theTrendobject and select .
- InProperties, inMode, select either:
- Normal. The default mode of trend charts. Navigate and zoom the trend chart.
- Trace. Add time traces to the chart to mark significant data points.
- Range. Select, move, and resize time ranges on the trend chart.
TIP: Trend objects exposeClear time tracesandClear time rangesmethods. To be able to remove time traces and time ranges from the trend chart, you can associate these methods with button events. For more information, see Add a method to an existing event. - InProperties, either:
- Create a dynamic link between theModelproperty and a project node. This obtains values of attributes or properties of all direct child nodes.For example, select theModelfolder with objects that contain data. For more information, see Project nodes.
- Create a dynamic link between theModelproperty and a database object. This obtains data contained in database tables.For example, select an Embedded, ODBC, or InfluxDB database object. For more information, see Database.
For more information about dynamic links, see Create dynamic links.TIP: To configure the trend and trend pens for data logger data, fromProject view, drop a data logger onto the trend in the editor. You can also drop the data logger onto the trendModelinProperties. - (optional) Specify the kind of items to display in the object by settingItemKind.TIP:TheItemKindproperty is automatically set with the object or variable type recognized among the child nodes.For example, if the model is based on a folder node that contains several instances of aMotorobject type,ItemKindis automatically set with the reference to theMotortype. In this case, the values that display are the attributes or properties of different instances (Motor1,Motor2,Motor3, and so on).
- (optional) InQuery, enter a standard SQL query to filter items obtained from a database or project nodes as specified inModel.For more information, see SQL queries.For example:SELECT * FROM Model WHERE SPEED > 40SELECT * FROM "DataLogger1" WHERE Speed > 40
- (optional) InRefresh time, specify the sampling time.
- (optional) InReference time zone, specify the time zone of the date and time on the X-axis.
- UnderPens, associateTrendPenwith the pen data source.#Data typeData sourceReal-time values of a specific variableDynamic link to a variable.Real-time values sampled by a data loggerDynamic link to theLast valueproperty of a Data logger.Historic values of variables stored in a databaseThe name of the column of interest in a Database.Do not create a dynamic link to the column of interest in the Database. Provide the name of the column instead.
- (optional) Configure pen properties:
- Thickness. Weight of the pen line.
- Title. Pen title.
- Color. Color of the pen line.
- Enabled. Shows or hides the pen.
- (optional) To add a threshold to a pen, next toThresholds, selectand configure theThresholdproperties:#
- Value. Threshold line position on the Y-axis.
- Color. Threshold line color.
- Thickness. Threshold line thickness.
- (optional) Add a Y-axis by right-clicking aTrendPenand selectingYAxis.TIP: Adding more Y-axes to trend pens is useful for visualizing the same data in different scales. Control the scale by settingMaximum valueandMinimum valueproperties.
- (optional) Configure the X-axis properties:
- Interactive. Make the X-axis interactive at runtime.Applies only to theNormalTrend Mode.
- Date and time. Date and time that displays in the X-axis at runtime. Defaults to the current time.
- Snap position. If you specifyDate and time, you can set the X-axis position to either:
- Left. Displays the specified date and time on the left of the X-axis.
- Right. Displays the specified date and time on the right of the X-axis.
- Center. Displays the specified date and time in the center of the X-axis.
- Follow. Scroll the X-axis automatically as time progresses at runtime.
- Time window. Time interval shown by the trend (in milliseconds).
- (optional) Configure the Y-axes properties:
- Automatic scaling. Scales the Y-axis at runtime based on the minimum and maximum values.
- Interactive. Makes the Y-axis interactive.
- Minimum value. Minimum value displayed on the Y-axis.
- Maximum value. Maximum value displayed on the Y-axis.
- (optional) Add theRefreshmethod of theTrendobject to an event.For example, associate theRefreshmethod with theMouseClick eventof aButtonobject.
trend
Provide Feedback