07-16-2013 12:53 PM
Hi, guys
I am going to measure my each major blocks running time, the are totally five major blocks in my final VI, the last four of them were in a while loop
Thanks
Solved! Go to Solution.
07-16-2013 01:21 PM - edited 07-16-2013 01:24 PM
What exactly do you mean by a "block"? Is it a subVI, LabVIEW primitive, some chunk of LabVIEW code?
You can use multiple Tick Count functions. If you place your code in a flat sequence structure with Tick counts in frames in between, you can subtract values from each other and get the relative time of each piece of code.
Why are you worried about the execution time? Are you having particular timing problems? Most LabVIEW primitives will run so fast, you'll probably see no or very little change in the tick count before and after them.
Here is an example to show how to measure the execution time for one section of code.
07-16-2013 01:49 PM
Thank you for you response.
The block means some chunk of LabVIEW code.
The reason I am worry about the execution time it is because I am testing someting regard to lighting LED and Camera capture the image.
Before the LED lights up, the camera already captured the image, I want to know how long it take for my LED be ready, so I can tell which parts of
data are right.
Best