The Origin Forum
File Exchange
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
 batch plotting, curve-fitting and param extraction
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

dkimia1001

S. Korea
Posts

Posted - 06/22/2012 :  8:17:27 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8.5.0 SR1 b161
Operating System: Win 7 32-bit

So my question is 3-fold..
I have a set of data that consists of 30 different spreadsheets(Let's say A001, A002... A030). Each spreadsheet has x, y, and y_err. All 30 are formatted in the same manner. What I need to do is..

1. I need to plot them (just ordinary plot is fine)
2. fit all the plots with a user-defined function
3. extract the fitting parameters

After doing some research in the forum, I came to realize that there are something called Batch Processing and LabTalk, but these are something I can't learn on a dime.

Can somebody please help with this? Because I have like 20 other sets to go through (that's 600 spreadsheets). Thank you.

dkimia1001

S. Korea
Posts

Posted - 06/22/2012 :  8:19:30 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I can't edit my own message above..
But after Step 2, I would like the fitting curves to be on the plots too.
Go to Top of Page

vincenth

30 Posts

Posted - 06/25/2012 :  11:17:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Is your data in individual files (external to Origin)? If so, Batch Processing is the way to go. Follow the example in the video tutorial on Batch Processing:

http://www.originlab.com/Index.aspx?go=Support/VideoTutorials&pid=1559

You may also find the tutorial on creating an Analysis Template useful as well:

http://www.originlab.com/Index.aspx?go=Support/VideoTutorials&pid=1171

Regards,
Vince
Go to Top of Page

Hideo Fujii

USA
992 Posts

Posted - 06/27/2012 :  2:17:41 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

If you already have the data in different workbooks, you can run the following
simple script to merge books into one, plot (30 of) them into a single layer,
then fit (with Line function in this sample) all plots using in the way of
Independent Fit in the "Multi-Data Fit Mode"
The result parameters of all data are in a single report sheet.
//////////////////////////////////////
merge_book;  //merge into one book
plotxy (1:30)!(1,2,3) plot:=202; //Line+Sym
nlbegin (1:30) Line tt weight:=ins;  //fit with Line function with YErr 
nlfit; 
nlend 1  autoupdate:=1;
//////////////////////////////////////
If you want to have the individual graphs for all plots in this graph, you can press
two tool buttons, "Extract to Layers" and "Extract to Graphs" consequently.



Hope this helps you.

--Hideo Fujii
OriginLab

Edited by - Hideo Fujii on 06/27/2012 3:17:27 PM
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 © 2008 Originlab Corporation Go To Top Of Page
Snitz Forums 2000