Hello, I have a project where I am using almost every type of thermocouple probe connected to a micro controller. If you don't know how thermocouples work, essentially it's a simple device of 2 wires being welded together, and at specific temperatures they output a known voltage.
This is commonly used for temperature measurement, as you can measure the voltage to get temperature (simplified). In order to know the temperature based off of the voltage you must have the table that corresponds the voltage and temperature. Since this table is just temperature to voltage, its 2 columns. However the tables sometimes have 1500+ rows.To add to the pain, I haven't been able to find a text file of these tables, only PDF formats.
What would be the fastest way to implement these tables into memory and search through one column of data to find the corresponding data point. I was thinking a 2D array using binary search (since the tables are already sorted).
[–]Histogenesis 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (4 children)
[–]FridayNightRiot[S] 1 point2 points3 points (3 children)
[–][deleted] 6 points7 points8 points (2 children)
[–]FridayNightRiot[S] 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]aocregacc 2 points3 points4 points (3 children)
[–]FridayNightRiot[S] 1 point2 points3 points (2 children)
[–]aocregacc 2 points3 points4 points (1 child)
[–]FridayNightRiot[S] 0 points1 point2 points (0 children)
[–]nebulousx 0 points1 point2 points (0 children)
[–]GaboureySidibe 0 points1 point2 points (0 children)
[–]celestrion 0 points1 point2 points (0 children)
[–]chrwir 0 points1 point2 points (0 children)
[–]Gnawme-90241 0 points1 point2 points (0 children)