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
 fitting parameters problem

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
yeonatan Posted - 08/08/2003 : 06:43:22 AM
hello,
I have a measuer of electronic car. of a transistor device.
the formula is I(Vgs,Vds).I have excel file will I,Vgs,Vds measured data,and I have an equetion with fitting parameter.this is my code and i need to run it and i have no plot.what do i o wrong?
I want to get the best evaluation to the fitting paraeters compare to my measurement.
thanks

GENERAL INFORMATION]
Function Name=DC_fitting
Brief Description=
Function Source=N/A
Function Type=User-Defined
Function Form=Equations
Number Of Parameters=7
Number Of Independent Variables=2
Number Of Dependent Variables=1
Analytical Derivatives for User-Defined=Off


[FITTING PARAMETERS]
Naming Method=User-Defined
Names=iw,Vg0,Vg1,alpha,beta,gamma,delta
Meanings=?
Initial Values=0.36e-3(V),0.5(V),3.996(V),2.351(V),4.360(V),3.268(V),0.43e-3(V)
Lower Bounds=--(X,OFF)
Upper Bounds=--(X,OFF)
Number Of Significant Digits=


[FORMULA]
y=iw*exp(1+alpha*atan(beta*(Vgs+Vg0)))*(delta*Vds*(Vg1+1+alpha*atan(beta*(Vgs+Vg0)))+tanh(gamma*Vds));


[CONSTRAINTS]
/*Enter general linear constraints here*/


[CONSTANTS]


[Parameters Initialization]
/*Code to be executed to initialize parameters.*/


[INITIALIZATIONS]
/*Code to be executed before fitting, a good place for complicated initialization.*/


[AFTER FITTING]
/*Code to be executed after fitting, a good place for generating results.*/


[ON PARAM CHANGE]
/*Code to be executed when parameters change.*/


[INDEPENDENT VARIABLES]
Vds=A(x1)
Vgs=B(x2)


[DEPENDENT VARIABLES]
y=


[CONTROLS]
General Linear Constraints=Off
Initialization Scripts=Off
Scripts After Fitting=Off
Number Of Duplicates=N/A
Duplicate Offset=N/A
Duplicate Unit=N/A
Generate Curves After Fitting=Yes
Curve Point Spacing=Uniform on X-Axis Scale
Generate Peaks After Fitting=Yes
Generate Peaks During Fitting=Yes
Generate Peaks with Baseline=Yes
Paste Parameters to Plot After Fitting=Yes
Paste Parameters to Notes Window After Fitting=Yes
Generate Residuals After Fitting=No
Keep Parameters=No
Enable Parameters Initialization=0
Compile On Param Change Script=1


[COMPILE FUNCTION]
Compile=1
Compile Parameters Initialization=1
On Param Change Scripts Enabled=0


[ORIGIN C FUNCTION HEADER]
#pragma warning(error : 15618)
#include <stdio.h>
#include <data.h>
#include <math.h>
#include <utilities.h>

// Add your special include files here.
// For example, if you want to fit with functions from the NAG library,
// add the header file for the NAG functions here.

// Add code here for other Origin C functions that you want to define in this file,
// and access in your fitting function.

// You can access C functions defined in other files, if those files are loaded and compiled
// in your workspace, and the functions have been prototyped in a header file that you have
// included above.

// You can access NLSF object methods and properties directly in your function code.

// You should follow C-language syntax in defining your function.
// For instance, if your parameter name is P1, you cannot use p1 in your function code.
// When using fractions, remember that integer division such as 1/2 is equal to 0, and not 0.5
// Use 0.5 or 1/2.0 to get the correct value.

// For more information and examples, please refer to the "User-Defined Fitting Function"
// section of the Origin Help file.



[ORIGIN C PARAMETER INITIALIZATION HEADER]

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