Solution
In LabVIEW, 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 behaviors. 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 LabVIEW SubVIs Explained.
- Architect your code with a state machine structure or other design pattern that would reduce the size of the code.
Depending on how corrupted is your block diagram after exceeding the limits, there may be some sections of the code that can be recovered to copy and paste them in a new VI. You can go to
View » Navigation Window to get a whole picture of the block diagram. Clicking any section of the code inside the
Navigation Window will take you to that section of the code in the block diagram.