LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

linear vs polynomial order 1 curve fit VI

Solved!
Go to solution

Hi,

 

when using random data (similar to your images) I get meaningful linear fits:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 11 of 15
(1,183 Views)

Thanks Altenbach.  The issue was with relative vs. absolute time of the signal.  Changing to relative time fixes this for the linear curve fit.  It is unclear why the polynomial order 1 fit is able to work without needing to appropriately condition the signal.  It seems like an odd error to have, expecially given the fact that these are all "easy" modules for newbies like myself to use.

 

I have attached an even simpler VI showing this fix working appropriately.

 

0 Kudos
Message 12 of 15
(1,173 Views)

Doing a logical OR of a boolean with itself does not seem very reasonable. Do you typically connect e.g. a stop button to one of the inputs?

0 Kudos
Message 13 of 15
(1,158 Views)
I typically don't use that input; it should be removed as it serves no purpose
0 Kudos
Message 14 of 15
(1,141 Views)
I mean that the logical OR with the Boolean should be removed... I could separately enable the DAQ assistant with that input by right now I'm one having it be always on with the VI
0 Kudos
Message 15 of 15
(1,139 Views)