LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem w/ event driven VI calling other VIs

I've written a VI that has 3 buttons in an event-driven structure to call a test program, call a diagnostic program, or to exit.  I thought it would be easy yet I'm having two issues:

1) Sometimes when I start up this menu Vi, it immediately calls up either the test program or the diagnostic program without any buttons pressed. 
2) Sometimes when I exit the test or diagnostic Vi, it sits there on the screen, unresponsive to any further button clicks including the Windows [X] button.  I have to run task manager and end the Labview process to regain control.

Are there some special settings that need to be in place in theVIs when using event structure?

Thanks,
Ron
0 Kudos
Message 1 of 5
(2,631 Views)
I'm not sure about #1.
 
But for #2, take a look at the events for each event case.  The default setting which seems to be present on each of your events is "Lock front panel until event is complete".  Perhaps unchecking that will prevent some of your front panel lockups.
0 Kudos
Message 2 of 5
(2,623 Views)
Hey Ron,
 
It seems that your event structure works fine. Please refer to the test program below.
I just added a wait to slow things down a bit.
 
I didn't have the other VI's to fully test it, but overall it seems like it should work.
 
 
Aashish M
CEO
TransferFi
www.transferfi.com
0 Kudos
Message 3 of 5
(2,600 Views)
Thanks, Ravens!  I've unchecked that option and run my program for a few days now.  Everything seems to work as expected now.
0 Kudos
Message 4 of 5
(2,560 Views)
Thank you, Aashish, for pointing that out!  I completely forgot to add that very vital wait function. 
0 Kudos
Message 5 of 5
(2,559 Views)