LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

xy graph plot values

I have an xy graph with three plots. I need a property node or something (I couldn't find what I need) that I can give a value for X and it will return a value for Y. I don't know the value of Y before hand.

Basically, I need the value of Y for any given value of X.

Thanks!
0 Kudos
Message 1 of 3
(2,043 Views)

Perhaps you want the Interpolate function  http://zone.ni.com/reference/en-XX/help/371361G-01/glang/interpolate_1d_array/

 

Since you have the data that made the XY graphs, you can use array data to find the corresponding Y.  You may also need the Threshold 1-D array function in the event your X data falls between actual values you have in your X array.

0 Kudos
Message 2 of 3
(2,035 Views)

Wayne,

 

Since you only need the "value of Y for any given value of X" I would recommend to just SEARCH 1D ARRAY for your X value (which will output the indexed value for X). Then just feed that indexed value to the input of INDEX ARRAY for your Y 1D array. You can control the iterations of this operation by having your # of plots control your loop executions.

 

Chazzzmd

0 Kudos
Message 3 of 3
(2,034 Views)