Download LabVIEW FPGA Module User Manual
Transcript
Chapter 4 Running FPGA VIs If you increase the FPGA device clock rate, less code can execute in the Single-Cycle Timed Loop because the clock cycle is shorter. Refer to the Timing FPGA VIs section of Chapter 2, Creating FPGA VIs, for more information about the Single-Cycle Timed Loop. Note Change the global default clock rate for an FPGA device by selecting Target»Build Options in the Embedded Project Manager window. All subsequent FPGA VIs you create for that FPGA device have the new default clock rate. You can change the clock rate for a top-level FPGA VI by selecting Target»Build in the Embedded Project Manager window. The LabVIEW FPGA Compile Server compiles the clock rate for the specific FPGA VI into the bitstream. Each time you compile the same FPGA VI, the FPGA VI retains the same clock rate. Configuring FPGA VIs to Run Automatically Some FPGA devices have flash memory that can store FPGA VIs. If you want a VI that is loaded to the FPGA from flash memory to run automatically on an FPGA device, change the Default Auto Run option for the FPGA device by selecting Target»Build Options in the Embedded Project Manager window. All subsequent FPGA VIs you create for that FPGA device have the new Default Auto Run setting. You can change the Auto Run VI option for every instance of a specific FPGA VI by selecting Target»Build in the Embedded Project Manager window. Refer to the Running FPGA VIs at Power On section of this chapter for information about storing the FPGA VI in flash memory. Downloading Compiled FPGA VIs to the FPGA Device When you click the Run button on a new or changed FPGA VI while targeting an FPGA device, LabVIEW downloads the FPGA VI to the FPGA automatically after the compile completes. LabVIEW automatically downloads a previously compiled VI when you target an FPGA device and click the Run button. LabVIEW does not download the FPGA VI if it is already on the FPGA device. You can force a download by clicking the Download button in the Embedded Project Manager window. You might force a download if you want to reinitialize the FPGA to its default state. When you target LabVIEW to Windows or an RT target, you can programmatically download FPGA VIs to FPGA devices. Refer to the FPGA Interface User Guide and the LabVIEW Help, available by selecting Help»VI, Function, & How-To Help, for information about programmatically downloading FPGA VIs. FPGA Module User Manual 4-4 ni.com