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
 copying fit parameter to a worksheet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

halebob

Germany
Posts

Posted - 07/29/2006 :  09:25:52 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version 7.5 SR2 v7.5817:
Operating System: Windows XP

Hi all,
I would like to copy parameters, that I got from several fits, to a single worksheet, so that I get a table where all parameters of my ASCII datafiles are listed. I know that there should be a solution by writing an OriginC program, but in my case this is very difficult since my datasets are very different and I want to fit them by hand. Is there an easy way how to copy the resulting parameters to a new worksheet after the fit? I found the command mf2wks on the internet but it does not work and there is no documentation at all.
Thanks a lot for your help,
Markus.

Mike Buess

USA
3037 Posts

Posted - 07/29/2006 :  09:55:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Markus,

I routinely use mf2wks to do exactly what you described. Enter mfhelp in the script window for documentation. In particular, this is the description of mf2wks...

mf2wks [wksname]
Copies current fit parameters and their errors to worksheet.
If wksname is omitted then create a new parameter worksheet
with a default name. (Intended for simultaneous fitting
results.) If wksname is given then activate that worksheet
(create if necessary) and write the parameters to it.
(Intended for appending single curve fitting results to
the same worksheet.)

I use it as follows...
1. Assign the command mf2wks Results to the Custom Routine button as described here.
2. Click the Custom Routine button after each fit to copy the parameters to the Results worksheet. (Of course you can name the wks however you like in step 1.)

Mike Buess
Origin WebRing Member
Go to Top of Page

halebob

Germany
Posts

Posted - 07/29/2006 :  10:05:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a lot,
that is exactly what I needed. Do you know if it is possible to include the mf2wks command also in an OriginC file?
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 07/29/2006 :  10:21:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Add the line void mf2wks(string); at the top of your OC file (after the #includes). Then you can use it like this... mf2wks(wksName);

Mike Buess
Origin WebRing Member
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