LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Capturing a front panel menu selection in a SubVI

All,

      Title is pretty descriptive, so i've got a subvi that's running pretty much in a while loop and I want a menu selection from the parent VI to be able to cancel it. What i've tried so far is passing the reference to the front panel menu and then trying to detect a valuechange/mouse click/ selection etc in an event loop in the SubVI. The problem is it doesn't look like the front panel menu registers the change until after the SubVI finishes executing. How can I fix this?

Regards,
Ken
0 Kudos
Message 1 of 3
(2,599 Views)

Hi Ken,

I hope you are doing well today! Before I attempt the answer your question, I need just need to clear a few things as to what you are trying to do. Are you trying to stop the while loop in the subVI from the parent VI? And, what’s the purpose of using a menu selection? If you can post a simple example, that would be great.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 3
(2,571 Views)
Got it working if anyone cares to see.
0 Kudos
Message 3 of 3
(2,559 Views)