LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NON LINEAR CURVE FITTING

Solved!
Go to solution

I need to plot the R(T) curve of the ntc probe (which is exponential decreasing). I calculated the temperature and resistance arrays, how do I use the "non linear curve fitting" block? can you give me an example?

0 Kudos
Message 1 of 7
(451 Views)
Solution
Accepted by topic author John96Dee

Hi John,

 


@John96Dee wrote:

how do I use the "non linear curve fitting" block? can you give me an example?


Read the help for that function, scroll down til the end and open one of the listed example VIs…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(438 Views)

There is already an exponential fit built-in, just make sure that IF there is a vertical offset to adjust the bounds accordingly.

 

For more complicated models have a look here.

 

0 Kudos
Message 3 of 7
(407 Views)

Hello, I made a VI that at the end of the process creates two vectors. One is a vector of 10 temperatures and the other is a vector of 10 resistances; for each temperature value, I have a corresponding resistance value (so I basically have 10 coordinates). The final goal of the VI is to create the R(T) characteristic of an NTC sensor and plot it graphically (so theoretically, the curve I should obtain is a decreasing exponential). I know I need to do the "fitting". Can someone help me use the "non-linear curve fit" block or if it possible " exp fit" im not able to use them? Thanks, I hope I was clear.

0 Kudos
Message 4 of 7
(373 Views)

Hi John,

 

please don't create new threads for the same topic…

 


@John96Dee wrote:

Hello, I made a VI that at the end of the process creates two vectors. One is a vector of 10 temperatures and the other is a vector of 10 resistances; for each temperature value, I have a corresponding resistance value (so I basically have 10 coordinates). The final goal of the VI is to create the R(T) characteristic of an NTC sensor and plot it graphically (so theoretically, the curve I should obtain is a decreasing exponential).


  • Why don't you attach your VI with typical data for R and T included? (When using recent LabVIEW versions you should consider attaching a downconverted version of your VI (File->Save for previous). Most say LV2021 or older, I prefer LV2019.)
  • What have you tried so far in using the fitting functions?
  • Have you tried the exponential fit as suggested by Christian?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 7
(357 Views)

i'm sorry for the same question. yes i try to use the block but i'm not able to use it. if someone can upload some examples VI, it is better. thanks    

0 Kudos
Message 6 of 7
(349 Views)
Solution
Accepted by topic author John96Dee

Hi John,

 


@John96Dee wrote:

if someone can upload some examples VI, it is better.


You already accepted a solution that told you how to find examples…

 

I asked for your example VI with your measurement data included: mind to share it?

 

I also have a tool to calculate interpolations:

There's a (German) user interface and the subVI to calculate the exponential fit…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 7
(343 Views)