When I tried to incorporate if funcion to NLCFit in the user defined function and compile it, I receive the following error: C:\Program Files\Microcal\Origin 6.0\OriginC\system\internal.c(349) :Error, cannot find DLL @OUTL for external function
The part I paste to the function window: // Divide the curve by if condition. if(x<xc) { // Fitting function y=y0 + (A1/(w1*sqrt(PI/2)))*exp(-2*((x-xc)/w1)^2); } else { y=y0 + (A2/(w2*sqrt(PI/2)))*exp(-2*((x-xc)/w2)^2); } // To make compile success. y0; w1; w2; A1; A2;
What's your Origin version? You said it's 7 SR4 in the first post, but the path of the error code is Origin 6.0. Could you please verify your version from "Help : About Origin"?
For Origin 7, you can get an updated file here, or maybe this link can help.
Version is as I wrote in the original post. I have checked it from "Help : About Origin". We initially purchased Origin 6.0 then bought an upgrade to 7.0 version. Basically, Origin 6.0 was installed first, followed by upgrade to the same directory, and finally I have applied Service Release 4. When I try to compile it form the code builder it gives me the same error. Shouldn't #include <origin.h> line be in the *.fit file? Thank you again!