To complete this task, you'll 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.
Customize the gray sections for your unique programming goals.
Use the RIO address for your FPGA found in Measurement & Automation Explorer (MAX) to specify an FPGA target. To ensure your code runs on the FPGA, the RIO address input must match the FPGA target RIO Alias.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 VI 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.