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
 dotool 4 and pointproc
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

wmfry

Canada
Posts

Posted - 09/13/2010 :  6:33:48 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release v8.0
Operating System: xp pro

Hi

I'm trying to use dotool 4 to select a range of data from a graph with multiple datasets. i.e.x=time, y1= sweep1, y2 = sweep2.... y15=sweep15.

the following script works just fine in 8.0 if there is only one dataset. The simple script allowed me to return the MKS1 and MKS2 variables in origin 7 with multiple datasets, but not in origin 8.0.

i just need the script to return the MKS1 and MKS2 variables. Can you tell me what I'm doiing wrong?

here is my script

count=1;
dotool 4;
def pointproc {
count++;
if (count==2)
{dotool 0;
run.section(activation.ogs,next);}

else
{dotool -next;};
;
};

[next]
more srcipt here


thanks for your help
Mark

Penn

China
644 Posts

Posted - 09/14/2010 :  05:04:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mark,

It is a bug, we will try to fix it in the future version. Sorry for that.

Penn
Go to Top of Page

wmfry

Canada
Posts

Posted - 09/14/2010 :  11:04:59 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I thought it might be a bug....

I've tried a workaround using dotool 3 (data reader) but I can't figure out how to return the index of the row from the X datapoint using this tool...

I need the index of the data point (=MKS1, MKS2) to pass to the LIMIT utility.

does anybody know how to return the index of a datpoint using the dotool 3 tool?

thanks
Mark

Go to Top of Page

Penn

China
644 Posts

Posted - 09/14/2010 :  9:47:44 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mark,

If using dotool 3, please refer to the following example on how to get the indices of the selected data point.

@global = 1;
dataset dsIndex;
dotool 3;
count = 1;
def pointproc
{
	dsIndex[count] = index;
	count++;
	if(count==3)
		dotool 0;
};
def quittoolbox
{
	if(count<2)
		type -b please select two points!;
	else
	{
		type indices of two points are:;
		dsIndex[1] = ;
		dsIndex[2] = ;
	}
};


Penn
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