LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array to array host to FPGA

Anybody has such a VI that can control the FPGA array from the Host array.? I just connected these two array but it seemed not working. And also I hope tranfer the FPGA array to the Host Array. Is there any example about this ?
Here is the notworking VI.
0 Kudos
Message 1 of 2
(3,057 Views)
A couple of changes:
  1. You need to wrap your FPGA diagram in a loop so that the FPGA continues to execute the code in your FPGA VI. In your case it will perform one addition of the two arrays and then stop.
  2. You do not need the For Loop in the FPGA VI as the Add function can add two arrays together.
  3. In the host VI the order of the controls passed to the FPGA VI matters, so you should pass Array and Array2 to the FPGA VI before reading back Array3.
  4. Depending on the complexity of the calculation in the FPGA VI, the FPGA may not have enough time to update its outputs before you read back Array3. To be safe you should include some extra time in the host VI after updating the values on the FPGA before reading back the updated result. Remember that the host VI and FPGA VI are not running synchronized. They each run in their own independent processes.

See the attached image.

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


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