To complete this task, you'll need a host VI, the top-level FPGA VI, and a compiled build specification 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 node. If you don't close the reference, the FPGA VI runs until the host application stops running.|
If the Properties group of the Configure tab doesn't contain the bitfile that corresponds to the FPGA VI you want to download and run, verify the following conditions are true about the FPGA VI: