01-27-2015 01:58 AM
hello ,
I have prepare a programme to aquire temperature. for this I am geeting voltage signal which I have converted into sensor resistance .now problem is that I don't know how to realize look up table for temperature value corrospond to theseresistance values.for example:
R T
1 24
2 37
3 46
4 54
5 68
6 70
I want to change R value to ts corrospond T value ,for this how to realize a look up table in labview programming???
01-27-2015 03:13 AM
What kind of sensor is this?
When working with an NI device, you can include the scaling information in your DAQmx task which makes things easier for the developer.
Otherwise, you have to chose whether you want some kind of interpolation or a strict "value table". Depending on that decision, your code has to either use a simple table (as you posted) or to interpolate the measurement value against the table.
If you are scaling your values in your custom program, you have to use a 2D array with the R and T values just like you wrote it in the post. Then you have to compare your measured R against the R-column in order to search for the closest value and then pick the appropriate T value from the T-column.
Norbert
01-27-2015 03:17 AM
try to find time reading this thread !
01-27-2015 03:24 AM
This is one method:
Note that it will only work if there is a matching R value (will return 0 if no match) and doesn't interpolate between values. There are more advanced functions for doing interpolations in the Mathematics->Interpolation palette and some in the Array palette.