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 for Programming
 Forum for Origin C
 Calling Origin C function from NLSF

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
jazgara@un1 Posted - 02/10/2003 : 07:02:13 AM
Hello,
I have modyfied my function Aga (User forum topic: fitting function with integral in Origin C). I can compile it now, but I still have a big problem with colling this function from NLSF. I get the results for the initialisation values of parameters only and a program "doesn't want to fit" those results to an experimental profile. The return statement of my function is a vector . Is it a reason of my troubles?
The last part of my modyfied script:
vector Aga(vector x, double lc, double d, double w, double alfa, double A)
{
\\............
dd=result; \\result is a Dataset
return dd;
}
Could anybody help me?
Thank you.
Aga
1   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 02/10/2003 : 1:07:42 PM
Hi Aga,

Your return type has to be double. Best would be for you to send your FDF file and any associated C files to your local tech support office and they can help you sort this out.

Easwar
OriginLab.


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