LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI block can't fit in a single window

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.

0 Kudos
Message 1 of 12
(4,133 Views)

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(!):

check.png

- 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...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 12
(4,123 Views)

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.

0 Kudos
Message 3 of 12
(4,117 Views)

I tested this VI (VI Analyzer). Results:

 

The Diagram contains :

 

  • 331 Structures
  • 5624 Nodes
  • 5004 Wire Sources
  • 7070x32766 pixels
  • 343 Coercion Dots
  • 430 Write Local Variables/415 Read Local Variables
  • 428 - Cyclomatic Complexity
  • Half of Tests had failed.  

Read the LabVIEW help and see some examples to learn good pratices. Smiley Happy  

Please, Delete this VI....

Message 4 of 12
(4,105 Views)

Tell your boss you need something like this to do your job. Smiley LOL

 

55tiles.jpg

========================
=== Engineer Ambiguously ===
========================
Message 5 of 12
(4,084 Views)

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.

Message 6 of 12
(4,057 Views)

Folks, I believe we've found our winner...

 

zoom.png

 

 

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 7 of 12
(4,023 Views)

LOL LabVIEW reported an "nonfatal Insanity" when I opened it up.  😄

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 12
(4,005 Views)

@varsha88 wrote:

Hello all,

 

I'm a newbie in Labview 2011.......


 

Spoiler
zoom.png

"i feel bad for you".............it's just not fair!

0 Kudos
Message 9 of 12
(3,997 Views)

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...

 

zoom.png

 

 




Jeffrey Zola
Message 10 of 12
(3,976 Views)