LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

muliple event structures in a sequence

Hello
I'm using a sequence  for my subvi. There I have three event handler on every sequence level.  When I let  run the subvi  as standalone everything seems to be ok. That means I'm able to close the vi without any problems. But when I include my subvi into my main vi there is a strange behaviour. I call my subvi and after I will leave it but the subvi is not dissapering the whole application is hanging. When I take out the first two event structures I don't have any problems to close the subvi correctly. I leave the first event structure in the first sequence level with a call from user even,t also the second event handler and go to the third sequence level.   
0 Kudos
Message 1 of 6
(2,901 Views)
I vergot to write that my close button is included in every event structure. When I include it just in last event handler I'dont have this troubles. Why that? If I would use it in parallel loops I would understand that I get some problems but in this case... 
0 Kudos
Message 2 of 6
(2,895 Views)
Hello,

I suspect your problem comes from the option "Lock front panel until the event case for this event completes" which is by default enabled when you create a new event handler.
If this is not the problem, then could you post your VIs (or screenshots of the code) so that we can provide better help ?

Trying to help...

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 3 of 6
(2,894 Views)
I never used this property. Where can I find it?
0 Kudos
Message 4 of 6
(2,891 Views)
When you add an event case, the "event configuration window" shows up, at the bottom this option is check (tichbox), this option can be set differently for each event of a same even structure 😉

It is important to know that feature, but the source of your problem can be something different ; for instance, when you have a subVI in an event case, LabVIEW will wait that the subVI ends to go on forward, so if you want you application to keep running and your subVI to also keep running in parallel, then you have to call that subVI dynamically 😉 !



We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 5 of 6
(2,885 Views)
I got it. Thanks for the fast support
0 Kudos
Message 6 of 6
(2,884 Views)