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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 problem fit loop...

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Bigprophete Posted - 07/24/2015 : 05:11:30 AM
Hello,

I have create a loop in order to fit my data with my fit function (cf labtalk code below) but I have a problem...It is like an infinite loop since when I fit one curve it create a worksheet with the fit data...and so the compilation doesn't stop and fit again and again...

doc –e P {
nlbegin iy:=1 func:=Probability_pos; // user fit
nlpara; // this will open a dialog to monitor parameter values
// continue to run following scripts to finish the fitting
nlpara 1;

nlfit;
nlend 1;

};
4   L A T E S T    R E P L I E S    (Newest First)
Bigprophete Posted - 07/28/2015 : 8:00:15 PM
Thank Chris,
It works very well ! Now I can optimize it ^^

With best regards,

cdrozdowski111 Posted - 07/28/2015 : 09:19:20 AM
Hi,

Try this to exclude embedded graphs from fitting

doc –e P {
	// Skip over any embedded graphs or Layout windows
	if(page.IsEmbedded==0&&exist(%H)!=11)
	{
		nlbegin iy:=1 func:=Probability_pos; // user fit
		nlpara; // this will open a dialog to monitor parameter values
		// continue to run following scripts to finish the fitting
		nlpara 1;

		nlfit;
		nlend 1;
	}
};


~Chris
Bigprophete Posted - 07/28/2015 : 07:51:29 AM
Thank you for your answer.

But how to do that ? because I need to create a loop, I have more than 50 graphic which must be fitted with my function...

With best regards
lkb0221 Posted - 07/24/2015 : 09:55:43 AM
Hi,

My guess is that, you need to exclude all embedded graphs in the doc loop. Because the each fitting would generate several of it.


Zheng
OriginLab

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000