Warning Gauge
Overview
The Warning Gauge, aka Alarm Bar is a block that changes colour depending on its input. Typically this is used to indicate out-of-range parameters.
For example, an Warning Gauge may be placed next to a gauge showing coolant temperature. The input to the Warning Gauge is configured to give an error signal if the coolant temperature rises above a pre-determined level. The bar colour changes from the specified background colour to the Fill Colour to give an easily seen warning indication.
It is possible to display a Warning Gauge underneath a value or text input gauge. For this to work correctly, the Warning Gauge must be bigger than the maximum likely size of the value gauge. When setting this up in the editor, it is easier to add the Warning Gauge to the page first then the value gauge; this ensures that the value gauge is visible and makes sizing the Warning Gauge correctly easier.
Properties
In addition to Standard Gauge Properties , the following properties may be configured:
Property | Description |
---|---|
Borderless | The display will automatically set the line colour to the current fill colour such that a rectangle of uniform colour with no border will be drawn. |
Colour from input value | If checked, the input channel is a colour value (see below). |
Colour Map | Allows a gradient to be specified to look up a colour based upon the magnitude of the input value given a start and end value. |
Flash | The gauge will alternate between the warning colour and the background colour whilst the warning is active. |
Colour Input Values
Most Display Modules expect the colour value to be a 24 bit RGB value. The hexadecimal (and decimal) values of some common colours are shown below:
Colour | Hexadecimal | Decimal |
---|---|---|
Black | 0x000000 | 0 |
White | 0xFFFFFF | 16777215 |
Red | 0xFF0000 | 16711680 |
Green | 0x00FF00 | 65280 |
Blue | 0x0000FF | 255 |
Some older firmware versions only support 16 bit RGB565 values as follows:
The 16 RGB colour value treats the top 5 bits as red intensity, the next 6 bits as green intensity and the lower 5 bits as blue intensity. Thus, it is possible to display any one of 65535 colours. The hexadecimal (and decimal) values of some common colours are shown below:
Colour | Hexadecimal | Decimal |
---|---|---|
Black | 0x0000 | 0 |
White | 0xFFFF | 65535 |
Red | 0xF800 | 63488 |
Green | 0x07E0 | 2016 |
Blue | 0x001F | 31 |
Cyan | 0x07FF | 2047 |
Yellow | 0xFFE0 | 65504 |
Typically, a function table would be used to map a given value to a specific colour. To avoid interpolation between the colour values, the function table should be set up such that a range of values defines one colour. For example, the following function table would map brake temperatures of 0 to 250 to blue, 251 to 500 to green, 501 to 700 to yellow and 701 to 1000 to red:
Input | Output |
---|---|
0 | 31 |
250 | 31 |
251 | 2016 |
500 | 2016 |
501 | 65504 |
700 | 65504 |
701 | 63488 |
1000 | 63488 |
Display Support
Display | Supported? |
---|---|
CD34 | Yes |
LDS4 | Yes |
CD32 | Yes |
LDS35 | Yes |
LDS35_L | Yes |
CD6-43 | Yes |
GLW-43 | Yes |