硬件:使用 Windows 发送输出信号的最短延迟

发布于 2024-10-27 23:05:57 字数 277 浏览 3 评论 0原文

我想将计算机的输出设置为高或低。该值每秒大约改变 5 次。我将在示波器上测量输出。重要的是使请求软件改变和输出改变状态之间的时间尽可能短。延迟越短,我的结果就越准确。

有谁知道以下哪个选项在 Windows 环境中延迟最短(它必须在 Windows 中)?

  1. USB
  2. 串行
  3. 并行端口
  4. 还有其他吗?

我可以尝试所有三个并测量差异,但想必其他人已经这样做了?

谢谢!

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)?

  1. USB
  2. Serial
  3. Parallel Port
  4. Something else?

I could try all three and measure the difference, but presumably someone else has done this already?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

枯寂 2024-11-03 23:05:57

串行和并行的延迟将比 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

○愚か者の日 2024-11-03 23:05:57

USB 传输数据的速度是迄今为止最快的。

USB can transmit data the fastest by far.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文