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
 Origin Forum
 Subtract reference data from several columns
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

q-vector

4 Posts

Posted - 06/20/2019 :  09:08:17 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2016 (64-bit) Sr2 b9.3.2.303
Operating System: Windows 2012 Server

Hi,

I would like to subtract reference data from each column starting with column 20 until 163. I want to solve this by using labtalk with this script:

j=20;
for (j)
{ subtract_ref -r 2 iy1:=[Book1]D0000228!(A,j) iy2:=[Book1]D0000228!(AC1,AE"empty_cell*2.98") common:=1 oy:=<new>;
j = j + 1;
if (j > 163) break;

};

What is wrong here? Is it possible by using the subtract_ref function?

Thank's for your help!

best q-vector

YimingChen

1618 Posts

Posted - 06/20/2019 :  10:50:19 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Can you try the following script? Thank you.


for (j=20;j<=163;j++)
{	
	subtract_ref -r 2 iy1:=[Book1]D0000228!(A,%(j)) iy2:=[Book1]D0000228!(AC1,AE"empty_cell*2.98") common:=1 oy:=<new>;
}


James
Go to Top of Page

q-vector

4 Posts

Posted - 06/21/2019 :  08:05:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you James, it works fine.
Go to Top of Page
  Previous Topic 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