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
 External dataset in fitfunction possible?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Rollo78

Germany
6 Posts

Posted - 08/02/2011 :  3:55:09 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 8.5.0G and Service Release 0
Operating System: Win 7

Hi,

i use the impulse analyzer to fit a Bremsstrahlung spectra. I've created therefore a FDF-File with a rather complicated fit function. Is it possible to use external data e.g. from the worksheet in the fitfunction during the fit?

That means for a certain "x" (channel) i'll calculate an integer number with one of the fitparameters "x*k=c", read out from the worksheet Column(..), Row(c) a double value and use it in the fit function as factor for my fit function.

e.g.:
int c;
c=k*x;
Fitfunction: y=y0 + x*k*(column,row:c)

I hope it's not too confusing!

Best Regards
Marco

larry_lan

China
Posts

Posted - 08/02/2011 :  9:46:15 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Marco:

Here is an example. You don't need to care about the convolution part. The example shows that, inside the function body, you can use Worksheet wks = Project.ActiveLayer(); to get the active worksheet, and then define datasets for worksheet columns. Hope this helps.

Thanks
Larry
Go to Top of Page

Rollo78

Germany
6 Posts

Posted - 08/15/2011 :  05:54:48 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you for your help!

Greetings
Marco
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