Différences entre versions de « SBK-unexpected-data »
Ligne 26 : | Ligne 26 : | ||
* The line of iteration 153 must be removed. | * The line of iteration 153 must be removed. | ||
* Iteration 153 to 179 are missing (lot of data has not been logged). | * Iteration 153 to 179 are missing (lot of data has not been logged). | ||
+ | |||
+ | [[Fichier:SBK-unexpected-data-04.png]] | ||
== Why did it happens? == | == Why did it happens? == |
Version du 7 juillet 2024 à 00:13
Forewords
The SBK Datalogger generates CSV files that can be imported into spreadsheet (see this tutorial on Spreadsheet usage).
Upon condition, charting may reveal few data deviating from standard/common values.
This tutorial shows: why it happens, how to identify the data, how to fix it and what to do to avoids such situation.
The unexpected data
Drawing the data of the temperature sensor (content of the CSV) reveal an unexpected value.
By exploring the spreadsheet data, we can locate the line where appears the 180 °C value.
A close inspection reveal that "180" value is not a temperature but the next iteration number.
Conclusion:
- The iteration 153 as no value.
- The line of iteration 153 must be removed.
- Iteration 153 to 179 are missing (lot of data has not been logged).
Why did it happens?
This may happens when collecting too much data (from too many sensors) with a too high sample rate (10 ms or burst).
To avoids that issue:
- Either reduce the collected data
- Either increase the sampling time (time between two successive samples)
How this happens?
The sampling process does acquire the data as fast as possible to to respect the sampling time.
Then the data is pushed into a ring buffer for the sampling process to get ready for the next sample.
The main process --who's handle the LCD display and user input-- will then collect the data from the ring buffer then save it to the CSV file.
IF the data are pushed into the ring buffer faster that it is read from THEN some data will miss in the CSV file.
As carriage return is part of the data (going to the next line), concatenation of two lines may also appears in the CSV file.
Written by Meurisse D. for MCHobby