On Wed, Apr 08, 2009 at 10:17:39PM -0400, Eric H. Johnson wrote:
> Hi all,
> 
> My first question is whether effectively doing MDI calls is the best way to
> do primarily the motion commands. And the second is, do I have to setup
> something like a state machine to wait for each of the commands to complete
> before issuing the next command.

Yes I think MDI is the right way to do these kinds of setup commands.

Isn't it just emcCommandWaitDone() that you need?

But if your code can't just sit there waiting, you have to get
fancier.  halui has some complexity in it because it wants to wait for
the mdi to complete, but also wants to continue polling the inputs, so
for instance the user can abort the move.  You might look at halui for
ideas.

Chris


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to