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
 automatization fitting

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
afzalsayd13 Posted - 02/27/2026 : 07:18:05 AM
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.

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