摘要
设计了一种基于单片机C8051F340和Labview的编码器信号调试系统。硬件方面,利用单片机内嵌的AD模块采集编码器的多路信号,通过内嵌的USB模块将数据发送给PC机。软件方面,采用Labview编写PC应用程序,将接收到的数据进行运算处理,实现了PC机上灯排和度分秒显示编码器角度值,李莎育图形和波形图显示了编码器信号变化以及实时存储数据的功能。系统体积小,可视性好,方便编码器的调试。实验结果表明,所设计的调试系统具有速度快、实时性好、自动化程度高、操作简单、人机界面友好、数据读取方便、显示信息丰富等优点,并且系统功能还可进一步扩展。
An encoder debugging system based on C8051F340 and Labview was designed in the paper.The design realizes multi-signal sampling of encoder with the AD module embedded in C8051F340,and USB communication with PC using the USB module embedded in C8051F340.PC application was programmed employing Labview,and the angle was displayed by two methods,one of which is light emission displaying and the other was "degrees,minutes and seconds" displaying.Meanwhile,the signal waveform was displayed by Lissajous graphics and oscillographs.The result showed that the system speed is higher with the feature of easier operation,and the application surface was friendly with rich information.And then the system functions can be expanded.
出处
《液晶与显示》
CAS
CSCD
北大核心
2011年第6期789-794,共6页
Chinese Journal of Liquid Crystals and Displays