LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

measuring speed of execution of loops

Hi,
          I wanted to know how to measure the speed of execution of each loop in case of a stached sequence structure. The loop basically has an input for steps for measurement of the Capacitance Voltage characteristics. Now, I was keen to know how do I measure the speed of operation during any particular step. I found something was the Profile VIs but is there any better way to measure the speed of operation? I am attaching herewith the VI that is being used.It has several sub-VIs.But, YOu can just get an idea of what I need by browsing through this VI.
0 Kudos
Message 1 of 3
(2,629 Views)

In general, a good timing device is a 3 frame sequence. The first and third frames have a ms counter (from the Time & Dialog palette) and the second has the code. Then, you substract the value in the first frame from the value in the third and you know how many ms it took. The problem is that many things take less than a ms to execute and that is something you can only measure statistically, by running your code many times in a for loop (let's say a million times).

If you want iteration times, you can accomplish the same by using a shift register to keep the value of the ms counter from the last iteration and substract it from the current counter value.


___________________
Try to take over the world!
0 Kudos
Message 2 of 3
(2,614 Views)
Hi,
Just see the attached Vi it should be what your are looking for.
Thanks
vicky
0 Kudos
Message 3 of 3
(2,608 Views)