UDT valuechanged script

Hi,

I got a UDT with 3 tags.

  1. Tag is a number
  2. Tag is a string
  3. Tag is a menory dataset. [0R x 1C]

When the number changes I want to add the 2. tags string value to 3. tags list. (insert new row)

I can't figure out how to write the valuechanged script on the number tag that will do this functionality

P.S: Basically I can't find the way to manipulate a dataset tag in the same UDT.

thanks Henrik.

Your tag change script would use system.tag.readBlocking() to obtain the string tag and the current dataset value, then system.dataset.addRow(), and then system.tag.writeBlocking() to apply the addRow return value back into the dataset tag.