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 generating preview" When Trying to Build an Installer Using the Open FPGA VI Reference?

Primary Software: LabVIEW Modules>>FPGA Module
Primary Software Version: N/A
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems>>Professional Development System

Problem:
I am able to build an executable of an application using Open FPGA VI Reference. But I receive error generating preview when building an installer with this executable.

Solution:
The error message error generating preview occurs while building an installer for a project that contains cross-linked VIs.  A cross-linked VI means that several VIs of the same name may exist in several locations in your physical hard drive, and LabVIEW may be attempting to load the wrong version of that particular VI.  In order to pinpoint these specific VIs, right click on the project name in the project explorer, and click on Expand All.

The VIs that may exist in two or more locations will be marked with a yellow exclamation mark next to them.  This issue occurs because when the project is originally compiled, VIs are linked from a particular location, and then that path may have potentially changed, the VI may have been deleted, or it may have been renamed.  When the project cannot find this VI in that location, it will attempt to traverse through the LabVIEW search paths and will ask the user to resolve this conflict.  The resolve project conflicts dialog box will display a question mark for the VIs that LabVIEW could no longer find, and will suggest other locations where the VI was found.

For each conflict that occurs, double-click the VI, and load the VI from the correct location.  Refer to the Prevent VI Cross-linking with the Enhanced LabVIEW Project article below for more information about resolving these issues.

After resolving cross-linked VIs, the error generating preview error can be resolved by pointing to the compiled bitfile version of the FPGA VI and rebuilding the executable.

To do so: right-click on Open FPGA VI Reference VI»Select Bitfile... and browse to the compiled FPGA bitfile. Then rebuild the executable and the installer to clear the error message.



Related Links:
KnowledgeBase 4GICSB3S: Why Do I Have a Broken Wire When Passing My FPGA VI Reference Into a SubVI?
Developer Zone Tutorial: Prevent VI Cross-linking with the Enhanced LabVIEW Project

Attachments:





Report Date: 06/25/2008
Last Updated: 11/14/2008
Document ID: 4MOCM6UQ

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