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
 Origin Forum
 Calling built-in functions from external dll
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

kutro@ifpa

Poland
1 Posts

Posted - 01/10/2001 :  06:35:16 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I woul'd like to use the Origin built-in fitting function ( for example Voigt function) in my external fitting function dll . Is this possible? If yes how can I do it?

greg

USA
1380 Posts

Posted - 01/10/2001 :  3:29:08 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
As you probably know, you can execute any LabTalk from your DLL. This includes using any of the built-in functions.

First, you need to identify the formal name of the function by opening the Non-Linear Curve Fitter in Origin (select Analysis : Non-linear Curve Fit from the Origin menu).
If you are not in Advanced Mode click the More button.
Select your Category and Function from the lists and check the Function File radio button.
Next to Function Source after "fgroup." you will find the function name. (In the case of Voigt, that name is Voigt5.) The number and order of parameters can be found in Names under the [FITTING PARAMETERS] section.

You can now use a string such as

col(2)=voigt5(col(1),13,17,122,13,6);
and execute it via a sendmessage( ). See the DLLDEMO.C file for an example.


Go to Top of Page

Jose

Netherlands
93 Posts

Posted - 01/11/2001 :  09:54:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Where is that file, DLLDEMO.C? Not in my Origin folder or subfolders...
Go to Top of Page

greg

USA
1380 Posts

Posted - 01/11/2001 :  1:02:48 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Sorry ...

TEST.C in the ATI\SRC\DLLDEMO folder for 6.X or ATI\32_BIT\DLLSEMO\SOURCE folder for 5.X.

This is only available in the Origin Professional package.

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