Mapping Values For Descriptive Indicators

You can use a descriptive indicator to collect readings that come from a source with a fixed list of values. For example, the only three possible states of an indicator that tracks the condition of a valve might be:
For a descriptive indicator collected from an online source, the data source returns distinct codes that must be mapped to each of the indicator’s possible values (states). The online indicator’s codes might be expressed as numbers, strings, or some other data type, such as a boolean. In the valve condition example, the online indicator might return:
At run-time, as readings come in from the online device, the reading value will be converted to a string. This string will be compared to the mapping value for each of the states defined for the corresponding descriptive indicator in APM. When a valid match is found, an indicator reading is created with the correct descriptive state.
The following shows descriptive indicator state with an ODC mapping value:

Incorrect Readings

If no match can be made, a reading will still be created, but it will be marked as incorrect. This situation might occur for example, if the online source returns a value for which you did not define an indicator state, or if one of the matching strings was entered incorrectly.
When an incorrect reading is created due to the lack of a matching state, APM records the reason that it was marked as incorrect as “No matching state found for value collected online”. The collector’s note for the reading contains the value that was returned from the online source.
Incorrect readings from online data sources are treated by the system in the same way as other incorrect readings.

Data Types

When you collect online data for a descriptive indicator, you must enter a mapping value for each descriptive indicator value (state). The mapping value is a string. However, the reading values from online data sources can be in the form of several different data types, depending on the online device that is emitting the readings. When defining mapping values, you must know the type of value that the online device will provide, as well as the string format to use to represent this value.
The following table lists the possible data types that various online data sources might use and explains how to convert them to a string.