Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Return value from Java to MATLAB
Replies: 1   Last Post: Nov 20, 2012 2:35 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Yair Altman

Posts: 1,347
Registered: 3/19/07
Return value from Java to MATLAB
Posted: Nov 20, 2012 2:35 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Derek Abeyta" wrote in message <k8e16i$17v$1@newscl01ah.mathworks.com>...
> I currently have a script that uses Java to do a certain set of keypress for cut and paste operations. These keypresses run asynchronous with MATLAB and therefore MATLAB does not wait on these keypresses to occur before continuing on with the rest of the script. I am currently using a pause(delay) method but I would like to eliminate the use of a pause and just have Java communicate to MATLAB that it has completed the sequence of robot operations. I am thinking if Java can return a variable/value to MATLAB, I can have MATLAB wait on this variable to arrive before executing the rest of the script. Please let me know if this is possible. Thank you.

Yes, it is indeed possible. See http://undocumentedmatlab.com/blog/waiting-for-asynchronous-events/

Yair Altman
http://UndocumentedMatlab.com
Read my Matlab-Java programming book




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.