Taurus uses color codes on many of its widgets. Colors are used to represent two main things: the state of a device and the quality level of an attribute. The state represents the summary condition of a certain device. For example, a power supply, maybe report to be On if it is working properly, Off if it is shutdown or Fault if there is a communication problem between the software and the physical device. Taurus allows for a reduced set of these states, each of which has a specified color. The table below shows all possible values for the state and their corresponding colors.
State | Background | Foreground | Preview |
---|---|---|---|
On | Dead Frog Green (0,255,0) | Black (0,0,0) | ON |
Off | White (255,255,255) | Black (0,0,0) | OFF |
Close | White (255,255,255) | Green (0,128,0) | CLOSE |
Open | Dead Frog Green (0,255,0) | Black (0,0,0) | OPEN |
Insert | White (255,255,255) | Black (0,0,0) | INSERT |
Extract | Dead Frog Green (0,255,0) | Black (0,0,0) | EXTRACT |
Moving | Light Blue (128,160,255) | Black (0,0,0) | MOVING |
Standby | Yellow (255,255,0) | Black (0,0,0) | STANDBY |
Fault | Red (255,0,0) | Black (0,0,0) | FAULT |
Init | Grenoble (204,204,122) | Black (0,0,0) | INIT |
Running | Light Blue (128,160,255) | Black (0,0,0) | RUNNING |
Alarm | Orange (255,140,0) | White (255,255,255) | ALARM |
Disable | Magenta (255,0,255) | Black (0,0,0) | DISABLE |
Unknown | Gray (128,128,128) | Black (0,0,0) | UNKNOWN |
Gray (128,128,128) | Black (0,0,0) | ----- |
The quality of an attribute (example, voltage of a power supply) defines it’s “state”. If the value of an attribute can be read then its quality is valid. If for some reason there is a problem when trying to read the attribute value from the equipement and it cannot be displayed, then the quality is set to invalid. If the value is below or above the warning or alarm thresolds, then the quality is set to alarm. The quality is set to changing when the value is being changed over time (example, the position of a motor is changing during a motion).
Quality | Background | Foreground | Preview |
---|---|---|---|
Invalid | Gray (128,128,128) | White (255,255,255) | ----- |
Valid | Dead Frog Green (0,255,0) | Black (0,0,0) | 10.89 mV |
Alarm | Orange (255,140,0) | White (255,255,255) | 76.54 mV |
Warning | Orange (255,140,0) | White (255,255,255) | 64.23 mV |
Changing | Light Blue (128,160,255) | Black (0,0,0) | 20.45 mV |
Gray (128,128,128) | Black (0,0,0) | ----- |