"Bad VI" Error When Mass Compiling FPGA VI Without Errors

Updated Sep 20, 2022

Reported In

Software

  • LabVIEW FPGA Module

Issue Details

  • LabVIEW Returns a "Bad VI" error when attempting to mass compile an FPGA VI without a broken arrow.
  • The FPGA VI(s) compile correctly individually, but when mass compiled, LabVIEW returns the "Bad VI" error.  
 image.png
 

Solution

The reason for this error is that these VIs are meant to run on a real-time target and they are mass compiled on a desktop target. LabVIEW thinks that the FPGA VI is a Windows VI, and runs the Windows compile chain for the VI, which then fails and results in the "Bad VI" error

The workaround to this is to go into the mass compile menu from the LabVIEW title screen instead of from the project explorer window:
image.png