LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

setting zero reference line to multiple points

Solved!
Go to solution

I have multiple x,y points.  I would like to chose 2 y points and set them to zero as a reference line, then calculate the deviation of all other points from this reference line.  Does labview have a function that can do this.  Thanks.

0 Kudos
Message 1 of 5
(2,789 Views)
Like a regression analysis?  Look at all the VI's under probability and statistics on the mathematics palette.
0 Kudos
Message 2 of 5
(2,786 Views)
Thanks, I took a look.  I just want to select 2 points in my data, set them to zero, and reference all other points to this straight line.
0 Kudos
Message 3 of 5
(2,777 Views)
Solution
Accepted by topic author jonhelpmejon
Just do a linear fit to the two points and subtract the result from all of the data points.  See example (quick and dirty and potentially buggy).
Message 4 of 5
(2,766 Views)

Thanks Darin

 

0 Kudos
Message 5 of 5
(2,762 Views)