基于LabVIEW的汽车线束检测系统的设计与实现
摘要
汽车检测线国内外目前的线束检测系统也有了一些应用,但要么功能单一,过于简单,要么价格昂贵,无法广泛应用。因此开发高性能的汽车线束检测系统对我国汽车行业有着重大的意义,可以提高汽车安全性的同时带来更好的经济效益。
本文首先阐述当前国内外线束检测系统的现状和特点,在此基础上提出了一种基于LabVIEW的汽车线束检测系统整体架构。该方案采用计算机作为上位机系统,使用LabVIEW进行上位机软件设计,利用数据库技术对海量数据进行处理,使用虚拟仪器技术进行数据采集,使用功能强大的A VR ATMega64单片机作为下位机硬件核心,利用PCI总线实现上下位机的通信。
随后本文对课题研究的内容进行了详细的说明。首先介绍了系统设计中涉及到的理论基础,包括虚拟仪器,数据采集等;接着介绍了系统总体架构,对主要组成进行了阐述,同时也分析了硬件和软件总体设计。
接下来本文介绍了系统的硬件电路设计,主要介绍了数据采集卡上的总线通信电路、存储电路、单片机及其外围电路、缓冲驱动电路、数模转换及比较电路和导通检测卡上的检测电路、附加电路。
之后本文详细介绍了系统的上位机软件设计。首先进行了软件的需求分析,然后对系统主界面、选择线束、编辑模块库、编辑测试台、
编辑线束、功能设置等软件主要界面进行介绍,主要介绍了各界面的功能,对某些重点功能的实现也进行了详细讲解;对于测试等功能进行了说明,给出了程序设计的具体流程;同时也介绍了LabVIEW软件程序生成可执行文件和安装文件的具体步骤。
本线束检测系统功能强大,最多能够支持到8192个线束点,能够完成线束的断路、短路、误配、二极管检测和气密测试;附加的模块库导入导出,自学习导入和Excel导入等功能,减小了用户的工作量;采用数据库技术对数据进行存储,也方便了用户的查和对数据的移植。
关键词:线束检测,虚拟仪器,数据采集,LabVIEW
REASEARCH AND REALIZE OF WIRING HARNESS DETECTION SYSTEM BASED ON LabVIEW
ABSTRACT
At present, wiring harness detection system provided by domestic and foreign companies has got applied, but there still exist some faults in these systems, either too simple in function or too expensive to widely use. Therefore the development of high-performance automobile wiring harness detection sy
stem has a major significance on China’s automotive industry, it can improve automobile safety while at the same time bring better economic benefits.
At the beginning of this thesis, the situation and characteristics of domestic and foreign wiring harness detection system is presented. According to this, a new structure based on LabVIEW is proposed. In this project, computer is used as the host system, LabVIEW is used for PC software design, database technology is used for mass data processing, virtual instrument technology is used for data acquisition, A VR ATmega64 is used as card’s hardware core, PCI bus is used for communication.
In the rest of this thesis, the implementation detail of wiring harness detection system is presented. The theoretical foundation of system design is given firstly, including virtual instrument, data acquisition, etc.
Then, the overall system architecture is introduced and the main modules are described, as well as an analysis of hardware and software design.
Next, the thesis describes the hardware design, mainly introduces bus communication circuit, memory circuit, single-chip circuit, drive circuit, digital-analog conversion and compare circuit on the data acquisition card and detection circuit, additional circuit on the detection card.
Then, the thesis introduces the PC software design. Software needs analysis is introduced at first in this chapter. The details of software is clarified to the following parts: main interface of system, harness selecting, module library editing, test bed editing, wiring harness editing and system setting. Main point is the function of these interfaces and the realization of some key features. For detecting and some other functions, the specific program design process is given. At the end of software design, the thesis introduces how to generate executable file and installation file.
This wiring harness detection system can support 8192 points, it can detect open circuit, short circuit, mispairing, diode and gas tight. Its additional function reduces the workload of users and makes this system useful.
KEY WORDS:Wire harness test, Virtual Instrument, Data Acquisition, LabVIEW
上海交通大学
学位论文原创性声明
本人郑重声明:所呈交的学位论文,是本人在导师的指导下,独立进行研究工作所取得的成果。除文中已经注明引用的内容外,本论文不包含任何其他个人或集体已经发表或撰写过的作品成果。对本文的研
究做出重要贡献的个人和集体,均已在文中以明确方式标明。本人完全意识到本声明的法律结果由本人承担。
学位论文作者签名:熊昊
日期:2009年2月2日