OriginPro 2021
9.8.0.200
Windows 10 Pro
Hi all
So....I am working on a custom analysis template. To start off, I have a set of multiple xy data, which are being normalized and stored in a new sheet. In the original sheet (let's call it rawData) there is also a user parameter which serves as a cut off. This is an individual number for each y-value.
For my further analysis, I wanted to make a new sheet which only copies the normalized data beyond the cut off point. So if I had for instance 5k data points and my cut off is 2k, only the last 3k values should be transferred to the new sheet.
So far, my approach was a short lab-talk script, which I implemented into the first column via the "set values" menu:
wrcopy iw:= normalized! c1:=[j] c2:=[j] r1:=rawData!wcol([j])[D"cut off"] dc:=[j] ow:=cropped;
This works exactly as I wanted, but I have to implement it manually into every column on its own. I don't know why, but when I try to change the upper range c2, it will copy data for all columns using only the cut off value of the first column. I am still unexperienced with labtalk, so I don't understand how I could make wrcopy use the cut off for the specific column.
Do I have to write a loop in order to properly cycle through the indivdual values or is there a more elegant variant?
Would like to avoid loops as it is slowing down the data handling quite a lot (tons of data...)
Best regards
Marv