Examples

The following examples can be found on this page:

Element Lookup

This Data Stream example demonstrates how to use this Context Provider to return element data from OSIsoft PI System.

Refer to configuration to understand all configuration options of this Agent.

Step 1: Add the Agent

Drag the OSIsoft PI Listener onto the canvas and link the output endpoint to the printer. Rename the Agent and save the Data Stream.

Step 2: Configure General

Select the Agent and click Configure. In this case, keep the default Collection and polling interval.

Step 3: Configure Authentication

Enter the authentication details: web API url, username, and password.

Step 4: Further Configuration

Set the server and database. In this case, keep the lookup type as Element.

Keep the filters ticked. Set the template, element category, elements, and attributes.

Set the duration type and value. In this case, set the duration type to Minute and value to 5 so that a window of 5 minutes is observed. Apply the changes and save the Data Stream.

Click Publish.

Step 5: Results

Click Live View to view the results. Observe that the Attribute values from OSIsoft PI for the past 5 minutes are printed.

Files

See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.

Event Frame Lookup

This Data Stream example demonstrates how to use this Context Provider to return event frame data from OSIsoft PI System.

Refer to configuration to understand all configuration options of this Agent.

Step 1: Add the Agent

Drag the OSIsoft PI Listener onto the canvas and link the output endpoint to the printer. Rename the Agent and save the Data Stream.

Step 2: Configure General

Select the Agent and click Configure. In this case, keep the default Collection and polling interval.

Step 3: Configure Authentication

Enter the authentication details: web API url, username, and password.

Step 4: Further Configuration

Set the server, database and lookup type. In this case, set the lookup type to Event Frame.

Keep the filters ticked. Set the event frame template, element template, and attributes.

Set the duration type and value. In this case, set the duration type to Hour and value to 1 so that a window of 1 hour is observed. Apply the changes and save the Data Stream.

Click Publish.

Step 5: Results

Click Live View to view the results. Obsaerve that the Event Frame Column values from OSIsoft PI for the past 1 hour are printed.

Files

See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.

Last updated