From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SubVi using while loops

I am new to Labview and probably have a simple question. I have created a subvi that requires the use of shift registers. The vi runs great until I drop it into a while loop. Is there a way to run a subvi using a while loop inside another while loop?

0 Kudos
Message 1 of 3
(2,279 Views)

well....

 

The issue you might face is "how does the sub-vi come out of it's While Loop"...

Do you really need the 2 While Loops?

 

Can you describe what the code is doing?  What's the purpose of the sub-vi?  and better yet, can you post both main & sub-vi?

 

0 Kudos
Message 2 of 3
(2,273 Views)

Your question is way too vague. If the subVI does not complete, the calling VI will stall, of course.

 

If the subVI does not need a loop, you could replace the shift regsiter with a globablly initialized feedback node.

 

There are many other scenarios and possible solutions if you would tell us a little more on what your program is supposed to do.

0 Kudos
Message 3 of 3
(2,262 Views)