To complete this task, you'll need a host VI, the FPGA 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.
Create the following diagram to download and run your FPGA VI to an FPGA target.
Customize the gray sections for your unique programming goals.
|To specify the FPGA VI you want the host VI to communicate with, 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 resets properly before each execution.|
|Interact with and send data to the FPGA by using FPGA Host Interface nodes. In this example, the host and the FPGA VI communicate in the following ways:|
|Close every reference created with the Open FPGA VI Reference node with the Close FPGA VI Reference node. If you don't close the reference, the FPGA VI runs until the host application stops running.|
Make sure the FPGA VI appears in the Project Files tab as part of the project. Select the FPGA VI in SystemDesigner and make sure you select Bitfile in the Build Output pull-down menu in the Build Options section of the Item tab.