I'm just writing a little ACE-Calculation were I want to analyze the archive values of an input tag like cdt158. For this I have seen that a function Values is available but I'm not able to use it.
My development system is PI Server 2010 and PI SDK 126.96.36.1995. Dot Net version is 4.0 (for this I have created a file with name "PIACECLassLibraryHost.exe.config") When I write the following code I always get two error message:
1.) Type 'PISDK.PIValues' is not defined
2.) Reference required to assembly 'OSIsoft.PISDK, Version=188.8.131.52, Culture=neutral, PublicKeyToken=c3309f0734ba2805' containing the type 'PISDK.PIValues'. Add one to your project.
Public Overrides Sub ACECalculations()
Dim values As PISDK.PIValues
values = Me.Gen_UnitBatchActive.Values(DateTime.Now.AddDays(-7), DateTime.Now)
I understand error message No.1. Reason was that I haven't referenced PISDK in that project. So I have added reference OSISoft.PISDK (version 184.108.40.206) from the .NET tab. After this action error message No.1 and No.2 still appears. When I double checked my references I have seen a error message for the reference OSIsoft.PISDK
The location of this reference is D:\PIPC32\SDK\PublicAssemblies. I have checked the location and a library is located at this folder.
Does anyone have an idea why this happens?
Best regards Markus