// SCI Figure Hub | LabTalk | CC0-1.0 // Save in Origin User Files, then in Script Window run: // run.section(origin-script-pl-trpl.ogs, Main); [Main] // Activate a worksheet with time in ns (A) and positive intensity (B). nlbegin iy:=(1,2) func:=ExpDec2 nltree:=fitParameters; nlfit; nlend 1; plotxy iy:=(1,2) plot:=201; layer.y.type = 2; layer -a; xb.text$ = "Time (ns)"; yl.text$ = "PL intensity"; type "ExpDec2: t1=$(fitParameters.t1,.3) ns, t2=$(fitParameters.t2,.3) ns";