LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA memory initialization with custom control

Solved!
Go to solution

Hi, I am transferring code from a NI-cRIO-9012 to a 9031 and in the process I have encountered the following error when trying to compile some code (code wasn't written by me):

 

"Memory is read-only and uses a custom control to define the type.

Initializing memory with a type defined as a custom control is not supported. Change the data type of the memory."

 

The attached picture shows the custom data type if that helps. 

 

Anyone know a way around this?

0 Kudos
Message 1 of 3
(2,708 Views)
Solution
Accepted by topic author B^2

The annoying answer is:

Define the Memory as U64 and perform the handling of the bits yourself.  LV simply does not support the function you are looking for.

 

Or an alternate workaround:

You might also think of splitting it into two seperate Memories of 32 bits each, since this will not cost any more BRAM and will allow you to initialise each one individually.

Message 2 of 3
(2,660 Views)

Hi,

 

If the issue is purely the custom control, have you tried just using the two I32's on their own without the custom control around them?

 

Thanks,

 

Jack

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