| T O P I C R E V I E W |
| zangyef |
Posted - 04/06/2006 : 06:47:41 AM 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
|
| 2 L A T E S T R E P L I E S (Newest First) |
| greg |
Posted - 04/10/2006 : 5:16:05 PM 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
|
| easwar |
Posted - 04/06/2006 : 09:12:12 AM 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
|
|
|