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
 Edit parameter with nlpara; or nlpara1;
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Angino

Germany
3 Posts

Posted - 03/12/2014 :  09:51:38 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 9.0
Operating System: Win 7

Good Afternoon,

Im trying to automatise my curve fitting. The Data I want to fit is described with an implict funktion. To do so i wrote this script:

nlbeginr (1,2) EinDiodenModell2 tt;
nlpara;
nlfit;
nlend 1 1;

now I want to be able to edit the Parameter in the Pop up window.
This Code just fits it and gives a Report.
I tried it with "nlpara 1;" because in the help it said i could do so to edit the parameter, but i only get an error message saying: "#Command Error!".
Does anyone know why this does not work or how i can make it work?

thanks

lkb0221

China
497 Posts

Posted - 03/12/2014 :  1:08:15 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

your "nlbegin" has a redundant "r" in the end.

I tried the following script and it works:
//
nlbegin iy:=(1,2) func:=gauss nltree:=tt;
nlpara 1;
nlfit;
nlend 1 1;
//

Zheng
OriginLab
Go to Top of Page

Angino

Germany
3 Posts

Posted - 03/13/2014 :  03:41:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
HI Ikb0221

Yes it does work but not for an implict function, because mine has 2 independent variables, in which case one must use "nlbeginr". But if i use this the Pop up window disappears without editing opportunity right after it popped up and i dont know why.
Go to Top of Page

Angino

Germany
3 Posts

Posted - 03/13/2014 :  03:49:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
in addition this might not have been very clear, the upper code works perfectly, fits, and gives a Report. Just the editing funcion is lacking functionality
Go to Top of Page

lkb0221

China
497 Posts

Posted - 03/13/2014 :  09:30:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I also tried the following and it works fine in 9.0SR2:
//
nlbeginr irng:=(1,2:3) func:=planeMod nltree:=tt;
nlpara 1;
nlfit;
nlend 1 1;
//

Should use "nlpara 1" instead of "nlpara" only to pop up parameter editing dialog.
Maybe your problem is user defined function related?
But I duplicated circle function to make it a user defined one, and still no problem.

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