05-14-2008 12:29 AM - edited 05-14-2008 12:32 AM
05-14-2008 01:32 AM
The delay probably depends a lot more on the network architecture (OS stack, physical network, actual load, etc.) than on LabVIEW. You can measure the the time by pinging the other system, but Windows will only give you 1 ms resolution and it would not be deterministic anyway. Your question is actually interesting and will probably be answered better by someone like Ben, but generally, the answer is probably in ms.
Of course, if your application waits before, while or after receiving the command, you will have an additional wait. What kind of synchronization do you need here? Can you trust the two systems to be synced in the first place?
05-14-2008 01:50 AM
05-14-2008 02:27 AM
I still didn't understand how accurate your synchronization needs to be, and why you're actually using and logging on two computers. If your synchronization needs to be under a second, you should be fine, but since Windows is not a real-time OS, that will never be guaranteed.
As a side point, if you want to synchronize two different pieces of code (within a single LabVIEW instance), you can use the synchronization primitives, like a notifier with an infinite timeout, a rendevouz or an occurence. The advantage is that you don't have to loop.
05-14-2008 03:05 AM
05-14-2008 03:49 AM
knapkerd wrote:
What is the best way to go about using a hardware trigger?
What I am gathering from your post is that the passing of the data could take the better part of 1 second, and if we are writing data faster than that then we will miss this number every several while loops.
05-14-2008 06:59 PM