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 for Programming
 LabTalk Forum
 Linear QuickFit from LabTalk
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

vart3

6 Posts

Posted - 04/15/2016 :  6:32:36 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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,


doc -ef LB


{


gadget gg = rect; //declare LT gadget variable
gg.output();


}


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.

Thanks in advance for your answer.


jasonzhao

China
262 Posts

Posted - 04/20/2016 :  04:35:03 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

Would you please share your OPJ file with us (email: tech@originlab.com) to make a test?



Best regards!
Jason
OriginLab Technical Service

Edited by - jasonzhao on 04/20/2016 04:36:26 AM
Go to Top of Page

vart3

6 Posts

Posted - 04/20/2016 :  6:03:51 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks Jason. I did send the message but the email is being returned with an error in the delivery.

My opj size is about 8 MB. Is size of the file the problem for you to receive my message?
Go to Top of Page

vart3

6 Posts

Posted - 04/20/2016 :  6:08:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Received answer is this:


The original message was received at Wed, 20 Apr 2016 17:01:56 -0500

----- The following addresses had permanent fatal errors -----
<tech@originlab.com>

----- Transcript of session follows -----
.. while talking to igor.originlab.com
>>> MAIL From:<SRS0+b1d39584df5fd99d=QP=gatech.edu=victor.rodriguez-toro@mx25.net> SIZE=10510700
<<< 552 5.3.4 Message size exceeds fixed limit
Go to Top of Page

Liamn

19 Posts

Posted - 04/20/2016 :  9:31:30 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi vart3,

Does my reply on
http://www.originlab.com/forum/topic.asp?TOPIC_ID=22195
not resolve the problem?
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