I am new to Ignition and having a hard time figuring out where exactly to set this up.
I need to control the state property of a valve. I don't have a single tag I can bind with this property. I am using the 'open', 'closed' and 'failedToClose' states. I have a boolean tag to represent each one. That is to say I have a tag that is 'valveOpen', 'vavleClosed' and 'failedToClose'.
I thought I could use an expression binding for runScript(returnValveState, 1000, 'valveOpen', 'vavleClosed', 'failedToClose') and then have a script that would return 'open', 'closed' or 'failedToClose' based on the logic I wrote but it is not working.