如何在vb.net或c#中读取称重机的刻度值? [英] how to read weighing machine scale value in vb.net or c#?

查看:89
本文介绍了如何在vb.net或c#中读取称重机的刻度值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,



我想在我的应用程序中读取来自称重机的值,其中一些告诉我从com端口接收的值(连接到称重) )机器在字节代码中。请告诉我如何读取该值或它们将存在哪种类型的值的解决方案。



问候,

Shivaji Mali

Hello friends,

I want to read values coming from weighing machine in my application where some of told me that the values received from com port (connected to weighing) machine is in the byte code.Please tell me the solution how to read that value or which type of value their will exist.

Regards,
Shivaji Mali

推荐答案

使用 C#中的串口很简单,例如,参见< a href =http://codesamplez.com/programming/serial-port-communication-c-sharp>如何使用C#串口通信 [ ^ ]。

但是你需要知道什么样的数据来自体重秤,即如何解释收到的字节(即你必须阅读体重秤文件)。
Using the serial port in C# is straightforward, see, for instance, "How To Work With C# Serial Port Communication"[^].
However you need to know what kind of data are coming from the weight scale, that is how to interpret the bytes received (i.e. you have to read the weight scale documentation).


无法回答!



这些机器的每个制造商都使用不同的通信协议,并以不同的格式提供重量。

您必须阅读机器的文档。 />


对于串口通信,您可以按照解决方案1或Google的链接获取示例或tutos。
Impossible to answer !

Every single manufacturer of theses machines use different communication protocol and deliver the weight in different format.
You have to read the documentation of the machine.

And for serial port communication, you can follow the link of Solution 1 or Google for examples or tutos.


这篇关于如何在vb.net或c#中读取称重机的刻度值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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