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

Asset Framework and PI System Explorer (PI Server 2018)

Practice exercise: Create an example variable end time

Practice exercise: Create an example variable end time

  • Last UpdatedJan 07, 2025
  • 1 minute read

This example creates a data reference with a variable end time.

  1. Create an enumeration set, MyEnumSet, that contains these three values:

    -30m
    -1h
    -2h

    An example of a range of values entered in the MyEnumSet window.

    Note: Values must be valid relative time expressions, as described in Understand relative time.

  2. Create an attribute, called TimeRangeAttribute, that references the MyEnumSet enumeration set.

    You specify the enumeration set when configuring the attribute. From the Value Type list, select Enumeration Sets > MyEnumSet.

  3. Create another attribute, called DataReferenceAttribute with a configured PI point data reference:

    1. For the PI point, choose any point that has a numeric value.

      In this example, we will use the sinusoid point on a Data Archive named PISRV1.

    2. From the By Time list, select Time Range Override.

    3. In the Relative Time box, type: %@TimeRangeAttribute%

    4. From the By Time Range list, select Average.

The TimeRangeAttribute attribute lets you choose the time interval for the calculation.

A screenshot of the TimeRangeAttribute dropdown list that contains an enumeration set with three values.

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