LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot reload vi after saving

Dear everyone,
 
I have been creating a fairly large LabVIEW application with v8.2.1 over the last 2 months.
 
Now when I save my top level vi, it cannot be re-opened.  LabVIEW starts loading and displays the title bar and then hangs without displaying the front panel.
 
I reverted to a previous version of my top level vi and found that it could be opened and closed multiple times without problem.  However I then found that even without making any changes to the front panel or diagram I could only save it 3 times before it too would no longer load with exactly the same symptoms.
 
Sometimes when I make a change and then flick to another Windows application and then back to the front panel, a section of the front panel will be missing and t's vertical scroll bar is often in a different place.
 
This is a really serious problem for me on a critical project.  Any advice would be greatly appreciated.
 
Aaron
0 Kudos
Message 1 of 5
(2,916 Views)
Hi Aaron,

what do you mean by "large application"?

Labview tends to corrupt (very) large vis especially when lots of DAQ/dll/CIN are used.
So to workaround this problem you should split your vi into smaller parts ending with a main and some subvis. This way you also have a chance to locate the problem more exactly by finding the part which is corrupting your vi...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,903 Views)

Phew, looks like I've stumbled across the cause.  Basically the top level vi's window had become slightly larger than my PC screen size (X in top right was partially off screen).  I resized the vi's window and now I can save repeatably without problem.  LabVIEW had adjusted the vi's window size without me noticing as sometimes happens when you place an object on the front panel.  Can only guess there is some kind of screen size / window calculation rounding issue when you save and the error builds up until LabVIEW can't handle it.

Thanks for your help

Aaron

0 Kudos
Message 3 of 5
(2,891 Views)
Hi Aaron,

so you better switch of the auto-resizing feature of LabView (as it most of the times produces ugly front panels anyway)...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(2,888 Views)

Good idea.  Will do that right away.  Thanks

Aaron

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