08-13-2014 09:54 PM
we need to compare the data that get from daq with this table.
eg, if we get 12.5V , we should get 90% for futhrt calculation.
08-13-2014 09:58 PM
But actually it isn't a straight line....we want a more accurate value just follow the table....
08-13-2014 10:46 PM
Did you give a try with what I have suggested?
08-13-2014 10:56 PM
I get to know linear fit from NI website. But the data we have are not follow a straight line. We want to follow the table accurately. If use linear fit, it may have error. like when voltage eaquls 12.4V, SOC become 85% not 80%...
08-13-2014 11:08 PM - edited 08-13-2014 11:10 PM
did you do what christian has suggested....
and as you've said,"But the data we have are not follow a straight line"....again, the key word here: interpolate array
08-14-2014 02:07 AM
08-14-2014 10:04 PM
could you please attach the vi here? I try to build the vi like the one you do but some of functions cannot find...
Thanks!!!
08-15-2014 01:44 AM
08-15-2014 09:29 AM - edited 08-15-2014 09:30 AM
Let us keep it to the basics. All you need is a calibration array of points aanndd "interpolate array". 😄
08-17-2014 09:48 PM
Really thanks for your help!!!
But I need to get my voltage from a daq. While data for daq and Interpolate 1D are not the same so I convert daq data to a 1D array and use Index Array function to connect the element inside to the Interpolate 1D, but I don't know how to set the index no. of the Index Array.
Do you know how to connect my daq to the program???
Thank you again!!