I thank you very much. My objective is to get all recorded values of digital tag for a day and total the number of hours the valve was OPEN. I am using AFSDK and could not get any function to fetch the digital tags name from its associated digital set. I checked PIStateSets and tried to use
Dim setValue As OSIsoft.AF.PI.PIStateSets = TryCast(myvalue.Value, PI.PIStateSets)
and get setvalue.name but its not avilable
Appreciate for any help please.