How to Measure Real FPGA Loop Time in LabVIEW

Updated Dec 18, 2019

Reported In


  • LabVIEW FPGA Module

Issue Details

How can I measure real loop time of Timed-Loop or While Loop in LabVIEW FPGA?


The loop time can be calculated using a Tick Count. You can obtain the iteration time of the loop by subtracting the calculated tick count from the previous loop and the current tick count. The below figure shows the use of Feedback Node to pass previous tick count to the current loop. Instead, a Shift Register is available.


Additional Information

The Tick Count in the LabVIEW FPGA has the option to return uSec and mSec unit time in addition to Ticks. Depending on the speed of FPGA you configured, you can select and view the appropriate Counter units.