I am trying to fit the I-V curve of a solar cell using the one-diode model. The equation of this model is
![Basjong53_0-1726480847454.png Basjong53_0-1726480847454.png](https://forums.ni.com/t5/image/serverpage/image-id/337741iA5A82FC3801437FA/image-size/medium?v=v2&px=400)
The goal is to extract I_0, Rs, Rsh and n. I and V are the variables, the rest are constants.
I_ph can be removed, since it's just an offset that is easily found from the data.
![Basjong53_1-1726480936308.png Basjong53_1-1726480936308.png](https://forums.ni.com/t5/image/serverpage/image-id/337742iEC0A506747D2D025/image-size/medium?v=v2&px=400)
Following the suggestions in these topics: Fitting Non-ideal Diode equation, non linear fit for diode equations and
Fitting transcendental equation, I is moved to the right to format the data for the Non-Linear Curve Fit VI:
![Basjong53_7-1726481279065.png Basjong53_7-1726481279065.png](https://forums.ni.com/t5/image/serverpage/image-id/337751i206FAD395A59D987/image-size/medium?v=v2&px=400)
For the fitting model, I have this:
![Fit Model.png Fit Model.png](https://forums.ni.com/t5/image/serverpage/image-id/337750iF26D5BE452C011BB/image-size/large?v=v2&px=999)
Here is an example curve
![Basjong53_9-1726481412098.png Basjong53_9-1726481412098.png](https://forums.ni.com/t5/image/serverpage/image-id/337753iCBAF6E9690792E77/image-size/medium?v=v2&px=400)
The issue I'm having is that, although the fitting doesn't give an error, some parameters aren't reasonable:
![Basjong53_11-1726482149107.png Basjong53_11-1726482149107.png](https://forums.ni.com/t5/image/serverpage/image-id/337755i3297AA7DBF9B4003/image-size/medium?v=v2&px=400)
The data is very typical of a silicon solar cell, as are the guess parameters. (Rs and Rsh guesses are extracted using the slope of the curve at V=0 and I=0, respectively). I've followed the suggestions of the abovementioned topics, which were said to have worked. Did I do something really wrong?
I have attached the VIs with example data.