LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

State machine gets jammed (small problem)

Solved!
Go to solution

Hello,

 

I have a problem with state machine, I atteched dummy code that my problem can be seen. When I hit the exit button and pop-up menu appears, YES button works as it should but when I hit NO, my program gets jammed. I have tried to initialize controls but no effect

 

Thank you for your help. 

Download All
0 Kudos
Message 1 of 6
(2,937 Views)
OK, so the Event Structure in measure also has an event case for Exit.  If you edit that case it has a check mark in the 'Lock front panel until event case for theis event completes'.  Since your loop never goes there, it never completes.  If you un-check that, it works.
Message 2 of 6
(2,926 Views)
Solution
Accepted by topic author Pesonen

I think it will be easier to use one event case stucture.

 

Jean-Marc

Download All
0 Kudos
Message 3 of 6
(2,916 Views)

You should try unchecking that checkbox for all your events in all the event structures.

 

In general, it is a bad idea to have multiple event structures where different structures have events handling the same case.

Message 4 of 6
(2,912 Views)

try this

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
Message 5 of 6
(2,906 Views)
Thanks for great solutions. That helped a lot. 🙂
0 Kudos
Message 6 of 6
(2,891 Views)