- 1、本文档共62页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于VC的串口数据采集系统设计_精品
题 目:基于VC++的串口数据采集系统设计
基于VC++的串口数据采集系统设计
摘 要
,,
关键词:The serial data acquisition system based on the VC++
Abstract
With the development of modern information technology, as well as the extensive use of computer networks, the computer communication technology have become more mature, but serial communication as a convenient and reliable means of communication, is still an effective means of communication, and is widely used in industrial control.
This article with the vibration signals of mold collected as the background, in the Windows platform ,using the serial communication control of MSCOMM provided by the VC + + 6.0,with baud rate, data bits, stop bits, parity bit, such as serial port parameters to set to complete the serial port to receive and send data. Through the RS-232C serial interface to external equipment to receive real-time transmission of mold vibration signal data, the vibration signals collected for analysis and research, and real-time rendering mold vibration curve, tuning the use of PID algorithm parameter, using MODBUS serial communication protocol to control the mold vibration, to complete the mold of the real-time monitoring of vibration.
Key words: VC++;Serial Communication;MSCOMM;PID Algorithm
目 录摘 要 I
Abstract II
第一章 绪论 1
1.1 研究背景 1
1.2 研究现状 2
1.3 研究意义 2
第二章 数据采集系统总体方案设计 4
2.1系统的设计要求 4
2.2系统的功能实现 4
第三章 系统软件设计 5
3.1 开发软件选择 5
3.2 串行通信系统 6
3.2.1 串行通信概念 6
3.2.2 串行通信的种类 7
3.2.3 串行通信的传输方向 9
3.2.4 串行通信接口 9
3.3 MSComm串行通讯设计 11
3.3.1添加MSComm控件 11
3.3.2在SDI中使用MSComm控件 12
3.3.3串口的初始化及打开串口 13
3.3.4 MSComm接收数据处理 15
3.4 通信协议设计 17
3.4.1 Modbus协议 17
3.4.2 Modbus协议的两种传输方式 18
3.4.3两种协议的检验方式 20
3.4.4 ModBus的功能码 23
3.5数据图形显示 25
3.5.1坐标轴的绘制 25
3.5.2定时器的设置 26
第四章 人机交互界面设计 28
4.1 登陆界面设计 28
4.1.1创建登陆界面 28
4.1.2界面字体设计 29
4.1.3界面背景色设计 30
4.1.4用户权限设置 31
4.2 控制界面设计 32
4.2.1 PID控制系统 32
4.2.2 PID控制原理和特点 34
4.2.3 PID参数整定方法 35
4.2.4 PID算法的实现 36
设计总结 38
参考文献 39
附录 源程序 40
致谢 54
绪论
研究背景
随着计算机系统的应用和微机网络的发展,通信功能越来越显得重要。计算机与外界的信息交换称为通信。因此,通信既包括计算机与计算机之间,也包括计算机和外部设备之间、计算
文档评论(0)