LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do i know the execution time of my vi?

I want to know,how long my VI is executing.

I tried by going into Tools>Profile>Performance & Memory/Trace Execution.

Is this the only way to find the execution time or is there anyway to find it.

Please let me know.

Thanks,

Rakesh

 

0 Kudos
Message 1 of 13
(3,793 Views)
You can put a msec timer at the front of your VI, one at the end, and subtract the difference and display on an indicator.  This is a good use for a flat sequence structure where the first frame has the time, the middle frame has your real VI, and the final frame as the timer again.
0 Kudos
Message 2 of 13
(3,791 Views)

Thanks for your reply.

Can you show me with an example

0 Kudos
Message 3 of 13
(3,786 Views)
Message Edited by Ravens Fan on 04-13-2010 08:37 PM
Message 4 of 13
(3,778 Views)
thank you
0 Kudos
Message 5 of 13
(3,762 Views)
You can also use the VI I posted here some days ago. It is very easy to use when using the error cluster wire.
0 Kudos
Message 6 of 13
(3,739 Views)
thank to all,it helped me alot
Message Edited by raki on 04-16-2010 11:36 PM
0 Kudos
Message 7 of 13
(3,697 Views)

the execution time of my design is 1msec- 5msec

i compared the execution time of my design with the similar design whichwas implemented in C. It was 306 msec.

 He used pentium 120 MHz processor

 I am using Core 2 Duo 2 GHz processor

 

will it depends on the processor speed or does labview has any DSP clock??

  

0 Kudos
Message 8 of 13
(3,602 Views)

Your code is theoretically running about three times as fast if you adjust for the CPU speed and assume both version run on a single core.

 

Yes fast PC's should run it faster.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 9 of 13
(3,596 Views)
I wouldn't read too much into a speed comparison of LabVIEW on a modern Core2 and C on a old Pentium.  Optimizing your code for best performance on your machine is what is important.
LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 10 of 13
(3,575 Views)