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:

  1. Select the Symbol instance on the canvas.
  1. 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
  1. From System Browser, drag the associated data point and drop it over the Expression field.
  1. 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
  1. To test the evaluation, from the Ribbon, on the Home tab, and in the Modes group, the click .