LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application build time very long


wiebe@CARYA wrote:


Any .vims?

 

They are great, but do seem to mess things up.


A decent amount, mostly just array manipulation stuff.  My build finished after only 2 attempts this morning resulting in a 100MB EXE.  Here was the first error from it.  I guess I can make my own thread talking about this, but I don't really have much to go on other than giving a huge project and dependencies to NI.  Maybe share a whole VM with them?

 

Capture.PNG

0 Kudos
Message 11 of 13
(1,483 Views)

Just to add my experience to this topic. Maybe it helps someone:

 

I had long built time ( ~ 2,5h) for a project with roughly 50 classes.

Then I got a bad built Error (Error 1502) on every built attempt after ~2h in the built process.

 

Here is what helped to fix the error and reduce built time from 2,5h to 14min:

 

  1. close your Project
  2. In Labview: Tools > Advanced > delete Cache with compiled Objects
  3. In Labview: Tools > Advanced > Mass Compile
  4. Start Mass compile of your Project Folder, save Log to a Textfile
  5. wait
  6. open Textfile and try to resolve every compiler warning and Bad VI in the file in your Project
  7. restart Labview, try to built
  8. (hopefully) success

 

There where roughly 200 Bad VIs and maybe 100 other Problems.

The most of the Bad VIs where simply VIs that I deleted in the LV Proj. But not on disk.

The other problems (maybe the ones with the bigger impact) where cases, where VIs had 2 instances on disk (maybe just a copy) but just one in the project. That resulted to loading problems.

To resolve all this was not as hard as i thought it would be.

 

 

I even wrote a little python Skript to help with easily get the bad VIs from the textfile found with the search engine everywhere:

 

 

import re
import subprocess, os, platform

# MassCompile Error Log
f = open(file="MassCompileLog_12.08.2021 12_05.txt")

txtLines = f.readlines()
f.close()


weirdString: str = "�" # for üöä
i = 0
searchQuery = ""
for line in txtLines:
    cleanLine = line.replace(weirdString, "*") # replace üöä with wildcard *

    if "Bad VI" in cleanLine:
        try:
            badPath: str = re.findall('Path=".+"', cleanLine)[0]
            filepath = badPath.replace("Path=", "")  # .replace('"', "")

            i += 1
            print(i)
            print(filepath)
            searchQuery += filepath + "|" #add pipe for "OR" in Everything

        except:
            print("no Path= found in line:" + cleanLine)

print(i)

print("Copy the following paths to Everything Search Engine: _____________________________")
print(searchQuery[:-1])   #copy this to Everything
print("Everything Query END: _____________________________")

 

 

 

Much luck

Message 12 of 13
(1,208 Views)

Ouchies.  Glad you figured it out, but I guess the real solution is not to do stuff outside of the project.  I think we probably all learn this the hard way; I know I did.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 13 of 13
(1,181 Views)