The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 User-defined Curve fitting

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
giffyjie Posted - 10/15/2014 : 06:21:05 AM
hi,

i'm trying to fit a I-V curve with this defined equation,

and my I-V curve looks like


I couldn't compile the function that i have put. I'm not sure if i have stated the wrong variables. But this is what i put for

Independent Variables: V,i
Depdendent Variables: i(V)
Parameter Name: Rs,Rp,iLt,io
constant: k=1.38*10^(-23)
q=1.6*10^(-19)
T=300


function: I(V)=io*[exp(q*(V-(i*Rs))/(k*T))-1] + ((V-(i*Rs))/Rp)-iLt

do let me know my mistake. thanks.

regards,
YJ
3   L A T E S T    R E P L I E S    (Newest First)
JacquelineHe Posted - 10/20/2014 : 05:49:17 AM
Hi YJ,

Thanks for your reply.

I am afraid that I am not sure why the Depdendent Variables: i is used in both right and left part in your fitting function: i=io*(exp(q*(V-(i*Rs))/(k*T))-1)+ ((V-(i*Rs))/Rp)-iLt


And if you do not mind I suggest you can send project file and the .FDF file (user-defined fitting function file) to our Tech Support department, so that we can look into the problem?

The FDF file path you can check from Fitting Function Organizer (Tools: Fitting Function Organizer menu).

Please click on the link "Send File to Tech support" on the right-top of this page.
And please tell us your detailed version and serial number information in your email.

Thanks
Jacqueline
OriginLab
giffyjie Posted - 10/16/2014 : 05:31:49 AM
Hi,

Thanks for your reply.

I have made some changes and this is the following equation that used:
i=io*(exp(q*(V-(i*Rs))/(k*T))-1)+ ((V-(i*Rs))/Rp)-iLt
and successfully compiled the code.

With the following parameters and variables.
Independent Variables: V
Depdendent Variables: i
Parameter Name: Rs,Rp,iLt,io
constant: k=1.38*10^(-23)
q=1.6*10^(-19)
T=300

However, when I'm trying to fit my curve into the function, I've problem again.

I selected my data input using the "Selection on active plot" tool. Then i clicked into 'Analysis' tab and try to fit my curve with my defined function above.

After selecting, I was prompt with this message after clicking on chi-square icon "Fit did not converge - Parameter(s) Rs,Rp,iLt,io are not properly initialized. Please check and correct their values."

After randomly initialize the parameters Rs,Rp,iLt,io and click chi-square icon again, i'm given a value. But when i click on the "fit until converge" icon i receive the following message
"Fit did not converge - mutual dependency exists between parameters.
You may have overparameterized the fitting function. Fixing one of them may eliminate this problem."

What puzzled me was, did I key in the wrong variables and parameters when i defined my function. Also, the data that I have is V & i. I would like to find Rs,Rp,Io,Ilt through this fit.

Please help. Thanks.

regards,
YJ
JacquelineHe Posted - 10/15/2014 : 10:36:04 PM
Hi,

When you create the usef-defined function, you choose Origin C as the Function Type, right?

I suggest you do not use i(V) as Depdendent Variables.

Please try to use y to instead of i(V).

And set the Function to:
y=io*(exp(q*(V-(i*Rs))/(k*T))-1)+ ((V-(i*Rs))/Rp)-iLt

Thanks
Jacqueline
OriginLab

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000