PIconnect.dotnet module#
Loads the .NET libraries from the OSIsoft AF SDK.
- class PIconnect.dotnet.dotNET#
Bases:
objectClass to load the .NET libraries from the OSIsoft AF SDK.
- load_test_SDK() None#
Load the test SDK.
This is used for testing purposes only and should not be used in production.
- property AF: AFType#
Return the AF SDK.
- property System: SystemType#
Return the System SDK.
- PIconnect.dotnet.load_SDK(assembly_path: str | Path | None = None) None#
Load the AF SDK from the specified path.
- Parameters:
assembly_path (str | pathlib.Path, optional) – Path to the directory containing the AF SDK assembly. If None, the default installation path will be used.
- Raises:
ImportError – If the AF SDK cannot be found or loaded.
- PIconnect.dotnet.lib: dotNET = <PIconnect.dotnet.dotNET object>#
Global variable containing the actual reference to the .NET libraries. The references are only loaded after calling
load_SDK()function or theload_test_SDK()method.