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
 LabTalk Forum
 Custom FitFunc - Code Builder compiling problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

PaDx9

Germany
4 Posts

Posted - 06/13/2024 :  05:49:00 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): Origin 2023b (64-bit) SR1
Operating System: Windows 11

I tried to create a custom fitting function, see the following .FDF file.

https://my.originlab.com/ftp/forum_and_kbase/Images/testCoreShellCylinder.FDF

There are no invisible non-ASCII characters.

When trying to compile this, I get the errors:

Linking...
Done!
compiling...
_nlftestCoreShellCylinder.fit
C:\Users\XXX\AppData\Local\OriginLab\100b\TMP\OriginC\NLSF\_nlftestCoreShellCylinder.fit(103) :Error, invalid ascii char notation
C:\Users\XXX\AppData\Local\OriginLab\100b\TMP\OriginC\NLSF\_nlftestCoreShellCylinder.fit(103) :Error, invalid ascii char notation
C:\Users\XXX\AppData\Local\OriginLab\100b\TMP\OriginC\NLSF\_nlftestCoreShellCylinder.fit(103) :Error, general compile error
C:\Users\XXX\AppData\Local\OriginLab\100b\TMP\OriginC\NLSF\_nlftestCoreShellCylinder.fit(85) :Error, error(s) found in compiling function _nlsftestCoreShellCylinder
Compile Failed!



I have no idea what causes these errors. Can anyone please help me to find the error(s) in the code?

YimingChen

1640 Posts

Posted - 06/13/2024 :  09:35:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
To initialize the parameter list, use the syntax:

my_params params;
params.a = a;
params.Lc = Lc;
params.fi = fi;
...


James
Go to Top of Page

PaDx9

Germany
4 Posts

Posted - 06/14/2024 :  04:08:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by YimingChen

To initialize the parameter list, use the syntax:

my_params params;
params.a = a;
params.Lc = Lc;
params.fi = fi;
...


James



It worked, thanks!
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