LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sync / multithread issue

Hi, I'm just getting started with labview.  My long term goal is to write an app that captures data from different sources at different rates, and don't quite yet understand how to do it.  I drew up a little experiment, to try to understand better, but it raises more questions than it answers.
 
Try running the attached VI, and set one wait timer to 200 ms, and the other to 500 ms, or any other slow prime multiples of 100 ms.
 
On my machine, neither one increments the timestamp by the multiple set. 
I've also tried 1000 and 999, expecting a slow drift between them, but they appear to run in sync.
 
Any explanations?
 
( I know there's a 'wait for multiple' timer, but I'm afraid to use it in case it might skip a beat, so to speak... should I be?)
 
Thanks,
 
DF.

Message Edited by ve3wtj on 10-22-2007 11:18 AM

0 Kudos
Message 1 of 2
(2,461 Views)
You're using the "Get Date/Time in Seconds" primitive.  It is always going to give you the current time.  What you should be looking for in your test is update rate.  Set one to 100 ms and the other to 1000ms.  You will see that the time doesn't get updated as fast.
0 Kudos
Message 2 of 2
(2,451 Views)