|T O P I C R E V I E W
||Posted - 09/20/2021 : 7:55:33 PM
Origin Ver. 18.104.22.168 and Service Release (Select Help-->About Origin):
Operating System: Windows 10
I'm learning LabTalk to automate my long analysis (started yesterday). I can't find a method/attribute that allows me to select the x data when fitting NL function directly from a graph. I am using a user made function. What I do is Data selection => Input data => Rows => By X => 15. Is there a suitable script that can be written for this?
|3 L A T E S T R E P L I E S (Newest First)
||Posted - 09/21/2021 : 2:53:30 PM
This worked in the end, thank you to both of you!
nlbegin iy:=1[x0:10] func:=my_model nltree:= tt;
||Posted - 09/21/2021 : 09:09:41 AM
Can you use the syntax below to specify the range by x value?
Please check this page for more details:
||Posted - 09/21/2021 : 09:08:44 AM
Do you mean you want to fit a subrange of data defined by X start and end value.
In NLFit dialog, when u set by X and specify X From and to values, the input node shows the syntax to use if in script.
E.g. Suppose you are fitting with column B plot in graph1,
You can use the following input
[Graph1]1!1"B"[x10:20]; //x from 10 to 20
[Graph1]1!1"B"[10:20]; //index from 10 to 20. 10th point to 20th point. [Graph1]1!1"B"[x10:0]; //0 means end point