题 目:基于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
绪论
研究背景
随着计算机系统的应用和微机网络的发展,通信功能越来越显得重要。计算机与外界的信息交换称为通信。因此,通信既包括计算机与计算机之间,也包括计算机和
您可能关注的文档
最近下载
- LTC流程培训课件.pptx VIP
- 2026年郑州工业安全职业学院单招职业适应性测试题库及答案1套.docx VIP
- 【小升初】2023-2024学年江苏省南通市苏教版升学分班考数学模拟测试题2套(含解析).pdf VIP
- 安徽省考试录用公务员公安类真题及参考答案.doc VIP
- 人教版(2024)八年级上册英语全册各单元阅读理解练习题汇编(含答案).docx
- 36岁儿童学习与发展指南解读.doc VIP
- 2026年郑州工业安全职业学院单招职业技能考试题库及答案详解1套.docx VIP
- 《国家标准》羊肉分割技术规范.doc VIP
- EPSS怡达快速电梯TRE110电气原理图纸(2014版).pdf
- 2026年郑州工业安全职业学院单招职业技能测试题库及答案1套.docx VIP
原创力文档

文档评论(0)