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

Listing Child members of Alarm Groups with VBA Options · View
jc113883
#1 Posted : Wednesday, October 07, 2009 3:26:42 AM
Rank: Member
Groups: Member

Joined: 10/7/2009
Posts: 14
Hi All,

I want to know if there is a way to determine the child tags of an alarm group tag.

For example, I may have an SQC_Alarm called Area1.Group1.Alarm1. The exdesc for this tag is Area1.Group1 (referring to the base tag that groups together this alarm and several other alarms). Therefore, using the exdesc attribute I can determine the parent tag for the alarm. What I would like is to determine the child tag for the parent alarm using VBA, so I can set up Processbooks that drill down through several levels of alarm groups.

I can view the tree structure for the alarm groups easily using SDK > Alarm Groups, but this doesn't help me create dynamic processbook pages that can drill down through this structure, without having every tag preconfigured on the page somehow.

Regards,
Graeme.
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.
jc113883
#2 Posted : Wednesday, December 02, 2009 12:55:35 AM
Rank: Member
Groups: Member

Joined: 10/7/2009
Posts: 14
I managed to come up with a solution for this. I performed a tag search on all tags where the exdesc contained the parent tag name using GetPoints2 method in VBA.
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.