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

Tag properties Options · View
kapilrakh
#1 Posted : Wednesday, September 23, 2009 6:02:54 PM
Rank: Advanced Member

Groups: Member

Joined: 9/3/2009
Posts: 36
Location: Massachusetts, USA
Hello RJK ,

I have a list of tags in column A that changes due to the user input. The goal is to create a macro (for a command button for e.g. )which will display the properties of tags , mainly Minimum , Maximum , Average and Descriptor for a given Start and End time on the sheet.




This could be done by the help of PIDataObject and using pbwPropertyDescriptorEnum.

The constants that should be used are respectively pbwMinimum, pbwMaximum, pbwAverage, pbwDescriptor.


Thanks in advance.

Kapil
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.
ThePIman
#2 Posted : Thursday, September 24, 2009 3:03:45 PM
Rank: Advanced Member
Groups: Member

Joined: 5/14/2009
Posts: 35
Location: UK
Hi,

Will the functions in PI Datalink not suffice?
It already has built in calculation functions for min,max and average.
And with version 4.11 it will even update at a defined rate.

.
kapilrakh
#3 Posted : Thursday, September 24, 2009 3:17:09 PM
Rank: Advanced Member

Groups: Member

Joined: 9/3/2009
Posts: 36
Location: Massachusetts, USA
That is true. But this is the case of dynamic tags. The tags are populated based on what system the user is choosing.
So the no of tags in the column won't be the same anytime. Only solution to this problem is programing.

RJK Solutions
#4 Posted : Saturday, September 26, 2009 7:31:35 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 612
Location: Cheshire, United Kingdom.
Hello,

I am with ThePIman on this one, you should look at the built in functions from PI-Datalink.
Even with a dynamic number of tags you just adjust the Formula or FormulaArray to cover the number of tags and different PI servers.

So whilst there is small amount of programming required, it is just Excel manipulation via VBA.

Cheers,

Rhys.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
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.