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 for Programming
 LabTalk Forum
 insert data reader values into worksheet column
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

shyamigcar

India
37 Posts

Posted - 05/16/2013 :  09:39:21 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
How to insert the x and Y values of the data reader into the worksheet column.

greg

USA
1378 Posts

Posted - 05/20/2013 :  09:44:36 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can run the Data Reader tools from script and program the PointProc macro to do whatever you want.

This example copies selected X and Y points to Book3, Sheet2, columns A and B:

dotool 3;
def pointproc {
range rax2 = [Book3]Sheet2!A;
range ray2 = [Book3]Sheet2!B;
nextrow = rax2.GetSize() + 1;
rax2[nextrow] = x; // x = current x of tool
ray2[nextrow] = y; // y = current y of tool
}

The PointProc macro executes whenever you double-click a point or select a point and press the Enter key. Press Esc to exit the tool.
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