Origin Ver. and Service Release (Select Help-->About Origin): Origin 9.1 (64 Bits) Operating System: Windows
I need to do a linear fit for several curves. I am using the quick fit gadget for this. The fit is done for the closest three points around the origin of the plot, but since the sampling is different for each curve, the sizes of the ROIs in each curve needs to be different to select only these three points in each curve.
I tried to merge all the curves after including the ROI in each independent plot window with the specific size to pick three points around the origin of the plot. The previously established ROIs and their sizes for each plot seems to be conserved in the new merged plot window. To take advantage of the batch processing I am using the "new output for all layers (L)" option. For this, I need to select the play button of one of the ROIs and it seems OriginPro is taking the size of ROI associated with the button I selected to fit all the curves, and not the independent ROIs as I am intending to do.
As I could not make by using this graphical approach, I wrote a script for this and I executed it in the Command Window with no success so far. The code I am using for this is shown as follows,
The fit is done for the the first plot but it stops after this and I getting an error saying:
GG:failed to add variable to local stack!
I would appreciate to read any advice you might have to take advantage at least partially (as I had to select the size of the ROI for each plot, in one-by-one manner) of the batch processing in this described scenario.