Daveyh
Member
I'm trying to get a multistate indicator to change color based on the value of a string variable that's read from an OPC server. The string value is either "Normal" or "Alarm".
I'd think that something like this below would work, created with the expression builder, but I keep getting errors, usually "Expression contains a tag that has an error value". The tag is good as I can read that into a String Display.
I've tried numerous combinations of quotes and spaces but have yet to find the magic combination. It's all on one line, any word wrap is from the forum's textbox. I also tried breaking into 3 lines.
Thanks!
If {Network.RATCOM.3.3408.Channel Status.Channel 1 AlarmState.Value} == Alarm Then 1 Else 0
I'd think that something like this below would work, created with the expression builder, but I keep getting errors, usually "Expression contains a tag that has an error value". The tag is good as I can read that into a String Display.
I've tried numerous combinations of quotes and spaces but have yet to find the magic combination. It's all on one line, any word wrap is from the forum's textbox. I also tried breaking into 3 lines.
Thanks!
If {Network.RATCOM.3.3408.Channel Status.Channel 1 AlarmState.Value} == Alarm Then 1 Else 0