LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

for loop 1 iteration execution time

Hi,

 

what is the time taken of for loop 1 iteration without code inside.How to calculate this Execution time.

 

 

0 Kudos
Message 1 of 4
(2,681 Views)

@Ravindranath.K wrote:

Hi,

 

what is the time taken of for loop 1 iteration without code inside.How to calculate this Execution time.

 

 


No code in the FOR loop?  It will not use any time because the compiler will optimize it out.

 

Why do you even need to know?



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(2,668 Views)

I'm going to assume you want to know the time of code inside the for loop.  Use the Tick Count vi from the timing panel.  Place 1 outside the loop to get a start time reference.  Place a second inside the for loop and subtract them to get time of iteration i since start of loop.

0 Kudos
Message 3 of 4
(2,650 Views)

crossrulz wrote
[...]Why do you even need to know?

Just a wild guess:

Performance comparison to some other languages.

 

If i am correct, this is rather useless as the complete software defines the performance, not the sum of the indiviual components (mutlithreading, jipppey!)....

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 4
(2,644 Views)