12-12-2013 09:06 AM
Hello all,
I'm a newbie in Labview 2011. I have this VI file which has several while loops. But the blocks are scattered everywhere and not able to fit in a single window. How can i resize the the View so that I'm able to analyze each of the block in a single window pane.
Thanks.
12-12-2013 09:18 AM - edited 12-12-2013 09:22 AM
Hi Varsha,
as hard as it is: delete the VI and recreate it from scratch keeping in mind all those points from LabVIEW StyleGuide, as is included in the LabVIEW help!
The VI's block diagram is huge. It's really huge. It's so huge I never have seen any block diagram that huge!
It makes LabVIEW going insane, it can't even show a navigation window(!):
- Someone moved all those functions over the structure seen behind.
- Someone named all those control with a generic name ("array", "boolean") with a appended number.
- Someone did hide most of those controls/indicators on the front panel.
- Someone choose to use locals instead of terminals (many terminals rest unwired on the block diagram).
Do you notice the scroll bars? They show the relation of the visible part of the blockdiagram in comparison with the non-visible parts...
12-12-2013 09:21 AM
Omg!
Start by using a single event structure to handle each and every one of those front panel Booleans and radio buttons. After you have done that and made the block diagram readable, we can address the local variables.
12-12-2013 09:53 AM - edited 12-12-2013 10:00 AM
I tested this VI (VI Analyzer). Results:
The Diagram contains :
Read the LabVIEW help and see some examples to learn good pratices.
Please, Delete this VI....
12-12-2013 10:49 AM - edited 12-12-2013 10:50 AM
Tell your boss you need something like this to do your job.
12-12-2013 11:33 AM
varsha88 wrote:I'm a newbie in Labview 2011. I have this VI file which has several while loops. But the blocks are scattered everywhere and not able to fit in a single window. How can i resize the the View so that I'm able to analyze each of the block in a single window pane.
I assumes you did not write this program yourself, but inherited it. Contact the original author.
Long story short, this VI is not maintainable and should be trashed. There is no way to verify correct operations and there is way too much duplicate code. I also suspect race conditions. The same functionality can probably be rewritten using less that 2% of the code. Start with some tutorials first.
All the program is,is a multi-tab FP where each page is selected programmatically in a menu-like system. All you need is a state machine the size of a postcard, not a gigantic monstrosity as you currently have.
12-12-2013 01:23 PM
12-12-2013 02:22 PM
LOL LabVIEW reported an "nonfatal Insanity" when I opened it up. 😄
12-12-2013 02:29 PM
12-12-2013 03:35 PM
At least it's wider on the bottom than the top and won't topple over!!
@jcarmody wrote:
Folks, I believe we've found our winner...