YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Accessing Values That Are in AF via VBA in PB? Options · View
jhcoxx
#1 Posted : Saturday, October 29, 2011 9:20:46 PM
Rank: Member
Groups: Member

Joined: 7/5/2010
Posts: 27
Location: Texas
I would like to use instances of an AF template to hold various numeric/string values and/or PI points, and those values need to be read by and used in VBA calculations inside ProcessBook. (It would be more work, but instead of an object which holds point values, we could make do with just a string holding the name of the PI point - and we could implement the necessary value access in PB VBA.)

To date, the only way to do this that I've found is to create in PB an AF Dataset which can be mapped to an AF element - and the value from the Dataset read by PB VBA. But so far as I can tell, there can be only be one Element per PB AF Dataset. That would lead to hundreds of AF Datasets in a single .pdi file - which makes it seem like there should be a better way...

So - is there a way to have ONE PB AF Dataset contain all the elements from the template?

Or, is there a way to for PB VBA to 'connect' to AF and read elements directly - without going through a Dataset?

Or, is there some other way to move groups/sets of values from AF to PB?

Any insights - including "No way THAT is ever going to work" - will be appreciated.

jhcoxx

Sponsor  
 

OSIsoft vCampus is a subscription-based, online offering that consists of providing everything people need to develop applications on the PI System.
We invite you to take a "tour" of the OSIsoft Virtual Campus - also feel free to consult the FAQ  or contact OSIsoft vCampus for more details.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.