LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW/FPGA Read/Write Control function write arrays to controls

Solved!
Go to solution

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. 

jinshui1997_0-1639589501760.png

jinshui1997_1-1639589514105.png

 

0 Kudos
Message 1 of 4
(2,315 Views)

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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(2,304 Views)

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.

0 Kudos
Message 3 of 4
(2,297 Views)
Solution
Accepted by topic author jinshui1997

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

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 4
(2,292 Views)