地磅数据输出格式 [英] Weighbridge data output format

查看:111
本文介绍了地磅数据输出格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用vb.net 2008为客户端开发一个地磅软件。由于我没有要测试的地磅设备,因此我不知道该地磅设备发送到COM端口的输出数据格式。因此,请告诉我如何解决该问题并从COM端口获取重量值。

I'm developing a weighbridge software for my client using vb.net 2008. As I don't have a weighbridge device to test, I don't know the output data format which is sent to COM port by the weighbridge device. So please tell me how can I resolve the problem and get the weight value from the COM port.

推荐答案

您需要两个应用,幸运的是,两者都可以作为免费软件找到:

You need two apps, fortunatelly both can be found as a freeware:

  • COM Port data emulator http://www.aggsoft.com/com-port-emulator.htm
  • Virtual Serial Ports Emulator http://www.eterlogic.com/Products.VSPE.html

首先运行虚拟串行端口仿真器并创建连接器类型的设备,例如在COM10上。这样一来,一个应用程序就可以将数据发送到虚拟串行端口,然后由第二个应用程序打开并使用它。

First run Virtual Serial Ports Emulator and create Connector type device, e.g. on COM10. This enables one app send data to virtual serial port which can be then opened and consumed by the second app.

然后运行 COM端口数据仿真器和先前创建的虚拟串行端口的设置,例如COM10。设置所需的COM端口参数,并指定应将哪些数据以及如何发送到虚拟串行端口连接器。

Then run COM Port data emulator and setup for virtual serial port created previously, e.g. COM10. Setup desired COM port parameters and specify what data and how should be sent to the virtual serial port connector.

然后只需将您的应用程序连接到COM10即可。

Then just connect your app to COM10 and you are done.

如果您正在寻找更多灵感,请查看我的开源项目 NetWiCo

If you are looking for some further inspiration, check my open source project NetWiCo.

这篇关于地磅数据输出格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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