Windows中使用RS 422串行通信的100 Hz数据. [英] 100 Hz data in Windows using RS 422 serial communication.

查看:108
本文介绍了Windows中使用RS 422串行通信的100 Hz数据.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用RS 422串行通信卡在Windows操作系统中发送100 Hz消息(每10毫秒发送一次消息,包含100字节的数据)吗?

我正在使用RS 422串行通信卡在Windows操作系统中发送100 Hz的100 Hz数据.我正在使用Windows计时器每10毫秒发送一次.但是数据在每个周期中都会丢失.我每个周期都会错过5到10个字节.有人可以在Windows中为这个问题提供任何解决方案吗?

Can I send a 100 Hz message (one message sent every 10 millisecond with 100 bytes of data) in WIndows Operating System using an RS 422 serial communication card without loss of even a single byte ?

I am sending a 100 Hz data with 100 bytes in Windows Operating System using a RS 422 serial communication card. I am using windows timer for sending it every 10 milliseconds. But data is lost in every cycle. I miss 5 to 10 bytes every cycle. Can anybody provide any solution in Windows for this problem ?

推荐答案

您可以查看我的回复
You might check my reply here[^].


首先,Windows不是实时操作系统,因此您永远不会拥有确切的操作系统两个数据包之间的延迟时间为10毫秒(会有所增加).
其次,可以发送的数据量很大程度上取决于您在串行端口上设置的波特率.
First, Windows is not a real time operating system, so you will never have an exact delay of 10 msec between two packets (it will be a little bit more).
Second, the amount of data you can send depends a lot on the baudrate you set on your serial port.


不,您不能(作为用户空间开发人员,您不能).
:)
No, you can''t (as user space developer you can''t).
:)


这篇关于Windows中使用RS 422串行通信的100 Hz数据.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆