From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I do curve fitting from a xy graph?

Hello, after I can get real-time data curve by using xy graph

I want to do curve fitting on it, but I failed......

 

I tried express curve fitting  & nonlinear curve fit but they just didn' work

 

How could I apply sigmoid curve fitting on it........?

 

please give me some advice ,  thanks!!

Download All
0 Kudos
Message 1 of 7
(5,546 Views)

Hi!

 

You have to first convert XY values to the Waveform - Curve Fitting Signals accept waveform as parameter.

 

Try to follow this instruction:

http://digital.ni.com/public.nsf/allkb/53E96C82FF016576862574670052585D

 

I would like to try it by myself to help you better in case this solution doesn't work, can you please share your X and Y input?

 

Marcin

              

Think Dataflow - blog.mtapp.tech
0 Kudos
Message 2 of 7
(5,513 Views)

ok,  just like this

 

after press the "run" button, then you have to press the start to get the data, and press it again to stop recording data.  then there is a curve  on the right upper screen , I want to do curve fitting on it.......

 

please help me!!  thanks

0 Kudos
Message 3 of 7
(5,505 Views)

Can you please me send the pure data - X and Y array? I don't have IMAQ to run your VI.

 

To create these Arrays you can just use Build Array function with feedback node.

 

2016-08-23 22_45_23-20160824Test.vi Block Diagram _.png

 

 

Then when you stop your VI just right click on indicator and choose Data Operations -> Copy Data, paste the date to excel and attach it

 

Marcin

              

Think Dataflow - blog.mtapp.tech
0 Kudos
Message 4 of 7
(5,495 Views)

I followed what you said, but after pressing "copy data"and paste to excel, there is only a picture,  the data is from export to excel

0 Kudos
Message 5 of 7
(5,480 Views)

Have you tried feeding the X/Y data as a 2d array to the regression solver example VI? It is pretty well made, and perfectly illustrates the functionality of LabVIEW's regression tools; matter of fact I am using it to get adjustment curve equations for instrument calibration with minimum modifications to the code.

0 Kudos
Message 6 of 7
(5,478 Views)

Yes, of course you are right, it should be export to excel.

 

I have created some overview VI for you. Save text file and VI in the same directory and see how it works. Basically I have used method from the link I have sent previously.

 

My note about your VI is that you should use array of numbers to create XY graph, not just one number. You can use the array you have created for me.

 

Sorry for the mess, I'm in hurry. I hope you can extract what you need from it.

              

Think Dataflow - blog.mtapp.tech
Download All
Message 7 of 7
(5,470 Views)