UDT Instance Tag Names in Historian

Hi,

I have a UDT called “Storage_Tank.” From that UDT, I have several instances: TK1, TK2, TK3, etc. Each instance has an OPC tag called “Gallons.” When I bring the “Gallons” tag up in the historian, “Gallons” from each instance is just named “Gallons.” So they’ll be labeled “Gallons”, “Gallons 1”, “Gallons 2”, “Gallons 3”, etc when they are plotted in the historian together. This gets a little confusing when look at the history for multiple tanks at the same time.

Is there any way to reference the instance name in the OPC tag name? So it’ll read “[Instance Name] [Tag Name]” or something like that in the historian?

Thanks

Yes - what you’ll want to do is implement the onTagsDropped extension function on the Easy Chart component, so that you can reference an element from your UDT path when making the new tag pen on the chart. See this post for a basic example:


See the manual for more information on the function and the chart component; there’s a specific section on ‘Extension Functions’ that goes into more detail:
https://docs.inductiveautomation.com/display/DOC80/Vision+-+Easy+Chart

Thank you!