LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interpolating data between two discrete data points

Hey so I am an extremely new user to Tabview so lease keep this in mind when helping!

 

I have created a XY graph with approximately 50 discretely measured points. However, I would like to interpolate what a point may be in-between two measured data points.

 

I understand that apparently you can create a line between two points on your graph and somehow create a function from which you can plug in say point Y to get out point X.

 

My question is how is this potentially done as I have been having no luck whatsoever and cannot find any help anywhere.

 

Thank you for any and all help in this matter!

0 Kudos
Message 1 of 6
(4,081 Views)

I am not familiar with Tabview either, but I know some LabVIEW. 😄

 

It usually helps if you would attach your Vi containing the data. Typically "interpolate 1D array" will work just fine). have you looked at the help?

 

Are your x-points equally spaced or does the graph contain e.g. loops and such.

0 Kudos
Message 2 of 6
(4,059 Views)

Thank you for the response. I forgot to mention that I pulled up the  Interpolate 1D array and put in a array of X values with a control. However, I do not know where the control is getting numbers from and when I set an indicator from the interpolate 1D array I am getting numbers which make no sense.

 

Also the XY graph is not linear. It has curvature between some of the points.

0 Kudos
Message 3 of 6
(4,047 Views)

So you have your xy points and you want to calculate a linearly interpolated y for any arbitrary x-value in the range of x-min and x-max. Right?

 


@OpticalDataDriver wrote:

 However, I do not know where the control is getting numbers from and when I set an indicator

from the interpolate 1D array I am getting numbers which make no sense.

Obvious you have things hooked up wrong. A control is read by polling its terminal, and the value is set by the operator while the program is running. In what way do the numbers make no sense?

 

Again, attach your VI!!!

 


@OpticalDataDriver wrote:

 

Also the XY graph is not linear. It has curvature between some of the points.


The question was if the x-values are spaced equally, not if the graph is linear.

0 Kudos
Message 4 of 6
(4,045 Views)

My apologies I thought it attached.

 

Also thank you for your patients as I just started labview a week ago.

 

 

Yes the points are equally spaced.

0 Kudos
Message 5 of 6
(4,041 Views)

This is an image, not a VI. Please attach the vi and data.

 

If the x values are equally spaced, you don't need an xy graph.

 

(Posting by phone, will look later)

0 Kudos
Message 6 of 6
(4,034 Views)