I’m using Ignition v8.0.12.
I’m working on trying to get derived tags working inside UDTs (I’m trying to do unit conversion). While doing this I’m unable to get the source to work properly. First, I make a UDT (named “testUDT”) as shown below with two tags: “val_1” is a stock memory tag and “val_2” is a stock derived tag with the only modification of using the bind “Browse Tags” feature to select “val_1”.
When I create an instance of this UDT the “val_2” value doesn’t update the value at all. In fact, the “SourceTagPath” property appears to still be referencing the “val_1” description in the UDT definition.
If I instead manually type the tag path in the “val_2” source as shown below:
I get the following error:
If I use the scripting example from https://docs.inductiveautomation.com/display/DOC80/Types+of+Tags (Changing the Source section) the script returns [Good] but the SourceTagPath doesn’t actually change.
If I then go into the UDT instance and override the “Source Tag Path” property:
I am now able to successfully run the script and the “val_2” value updates properly. I’m also able to just update the SourceTagPath property by hand in the Tag Browser and it works.
My question is if I am doing something wrong or is Ignition misbehaving?
Thank you if you made it to the bottom of this post!