Comment on page
This example Data Stream demonstrates how to use this Action Agent to update element data in OSIsoft PI System.
Drag the OSIsoft PI Action Agent onto the canvas and link the input endpoint to the element data. Rename the Agent and save the Data Stream.
Select the Agent and click Configure. In this case, keep the default Collection.
Enter the authentication details: web API url, username, and password.
Set the server and database.
Select the template, tick to filter the elements by category, and select the elements category. In this example, we've selected OSIsoft Pumps Template and opted to filter using the Cory elements category.
Tick to filter the attributes by category, select the attributes category, the attributes to update, and the elements cache refresh interval.
In this example, we've opted to filter using the XMPro attribute category, update the DISCH_DEN_2_PV and DISCH_F_TOT_PV attributes, and do a 12-hourly cache refresh.
Apply the changes and save the Data Stream.
Select the OSIsoft input arrow and click Configure. Map one of the parent Agent's output attributes to each element attribute. Apply the changes and save the Data Stream.
Click Publish. Data from the parent Agent is sent to the OSIsoft PI system to update corresponding element data as per the data mappings.