10-03-2018 07:00 AM
Hi,
Not shure if I am in the right place for this, let me know if not
The FPGA code below returns following Error, when generating Intermetiate files.
"LabVIEW cannot determine the size of the array output because a node input is a non-constant value. Ensure that all index and length inputs resolve to constant values."
>> LabVIEW cannot determine the size of the array
Why? The size is always 17? Size of Input array ist 64. Possible Indexes are 0, 20, 40.
>> Ensure that all index and length inputs resolve to constant values.
The length, yes I agree! But why I'm not allowed to choose the index?
The VHDL/intermediate File translation should be somethig like
if select = 1 then
out <= in(16 downto 0)
elif select = 2 then
out <= in(36 downto 20)
[...]
fi
Is there any nice Solution for this? In general how to get a subset from a unsigned integer in the most efficient way?
Thanks
Martin
Using:
Labiew 17sp1
vivado 2015.4
sbRio9651
10-03-2018 07:56 AM
Duplicate some Code and it works! code below is ok!
But still, the reason for this is still not clear for me...
10-04-2018 01:37 PM
Static array index as opposed to non static makes all the difference.
03-27-2023 08:45 AM
except array size & array index none other functions re supportable
03-27-2023 09:08 AM
@Harishkanmani wrote:
except array size & array index none other functions re supportable
Not true. With static-length Array inputs and static indices, "Build Array", "Array Subset", "Delete from Array" and so on are perfectly fine on FPGA.