How can I automatically add descriptive names to pens when they are selected from the Browse Tag window?
I read the manual for the Power Chart, but it doesn’t have information about scripting.
If a user selects this particular ‘pv’ to graph, I want the pen name to be set to another tag in the same folder. In this case, the pen name should be set to the value of the ‘Short Name’ tag, which is ‘P-1 Flow’.
I think the second part would involve a Change Script to the pen property to be something like:
self.props.pen.name=“The tag that contains the name”
I don’t know how to extract the path to folder that contains ‘pv’ from the Browse Tag window. I think if I have the path, I can append my tag name to it and set the pen name.
This logic would loop through all the pens and set the names accordingly.