Why am I Getting a Broken Arrow When I Know my Array is Fixed Size?Primary Software: LabVIEW Modules>>FPGA ModulePrimary Software Version: N/A Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: In LabVIEW FPGA I have code that creates an array which will always have the same size. However, I get a broken run arrow with an error stating: Arrays must be fixed size in current target.An example of this would be a For Loop which runs a fixed number of times and initializes an array (shown below). Since the For loop will always run the same number of times, the array will always be the same size. Why I am getting this error? Solution: LabVIEW needs to preallocate the memory for any array being generated in this fashion. In order to allow preallocation and to avoid this error, go to File » VI Properties, select Execution from the Category list, and check Autopreallocate arrays and strings. ![]() ![]() ![]() Related Links: KnowledgeBase 2WSG4L83: With The LabVIEW FPGA Module, Which Array Functions Return Fixed-Size Arrays? LabVIEW FPGA Module Help: Creating Fixed-Size Arrays Attachments:
Report Date: 09/09/2008 Last Updated: 10/10/2008 Document ID: 4P8GRJEQ |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||



