基于数据采集卡的计算机网络直流电机转速PID控制系统--主控端

 2022-10-18 10:10

论文总字数:20950字

摘 要

计算机控制技术的发展日新月异,随着21世纪的到来,人们更深切的感受到了计算机在生活和科研等各个领域所发挥的越来越重要的作用。本课题是面向硬件中心原有的小型直流电机控制系统这一对象,在Microsoft公司的Visual C 编程开发环境上,设计开发出基于计算机网络技术的远程控制的应用程序。利用数据采集卡在实验室中对解耦控制的研究,首先需要了解电机转速的特性,然后运用 MFC 设计上位机程序,通过使用 PCI-1711 数据采集卡,对直流电机转速进行控制,完成电机转速与计算机之间的数据交换,使用有效的PID算法实现对对象的理想控制。

关键词:计算机控制;MFC;数据采集卡;直流电机;PID算法

Computer Network DC Motor Speed PID Control System Based on Data Acquisition Card—Master

Abstract

The development of computer control technology is changing with each passing day. With the advent of the 21st century, people have more deeply felt the increasingly important role played by computers in various fields such as life and scientific research. This topic is aimed at the original small DC motor control system of the hardware center. In Microsoft Visual C programming development environment, the remote control application based on computer network technology is designed and developed. Using the data acquisition card to study the decoupling control in the laboratory, we first need to understand the characteristics of the motor speed, then use the MFC to design the host computer program, and use the PCI-1711 data acquisition card to control the DC motor speed to complete the motor speed. Data exchange with the computer, using an effective PID algorithm to achieve the ideal control of the object.

Keywords: Computer control; MFC; data acquisition card; DC motor; PID algorithm

目 录

摘 要················································································I

Abstract ···············································································II

第一章 引 言 ·········································································1

1.1 课题背景 ·······································································1

1.2 远程控制详细介绍································································1

1.3 关于远程控制软件································································1

第二章 编程环境简介····································································3

2.1 C 的介绍·······································································3

2.2 微软基础类库MFC·································································3

2.2.1 编程框架MFC·································································3

2.2.2 封装········································································3

2.2.3 继承········································································4

2.2.4 虚拟函数和动态约束··························································4

2.2.5 MFC的宏观框架体系···························································5

第三章 网络控制设计····································································7

3.1 关于Socket的介绍·······························································7

3.2 使用带存档的套接字······························································7

3.3 套接字的使用····································································8

3.4 阻塞的介绍······································································9

第四章 系统设计·······································································10

4.1 设计任务及要求·································································10

4.2 程序整体结构简述·······························································10

第五章 编程设计实现及说明····························································13

5.1 网络部分········································································13

5.1.1 服务器······································································13

5.1.2 远程控制流程·································································14

5.1.3 客户机······································································15

5.1.4 上、下位机的控制流程·························································16

5.2 PID控制部分·····································································16

5.3 AD卡控制······································································· 17

5.4虚拟示波器类····································································17

  1. 总 结········································································20

致 谢··············································································21

参考文献(References)··································································22

第一章 引 言

剩余内容已隐藏,请支付后下载全文,论文总字数:20950字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;