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 for Programming
 Forum for Origin C
 Multifit.opk under 8.1

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
millot.marius Posted - 08/07/2010 : 4:22:21 PM
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:8.1 sr3 win xp

Hi I loved using mf2wks function to store my fitting parameters in a worksheet under 7.5

i d like to use it in 8.1 but if it compile multifit it does not paste the fit results ...

is it just a problem of syntax ? I tried to put as a after fitting script :

mf2wks results;

Many thanks
5   L A T E S T    R E P L I E S    (Newest First)
Penn Posted - 08/10/2010 : 01:09:03 AM
Hi Marius,

If you just want to add in the after fitting script to extract the fitting parameters, you can write some scripts to do it by yourself. To get the result of the fitting, you can use the getnlr X-Function. To set the value to a cell in the worksheet, you can use the cell function. An example shows below:

// for multiple fittings
// get the fitting result, need to output a report
// __Report$ is the current report sheet
getnlr tr:=tt iw:=__Report$;
if(exist(MyParameter)!=2)  // create a book for parameters
{
	newbook name:=MyParameter option:=lsname;
	wks.ncols = 9;
}
else
{
	win -a MyParameter;
}
int iRow = wks.maxRows+1;  // row for current parameters
for(ii=1; ii<=tt.nsets; ii++)  // put parameters to worksheet
{
	cell(iRow, 1)$ = tt.Data$(ii).y1$;
	cell(iRow, 2) = tt.y0_$(ii);
	cell(iRow, 3) = tt.e_y0_$(ii);
	cell(iRow, 4) = tt.xc_$(ii);
	cell(iRow, 5) = tt.e_xc_$(ii);
	cell(iRow, 6) = tt.w_$(ii);
	cell(iRow, 7) = tt.e_w_$(ii);
	cell(iRow, 8) = tt.a_$(ii);
	cell(iRow, 9) = tt.e_a_$(ii);
	iRow++;  // next row
}


Penn
millot.marius Posted - 08/09/2010 : 02:32:06 AM
thanks, but the batch processing is a little bit too complicated for my real need,

i ll just like to get a little script i can add in the after fitting script to axtract the fitting parameters ... while manually using the non linear curve fit tool
Penn Posted - 08/09/2010 : 02:25:10 AM
Hi Marius,

I see the tool. However, this tool (multifit.opk) is not provided by Origin, and its working version is Origin 7.5 or Origin 7. It is submitted by a user. We don't support such a problem.

However, with Origin 8.1, you can try the batch processing tool, which can also get all your fitting parameters into a worksheet after multiple fittings. You can refer to the tutorials on how to use it: this page, or this video.

Penn
millot.marius Posted - 08/08/2010 : 11:57:04 PM
In fact this function is part of the package multifit.opk

available here
http://www.originlab.com/fileexchange/details.aspx?fid=56

Many thanks
Marius
Penn Posted - 08/08/2010 : 10:22:53 PM
Hi,

I am afraid that the mf2wks function you mentioned is not a built-in function of Origin. So, we need to know this function before looking further into your problem. You can send us the function via this page. Please refer to this post in email.

Penn

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