RealTime PI software development kit (SDK) examples
- Last UpdatedApr 24, 2025
- 2 minute read
The RealTime PI software development kit (SDK) examples solution contains sample source code for the following extension libraries:
-
libPiDataQualityReMap
-
libPiDigitalConvert
-
libPiMsgSupport
Follow the procedure below to retrieve the source code and build the examples extended libraries on your system.
To build the RealTime PI SDK examples solution
-
Set up the Test and Development System.
For more information around installation, please contact AVEVA Customer Support.
-
On the RealTime server in the Test and Development System, log on as dnaInstaller.
-
Install RealTime.PI.msi.
-
On the RealTime server in the Test and Development System, log on as a member of DNA Developers.
-
On the desktop, double-click the Windows PowerShell for DNA shortcut.
Windows PowerShell for DNA opens.
-
Create a RealTime Developer Environment (refer to the AVEVA Enterprise SCADA Shared Components Developer documentation).
-
Open the C:\<workspace>\RealTime\build.xml file.
-
Navigate to the <ItemGroup Label="Solutions"> element, and add the text "RealTime.PI.Examples.sln":
<ItemGroup Label="Solutions">
<Solution Include="source\RealTime.PI.Examples.sln" />
</ItemGroup>
-
Select Start, and, in the Search box, enter the following:
Developer Command Prompt for Visual Studio
-
Press Enter.
The Visual Studio Developer Command Prompt window opens.
-
Execute the following commands:
cd C:\<workspace>\RealTime
msbuild build.xml
-
Once msbuild completes successfully, navigate to the following directory to locate the .dll file:
%DNADataRoot%\RealTime\bin
-
Copy the .dll file from the RealTime server in the Test and Development System to the following location on the PI Client host:
%DNADataRoot%\RealTime\bin\
-
Configure the PI Client host to enable loading of the extension Dynamic-link library (DLL):
-
Copy the %DNAInstallRoot%\RealTime\config\Settings\PI_Extensions.json file to %DNADataRoot%\RealTime\config\Settings\.
-
In the JSON file, change the dll entries from false to true.
For example, to load libPiDigitalConvert.dll:
{
"PI": {
"Extensions": {
"DataConvertSupport": {
"libPiDigitalConvert.dll": true
}
}
}
}
-
-
Restart the RealTime service.