This is an old revision of the document!
Lookup
Lookups are very similar to enumerations - they translate one value into something more human-readable.
The major difference between the two is the number of different values they support. Enumerations are suited to smaller, simpler sets of values - for example, having less than 10 distinct types of output text.
Lookups are different. When you define a lookup, you upload a lookup table containing the lookup value and the translation. This can have hundreds or even thousands of values.
This makes them very useful for looking up fault-codes and statuses in systems that share a single, large lookup table to translate those codes into meaningful messages.
Table Format
The lookup table should be in tab-delimited or comma-separated format, with the lookup value first and the displayed value second. The table should not include a header.
| 0 | OK |
| 1 | Starting |
| 2 | Running |
| 3 | Stopping |
| 4 | Stopped |
| 10 | No Air Pressure |
| 11 | No Power |
| 12 | Comms Lost |
etc..