为了解决嵌入式Win CE平台上虚拟仪器软件开发的技术瓶颈问题——由于个人电脑和高级精简指令集计算机机器(advanced RISC machines,ARM)平台差异性,嵌入式平台下的虚拟仪器开发存在着控制器局域网络(controller area network,CAN)总线高速通讯、跨平台链接库调用等技术难题,该文在ARM11平台和Win CE操作系统环境下,对CAN总线通讯和虚拟仪器触摸板模块(Lab VIEW touch panel module)进行了技术开发方法研究,介绍了嵌入式平台下CAN总线通讯机理及实现方法,开发了底层驱动和动态链接库,实现了嵌入式Win CE平台下CAN数据无缝链接交换关键技术。在此基础上,以中国农业机械化科学研究院研制的六行打包式棉花收获机为应用对象,开发了基于CAN总线的嵌入式虚拟仪器智能监控系统,并在新疆阿克苏地区阿拉尔垦区建设兵团农一师棉田进行了实地测试和功能验证,试验结果表明该虚拟仪器系统能够有效地实现多个CAN节点间的数据通信,可以完成对棉花收获机的工作状态在线监控和故障报警。该文为虚拟仪器技术在嵌入式平台上的应用提供了有效解决方法,对于大型智能机械装备自动化和信息化监控仪器开发具有指导和借鉴意义。
In order to solve the key problems generated in the development procedure of virtual instrument, this paper used controller area network(CAN) bus and LabV IEW touch panel module to develop virtual instrument based on ARM11 and WinC E. Because of the difference between PC and ARM platform, there are big problems in high-speed CAN data transmission and cross-platform call of dynamic link library(DLL). This paper mainly studied CAN bus communication mechanism and its implementation method, and developed the driver program and DLL in embedded Win CE system. And this paper made it possible to use Lab VIEW virtual instrument technology in embedded Win CE platform based on CAN bus communication. Lab VEIW graphical design environment not only accelerated the development process but also made it easy to make use of the real-time embedded operating system. There are hundreds of advanced signal analysis modules of Lab VIEW, mathematical processing modules and rich human-machine interaction modules in Lab VIEW touch panel module which insures the fast and friendly interface design and the powerful signal processing and computing process. This paper thoroughly introduced the implementation method of virtual instrument technology in embedded WinC E system and explained the call flow of cross-platform dynamic link library. To achieve the communication between embedded virtual instrument and CAN bus, this paper firstly developed the bottom driver program and the DLL suitable for Win32 platform and the DLL suitable for embedded platform. And then through the shared library block in LabV IEW, this paper achieved the advanced application of the DLL. At last, this paper finished the virtual instrument development based on the touch panel module in Lab VIEW. The interface was well designed which looked very simple but practical. This paper has mastered the key technology of seamless link of CAN data. It took the six-row auto-pack cotton-picking machine as the object to develop an intelligent monitoring and controlling system