硬件:使用 Windows 发送输出信号的最短延迟
我想将计算机的输出设置为高或低。该值每秒大约改变 5 次。我将在示波器上测量输出。重要的是使请求软件改变和输出改变状态之间的时间尽可能短。延迟越短,我的结果就越准确。
有谁知道以下哪个选项在 Windows 环境中延迟最短(它必须在 Windows 中)?
- USB
- 串行
- 并行端口
- 还有其他吗?
我可以尝试所有三个并测量差异,但想必其他人已经这样做了?
谢谢!
I would like to set an output from my computer high or low. This will change roughly 5 times a second. I will be measuring the output on an oscilloscope. The important thing is to make the time between requesting the change in software and the output changing state as short as possible. The shorter the delay, the more accurate my result.
Does anyone know which of the following options has the shortest delay in a windows environment (it has to be in windows)?
- USB
- Serial
- Parallel Port
- Something else?
I could try all three and measure the difference, but presumably someone else has done this already?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
串行和并行的延迟将比 USB 低(我预计),因为您和端口之间的堆栈“高度”较小。测量延迟将是一项挑战 - 您如何知道写入端口的代码何时被执行?
然而,即使潜在延迟较低,窗口引起的抖动也可能相当大。
模糊相关且相当有趣......
https://superuser.com/问题/419070/transatlantic-ping-比发送像素到屏幕更快/419167#419167
Serial and Parallel will be lower latency that USB (I would expect) as the "height" of the stack between you and the port is smaller. Measuring the latency would be challenging - how will you know when the bit of code which writes to the port is executed?
However, even with a low potential latency, the jitter induced by windows is likely to be quite large as well.
Vaguely related and quite interesting...
https://superuser.com/questions/419070/transatlantic-ping-faster-than-sending-a-pixel-to-the-screen/419167#419167
USB 传输数据的速度是迄今为止最快的。
USB can transmit data the fastest by far.