LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

a linear interpolation vi

Hi, I need a vi. that gives me a linear fit of the form y=ax+b for a set of
data points and my copy of labview hasn't got one.

Any chance someone sends me a vi that does this?

Also, I'll trying to write the date to a file and it keeps giving it in a
format from 1904, is there anyway I can just get it to write the date and
time as xx:xx & xx/xx/xx to the file??
0 Kudos
Message 1 of 4
(3,484 Views)
1. The VI you are requesting is part of the Full and Professional Development System. Even if someone sent you this VI it will not run in the Base version of LabVIEW.

2. My suggestion would be to use the "Format Date/Time String" LabVIEW primitive. It will allow you
to format the output string to your specifications. You can then write this string to your file.

Chris_Mitchell
Product Development Engineer
Certified LabVIEW Architect

0 Kudos
Message 2 of 4
(3,484 Views)
Trevor,
I have attached a simple VI that does a Least-Square Fit on data and returns the equation of the resulting linear function; y=ax+b. It should do the trick for you. I hope this helps. /Mikael Garcia
Message 3 of 4
(3,484 Views)
Here is the same VI again but now with an icon and default values for the Y-array as well (for a quick sanity check). I hope this helps. /Mikael
Message 4 of 4
(3,484 Views)