View Single Post
  #13   Spotlight this post!  
Unread 28-11-2012, 11:55
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,086
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Command Based JAVA - Basic Tutorial

Quote:
Originally Posted by otherguy View Post
The downside to this approach is obviously that if any command takes a significant amount of time to execute, it will block program execution. ... Code within each command shouldn't do much more than some logical checks and updating the state of related outputs.
That goes to the heart of what I was asking. What you've described sounds like you have to write a state machine if you want time delays and/or wait for events like limit switches etc