LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

i want to make exponential fitting function

How can I create a fitting function in LabVIEW similar to the one in the provided origin file?

 
0 Kudos
Message 1 of 6
(204 Views)

Chances are that few people here know how to work with origin files.

 

Why don't you show us your data and explain what model you want to fit.

The fitting palette has tools for simple exponential fits and for more complicated models you can use nonlinear fitting tools.

For some ideas, have a look at my group.

0 Kudos
Message 2 of 6
(181 Views)

dlehdgh20_0-1735027342019.png

I would like to create a fitting function in LabVIEW that fits the data starting from a specific value, similar to the provided shape. I am sharing a sample dataset as a .txt file. I would appreciate it if you could help me create this.

0 Kudos
Message 3 of 6
(174 Views)

@dlehdgh20 wrote:

 starting dlehdgh20_0-1735027342019.png

I would like to create a fitting function in LabVIEW that fits the data starting from a specific value, similar to the provided shape. I am sharing a sample dataset as a .txt file. I would appreciate it if you could help me create this.


OK, this is a double-exponential decay with offset starting at the peak (which is not exactly at t=0 so you might need also a parameter for that unless you can guarantee that t0 is at the right place. Then you also need some criteria what points at negative times and near zero to omit. Obviously, all points to the left don't fit the red line at all. Alternatively, you could use a more complicated model where the left is an exponential rise Or you could set the weight to zero to ignore these points.

 

Should the program determine what points to omit, do you want to use a cursor to manually select, or do you just want to keep all values that have nonnegative time delay?

 

Note that your results are truncated and we cannot read the value for y0 (missing the digits after the E). Are you sure that we cannot assume that Y0=0, simplifying the model?

 

In any case, if you look at some of my examples you should have no problem implementing this as long as you have some basic LabVIEW knowledge. Do you?

0 Kudos
Message 4 of 6
(151 Views)

Thank you for your response. It would be great if the program could automatically determine which points to exclude. I'm not sure if assuming to simplify the model is valid. Additionally, in the double-exponential model, it would be helpful to identify the values of the two time constants.

0 Kudos
Message 5 of 6
(90 Views)

@dlehdgh20 wrote:

Additionally, in the double-exponential model, it would be helpful to identify the values of the two time constants.


Fitting to such a nonlinear model will of course give all best fit parameters. That's the purpose of fitting! What have you tried?

0 Kudos
Message 6 of 6
(64 Views)