LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Reentrant-vi question

If i press button2 first and then button1, both instances of reentrant vis, open.
If i press button1 first, the reentrant vi must first be terminated, to allow pressing button2 and open the next instance of the reentrant vi !
Why is this happening?
 
Labview 8.5
0 Kudos
Message 1 of 4
(2,701 Views)
The default behavior of an event case is to lock front panel until the event case completes.  With the sub vi open, the even case is not complete, so labview cannot respond to the second button press.   Un check the "Lock front panel until the event case for this event completes" and it will work the way you want it to.
 


Message Edited by StevenA on 07-23-2008 12:05 AM
SteveA
CLD

-------------------------------------
FPGA/RT/PDA/TP/DSC
-------------------------------------
Message 2 of 4
(2,692 Views)
Hi Pnt,
it´s because the event structure locks the other front panel events. If you uncheck the lock property of this event, then it should work.
 
Mike
Message 3 of 4
(2,687 Views)

oh !

I had forgot that.....

Thanks Steven and Mike



Message Edited by Pnt on 07-23-2008 09:08 AM
0 Kudos
Message 4 of 4
(2,685 Views)