LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to out from infinite while loop in sub VI

 

Dear Sir,

how to out from infinite while loop in sub VI from main VI

attached photo for solution but I can't understand it and i can't find the function in photo 

please help

0 Kudos
Message 1 of 5
(3,629 Views)

An invoke node with a variant to data.  I think you'd be better off using a Notifier for this.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(3,611 Views)

Send the reference to the control instead of the VI, then you can use Property value directly.

/Y 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 5
(3,539 Views)

Please stop asking the same question multiple times. This is the third time you've asked this questi...

 

You don't seem to like the answer of: don't create infinite loops.

0 Kudos
Message 4 of 5
(3,527 Views)

Asking how to get out of an infinite loop is like asking how to find the end of a circle. I'm not trying to be sarcastic but by definition, if there is a way out of the loop, then it is not infinite. I think what you are asking is how to avoid creating an infinite loop. Is there something about the suggestions you have been given that you do not like? My favorite suggestion is the notifier but maybe you just need an example. Turn on context help and read about the notifier functions in the code below.

 

This is your top level VI

 

Example_VI_BD.png

 

 

And this is your subVI

 

Example_VI_BD.png

 

If this seems too complex then a global variable will work too. But what seems simpler can cause much more complex bugs. You can code fast and spend lots of time debugging or you can code slow and spend less time debugging. Personally I perfer writing productive code than looking for bugs any time.

=====================
LabVIEW 2012


Message 5 of 5
(3,495 Views)