Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Why Do I Get Error 7 When I Try to Build a LabVIEW Application Containing a Static VI Reference?

Primary Software: LabVIEW Development Systems>>Professional Development System
Primary Software Version: 8.5
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I have a LabVIEW program which runs fine as a VI, but when I try and build it into an application (EXE), I receive the following error message:

Error 7: LabVIEW cannot find a file that is a dependency of a startup, exported, or always included VI.
File not found: .

How can I change my project or VI to prevent this error?



Solution:
The error occurs when a VI containing a Static VI Reference pointing to itself is built into an application. You can prevent this from happening by replacing the Static VI Reference with a combination of Current VI's Path and Open VI Reference.

To find all instances of Static VI Reference VIs in your program, go to Edit » Find and Replace. Ensure the Objects radio button is selected at the top, click the Add icon to choose the VI you want to search for, and navigate to Functions » Application Control » Static VI Reference. Clicking Find will return all open instances of the VI and allow you to check each one and determine whether or not they are statically referring to themselves.

For each VI you find which refers to itself, replace it with a Current VI's Path VI wired to Open VI Reference. Your application should now build properly.



Related Links:

Attachments:





Report Date: 01/25/2008
Last Updated: 01/29/2008
Document ID: 4HOHFQ3H

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit