LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

loop in subVI to be stopped by control in calling VI.

Try the following vi's, I've changed the Ring control to an Enum and added an initialise option.
Download All
Message 21 of 24
(725 Views)
It still does not work. I tried with a global variable, and that did not work either. The problem is that values are not checked in the main Vi while executing the subVI.
0 Kudos
Message 22 of 24
(713 Views)

Exactly!  I mentioned this in an earlier post.  You have only posted an image of a small portion of your main VI so we do not know what is going on there.  However, I infer from some of your comments that that is where the problem really is to be found.  If you think about the dataflow of the main program, I suspect that you will find that the stop button is read long before the looping VI runs and never gets read again.  In this case it cannot possibly work the way you want.

 

Try turning on the highlight execution (the light bulb on the block diagram toolbar) and watch what happens. 

 

Posting your main VI would help us see what is going on.

 

Lynn 

Message 23 of 24
(703 Views)

johnsold wrote:

...

 

Try turning on the highlight execution (the light bulb on the block diagram toolbar) and watch what happens. 

 

Posting your main VI would help us see what is going on.

 

Lynn 


Yes!

 

 

 

The light bulb is your friend.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 24 of 24
(701 Views)