Virus scan in progress. Please wait to download attachments.
If you are looking to benchmark your code, you can accomplish this by using a Flat Sequence Structure and the Tick Count (ms) timer. The 3-sequence Flat Sequence Structure allows you to take a time measurement before code is run, run code, and measure time after code is run. Comparing these two times helps you measure elapsed time, or the time it took for your code to run.
Description This VI will allow you to benchmark your code. Place the section of code you want to benchmark within the sequence structure and set the number of iterations, and the code will display the maximum, minimum, and average runtimes of your code.
LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
Insert code into the structure as directed
Specify the number of times to test
Additional Information or References
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.