-
tuoliduosouce
地磅测试程序,将字符串发送到指定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.)
- 2014-04-25 15:41:13下载
- 积分:1
-
GetSerial
一个通过硬件信息生成序列号的源码示例,适合制作根据硬盘特征码生成序列号(Information generated through the hardware serial number of the source code examples for the production of signature generation based on the hard disk serial number)
- 2009-07-02 12:19:18下载
- 积分:1
-
VC.programming.random.sample.code.oscilloscope
VC编程随机数示波器实例代码VC programming random sample code oscilloscope
(VC programming random sample code oscilloscope
)
- 2010-11-06 10:53:28下载
- 积分:1
-
CPUHDmeter
纯VB代码实现的CPU仪表盘,很好的参考资料。(Pure VB code of the CPU dashboard, a good reference.)
- 2013-08-06 08:44:10下载
- 积分:1
-
chap1
Visual Basic 学习的例子 Visual Basic 学习的例子(Examples of learning Visual Basic)
- 2014-01-04 16:21:20下载
- 积分:1
-
DALI_2013_liujin
DALI的各种例程,软硬件都有,欢迎各位下载使用(DALI routine hardware and software are welcome to download)
- 2013-02-28 15:00:07下载
- 积分:1
-
CINBOJ
vb net报表设计器 Vb Net report designer()
- 2018-05-08 13:14:34下载
- 积分:1
-
arithmetic
本书包括200多种数值算法的Vb 程序,及详细解析(This book includes 200 kinds of numerical algorithms Vb procedures, and detailed analysis)
- 2011-02-10 15:02:35下载
- 积分:1
-
VB6diqu
说明: 今天给大家带来使用文本文件作为数据源的 ComboBox中国城市三级联动的代码。
1.地区库更新非常方便,不会影响到其他功能(区划代码是唯一的)。
2.文本文件读取来速度很快。(n the past, I used VB6 to write an example of three-level linkage of ComboBox in Chinese cities, using MDB database. A few years ago, the code, the regional database is not the latest. Today we bring you the code of ComboBox, which uses text files as data sources, for three-level linkage of Chinese cities.
1. The regionalization library updates are very convenient and will not affect other functions (regionalization code is the only one).
2. Text files are read very fast.)
- 2019-06-05 09:34:04下载
- 积分:1
-
Instant-messaging-system
即时通信系统(Java实现源代码),测试可行。(Instant messaging system (Java source code), the test is feasible.)
- 2014-02-15 21:30:43下载
- 积分:1