LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

(Best Practices) How do I store values for curve fitting?

Solved!
Go to solution

I've got two data sets, Xreal and Xobserved, abbreviated Xr and Xo. Xreal is a data set containing sensor values from a trusted source (that is a pain to gather data for), and Xobserved is a data set containing sensor values from a less trusted, but much lower maintenance, source. I am going to create a VI that receives input from both data sources, stores it in a database (text file or csv), and runs that database through some curvefitting. The output of the VI will be the linear fit's best approximation (using the regression, not the Xreal) of the input value from Xobserved.

 

What are the best practices for storing Xreal and Xobserved? Also, I'm not too experienced using best fit VI's, do they take CSV files for input? How would I format it best?

'

0 Kudos
Message 1 of 3
(2,726 Views)
Solution
Accepted by topic author ijustlovemath

Keep it simple.  Convert array to CSV file and write it out to a text file.  See attached example.

 

 

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 2 of 3
(2,716 Views)

Thanks! considering this closed.

0 Kudos
Message 3 of 3
(2,688 Views)