LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fitting output of XY Graph

Hello, I'm trying to fit the output of an XY graph which is (1-D Array of Cluster of 2 Elements(2x 1-D Array of Double[64-bit Real])). It seems like instead of having one array with two columns X,Y indexed persample number, I want to have a 1-D Array of Column Y , indexed by X. Any ideas?

 

Thanks.

 

I'm getting NaN on the slope and intercept of the Linear Fit VI outputs, is there a way to take the output of the XY Graph Local Variable feed it into the Curve Fitting VI and then add the fitted curve back into the XY graph? It seems like it does not like the Output of the Graph.

 

Thanks. 

 

0 Kudos
Message 1 of 3
(2,597 Views)

Hi Lefterisa

 

Can you post an example VI with your data in it so we can further look into this. Be sure to have as many elements in the X as you have in the Y for them to properly form coordinates. The basics behind this function is that it needs a set of x and y data to which it will return the best linear fit using the method specified in the input.


Thank You
Eric Reid
National Instruments
Motion R&D
0 Kudos
Message 2 of 3
(2,552 Views)
This question has already been answered.
Message 3 of 3
(2,547 Views)