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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Calling Origin C function from NLSF
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jazgara@un1

Poland
6 Posts

Posted - 02/10/2003 :  07:02:13 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

easwar

USA
1965 Posts

Posted - 02/10/2003 :  1:07:42 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000