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
 Origin Forum
 Calling built-in functions from external dll

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
kutro@ifpa Posted - 01/10/2001 : 06:35:16 AM
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?

3   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 01/11/2001 : 1:02:48 PM
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.

Jose Posted - 01/11/2001 : 09:54:26 AM
Where is that file, DLLDEMO.C? Not in my Origin folder or subfolders...
greg Posted - 01/10/2001 : 3:29:08 PM
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.



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