Thread: Wait Function
View Single Post
  #1   Spotlight this post!  
Unread 16-04-2011, 04:31
cabbagekid2 cabbagekid2 is offline
Registered User
#0368 (Kika Mana)
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Honolulu, HI
Posts: 85
cabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura about
Wait Function

We were wondering how the wait function works (the clock timer in periodic task). Initially we thought that the clock time is the minimum time that the while loop will wait to execute the next cycle (it will either be this time or the actual time it takes to execute all the code in the while loop - which ever is longer). However, using the elapsed time vi we see that even though we set the wait to 10ms the actual time shown in elapsed time the time is less than this (see screenshot it shows 2ms).

Can anyone clarify what is going on here? Thanks.
Attached Thumbnails
Click image for larger version

Name:	minimum.png
Views:	72
Size:	47.3 KB
ID:	10592  
Reply With Quote