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
 batch plotting, curve-fitting and param extraction

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
dkimia1001 Posted - 06/22/2012 : 8:17:27 PM
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.
3   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 06/27/2012 : 2:17:41 PM
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
vincenth Posted - 06/25/2012 : 11:17:41 AM
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
dkimia1001 Posted - 06/22/2012 : 8:19:30 PM
I can't edit my own message above..
But after Step 2, I would like the fitting curves to be on the plots too.

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