LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with stopping subvi in event structure

Hello All,

I am having trouble stopping a subvi that is called with an event structure. I would like to stop the subvi from the main vi FP using a stop button. I am currently using a control reference to pass the Stop button value to the subvi and references to pass data from the subvi to the main vi. The problem is that when i run the main vi, I cant use any of the buttons. The VI buttons 'freezes'. Im not familiar with event structures being relatively new to LV, so im not sure if this is the problem (although it most likely is). I have attached a simplified form of my VI which you can look at to see the problem. Any suggestions or ideas would be great.

thanks
David

p.s sorry for resubmitting but
forgot to add a file.
Download All
0 Kudos
Message 1 of 4
(3,345 Views)
In some cases, you can remove the front panel lock on the event case. It won't respond to the acquire key again because the event never finished. I modified your program and could get it to stop from your stop key.
Download All
Message 2 of 4
(3,345 Views)
Thanks for that, its exactly what i require.
Just out of curiosity, where do you modify the FP lock status for the event?
0 Kudos
Message 3 of 4
(3,345 Views)
When you add or edit an event structure, there is a checkbox in the lower left hand corner. The defualt is checked, which will lock the front panel until the event is finished. Unchecking it will allow other event cases to be called even before that case is finished.
0 Kudos
Message 4 of 4
(3,345 Views)