LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview FPGA, Array Subset Missfunction/Bugreport

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

 

 

LvFpgaArrayBug.png

0 Kudos
Message 1 of 5
(2,376 Views)

 

 

Duplicate some Code and it works! code below is ok!

 

But still, the reason for this is still not clear for me...

LvFpgaArrayBugSolved.png

0 Kudos
Message 2 of 5
(2,363 Views)

Static array index as opposed to non static makes all the difference.

0 Kudos
Message 3 of 5
(2,349 Views)

except array size & array index none other functions re supportable

0 Kudos
Message 4 of 5
(778 Views)

@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.

Message 5 of 5
(773 Views)