Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
2 rating:
 1.5 out of 5   

Why Do I Get Error 7 When I Create a Library That Includes Dynamic VI References?

Primary Software:
Primary Software Version: 7.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

I have a properly functioning VI and have saved it to a library, but when I run it I receive Error 7, File not found. Why is this and how can I fix it?

When saving VIs to a library the creation process determines which VIs to include by traversing the top-down VI hierarchy. This hierarchy can be seen in LabVIEW by going to the View menu and clicking VI Hierarchy. The cause of this error is when a VI or subVI includes a dynamic VI reference without an explicit path. If a path is not specified when creating a dynamic reference, LabVIEW expects the VI to be within the library. When LabVIEW builds the library it does not see these references because the VIs they refer to are not explicitly embedded inside the main VI or its subVIs. A common place this error occurs is when one creates a library that includes VIs from the report generation toolkit. The two solutions to this problem are described below.

  • Manually insert all dynamically referenced VIs into the Library

    LabVIEW 7.1 and earlier
    1. Locate the referenced VI and open it.
    2. Go to File»Save As...
    3. Locate destination library file and select it in the Name the VI dialog
    4. Click Save in the Name the VI dialog
    5. Click OK in the file dialog
    6. Repeat steps 1-5 for remaining files
LabVIEW 8.0 and later
  1. In the project, right-click the My Source Distribution (for the library that you created) and select Properties.
  2. In the Source File Settings(LabVIEW 8.0 - 8.2) / Source Files(LabVIEW 8.5 - 8.6) category, ensure the dynamically referenced VI is Always Included.
  • Add paths to the references
    1. Locate string connected to Open Reference VI in block diagram.
    2. Explicitly specify a path in that string to the location of the VI.
    3. Repeat steps 1 and 2 for all dynamic references.

Related Links:
Product Page: LabVIEW

KnowledgeBase 3G5CDDV1: Error 7 When Running and Application Using VIs from Report Generation Toolkit for MS Office


Report Date: 08/26/2004
Last Updated: 04/30/2014
Document ID: 3CP8AOFD

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