Measuring While Loop Execution Rate (FPGA Module)

LabVIEW 2018 FPGA Module Help


Edition Date: March 2018
Part Number: 371599P-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2015 FPGA Module Help
LabVIEW 2016 FPGA Module Help
LabVIEW 2017 FPGA Module Help
LabVIEW 2018 FPGA Module Help
LabVIEW 2019 FPGA Module Help

Complete the following steps to measure the execution time of a While Loop in an FPGA VI.

  1. Add a While Loop to the block diagram.

  2. Right-click the conditional terminal of the While Loop and select either Create Constant or Create Control from the shortcut menu, depending on the needs of the application.
  3. Add the code you want to execute to the While Loop.
  4. Add a Tick Count Express VI to the While Loop and click the OK button in the Configure Tick Count dialog box.

  5. Right-click the While Loop and select Add Shift Register from the shortcut menu.
  6. Add a Subtract function to the While Loop.

  7. Wire the Tick Count terminal of the Tick Count Express VI to the right shift register on the While Loop and to the x terminal of the Subtract function.
  8. Wire the left shift register to the y terminal of the Subtract function.
  9. Right-click the x–y terminal of the Subtract function and select Create»Indicator.
  10. Run the VI. The value shown in the x–y indicator is the While Loop execution rate.

WAS THIS ARTICLE HELPFUL?

Not Helpful