Add a trend object

Configure the source of the data to display in the Trend object. Add a pen for each data point you want drawn on the trend chart.
  1. In
    Project view
    , add a
    Trend
    object.
    For example, right-click
    MainWindow (type)
    and select
    New
    Data controls
    Trend
    .
  2. In
    Properties
    , create a dynamic link between
    Model
    and a node or Database from which you want to obtain the data.
    For more information about dynamic links, see Create dynamic links.
  3. In
    Query
    , enter an SQL query to filter the data.
    For more information about queries, see SQL query and Trend.
  4. Under
    Pens
    , create a dynamic link between
    TrendPen1
    and the pen data source.
    Pen data sources
    Data type
    Dynamic link target
    Real time values of a specific variable
    A variable.
    Real time values sampled by a data logger
    The
    Last value
    property of a Data logger.
    Historic values of variables stored in a database
    The column of interest in a Database.
  5. (optional) Add a Y-axis by right-clicking a
    TrendPen
    and selecting
    YAxis
    .
    TIP: Adding more Y-Axes to a Trend Pen is useful if you want to visualize the same data in different scales. You can control the scale by setting
    Maximum value
    and
    Minimum value
    properties.
  6. (optional) To add a pen, next to
    Pens
    , select
    Add
    and repeat 4.
  7. (optional) Configure the properties of the Trend object.
    For more information, see Trend and Trend pen.
  8. (optional) Associate the
    Refresh
    method of the
    Trend
    object with an event.
    For example, associate the
    Refresh
    method with the
    MouseClick event
    of a
    Button
    object.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.