I'm retrieving data from PI in vb.net using the AFSDK. Recently I'm started to use the AF and made a lot of attributes in my elements. Some of them are based on PI database tags some are made by formula in the attributes. For instance a lookup table.
I'm using this snippet to get the data from the AF.
Works great. PiAFelementPAth is the long path like you use in de AF framework to identify a tag. "E" finally gets all the values,timestamps and flags from the desired tag. However this only works when the tag is based on a PI database tag. If the tag is e.g. based on a lookup table or other formula then the "findobject" returns nothing. I realize that "tag" in this sample is probably the underlying tag from the element but in the case of a formula it does not have a tag.
Is there a way to get data from attributes from elements that are based on not-tags? A snippet a code would be very appreciated.