Jay5962

Unable to convert a Variant containing a time representation to a double.  Custom DR and DataLink

Discussion created by Jay5962 on Mar 25, 2013
Latest reply on Mar 26, 2013 by MIPAC

 

 

Hi Guys

 

 

 

I've created a custom DR and use the GetValues override to expose my custom data to PI consumers. It works in Process book and AF System Explorer. However When calling my DR from DataLink i get the following.

Data item not supported by function

I then add:

 

public override Data.AFDataMethods SupportedDataMethods
{
get
{
Data.AFDataMethods supportedDataMethods =
Data.AFDataMethods.RecordedValues ;
return supportedDataMethods;
}
}

 

the error changes to:

 

Unable to convert a Variant containing a time representation to a double.  

 

 

 

Please note it does work in process book and systems explorer, any ideas what additional fluff is required for the datalink ( Compressed Data)to attach correctly?

 

 

Outcomes