G
Guest
I'm interested to know what ideas are out there for reading a parallel port at a constant sample rate while still allowing the user to interact with the GUI. That is, reading it every 10ms for example without exception. Is this at all possible?
Current tests done show that if the sample rate is 10ms then this is acheived in general, but when another program loads or terminates this 10ms jumps up to 100ms or more. In these tests the code is placed in a Do Loop with Application.DoEvents and when the code is placed in a seperate thread in a Do Loop with Thread.Sleep(10). During this temporary 100ms there will be significant data loss.
Is it possible to acheive this real-time goal on a Windows OS with VB.Net?
Current tests done show that if the sample rate is 10ms then this is acheived in general, but when another program loads or terminates this 10ms jumps up to 100ms or more. In these tests the code is placed in a Do Loop with Application.DoEvents and when the code is placed in a seperate thread in a Do Loop with Thread.Sleep(10). During this temporary 100ms there will be significant data loss.
Is it possible to acheive this real-time goal on a Windows OS with VB.Net?