LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interpolate 1D vi is producing empty array

Solved!
Go to solution

Hi all,

 

I build the attached VI to generate a linear profile based on some y-t points. I am using the linear 1D interpolate subVI from the NI_Gmath library to interpolate the points in between the defined y-t points. It works fine on my PC but when I send the VI to my colleague the interpolate subVI produces an empty array, see attached picture probe 50. We have the same labview version. Can someone suggest a reason and a solution to this problem?

 

Thanks!

LV_profile_problem.png

0 Kudos
Message 1 of 3
(854 Views)
Solution
Accepted by topic author AdelZM

Hi Adel,

 

why don't you read the error output of the interpolation function? Which error do you get?

 

Unfortunately you forgot to set some default values in your VI so we cannot run it with your data…

 

Btw. there is a comment in the frontpanel of your VI: "every t should have a Y."!

But in your image the probe shows 4 t values with only 3 Y values…

 

Using some example values your VI seems to work as expected:

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(838 Views)

Hello Gerd,

 

Thanks for the quick feedback. Yes, it looks like this extra element might be the problem. I passed the info to my colleague and I am waiting for his response.

 

Best,

Adel

0 Kudos
Message 3 of 3
(816 Views)