LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

while loop

Solved!
Go to solution

I have a large program. This program needs a "while loop" around everything. I can't make the while loop extend beyond the visable screen. Can I create a While loop to extend the visable block screen??

 

Thanks

 

Philip

0 Kudos
Message 1 of 5
(2,917 Views)
Solution
Accepted by topic author pnielsen@gplains.com

Philip,

 

You will probably get several responses like this: The Style Guides and good practice for LV codings suggest that the size of a block diagram should not exceed the size of one screen.

 

One way you achieve that without rewriting your entire program would be to select all of the diagram and create a subVI from it.  Then put that subVI into the while loop.

 

Lynn

Message 2 of 5
(2,907 Views)

. Thanks for the email.

 

Philip

0 Kudos
Message 3 of 5
(2,900 Views)

It's true that having such a large diagram is bad coding practice but why can't you enclose you code in a while loop?  If you just hover the mouse over the edge of the screen it will scoll.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
Message 4 of 5
(2,898 Views)

My program kept growing over time. This is a R&D software program. At times it seemed if it would never end. I have more duties that writing software. I have taken up coding after hours. I will retry you suggestions. The last time I tried it just stopped. I have created a poor block diagram. But it is now delivery time.

 

Thanks

 

Philip

0 Kudos
Message 5 of 5
(2,894 Views)