LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use of Time Count

hi to all
 
i need to learn about all the timer loops and especially the tick count...
 
I would like to learn..that if say i want to say the execution time of a while loop..that difference of my previous sample and next sample...how to implement it?..
 
can anybody help me or explain it to me with one short and sweet example...
 
I much thankful to him/her if i wil get the answers from u people...
 
Sahara
0 Kudos
Message 1 of 2
(2,779 Views)
First let's get the terminilogy right:
 
Are you talking about a "timed loop" or a regular loop? The timed loop provides some if this information directly.
 
To take the difference between successive samples, you would use a shift register. The left output of the shift register provides the value from the previous interation of whatever you wired into the shift register on the right. Check the online help.
 
 
If you want, you can initialize the shift register as shown on the left. This ensures that the loop time shown in the first iteration is a small value and not random.

Message Edited by altenbach on 10-28-2007 09:03 AM

0 Kudos
Message 2 of 2
(2,775 Views)