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.

0OK
1Starting
2Running
3Stopping
4Stopped
10No Air Pressure
11No Power
12Comms Lost

etc..