LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measuring time for loop to execute once

I have a state-machine-like structure and another while loop within the case structure. This while loop executes, by my approximations, about every 500ms, but I want to know the precise time.

How do I measure the time that a while loop consumes to execute exactly once?

I've seen this done with a sequence structure, but unfortunately I don't know how to do it with a simple while loop.

Thank you,
Alex
0 Kudos
Message 1 of 4
(2,718 Views)
How about this?


Message Edited by Ravens Fan on 07-24-2008 01:33 PM
0 Kudos
Message 2 of 4
(2,716 Views)
And if you want to measure over several iterations :




Message Edité par JB le 07-25-2008 08:51 AM
0 Kudos
Message 3 of 4
(2,688 Views)
By using the attached VI, you get a solution that needs less work (assuming you are using the error cluster wire) and is therefore very fast to implement.




Message Edité par JB le 07-25-2008 08:59 AM
Download All
Message 4 of 4
(2,686 Views)