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

Joined: 5/14/2009
Posts: 28
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: 32
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: 409
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.


OSIsoft PI System Specialists
PI consultancy on PI Systems, PISDK, AFSDK, OLEDB etc and PI custom developments. Well pretty much anything to do with PI!


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.