This content is not available in your preferred language.
The content is shown in another available language. Your browser may include features that can help translate the text.
To measure elapsed time in a VI that is running, the best way is to use a Flat Sequence Structure in conjunction with a timing VI. Because a Flat Sequence Structure forces code to run sequentially, you can use a timing VI to measure time before and after your code runs. Subtract the time measurement before from the time measurement after to get elapsed time. The timing VI you should use depends on your use case:
Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.