LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

capture a graph and fit a lorentzian cure to it

Hi All,

 

I need to be able to capture the data from a realtime graph and reproduce a static version of the graph on the front panel.  Then, I need to be able to use the data that makes up the static graph and fit a lorentzian curve to it.  I don't know how to do any of this and could really use your help.

 

Thanks in advance!

0 Kudos
Message 1 of 2
(2,766 Views)

You use some words that are not well defined. What is a realtime graph? Who decides when to capture the data?

 

The fitting is easy, simply use the nonlinear curve fit with the VI model. You probably can get good parameter estimates from the array max (value and index), and some typical width.

 

Can you attach a simplified VI containing some typical data? What is your LabVIEW version?

 

Maybe this old example can give you some ideas about the fitting part.

0 Kudos
Message 2 of 2
(2,756 Views)