01-10-2017 03:03 PM
Thrash all already done and start over.
@altenbach wrote:
If you interrupt processing, do you want to hold onto the intermmediary result and continue processing later or do you want to thrash all analysis already done and start over from scratch the next time?
01-10-2017 05:07 PM - edited 01-10-2017 05:30 PM
Thanks, how to better transmit the updated stop condition from the GUI loop to the state machine if the state machine is in the consumer loop? is local variable good?
@crossrulz wrote:
Each state can decide what state needs to be executed next. That is why the state is stored in a shift register.
And the checking of the stop condition should be outside of the case structure. You probably should put the reading of the terminal inside of a flat sequence structure with some other output from the case structure to make sure it is read after the state has been ran.