如何使用c#读取地磅的重量数据? [英] How to read weight data from weighbridge using c#?

查看:910
本文介绍了如何使用c#读取地磅的重量数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在我正在研究地磅软件,但问题是

我得到xxxxxx这样的时候没有得到准确的数据但是在com端口我得到这样的数据。+ 00006001D。它在终端很好,任何人都可以告诉我它是什么意思。+ 0000(60)01D 60实际上是重量但其他数字显示了什么??

我在c#应用程序中的一段时间我收到了截断形式的数据为什么我以这种形式获取数据?

now days i am working on weighbridge software but problem are
i am not getting accurate data some time i get xxxxxx like this but in com port terminal i am getting data like this .+00006001D. it is good in terminal any body can tell me what it mean .+0000(60)01D 60 is actually weight but other digits what shows??
some time in c# application which i have made i receive data in truncated form why i getting data in this form?

推荐答案

您应仔细阅读文档(如果有)以了解协议详细信息。

另一方面,如果文档不可用,那么你必须对协议本身进行一些猜测。例如,您可以使用不同的输入并比较输出(也包括预期值)。
You should read carefully the documentation (if available) in order to understand the protocol details.
On the other hand, if the documentation is not available then you have to perform some guesswork on the protocol itself. You might for instance use different inputs and compare outputs (also with expected values).


这篇关于如何使用c#读取地磅的重量数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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