Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

Show statistical summary data

  • Last UpdatedJan 16, 2025
  • 3 minute read

The following procedure explains how to specify custom property options to subscribe to historical statistical data. Before completing this procedure, you must have object or other data that is saved to the Historian and enabled for statistics.

To show historical summary data using custom properties

  1. Open the Industrial Graphic Editor.

  2. Add a custom property to an Industrial graphic.

    1. Select the canvas to cancel any selected elements.

    2. On the Special menu, select Custom Properties. The Edit Custom Properties dialog box appears.

    3. Select the Add icon. A new line is added in the custom properties list.

    4. Type a name for the new historical summary custom property and press Enter.

    5. You can see the names of the graphic and custom property in the header of the dialog box.

  3. Select HistorySummary from the Data Type field.

    Important: The History Summary data type only works with Application Server object attributes intended for AVEVA OMI ViewApps or InTouch HMI managed applications.

    The Edit Custom Properties dialog box updates to show fields specific to the HistorySummary data type.

    Edit Custom Properties dialog box updates showing fields specific to the HistorySummary data type

  4. Enter a reference to data saved in the Historian in the Reference Name field.

    The icon to the left of the Reference Name field toggles input to the field as Static Text or Expression or Reference mode.

    Auto-Detect

    The Historian server is auto-detected from the AppEngine on which the reference attribute is running. For example, if the Reference Name field is set to UDO.UDA1, the reference is set to the Historian server name configured for the AppEngine on which UDO is running.

    Expression

    When an expression or reference is typed in the Reference Name field, a connection is made to the specified Historian Server. The reference can be an external reference like an object attribute or a custom property.

    Note: A reference cannot be made to historical data from an InTouch tag.

  5. Select the type of historical statistics by selecting an option from the drop-down list of History Statistics.

    Average is the default type of historical statistic. The following table shows the historical statistics options for analog and state summary data.

    Historical Statistics

    Analog Historical Data

    State Historical Data

    Average

    l

    l

    First

    l

    Minimum

    l

    l

    Maximum

    l

    l

    Count

    l

    l

    StdDev

    l

    Integral

    l

    PercentGood

    l

    Percent

    l

    Total

    l

    Last

    l

  6. Set the length of the summary historical period in minutes by entering a value in the Duration field.

    Acceptable Duration values are from 1 to 10080 and the default is 5. Duration can be specified as an integer, an expression, or a reference. For more information about possible Duration values, see Historical summary period.

  7. Set the start time of the of the summary period in the StartTime field.

    A start time can be specified as static text, an expression, or a reference. The default start time is the current time.

    A time for StartTime is optional and can be left blank. Auto refresh is applied if a StartTime value is not specified.

    For more information about setting a start time, see Historical summary period.

  8. Set the type of Historian summary data in the State field.

    A State value can be expressed as an integer constant, static text, an expression, or a reference.

    If a string value is provided, then string state summary data is queried from the Historian. If an integer value is entered, the Historian query is for analog state summary data. If a Boolean state summary value is provided, the State value must be 0 or 1.

    State can be left empty. If empty, the default query is for analog summary data.

    To get summary historical data for a Null state, enter "NULL" in the State field. The query checks for OpcQuality equal to opcnull and StringValue "NULL" in the result.

TitleResults for “How to create a CRG?”Also Available in