How-To Obtain Data from the AVEVA PI System
What Does This Article Cover?
Intelligence Hub includes a standard configurable Connection that can be used to obtain data from AVEVA PI System. The connection between the Intelligence Hub and PI System Data Archive and Asset Framework is made via the PI System AF SDK. This is done using a software agent that is installed on the same network as the PI System. Asset Framework Metadata and Data Archive Point values can be obtained from the PI System including historical data and new data.
- How to Obtain Point Values for an Asset
- How to Obtain Asset Metadata
- How to use a Condition to Obtain Values for a List of Points
- How to Obtain Filtered Point Values
- How to Obtain Event Frame Data
- Simple Instance Example
How to Obtain Point Values for an Asset:
To create an Input for a specific Asset Framework element or elements browse the PI System configuration. When an Input is created the PI query is automatically configured.
- The PI query may be edited.
- The Input can return current values, raw values, or interpolated values.
- A filter must be entered for raw and interpolated values.
- Relative and explicit date times may be used in the filter.
- Absolute times must include a ‘Z’ at the end to be treated as UTC.
- Specific values can be filtered into the Input.
- Metadata data may be included in the Input.
How to Obtain Asset Metadata:
A PI Query can be used to obtain metadata for one or more assets. This metadata can be included in an information payload or used within Intelligence Hub to filter PI Points or scale a solution through templatization.
How to use a Condition to Obtain Values for a List of Points:
It is often beneficial to return data for many PI Points. Sometimes it is beneficial to obtain the list of PI Points associated to one or more Assets configured in Asset Framework. A Custom Condition provided in the Intelligence Hub User Guide can be used to obtain a list of Point Names configured for an Asset. This list may be used as a Reference for a Connection Input.
How to Subscribe to Point Changes:
The Intelligence Hub Point Change Input creates a subscription to point changes, which includes new data, changed data, deleted, and late arriving data. The first read creates a subscription within the PI System for the points, and subsequent reads return point changes since the last read was performed.
How to Obtain Event Frame Data:
PI Event Frame data can be obtained from the PI System.
Simple Instance Example:
The purpose of obtaining data from PI is to create a data payload to publish to a system. Typically, PI data is combined with data from Connection Inputs to other systems. In this simple example data obtained from PI is added to an Instance.