Fleetrun
Hecterra
NimBus
Other apps
Wialon for Android/iOS
Logistics
Wialon Local
Wialon Hosting
WiaTag
Configurator
LeaseControl
en
Contents
How to Configure Calculation Table for Different Types of Sensors

This guide describes how to configure the calculation table for the following types of sensors:

Fuel level sensor

Before configuring the calculation table for the fuel level sensor, calibrate the fuel tank to get a table in which the values X correspond to the sensor readings, and the values Y, to the fuel volumes.

Below you can see two examples of the table configured using the XY pairs tool.

Example 1

Consider the case when you calibrate the fuel tank and get a table with the following data:

Input value X

Output value Y

0

0

86

10

173

20

252

30

330

40

405

50

477

60

546

70

618

80

686

90

749

100

To configure the calculation table based on this data, follow the steps below.

  1. Activate the XY pairs tool on the Calculation table tab in the fuel level sensor properties.


  2. Add the required number of lines according to the values from the table obtained after the calibration of the fuel tank.
  3. Specify 100 in the Upper bound field.
  4. Activate the Apply after calculation option.
  5. Click Generate.
  6. If necessary, click on the icon  above the table to open the calculation chart.



  7. Click OK.

Note. You can see how the coefficient a and the displacement b were calculated. The first interval starts with 0 and influences all input values up to 86. At the last point, the output value should be 10. First, the displacement along the X-axis was calculated: ∆Х = 86 0 = 86. The displacement along the Y-axis was calculated in the same way: ∆Y = 10 0 = 10. Then, using the formula a = ∆Y / ∆X, the coefficient a was calculated, which is the tangent of the angle at the beginning of the coordinate axes: a = 10 / 86 = 0,11627906976744186.

For other intervals, the same calculation formulas were used:

Interval

X

Y

a

b

N

X

Y

(Y(i+1) Y(i)) / (X(i+1) X(i))

Y a × X

1

0

0

(10 0) / (86 0)

0 a × 0

2

86

10

(20 10) / (173 86)

10 a × 86

3

173

20

(30 20) / (252 173)

20 a × 173

4

252

30

(40 30) / (330 252)

30 a × 252

5

330

40

(50 40) / (405 330)

40 a × 330

6

405

50

(60 50) / (477 405)

50 a × 405

7

477

60

(70 60) / (546 477)

60 a × 477

8

546

70

(80 70) / (618 546)

70 a × 546

9

618

80

(90 80) / (686 618)

80 a × 618

10

686

90

(100 90) / (749 686)

90 a × 686

11

749

100

(110 100) / (812 749)

100 a × 749

Example 2

Consider the case when you calibrate the fuel tank and get a table in which the input values X are indicated in descending order, and the output values Y, in ascending order:

Input value X

Output value Y

2,8

0

2,58

10

2,18

20

2,0

30

1,65

40

1,3

50

1,25

60

1,1

70

0,96

80

0,6

90

0,32

100

To configure the calculation table based on this data, follow the steps below.

  1. Activate the XY pairs tool on the Calculation table tab in the fuel level sensor properties.


  2. Add the required number of lines according to the values from the table obtained after the calibration of the fuel tank.
  3. Click Generate. After that, the indicated values Y are shown in descending order automatically.
  4. If necessary, click on the icon above the table to open the calculation chart.


  5. Click OK.

In this example, the table with formulas for calculating intervals looks as follows:

Interval

X

Y

a

b

N

X

Y

(Y(i+1) Y(i)) / (X(i+1) X(i))

Y a × X

1

0,32

100

(90 100) / (0,6 0,32)

100 a × 0,32

2

0,6

90

(80 90) / (0,96 0,6)

90 a × 0,6

3

0,96

80

(70 80) / (1,1 0,96)

80 a × 0,96

4

1,1

70

(60 70) / (1,25 1,1)

70 a × 1,1

5

1,25

60

(50 60) / (1,3 1,25)

60 a × 1,25

6

1,3

50

(40 50) / (1,65 1,3)

50 a × 1,3

7

1,65

40

(30 40) / (2,0 1,65)

40 a × 1,65

8

2,0

30

(20 30) / (2,18 2,0)

30 a × 2

9

2,18

20

(10 20) / (2,58 2,18)

20 a × 2,18

10

2,58

10

(0 10) / (2,8 2,58)

10 a × 2,58

Temperature sensor

Before configuring the calculation table for the temperature sensor, find out what temperature the different values of the specified parameter correspond to. Consider the case when the parameter sends only positive values but some of them correspond to negative ones, that is, to the temperature below zero. For example:

  • interval of positive values, from 0 to 127;
  • interval of negative values, from 128 (which corresponds to −128 degrees) to 255 (which corresponds to −1 degree).

To configure the calculation table, follow these steps:

  1. On the Calculation tab of the temperature sensor properties, add two lines and specify the required values as follows:


  2. If necessary, click on the icon above the table to open the calculation chart.


  3. Click OK.

Engine ignition sensor

Consider an example of configuring the calculation table for a non-digital engine ignition sensor, when the ignition activation is determined by the parameter transmitting voltage. For example, at a voltage up to 0,5 V, the ignition is turned off, and at a voltage over 0,5 V, the ignition is turned on.

To configure the calculation table, follow these steps:

  1. On the Calculation tab of the engine ignition sensor properties, add two lines and specify the required values as follows:


  2. If necessary, click on the icon above the table to open the calculation chart.


  3. Click OK.

If you find a mistake in the text, please select it and press Ctrl+Enter.
Thank you for your feedback!
Report a mistake
Text with the mistake Comment
Maximum 500 characters