LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event isn't timing out until external for loop finishes

You should be able to pass a reference to a 'main VI' owned stop button into the subVI. Then inside the subVI, use the property node Value to read the value of the stop button, and stop if it is true.

 

Currently, as I understand your pictures, the subVI owns the button and tries to set a stop value in the main VI somehow. If my description is all wrong, please give a bit more information.

 

As a further note, if you pass a strict reference, you should be able to get a Value that isn't a variant, but is instead a boolean. This requires a Switch rather than Latch mechanical action, or a boolean without a mechanical action (like the Round LED control, which I usually use for stopping things).

 

If you want the stop button to be in the subVI, and the main VI to trigger an event based on a main VI button having its value changed by reference in the subVI, you'll need to use Value - Signalling instead of Value to get an event to fire for Value Change.

 

A simple example is attached using a Round LED.


GCentral
Download All
0 Kudos
Message 11 of 11
(255 Views)