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
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