Example: Discrete Evaluation
Scenario: You have a carbon monoxide sensor Symbol instance on the canvas and you want the background of the Symbol instance to change depending on the value.
For example, if the value is:
- Less than 150, the background is Green
- Between 150 and 300, the background is Yellow
- Greater than 300, the background is Red.
Steps:
- Select the Symbol instance on the canvas.
- In the Evaluation Editor, do the following:
a. From the Property drop-down menu, select: Background
b. From the Type drop-down menu, select: Discrete
- From System Browser, drag the associated data point and drop it over the Expression field.
- Enter the following Condition and Value pairs, click to add a new evaluation line.
- Condition: <150 and Value: Green
- Condition: 150..300 and Value: Yellow
- Condition: >300 and Value: Red
- To test the evaluation, from the Ribbon, on the Home tab, and in the Modes group, the click .