Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 5 out of 5     Rate this Document

My FPGA VI Does Not Compile When I Have An Unbounded Array

Primary Software: LabVIEW Modules>>FPGA Module
Primary Software Version: 1.0
Primary Software Fixed Version: 1.1
Secondary Software: N/A

Problem:
I have an unbounded array that is not used on my FPGA VI block diagram, such as a For Loop without a set number of iterations. The Run arrow is not broken, so I can begin compiling the FPGA VI. However, the compilation fails and I receive the following error:

ERROR:Xflow - Program xst returned error code 6. Aborting flow execution...

Why do I receive this error?

Solution:
You must use only fixed-size arrays in FPGA VIs. If you have a For Loop without a set number of iterations, you must use a Numeric Constant or a control to set the number of iterations. Alternatively, if you are building an array by using the Insert Into Array function, substitute it with the Replace Array Subset function. 

This should only be a problem in versions of LabVIEW FPGA earlier than 8.0.  In later versions of LabVIEW FPGA a For Loop without a set number of iterations will create a broken Run arrow.  If your VI will not run because "Arrays must be fixed size in current target", refer to the related links for information on solving this issue. 

For information about using arrays in FPGA VIs for LabVIEW 7.1 and earlier refer to Chapter 2, Creating FPGA VIs, of the LabVIEW FPGA Module User Manual, also available by selecting Start»Programs»National Instruments»LabVIEW 7.x»Module Documents»LabVIEW FPGA Module User Manual.

Related Links:
LabVIEW FPGA Module Help: Creating Fixed-Size Arrays

Attachments:





Report Date: 05/13/2003
Last Updated: 12/11/2008
Document ID: 2WNC87OE

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