Jump to content

UI monitoring in sequence


Naoki

Recommended Posts

Hello.
I am trying to make a measurement program. Since this measurement takes a long time, it is necessary to be interrupted by the user's operation so that it can return to the measurement standby state. Is there a smarter way than inserting lots of checking the local variable of the break button during the measurement sequence?

Link to comment
Share on other sites

20 hours ago, Jim Kring said:

Hi jim.

I initially thought that calling explicitly "idle" would complicate transition between states. However, we believe that complexity can be avoided by presetting the place to return after "idle". Thanks for the good advice.

 

Link to comment
Share on other sites

Hi @Naoki. Yes, you can just put the call to "Idle" inside of your sequence of calls, and then the JKI SM will handle the subsequent states after checking for user interface events. There are some considerations, but it's totally possible and works well. Remember to set a Timeout greater than zero (but NOT zero, due to CPU usage concerns!) so that if there are no events, the Timeout frame will execute and your sequence will resume.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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