Can you please provide us a method to distinguish if an AF attribute value is of digital Type or value type? We want to check this in our c# program.
I'm not really sure if I get your question correctly, but this should head you in the right direction.
AFAttribute.Type represents the type of the attribute value
you can check AFAttribute.DataReference for null values to see if an AFDataReference has been configured for this AFAttribute.
You can check the documentation for the complete list of AFAttribute members.
Thanks Michael for your response,
Actually we were trying the same but we were having issue in case of Custom Data Reference or Formula, as AFAttribute.DataReference is not null but it is of value type.
As per our requirement, we need to check an attribute value is of value type or digital type?
Please let me know, if you require more information.
And Michael one more thing, Can we make check based on AFAttributes.RawPIPoint == null condition?
Please let us know whether it's a right approach.
You would only check the RawPIPoint if your data reference was configured for the PI Point DR. Are you saying that if you have an AFAttribute of type "Double" then you want to make sure that the retrieved value (e.g. GetValue) is of that type and has not been substituted for an Error State (e.g. Digital State from PI Point DR)?
Retrieving data ...