This paper proposes the several simulation and debugging methods of real-time monitoring application software development in Telemetry, Track and command (TT&C) project, and mainly introduces a window debugging method embedded in the monitoring program. This method uses an independent hexadecimal edit window message mode to replace a hardware sensor accessed to the computer, completely simulates the hardware communication environment in the lab, and flexibly gives the fixed length information send by the hardware sensor to the computer according to protocols, in order to debug the whole monitoring system without hardware. Once the hardware components are connected, the communication at the protocol level is immediately completed.%提出了航天测控工程中实时监控类应用软件开发中的仿真调试几种方法,该文主要展示了一种内嵌在监控程序本身的窗口调试法,该方法使用一个独立的十六进制编辑窗口发消息方式代替某接入计算机的硬件传感器,在实验室内可完全仿真出硬件通讯时的环境,可灵活地按协议给出硬件传感器发送给计算机的定长信息,从而可无硬件环境下调通整个监控系统,一旦硬件配件接通,协议级的通讯亦随即完成。
展开▼