论文部分内容阅读
针对汽车发动机ECU与计算机通信方法研究,为了实现KWP2000协议的串行通信,采用通过串口/K线转换器将计算机串口与K线连接,在分析研究KWP2000通信协议的基础上,通过LabVIEW图形化编程界面,按照串口通信实现的基本流程,运用LabVIEW中串口VISA组件,包括串口初始化、写入串口、读取串口和关闭串口等函数,进行了初始化程序子模块、读写程序子模块和整合母模块的设计缩短了程序开发周期,提高了编程效率,并使程序框图界面达到简洁、美观的效果,实现了基于LabVIEW的KWP2000通信系统开发。
Aiming at the research of vehicle engine ECU and computer communication method, in order to realize the serial communication of KWP2000 protocol, the serial port and K line converter are used to connect computer serial port and K line. Based on the analysis of KWP2000 communication protocol, Interface, in accordance with the serial communication to achieve the basic process, the use of LabVIEW VISA components in the serial port, including the serial port initialization, write serial port, read the serial port and close the serial port functions such as initialization subroutine module, read and write subroutine module and the mother module The design shortens the program development cycle, improves the programming efficiency, and achieves the succinct and esthetic effect of the block diagram interface, and realizes the development of the KWP2000 communication system based on LabVIEW.