Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Measuring While Loop Execution Rate (FPGA Module)

LabVIEW FPGA Module 8.2 Help
August 2006

NI Part Number:
371599B-01

»View Product Info

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

  1. Place a While Loop on 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. Place the code you want to execute in the While Loop.
  4. Place a Tick Count Express VI in 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. Place a Subtract function in 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 the value shown in the x–y indicator is the While Loop execution rate.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit