|
|
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
|
|
|
|
|
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.
|
|
|
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.
.
|
|
|
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.
|
|
|
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
|
|
|
|
Guest
|