09-21-2011 11:40 AM
I am using LV8.5 and have a project that I've been using consistently to build and exe file. I then added some code to allow for command line arguments to be passed in, and I get the dreaded Error 7. Here is the error text that I see, and attached is a png of the code I added.
LabVIEW cannot find a file that is a dependency of a Startup, Exported, or Always Included VI.
File Not Found: .
The missing file might be referenced by one of the libraries included in the build or by the file - TSCx.vi. To fix this issue:
- Open all Startup, Exported, or Always Included VIs, recompile them (CTRL+SHIFT Click the Run arrow) and save them to update their dependencies.
<Call Chain>Error 7 occurred at AB_Engine_HandleLinkErrors.vi -> AB_Engine_Update_Source_from_Linker.vi -> AB_Build.lvclass:CalculateDependencies.vi -> AB_Build.lvclass:Build.vi -> AB_EXE.lvclass:Build.vi -> AB_Build.lvclass:Build_from_Wizard.vi -> AB_UI_Page_Preview.vi
Possible reason(s):
LabVIEW: File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS, and / on Linux. Verify that the path is correct using the command prompt or file explorer.
=========================
NI-488: Nonexistent GPIB interface.
09-21-2011 12:04 PM
You have a VI reference you added for TSCx Main. What is the path for this file? Do you have it at the location where it is looking for it?
09-21-2011 12:55 PM
Just to be sure, I right-clicked on the reference and re-did the Browse For Path, and still receive the same error.
09-21-2011 01:02 PM
Is it possible the path to the file is too long, or on a completely different branch of the file hierarchy?
Search for error 7 and build. This error has come up numerous times before due to one of a few reasons. Perhaps this thread will help. http://forums.ni.com/t5/LabVIEW/Error-7-during-the-build-LV-8-6/m-p/1670728/highlight/true#M595880
09-21-2011 02:53 PM
That link that was referenced had a couple of ideas. I tried the file path length issue by pointing to a file right at the root of my d-drive (d:\InstrHandle.vi). It's not the same file as original, but I was just trying to rule out the path length. It still complained. In fact, the original path with filename was only 50ch. I also tried a mass compile. No luck. It's just bizzare to me that if I remove that block of code, the build works fine.
09-21-2011 03:35 PM
I started adding little pieces at a time (from the original block). The build process was successful until I got to the Static VI Reference. I didn't even have the Invoke Node added yet. Just the Static VI reference (I put it inside a true/false case statement), and the build bombs.
09-21-2011 04:00 PM
I didn't think to ask this question because I think I did a very similar thing in another application .... Anyway, can the static VI reference reference the same VI where the static reference resides? I'm thinking the answer is no. Once I pointed to a different VI (in another folder), I was able to successfully build. However, I'm trying to pass in a number of command line parameters and kick off this VI (i.e. its front panel title, minimize, etc). How else would I do this?
09-21-2011 04:18 PM
When I changed the Static VI Reference to a VI Server Reference, the build was successful, though I'm not entirely sure why
09-21-2011 05:06 PM
Are you saying that the reference was to the VI it was inside of?
09-22-2011 07:14 AM
yes.