12-15-2021 11:27 AM - edited 12-15-2021 11:33 AM
Hello there,
Appreciate anyone who pays attention here.
I am using LabVIEW / FPGA interface. The FPGA is supposed to take an array of the program as the input, so I want to use "Read/Write Control" function to write it into FPGA. However, even if there is an array control in the FPGA program vi, it won't show in the function block.
I can write values to single numerics as in this picture "dead-time" and "no. modules", but not to the array "ss".
Thanks for any advice.
PS: The documentation of "Read/Write Control" function acclaims it supports the complex data like arrays and cluster.
Solved! Go to Solution.
12-15-2021 11:35 AM - edited 12-15-2021 11:37 AM
Did you name the array on the FPGA? Is the array on the top level VI of the FPGA? Did you recompile the FPGA after adding the array?
EDIT: You edited the original post while I was looking at this. So I'm now down to just one question.
12-15-2021 11:39 AM
Thanks.
The array on FPGA is "ss", and it's on the top level, actually it's in the same place as the "no.modules" numeric. And I didn't compile the FPGA, but it can show the changes made to other variables. For example, if I change "no. modules" to "a", there will be a update on the function without recompiling FPGA program.
12-15-2021 11:41 AM
@jinshui1997 wrote:
Thanks.
The array on FPGA is "ss", and it's on the top level, actually it's in the same place as the "no.modules" numeric. And I didn't compile the FPGA, but it can show the changes made to other variables. For example, if I change "no. modules" to "a", there will be a update on the function without recompiling FPGA program.
That's not how this function works. The Open FPGA Reference pulls the type information from the FPGA bitfile that you have on disk, not something else. So if you make any changes to the FPGA VI interface you have to recompile the FPGA bitfile to have them updated in your diagram for the FPGA Reference.