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
 Problems with Baseline
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

icb3

USA
Posts

Posted - 06/08/2007 :  4:37:13 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.0
Operating System: Win 2000

None of the automatic baseline finders consistently work for data sets I typically plot. What does work for me is if I use statistics to find the mean of the first 200 data points and then subtract that value...

This seems like it should be an easy thing to automate, but I have only limited C++ programming experience and none with OriginC or LabScript.

Any suggestions would be greatly appreciated.
Thanks,
Isaac

Mike Buess

USA
3037 Posts

Posted - 06/08/2007 :  5:32:44 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Isaac,

Here's a simple LabTalk script that will do what you want. You can assign it to the Custom Routine button as explained here and run it on the active dataplot in a graph or the highlighted worksheet column.

get %C -e npt; // how many points in active curve?
set %C -e 200; // set end to 200 pts
sum(%C); // stats on curve
set %C -e npt; // reset end
%C -= sum.mean; // subtract mean



Mike Buess
Origin WebRing Member
Go to Top of Page

icb3

USA
Posts

Posted - 06/09/2007 :  2:42:11 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks Mike - works great!

I think I need to sit down and spend some quality time with the help file.
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