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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 dotool 4 and pointproc

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
wmfry Posted - 09/13/2010 : 6:33:48 PM
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
3   L A T E S T    R E P L I E S    (Newest First)
Penn Posted - 09/14/2010 : 9:47:44 PM
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
wmfry Posted - 09/14/2010 : 11:04:59 AM
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

Penn Posted - 09/14/2010 : 05:04:30 AM
Hi Mark,

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

Penn

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000