LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA fixed size array not resolved

Solved!
Go to solution

I have problems recreating this example: http://zone.ni.com/reference/en-XX/help/371599G-01/lvfpgaconcepts/fpga_filtering/

 

I do totally the same as in the example - I have a fixed-size (sub) array [3] on the left (whats the thing with (sub)?), first shift register is okay (it produces fixed-size array [3]), array gets indexed to elements and back, and on the right, there is a variable size array. The right shift register throws error on build.

Thomas444_0-1579594537827.png

Even the build array with THREE elements does not produce fixed size array, so I don't get how the attached example could even work.

Thomas444_1-1579594765387.png

 

0 Kudos
Message 1 of 3
(2,553 Views)

I have noticed that the build array thing behaves differently in top vi and sub vi - in top VI, it produces fixed size arrays. I tried to change reentrancy, input data type, size,  can't force it to work properly in subvi.

0 Kudos
Message 2 of 3
(2,543 Views)
Solution
Accepted by topic author Thomas444

Solved this myself guys! 😄 VI Properties > Execution > Preallocate arrays did that for me. Weird, because labview preallocates everything on FPGA right?

 

 

0 Kudos
Message 3 of 3
(2,525 Views)