I’m exploring an alternative approach to solving my previous question.
- My tags are in a UDT.
- I want to write all the UDT tags to the History Provider on change of the “Total” tag.
Can someone give me guidance on how to set the paths and values to reference my UDT tags in an valueChanged event script?
system.tag.storeTagHistory(“myHistoryProvider”, “myTagProvider”, “paths”, system.tag.read("[.]Weight"), “192”, system.date.now())
i.e., What’s the simplest syntax for each of the bold items above? For example, how do I reference the Weight value in the same UDT?