Why Does My Built Application Run Slower Than My Code?

Updated Oct 27, 2021

Reported In

Software

  • LabVIEW
  • LabVIEW Application Builder Module

Operating System

  • Windows

Issue Details

After building my code into an executable I've noticed that it runs significantly slower than the code in my development system on the same computer. What can have caused this?  

Solution

When a built application is running slower than a code in a development system on the same computer, it's usually caused by the antivirus system reacting to an unknown executable being executed. To fix this NI recommends talking to your local IT department, to add an exception for the application. 

If you application includes datalogging to a fixed path, make sure the path exists on the target environment or set the path as a control so the user can edit it. It is also recommended that the application has proper error handling to detect if the path does not exist.