Examples
Last updated
Last updated
The following examples can be found on this page:
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.
Drag the OSIsoft PI Listener onto the canvas and link the output endpoint to the printer. Rename the Agent and save the Data Stream.
Select the Agent and click Configure. In this case, keep the default Collection and polling interval.
Enter the authentication details: web API url, username, and password.
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.
Click Live View to view the results. Observe that the Attribute values from OSIsoft PI for the past 5 minutes are printed.
See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.
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.
Drag the OSIsoft PI Listener onto the canvas and link the output endpoint to the printer. Rename the Agent and save the Data Stream.
Select the Agent and click Configure. In this case, keep the default Collection and polling interval.
Enter the authentication details: web API url, username, and password.
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.
Click Live View to view the results. Obsaerve that the Event Frame Column values from OSIsoft PI for the past 1 hour are printed.
See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.
Data Stream
C0mp|ex123
Data Stream
C0mp|ex123