LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GetTime Or Wait problem

Hi..

 

Time difference between two GetDate/Time calls with a wait function in between shows a lesser time taken than the wait duration specified. How is that possible? Pls see the attached VI. Any thoughts?

 

Thanks and regards

Chandra

 

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

If you use "Highlight Execution", then you will see the behavior you have posted. Otherwise it has no problems.

 

[Edit:  Or am i missing something. Correct me if i am wrong.]

Message Edited by mathan on 12-06-2008 12:54 AM
0 Kudos
Message 2 of 4
(2,699 Views)

The get-date time function has a resolution of 16 ms. (or something like that) on Windows ,  the returned timestamp isn't fully accurate. This is an OS limitation.

 

Ton (if you use the Tick count you will see a wait time of 50/51 ms)

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 4
(2,680 Views)

Many thanks for the Tick Count tip.

 

After your reply, I found this link related to what you mentioned above:

http://digital.ni.com/public.nsf/allkb/4E12F6841016929D86257126007A9D94?OpenDocument

 

This leads to one more question. Is there any other way we can get the current time with a resolution of 1 ms (in Windows XP)?

 

Thanks,

Chandra

 

0 Kudos
Message 4 of 4
(2,668 Views)