Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing text color in lookout

I wish to display a read only fieldpoint value (like a temperature/thermocouple input)and have the text colour change based on some condition (i.e. green when temp < setpoint, red otherwise) - how do I do this? Again; this is a read only value. Thanks.
0 Kudos
Message 1 of 3
(3,108 Views)
I do this with multiple expressions each formatted with a different color on the panel. For example:
Expression #1: IF(Driver.Analog<10,Driver.Analog,"")

Expression #2:IF(Driver.Analog>10 AND Driver.Analog<20,Driver.Analog,"")

Expression #3: IF(Driver.Analog>20,Driver.Analog,"")

Expressions 1,2, and 3 would be formatted with different colors. The if statement with the null output when the condition is false ensures no two expressions are visible at the same time.

Regards,
Tommy Scharmann
0 Kudos
Message 2 of 3
(3,108 Views)


You can use the Gauge object for this.

Create the Gauge object and specify for the Signal parameter your input signal, e.g.,

Signal = PLC1.temp

You can now choose several IF-Else states and colors for them. For e.g.,

If = PLC1.temp > 90 <(say, red)
and so on.

Once you're done defining the conditions and their colors, hit OK.. and select Digital for Display style ('Bar' is the default).

This should do it.

Khalid 🙂


Message 3 of 3
(3,108 Views)