文件名称:tuoliduosouce
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual C] [Basic/ASP] [源码]
- 上传时间:
- 2014-04-25
- 文件大小:
- 2.21mb
- 下载次数:
- 0次
- 提 供 者:
- bpu****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
地磅测试程序,将字符串发送到指定COM口,基于VB写的地磅仪表数据读取工具源码,包括调用了一个仪表通信采集工具、上海耀华、托利多等大众仪表,有一定的参考价值。
设置Com1为通信端口,设置通信端口参数 9600赫兹、偶校验、7个数据位、1个停止位.(这里需要进一步说明的是tting="BBBB,P,D,S,含义是:B:Baud Rate(波特率);P:Parity(奇偶);D:Data Bit;S:Stop Bit)。
.InBufferSize = 40 设置缓冲区接收数据为40字节
.InputLen = 1 设置Input一次从接收缓冲读取字节数为1
.RThreshold = 1 设置接收一个字节就产生OnComm事件。
Timer可以计算从子夜到现在所经过的秒数,在Microsoft Windows中,Timer函数可以返回一秒的小数部分。-Weighbridge test program, the string will be sent to the specified COM port, source-based reading tool written in VB weighbridge instrumentation data, including calling an instrument of communication collection tools, Shanghai Yaohua, Toledo and other public instruments, there is a certain reference value.
Set Com1 communications port, set the communications port parameters 9600 Hz, even parity, 7 data bits, 1 stop bit (It should be further noted that tting = "BBBB, P, D, S, meaning:. B: baud Rate (baud rate) P: Parity (parity) D: Data Bit S: Stop Bit).
. InBufferSize = 40 is set to receive data buffer is 40 bytes
. InputLen = number Set Input once read from the receive buffer byte 1 of 1
. RThreshold = 1 is set to receive a byte generated OnComm event.
Timer can be calculated from midnight to now the number of seconds elapsed, in Microsoft Windows, Timer function can return a decimal fraction of a second.
设置Com1为通信端口,设置通信端口参数 9600赫兹、偶校验、7个数据位、1个停止位.(这里需要进一步说明的是tting="BBBB,P,D,S,含义是:B:Baud Rate(波特率);P:Parity(奇偶);D:Data Bit;S:Stop Bit)。
.InBufferSize = 40 设置缓冲区接收数据为40字节
.InputLen = 1 设置Input一次从接收缓冲读取字节数为1
.RThreshold = 1 设置接收一个字节就产生OnComm事件。
Timer可以计算从子夜到现在所经过的秒数,在Microsoft Windows中,Timer函数可以返回一秒的小数部分。-Weighbridge test program, the string will be sent to the specified COM port, source-based reading tool written in VB weighbridge instrumentation data, including calling an instrument of communication collection tools, Shanghai Yaohua, Toledo and other public instruments, there is a certain reference value.
Set Com1 communications port, set the communications port parameters 9600 Hz, even parity, 7 data bits, 1 stop bit (It should be further noted that tting = "BBBB, P, D, S, meaning:. B: baud Rate (baud rate) P: Parity (parity) D: Data Bit S: Stop Bit).
. InBufferSize = 40 is set to receive data buffer is 40 bytes
. InputLen = number Set Input once read from the receive buffer byte 1 of 1
. RThreshold = 1 is set to receive a byte generated OnComm event.
Timer can be calculated from midnight to now the number of seconds elapsed, in Microsoft Windows, Timer function can return a decimal fraction of a second.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
地磅测试\AllPurPose\AllPurPose\AllPurpose.exe
........\..........\..........\AllPurpose.ini
........\..........\..........\Boastest.dll
........\..........\..........\C++builder.exe
........\..........\..........\COM.inf
........\..........\..........\COM.sys
........\..........\..........\DriverSetup.exe
........\..........\..........\readme.txt
........\..........\..........\ReceiveShare.dll
........\..........\..........\VB6.exe
........\..........\..........\...调用源码\AllPurpose.exe
........\..........\..........\...........\AllPurpose.ini
........\..........\..........\...........\Boastest.dll
........\..........\..........\...........\COM.inf
........\..........\..........\...........\COM.sys
........\..........\..........\...........\DriverSetup.exe
........\..........\..........\...........\Form1.frm
........\..........\..........\...........\MSSCCPRJ.SCC
........\..........\..........\...........\readme.txt
........\..........\..........\...........\ReceiveShare.dll
........\..........\..........\...........\VBReadShare.vbp
........\..........\..........\...........\VBReadShare.vbw
........\..........\..........\...........\VBReadShareDll.exe
........\BE01\BE01仪表通讯.frm
........\....\BE01仪表通讯.vbp
........\....\BE01仪表通讯.vbw
........\....\MSSCCPRJ.SCC
........\....\新建 Microsoft Word 文档.doc
........\托利多地磅\bas地磅.bas
........\..........\Form1.frm
........\..........\Form1.frx
........\..........\MSSCCPRJ.SCC
........\..........\托利多地磅.exe
........\..........\托利多地磅.vbp
........\..........\托利多地磅.vbw
........\AllPurPose\AllPurPose\VB6调用源码
........\..........\AllPurPose
........\AllPurPose
........\BE01
........\托利多地磅
地磅测试