ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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: https://www.ni.com/docs/en-US/bundle/labview-fpga-module/page/filtering-fpga-io-using-multiple-input...

 

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
(3,391 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
(3,381 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
(3,363 Views)