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
 does origin stores active tool status?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

zangyef

Italy
Posts

Posted - 04/06/2006 :  06:47:41 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version: 6.0
Operating System: WinXP HE

Hi everyone,
I would like to know if origin stores the status of active tool (data reader, screen reader, etc) in any sort of variable. I would like to know that because I wrote a script that has to perform some action if data reader tool is choosen.
Thank you

easwar

USA
1965 Posts

Posted - 04/06/2006 :  09:12:12 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Please look at the Programming help file and the following topic:
LabTalk Language Reference->Command Reference->Alphabetic Listing of Commands->DoToolbox

Does this address what you want?

Easwar
OriginLab

Go to Top of Page

greg

USA
1380 Posts

Posted - 04/10/2006 :  5:16:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Note that certain variables and macros can be used in conjunction with script execution of tools. The variables X, Y and index are set by using the Data Reader or Screen Reader, while the variables mks1 and mks2 are set when using the Data Selector.
PointProc and other macros can be defined to do whatever you like.

Here is an example that mimics what the Data Display windows shows by typing to the Script Window:

dotool 3;
def pointproc {
PX = X;
PY = Y;
%A = %C[$(index)]: X \x3D $(PX), Y \x3D $(PY);
type -a %A;
}

Plot some data
Execute the above script
Double-click on points in the plotted data

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