ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(3,358 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
(3,355 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
(3,346 Views)
Solution
Accepted by 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
(3,335 Views)

Thanks Darin

 

0 Kudos
Message 5 of 5
(3,331 Views)