当今世界上汽车工业的一个重要发展方向就是纯电动汽车,这种汽车可以很好地缓解能源短缺和环境污染的问题。只靠电力驱动的汽车的全车对能量使用的管理和给汽车提供动力的整个系统的控制功能由整车控制器(VCU)承担,VCU是开发和研制电动车整车的重要组成部分,而近几年动力系统的数据实时显示的研究变得非常重要。本文通过软件内置界面开发工具GUI工具和内置的串口通信API设计开发一个可视化的串口通信例程,达到对电机转矩和转速数据的接收采集的目的。通过对MATLAB GUI控件的选用和布置,对控件回调函数的编写,设计出方便用户使用以及实现所需功能的人机交互界面。达到充分发挥Matlab软件的强大的数据处理功能,使数据可以实时处理并且图形化显示处理的结果。87392
毕业论文关键词:整车控制器;数据采集;串口通信;图形显示;
Abstract In the world, Blade Electric Vehicles is one of the important development direction in automobile industry now。 This kind of the car can relieve the problem about energy shortage and environmental pollution commendably。 VCU is responsible for energy management and control function of the power system。 VCU is an important part for research and development of a electric vehicle。 And the research about data real-time display of power system is particularly important, in recent years。 we use the software MATLAB which has the powerful features in theoretical analysis and engineering data processing and drawing in this paper。 After the versions of the software Matlab6。0, added equipment kit (instrument control toolbox) who support for serial port communication of communication standard。 Serial class and callback function in the toolbox make it possible for real-time serial communication。 A visual serial communication will be developed using GUI tools which is built-in software interface development tools and built-in API , who will realize the receiving and acquisition of the data for the motor torque and rotational speed 。 Designing man-machine interface which is user-friendly and can achieve the desired function by the selection and arrangement of the MATLAB GUI controlling widget 。 In the end , the data can be processed in real time and graphical display by giving full play to the powerful data processing function of the Matlab software 。
Key words: vehicle controller; Data acquisition; Serial port communication; Matlab GUI; Graphical display
目录
第1章 绪论 1来-自+优=尔;论.文:网www.youerw.com +QQ7520.18766
1。 1 选题的目的和意义 1
1。2 国内外的发展 2
1。3 本课题主要研究内容 3
第2章 电机的转矩和转速信息的传递 4
2。1 纯电动汽车整车控制器 4
2。2 CAN总线上的通信 4
2。3 串口通讯和软件开发平台 5
2。3。1 串口通信 6
2。3。2 图形用户界面GUI 7
2。4 界面的设计原则和功能需求分析 7
2。4。1 通信界面设计原则 8
2。4。2 人机交互界面的需求分析 8
第3章 MATLAB串口通讯的实现