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 fitting over a x-Axis in x-Scale
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

materialscientist

Germany
2 Posts

Posted - 10/22/2020 :  07:00:52 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:

Hallo

i am currently writting a program do analyse data. Therefore i need linear fit over a logarithmic x-scale. In the normal dialog box for Fitting you can change the parameter but how i do the same when i use a tree? Is there a overview over the properties of the GUI tree?
I use the code for the fitting:

tree lrGUI; // GUI tree for linear fit
// initialize the GUI tree, with the FitLinear class
xop execute:=init classname:=FitLinear iotrgui:=lrGUI;

// specify the input data in the GUI tree
lrGUI.GUI.InputData.Range1.X$ = col(A);
lrGUI.GUI.InputData.Range1.Y$ = col(C);

// perform linear fit and generate a report with the prepared GUI tree
xop execute:=report iotrgui:=lrGUI;

xop execute:=cleanup; // clean up linear fit operation objects after fitting

一击爆裂陈子豪

Taiwan
41 Posts

Posted - 10/22/2020 :  10:18:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Use the execute:=update argument.
And no, there is no reference for the tree. You have to print it out in the script window to figure out what to change.
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