To complete this task, you need a host VI and a compiled bitfile for the FPGA VI.Use the FPGA Host Interface nodes to download, run, and communicate with code on the FPGA.
Use the device name for your FPGA found in SystemDesigner to specify an FPGA target. To ensure your code runs on the FPGA, the device name input must match the FPGA device name.To specify the FPGA bitfile you want to deploy to the target, complete the following steps:
|Download the FPGA VI specified in the bitfile to the FPGA target and run the VI. The Download FPGA VI and Run FPGA VI nodes replace the code on the FPGA each time you run the FPGA VI, ensuring that the FPGA VI properly resets before each execution.|
|Use the FPGA Host Interface nodes to interact with and send data to the FPGA. In this example, the host and the FPGA VI communicate in the following ways:|
|Use the Close FPGA VI Reference node to close every reference the Open FPGA Reference node creates. If you don't close the reference, the FPGA VI runs until the host application stops running.|
Search within the programming environment to access the following installed example: FPGA Host Interface.