Does anyone know how I can get the Source Units for a PI Point based Attribute using the AFSDK?
Just a point to clarify. By source units of a PI Point Attribute, I assume you are referring to the unit of measure configuration in a PI Point Data Reference like:
You can get this by accessing the UOM property of the attribute's data reference. The following snippet gets the default UOM of the attribute and the UOM of the attribute's data reference
AFAttribute _attr;// code to get the instance of AFAttributeUOM DefaultUOM = _attr.DefaultUOM; // this gets the default UOM of the attributeUOM DataReferenceUOM;if(_attr.DataReference != null) DataReferenceUOM = _attr.DataReference.UOM; // this gets the Data Reference UOM setting if attribute as a data reference configured.
Retrieving data ...