Common multiple color change

<< Click to Display Table of Contents >>

Navigation:  Examples > Change the color of an object >

Common multiple color change

Previous pageReturn to chapter overviewNext page

If we want to multiple change color depending on tag's value we have to choose Tag.PV in the range type in Fill color property. Let's create like in previous example tag - State:

tagstate

In this example we use Valve ISA and change its Fill color depending on the tag's value:

State

Color

0

RED

1

GREEN

2

BLUE

3

YELLOW

To do this setup Fill color property:

fillcolorvalveisa

And setup ranges like this:

fillcolorrangeex

Click OK to confirm your changes and Run simulation to check your settings:

multiplyfillcolor