-
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
-
Asntpclieentg
基于SNTP协议的时间同步客户端的c代码。其中计算传输时间偏移和同步步误差都在客户端实现。可顺利移植到DSP上,用于网络时间同步需要的系统。
(SNTP protocol, time synchronization client c code. Calculated transmission time offset with step-by-step error in the client. Can be successfully transplanted to the DSP, the need for network time synchronization system.)
- 2012-10-07 00:35:24下载
- 积分:1
-
sdts2dem
SDTS to DEM optional (native) format converter(to SDTS DEM optional (native) format conve rter)
- 2006-12-20 12:56:18下载
- 积分:1
-
HGE_OBJECT
说明: 本例子介绍了HGE粒子,动画,GUI界面控件,字体,是一个良好的游戏框架(This example describes HGE particles, animation, GUI interface controls, fonts, is a good game framework)
- 2010-04-13 17:47:50下载
- 积分:1
-
Resource
一个包含客户端、服务器的Corba实例,基于ACE和TAO(A CORBA Example Consisted of client and server)
- 2010-12-10 15:07:14下载
- 积分:1
-
gaojikuhudanfuwuqi
不错的客户端连接程序,希望大家喜欢,里面是一个客户端的程序,一会会提供服务端的程序(good client procedures in the hope that everyone likes, there is a client process, will provide a service side of the process)
- 2005-05-03 15:12:49下载
- 积分:1
-
3DGame
说明: 一个初学D3D的Demo,有望高手给点意见(D3D a beginner)
- 2008-11-03 11:36:28下载
- 积分:1
-
qtstudydoc
QT学习教程,很好用的
差不多所有的程序教材都从Hello 开始,下面就是这个程序的qt版本(good QT course
1#include <QApplication>
2#include <QLabel>
3 int main(int argc, char*argv[])
4 {
5 QApplication app(argc, argv)
6 QLabel*label = new QLabel("Hello Qt!")
7 label->show()
8 return app.exec()
9 }
)
- 2012-03-10 14:46:07下载
- 积分:1
-
yuejnj
c# 宝典源代码 详细注释 程序员必备 10 牛人写的专业代码,窗体设计、控件... 单像空间后方交会,是摄影测量学中,一种基础算法。本压缩包,用的是
- 2010-10-24 11:27:53下载
- 积分:1
-
qidongshiyan
非线性气动系统实验的源代码,使用滑膜控制的方法(Pneumatic system test source code)
- 2010-05-10 17:08:30下载
- 积分:1