What is the syntax for referencing a views parameters in an event script. I have a view called Motor which has an view parameter called MotorNumber. I’m trying to set a tag by incorporating this in an event script like this:
tp = '[CodeSys]Testing/mtr' + str(self.parent.parent.MotorNumber) + 'StopPB' system.tag.write(tp,1)
This doesn’t cause any errors. If I hard code the path, it works.