Swami Vivekananda

Basics of Origin LabTalk scripting language

11 Mar 2021 - fubar - Sreekar Guddeti

originlab-Logo Origin is a graphing and analysis tool used predominantly by experimentalists. In addition to providing convenient UI based routines to plot aesthetic 2D and 3D plots, Origin provides robust analysis tools like linear regression, nonlinear regression, curve fitting routines. *In-situ* LabTalk scripting language allows handling the various columns of data to allow convenient mathematical transformations. In this post, we will consider the structural elements of this scripting language.

Features

From OriginLab

fitLR X-function

range r1 = col(C);
fitLR iy:=(1,2) fixint:=1 intercept:=r1[1] oy:=col(D);

You can add two lines of code to put R value in a User Defined column label row.

wks.userparam(++Rvalue);
col(D)[D1]$ = $(fitLR.r);

LabTalk Resources

Range Notation in LabTalk

fitLR X-function

Substitution notation