Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
Herbert
Posted - 12/14/2000 : 05:46:42 AM Hello,
I’m trying to transfer my LabTalk scripts from Origin 5 to Origin 6.1. At present my problem is the curve object.
In Origin 5, I used this object with the following script to pick the peaks from a dataset and write the position of the peak maximum and the baseline markers in two columns:
The dataset of 500 data points was stored in column A (x values) and column Data (y values). In Origin 5, this script produces two new columns (Peak and PkRange) in the active window, which hold the indexes of the peak maxima and the indexes of the baseline markers.
In Origin 6.1, the script only produces two empty new columns. Can you tell me, what has changed in the syntax of the curve object that I have to change to get the script working in origin 6.1 ? I enclose the dataset I used to test the script. Thanks for any help.
The internal algorithm used by the curve object to pick peaks was improved in Origin 6.0 but now requires a baseline dataset. The following script based on your script and the Origin 6.0 SR4 (and Origin 6.1) Baseline Tool implemented in the script file BASELINE.OGS computes peaks for your dataset:
The following script is based on the Origin 6.0 SR4 (and Origin 6.1) Pick Peaks Tool implemented in PICKPEAK.OGS and computes peaks for your data as well: