RTOS:windows ce:我可以在内核模式下执行 PID 控制循环的所有计算吗?

发布于 2024-12-06 15:37:10 字数 156 浏览 10 评论 0原文

在Windows CE中,我可以在“内核模式”下完成PID(比例积分微分)控制循环的所有计算并避免使用“用户模式”吗?我将通过 TCP=IP 将数据传输到另一台机器以获得最终结果,以使系统保持在“内核模式”。我的理解是,从“内核模式”切换到“用户模式”以及反之亦然会花费时间..即 40us 往返。

In Windows CE, can I do all my calucation for a PID(Proportional-Integral-Derivative) control loop in "kernel mode" and avoid using "user mode"? I will transfering data over TCP=IP to another machine for the end result to keep the system in "kernel mode". My understanding is that switching from "kernel mode" to "user mode" and vice versa costs time..ie 40us round trip.

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

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

发布评论

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

评论(1

凝望流年 2024-12-13 15:37:10

我认为你可以做到这一点,你应该调用 SetKMode 函数将你的线程置于内核模式或内核模式。 CE 团队的这两篇博客文章中有更多详细信息: 什么是内核模式?Windows CE API 调用内部。

I think you can do that, you should call SetKMode function to put your thread out or in of kernel mode. More details in these two blog posts from CE team: What is Kernel Mode? and Inside Windows CE API Calls.

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