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
 automatization fitting
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

afzalsayd13

Uzbekistan
4 Posts

Posted - 02/27/2026 :  07:18:05 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
hello i have originpro 2018. windows 11. i have to do: import excel file from the folder then do fft after create plot then do nonlinear curve fit using user defined function after changing plot from linear to log log and do linear fit. i do it manually but i have to do 20*20*7 files. how to automate using labtalk. i couldnt understand how to do it fully.
my code:

fft1 ix:=col(2) interval:=0.1; plotxy iy:=(1,8) plot:=201; fft and plotting
nlbegin iy:=(1!1)[x0:1] theme:="123" fitting using 123 function
but then i have curve on plot but there are not results after i need change plot from linear to log log
Layer.x.type = 2;
layer.y.type = 2;
then need to do linear fit with rowx(0:1) and also get result.


linear fit was found:
tree lrGUI;
xop execute:=init classname:=FitLinear iotrgui:=lrGUI;
lrGUI.GUI.InputData.Range1.X$ = col(A);
lrGUI.GUI.InputData.Range1.Y$ = col(B);
xop execute:=init classname:=FitLinear iotrgui:=lrGUI;
xop execute:=report iotrgui:=lrGUI;

i dont know how is it working but it is.
i need add some rowx for example (0:1). but i have no ways how exactly do it.
need code exactly like i did it manually. thank you mate.

Edited by - afzalsayd13 on 03/03/2026 09:32:21 AM
   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