03-02-2016 05:22 AM
Hello,
I am new to Labview, and I am having trouble with the Interpolate 1D array function. I have attached a sample vi and some sample data.
What I find is that the interpolated y-values produced are just the first n number of y-values input in the array of numbers, where n is the number of y-values required. I am obviously misunderstanding something, but as far as I am aware the array of numbers that I am inputting (in the rawData example file attached) corresponds to a cluster of x and y-coordinates, as shown here: http://zone.ni.com/reference/en-XX/help/371361J-01/glang/interpolate_1d_array/.
I have also examined the Labview interpolate example and examined this thread: http://forums.ni.com/t5/LabVIEW/Can-you-give-me-an-example-using-the-vi-interpolate-1d-array-vi/m-p/... but both just deal with fractional indexes rather than x-values.
Any help inunderstanding ,y mistake would be appreciated.
Solved! Go to Solution.
03-02-2016 05:50 AM - edited 03-02-2016 05:51 AM
03-02-2016 06:12 AM
Thank you GerdW.
Is see now what is meant by a cluster.
However I am now getting the rror message: 'The type of the source is cluster of 2 elements. The type of the sink is a 1-D array of double.' Does this imply that the interpolate function cannot accept a clustered input? I am using Labview 7.1.
03-02-2016 06:24 AM
03-02-2016 06:58 AM
Thanks again GerdW,
I hadn't disabled autoindexing. It's working now 🙂