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

How write attribute values into PI tags Options · View
PIAiDiMim
#1 Posted : Tuesday, July 20, 2010 4:42:40 PM
Rank: Newbie
Groups: Member

Joined: 7/15/2010
Posts: 4
Location: Brazil
Hi Everyone!

I'm new in PI AF and Notifications and liked this "new tool" from OSIsoft, because can leverage a lot several applications. I've a situation here where I need to write automatically attribute value into PI Tags (I'm using template). I know it is possible using PI Point DR 'Read Only' and write the value directly, but is possible based in a calculation write the result in a PI tag or another form to do it automatically without use programming?

Thank you in advance for your help and I hope somebody could "save me" because I tried several forms but I didn't find the anwser.Confused

PS.: Sorry about my 'poor English'. It isn't my first language and I'm still learning.Razz
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.
RJK Solutions
#2 Posted : Tuesday, July 20, 2010 8:38:20 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
Hello and welcome to the forum!

So, what you have stumbled upon is one of the only "snags" with AF at the moment (it will be covered in future versions).
An AF Attribute can only have 1 Data Reference configured, so if you have the Formula Data Reference configured for an Attribute, the result is shown as the value for the Attribute. What you cannot then do (off the shelf) is then send that same value to a PI Point or to another AF Attribute, which would have a PI Point Data Reference configured.
Your option for getting around this is to write some code. Either a custom scheduled application, an Analysis Rule or a clever Data Reference...but, it does mean that you need to write some code.

OSIsoft are looking to build this functionality in to a future version of AF but there are no firm dates in the engineering plan.

As it happens, I am in the middle of a project for a client that deals with the exact same issue and I am writing a custom application that will be scheduled.

Make sure you log this requirement with OSIsoft Tech Support, it will give it more priority the more customers that request it.

Hope this helps.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
PIAiDiMim
#3 Posted : Wednesday, July 21, 2010 6:53:39 PM
Rank: Newbie
Groups: Member

Joined: 7/15/2010
Posts: 4
Location: Brazil
First of all I would to appreciate your information. I already logged on OSIsoft my situation, but I didn't receive the solution. If is possible send to me this sample of code to workaround and create a "clever" Data Reference I'll be really thankfull because I'm almost 'crazy' because this.

For my solution point of view a Data Reference that permit you 'write' values automatically (like a Formula DR) in PI tags will solve 101% my problems.

Once again thanks and sorry... I'm desesperate to solve it! :-)
RJK Solutions
#4 Posted : Wednesday, July 21, 2010 7:04:37 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
Do you have a vCampus subscription? This type of clever data reference would be a great vCampus community project.
The issue with a data reference solution would depend on something triggering the data reference to actually move the value and after all may not be the best solution in this scenario. How would you let the data reference know when it should write the value to a PI Point? (I am thinking out loud here...)

For example, the Formula Data Reference only produces a value when it measured so you need something to schedule the measuring.

I am willing to point you in the right directions but the type of work involved to build such a solution would need to be a small project.

Hope this helps.

Principal Consultant
Real-Time Data Management @ Wipro Technologies
PIAiDiMim
#5 Posted : Thursday, July 22, 2010 5:51:30 AM
Rank: Newbie
Groups: Member

Joined: 7/15/2010
Posts: 4
Location: Brazil
Unfortunately I don’t have access on VCampus yet (I’m working on that at the moment), but my approach to write values is based following below:

1 – Some attributes retrieve information from SQL database (Table lookup). This values are changed dynamically;
2 – One attribute has a formula using the values from topic 1;
3 – All the time the attribute value change from topic 2 it is write into PI Tags. The dynamic is based when the value is changed;

I’m thinking go using this way to be robust, easy to use and reliable. Maybe there is another point of view based in your experience.
Thanks again for your effort to help me. :-)
RJK Solutions
#6 Posted : Thursday, July 22, 2010 7:49:27 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
Just thinking out load (again)...

It might be a better option for you in this scenario to get the data in to PI via the "RDBMS to PI" interface (simulating the Table Lookup Data Reference), then run some Performance Equations (simulating the Formula Data Reference) on the data. You can then represent the data in AF but just using the PI Point Data Reference.

What do you think?
Principal Consultant
Real-Time Data Management @ Wipro Technologies
PIAiDiMim
#7 Posted : Saturday, July 24, 2010 8:11:40 PM
Rank: Newbie
Groups: Member

Joined: 7/15/2010
Posts: 4
Location: Brazil
Thank you. Actually, this was my first idea but was thinking but I was wondering if there is another solution using only AF's features. I realized there isn't without use programming.
I appreciate your supporting and help. You are great! Thanks!
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.