摘要
为了通过串口发送命令以控制红外相机,使其完成非均匀性校正、坏点替换以及积分时间、帧频的参数设置等各项任务,对控制软件的设计方法进行了研究。在VisualC++6.0平台下,通过调用PComm函数完成对串口的初始化、打开、关闭等操作;通过构造命令处理函数库,完成对串口的数据读写和显示。设计的软件经实验装置调试、检验,可靠性强,可以满足设备实时控制的要求。
A design method for the control software for serial port communication between the personal computer and the infrared cam- era is presented, in order to make the infrared camera complete its mission of nonuniformity correction, bad pixel replacement, parameters settings of the integration time and the frame frequency and so on. The initialization, open and close of the serial port can be completed by calling the PComm function, and the read-write and display of the data from the serial port can be completed by calling the function from the command processing function library which has been created with Visual C++ 6.0.The reliability of the software designed is good, and the software can satisfy the real time control requirements of the equipment by debugging and testing.
出处
《微计算机信息》
北大核心
2007年第02S期289-290,302,共3页
Control & Automation
基金
中科院二期创新项目(C04708Z)