I don't think this is possible, but I'm still looking into it. This is an interesting question. Typically the PI Point name is first stored in an attribute as a value and then with substitution parameters the attribute configuration string refers to this attribute value. Your question, unless I'm mistaken, is the opposite of this.
What is the end goal of doing this ? I'm just trying to understand as there might be another way to achieve the same goal.
What I need is to create a way to have the same PI Tag in different elements, let me give you an example:
The "Actual" Element have a attribute call PIPoint, what I need is the the father element ("MassFlow")
have the same PI tag in another attribute (in the "Actual" attribute).
The idea behind this is to obtain a summary of all the PI tags under the "MassFlow" element (that is, all "MassFlow" children)
And the most important thing is generated this summary automatically.
Meaning when you configured the PI Point attribute in the "Actual" element,
automatically in the actual attribute in the MassFlow Element (The father of the "Actual" element) will be configure with same PI Tag .
In short words, the idea is to avoid copy and paste the Configuration string to other attributes to other elements.
Hope my example was clear to give an idea of what I'm trying to do
1 of 1 people found this helpful
Actually looking closer at the example you have provided, wouldn't it be best to give your attributes in the parent element the following configuration?
If I configured that way it works.
Another question, using the AF SDK
Is possible to get PI Point configured in the children element reading that attribute (the one configured .\actual|PIPoint )?
I've been trying to use the AFDataReference.PIPoint property , but it's giving me an issue.
The idea behind my main question is to have in the element parent (in my example the "MassFlow" element) a summary of all the PI Tag below that element (The MassFlow" children, PI tag configured in my example the "actual" element with the PI Point attribute).
With this my goal is go to the "MassFlow" element and read all the Attributes configured as PI Point with the AF SDK and trend all the PI tags in it.
Instead of, read each MassFlow's Children and get the attribute PI Point. To be able to trend the PI Tags.
I know there is a function I can use for that, the AFAttribute.GetValues Method.
But what I need to know for now, is if I can get the actual PI Point, reading the "MassFlow" element using the actual attribute configured that way (meaning configured as PI Point with this configuration string ".\Actual|PIPoint"). And Avoid read the MassFlow's children.
Best Regards and thanks in advance
2 of 2 people found this helpful
Many people do the opposite of what you want. They will have a static child attribute named "Tagname" under the attribute named "PIPoint", and they use the value in Tagname to connect to PIPoint.
There is no built-in functionality for what you are asking. If you know coding, you can make a very simple custom data reference to do what you want.