Jump to content
Ruslan

download state machine

Recommended Posts

А можно вопрос, как быть если в какой-то frame работает долго, тогда вся программа не реагирует на события. Как быть в этом случае?

Share this post


Link to post
Share on other sites
11 hours ago, Ruslan said:

А можно вопрос, как быть если в какой-то frame работает долго, тогда вся программа не реагирует на события. Как быть в этом случае?

I have to confess that I don't speak Russian :)

I think you said (according to Google Translate), "How could it be the case that a frame works for a long time, and then the whole program does not respond to events?"

I'm not sure without looking at your specific code/example.

Share this post


Link to post
Share on other sites

thanks for the response. While there is no code, I just hypothetically looked at the structure and there was such a question. For example, if in some "case" there is a long calculation, then accordingly the program does not respond to events ... Or am I wrong?

Share this post


Link to post
Share on other sites

Hi @Ruslan.

Yes, if a Case Structure frame is doing work, the Event Structure frames will not execute (until the Case Structure is done and there is no more “work” on the state string shift register / queue (unless the “Idle” state is called explicitly by adding it to the state string queue).

However, Events (that the Event Structure is registered for) will still be queued up for the Event Structure to handle once the work is done in the Case Structure.

hope that helps,

Jim

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using this site, you agree to our Terms of Use.