LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in coefficients output of General LS Linear Fit LabView 8.5.1?

Hi
 
I compiled my application from LabView 7.1.1 to LabView 8.5.1. This application use the "General LS Linear Fit.vi". I noticed that there differences in the calculation of the coefficients.
There are attached two files, one comiled in LV7.1.1 and the other with LV 8.5.1, with two different results. Please make sure you open this files with the correct version.
If I change in "General LS Linear Fit.vi" the link to the lvanlys.dll of the LV7.1.1 version, the calculations are correct.
 
Any help would be appreciated, thanks.
 
Fil
 
0 Kudos
Message 1 of 6
(2,871 Views)
Your attachments are missing.
 
R
0 Kudos
Message 2 of 6
(2,870 Views)

Sorry

Thank you for the notice.

 

0 Kudos
Message 3 of 6
(2,868 Views)

The code of the lvanlys.dll changed in the Version 8.5 because of additional functionality and bugfixes. One of these bugfixes concerned the linear fit functions. Becuase of that, you see different results depending on which version of LabVIEW you are using. I recommend using the later Version, as the algorithm used in the new version is more robust and exact.

 

André

 

0 Kudos
Message 4 of 6
(2,822 Views)
Hi André
 
I think the results in the 8.5 Version are completely wrong. If the result would deviate a few percent one could say that the new version could be more exact. But not like that.
 
Fil
Download All
0 Kudos
Message 5 of 6
(2,815 Views)
Fil,

in your data you have 3 columns with constant values (1, 0.5, 0). These coefficients can't be estimated correctly, because the fit quality is exactly the same if you change 2 coefficients in opposite direction. If these parameters are really constant you'll need to combine them into one. If these parameters can vary, you need better data for the fit to be reliable.

Daniel

0 Kudos
Message 6 of 6
(2,798 Views)