Maximum Size for LabVIEW Front Panel and Block Diagram

Updated May 3, 2018

Reported In

Software

  • LabVIEW

Issue Details

  • I'm working on a VI that's quite large, and it takes time to perform basic actions like moving things in the diagram. This VI may have been corrupted recently, as well.
  • I am not be able to open the block diagram, or it might appear that my VI is running continuously without actually running.
  • Is there a maximum size limit for the front panel or block diagram in LabVIEW? What happens if I exceed this size?

Example of block diagram corruption

Solution

Both the front panel and block diagram have a maximum width and height of 2^16 pixels, and can span from -32768 to 32767 pixels around the origin. If you begin to approach or exceed this limit, you will encounter unexpected behavior.

To view the current size of your diagram, go to Tools » Profile » VI Metrics and select Diagram.

Exceeding the maximum front panel size will cause the front panel to become corrupt, and some of the front panel features (scroll bar, etc.) will function incorrectly. This behavior is also present on the block diagram in similar situations. 

To avoid corruption that may come with the block diagram becoming too large, try these options:
  • Use subVIs in your code to increase your code's modularity. For more information on code modularity using subVIs, see the following tutorial: Tutorial: SubVIs
  • Architect your code with a state machine structure.

Additional Information

To demonstrate erratic behavior due to an oversize front panel, you can create a VI that has one numeric control close to the origin, and one numeric control close to the maximum size limits of the front panel (~32000, ~32000). After placing these controls, if you try to move the second numeric control any lower or more right, you may see that the numeric control and front panel are displayed incorrectly.
 

WAS THIS ARTICLE HELPFUL?

Not Helpful