Non-linear sensor support

Providing the kitIo module is installed, the conversion selection Generic Tabular provides a way for a VoltageInputPoint or ResistiveInputPoint to support a non-linear responding signal on a universal input (using point Facets other than temperature). Note that the ThermistorInputPoint also provides non-linear support for resistance-based temperature sensors, but point Facets are limited to temperature.

If you select Conversion type of “Generic Tabular” an edit control (note pad icon) appears in the property sheet beside it. Click the icon to see the Tabular Conversion Dialog, as shown in Figure 21.

Figure 21. Generic Tabular Dialog from edit control


Generic Tabular Dialog from edit control


This dialog allows you to edit the current “source-to-results” non-linear curve used by the proxy point, import another curve (.xml file), or export (save) the current curve as an .xml file. In this way you can provide any custom non-linear curve needed. Figure 21 shows a point with a non-linear curve described in the example 1.

The following notes apply to using this feature:

Example 3. Non-linear sensor example

You have a photoresistor-based illuminance sensor that measures light output from 0 to 800 lux, supplying a resistance of 30K ohms to 3K ohms. Using a ResistiveInputPoint, select the conversion type Generic Tabular, and click the edit control for the Tabular Conversion Dialog (see Figure 21).

In the dialog, enter the sensor’s non-linear response curve (shown below). Configure this point’s facets to have units: “illuminance,” “lux” (lx), and the same units in the point’s Linear Calibration Ext.

Ohms Lux
3000 800
3200 700
3500 600
4000 500
4200 450
4600 400
5000 350
5500 300
6100 250
6900 200
8200 150
10200 100
10900 90
11600 80
12400 70
13300 60
14400 50
15800 40
17700 30
20300 20
30000 0