08-17-2014 08:35 AM
Hello everyone our project is now facing a problem in LabView.
We need to build a function using the labview that could output a dependent y value when input a independent x value.
eg. when get 6.7 from NI 9263, output should be 100 for further education. When get 6.1, output should be 50...
I've already build two arrays for my X, Y value, I try to use Spline Interpolate vi , Interpolate 1D vi, these two functions.
But when use Spline Interpolate, the indicator for y value is 'NaN'.
When use Interpolate 1D, the indicator for y even doesn't show anything....
I attach our two programs here. Could anyone help us with it?? Or could you give us another way to solve it!!!!
Really Really thank you!!!!!!
08-17-2014 11:03 AM
Do you have some data that we could play around with? The best way would be to put the data into your arrays and run a couple of loops. Then go to Edit->Save Current Values as Default. Then post those updated VIs. I don't see anything wrong with your code, so it must be something in the array data.
08-18-2014 08:52 PM
Sorry too late to reply tou!!!!!!
Our data in the array are:
Voltage, SOC
12.7, 100%
12.5, 90%
12.4, 80%
12.3, 70%
12.2, 60%
12.1, 50%
11.9, 40%
11.8, 30%
11.6, 20%
11.3, 10%
10.5, 0%
We only want a singl SOC value fot futher calculation. I try some other ways but they give arrays....
Thanks Very Much!!!
08-18-2014 09:40 PM