农业工程学报
農業工程學報
농업공정학보
2014年
23期
35-42
,共8页
苗中华%陆鸣超%胡晓东%邹兆光
苗中華%陸鳴超%鬍曉東%鄒兆光
묘중화%륙명초%호효동%추조광
软件设计%监测%嵌入式系统%嵌入式WinCE%局域网络通讯%虚拟仪器%智能监控系统%采棉机
軟件設計%鑑測%嵌入式繫統%嵌入式WinCE%跼域網絡通訊%虛擬儀器%智能鑑控繫統%採棉機
연건설계%감측%감입식계통%감입식WinCE%국역망락통신%허의의기%지능감공계통%채면궤
software design%monitoring%embedded systems%embedded WinCE%controller area network bus%LabVIEW%intelligent monitoring system%cotton picker machine
为了解决嵌入式WinCE平台上虚拟仪器软件开发的技术瓶颈问题——由于个人电脑和高级精简指令集计算机机器(advanced RISC machines,ARM)平台差异性,嵌入式平台下的虚拟仪器开发存在着控制器局域网络(controller area network,CAN)总线高速通讯、跨平台链接库调用等技术难题,该文在ARM11平台和WinCE操作系统环境下,对CAN总线通讯和虚拟仪器触摸板模块(LabVIEW touch panel module)进行了技术开发方法研究,介绍了嵌入式平台下CAN总线通讯机理及实现方法,开发了底层驱动和动态链接库,实现了嵌入式WinCE平台下 CAN 数据无缝链接交换关键技术。在此基础上,以中国农业机械化科学研究院研制的六行打包式棉花收获机为应用对象,开发了基于 CAN 总线的嵌入式虚拟仪器智能监控系统,并在新疆阿克苏地区阿拉尔垦区建设兵团农一师棉田进行了实地测试和功能验证,试验结果表明该虚拟仪器系统能够有效地实现多个 CAN 节点间的数据通信,可以完成对棉花收获机的工作状态在线监控和故障报警。该文为虚拟仪器技术在嵌入式平台上的应用提供了有效解决方法,对于大型智能机械装备自动化和信息化监控仪器开发具有指导和借鉴意义。
為瞭解決嵌入式WinCE平檯上虛擬儀器軟件開髮的技術瓶頸問題——由于箇人電腦和高級精簡指令集計算機機器(advanced RISC machines,ARM)平檯差異性,嵌入式平檯下的虛擬儀器開髮存在著控製器跼域網絡(controller area network,CAN)總線高速通訊、跨平檯鏈接庫調用等技術難題,該文在ARM11平檯和WinCE操作繫統環境下,對CAN總線通訊和虛擬儀器觸摸闆模塊(LabVIEW touch panel module)進行瞭技術開髮方法研究,介紹瞭嵌入式平檯下CAN總線通訊機理及實現方法,開髮瞭底層驅動和動態鏈接庫,實現瞭嵌入式WinCE平檯下 CAN 數據無縫鏈接交換關鍵技術。在此基礎上,以中國農業機械化科學研究院研製的六行打包式棉花收穫機為應用對象,開髮瞭基于 CAN 總線的嵌入式虛擬儀器智能鑑控繫統,併在新疆阿剋囌地區阿拉爾墾區建設兵糰農一師棉田進行瞭實地測試和功能驗證,試驗結果錶明該虛擬儀器繫統能夠有效地實現多箇 CAN 節點間的數據通信,可以完成對棉花收穫機的工作狀態在線鑑控和故障報警。該文為虛擬儀器技術在嵌入式平檯上的應用提供瞭有效解決方法,對于大型智能機械裝備自動化和信息化鑑控儀器開髮具有指導和藉鑒意義。
위료해결감입식WinCE평태상허의의기연건개발적기술병경문제——유우개인전뇌화고급정간지령집계산궤궤기(advanced RISC machines,ARM)평태차이성,감입식평태하적허의의기개발존재착공제기국역망락(controller area network,CAN)총선고속통신、과평태련접고조용등기술난제,해문재ARM11평태화WinCE조작계통배경하,대CAN총선통신화허의의기촉모판모괴(LabVIEW touch panel module)진행료기술개발방법연구,개소료감입식평태하CAN총선통신궤리급실현방법,개발료저층구동화동태련접고,실현료감입식WinCE평태하 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 LabVIEW touch panel module to develop virtual instrument based on ARM11 and WinCE. 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 WinCE system. And this paper made it possible to use LabVIEW virtual instrument technology in embedded WinCE platform based on CAN bus communication. LabVEIW 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 LabVIEW, mathematical processing modules and rich human-machine interaction modules in LabVIEW 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 WinCE 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 LabVIEW, 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 LabVIEW. 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 based on CAN bus and embedded WinCE system. The field test was done in NongYiShi crop construction area of Alar, Aksu, Xinjiang The system achieved online monitoring and error alarming to the work state of cotton harvester. Apart from that, three functional verifications were also done. 1) Central controller can transmit collected data from data acquisition module and state monitoring module to the virtual instrument. 2) Through the touchable embedded virtual instrument interface, people can configure any node in CAN network. The configuration includes parameter setting, task allocation and so on. 3) This system can effectively detect the sensor fault and actuator failure and send the diagnosis messages to the customers. From the data provided by the field test we can see the advantage and promising future of virtual instrument based on embedded system. The system effectively realizes the high-speed CAN bus data communication among multiple CAN nodes, and the system has also strong flexibility and versatility, which can be taken as reference and guide in improving the automation and information level of large equipment in China.