How Can I Fix my Corrupted VI in my LabVIEW Project?

Updated Apr 5, 2023

Reported In

Software

  • LabVIEW

Issue Details

My LabVIEW Project contains a corrupted VI. When working on my project on my development computer it works fine, but when I open my project on another computer my project contains a corrupted VI, regardless of the LabVIEW version.
In my case the corrupted VI displays my wired connections incorrectly. The display is corrupted and displays my wired connections off screen. What can I do to repair my corrupted VI?

Solution

If your VI is corrupted, there are a few troubleshooting steps you can take:

  • First, in this particular case, you can try the function "Clean Up Diagram" on the toolbar of the VI. It will reorganize all your wires on your diagram so it could fix your solution. There is an explanation of this tool on the article Automatically Clean Up LabVIEW Block Diagrams.
  • You can also create a new VI in your project that will take the place of your corrupted VI's functionality. You would copy the code which is working and you paste it into this new VI. Then, you can delete your original corrupted VI and use the new one on other computers. If the problem is still there, the problem is a code issue and not due to VI corruption.
  • If corruption only happens on VI after you copy it from the development computer to the deployment computer, try to compress the VI into a zip file before moving it. This action is helpful to prevent corruption happen.