LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I find the slope and intercept of two-points in Labview

This should be quite easy to do, But how do I have a user enter two (x,y) points and have labview give them the slope and intercept?

Thanks
0 Kudos
Message 1 of 6
(7,622 Views)
On the Mathematics>Fitting palette is Linear Fit. You provide an x array and a y array and it returns the slope and intercept.
0 Kudos
Message 2 of 6
(7,615 Views)
I realize that, but how do I put just two x values and two y values into an array to use the lienar fit vi.

Thanks and Regards
0 Kudos
Message 3 of 6
(7,612 Views)
How about just two sets of X Y value pairs?




Darn, I'm too slow.

Message Edited by Bill@NGC on 02-09-2008 02:42 PM
0 Kudos
Message 4 of 6
(7,608 Views)
One way is to simply use the Build Array function.
 
 
 


Message Edited by Dennis Knutson on 02-09-2008 03:41 PM
Message 5 of 6
(7,603 Views)
Awesome guys, thanks so much for the help. I will look into trying out both of these methods.

Thanks again!
Robert
0 Kudos
Message 6 of 6
(7,596 Views)