针对氡析出率测量仪多信息显示和按键有效去抖问题,该测量仪人机交互程序多级菜单采用c语言结构体函数实现,按键采用标志位去抖.实验表明,采用结构体函数实现的菜单显示程序代码可读性强,程序空间减少20%以上;采用标志住去抖大大提高了人机交互程序执行效率,节约了系统资源,在提高按键响应灵敏度的同时,按键无误操作,达到了良好的人机交互效果.
Abstract: Aiming at the problems of multi-information display and effective debounce of key of radon exhalation rate measuring instrument, structural body-function in C language was applied to realize the multilevel menu in program of human-computer interaction for the instrument, the debounce was realized with flag-bit. The experiments showed that program codes of menu display achieved by structural body-function were readable and the program space was reduced by more than 20%. Executive efficiency of human-computer interaction program was improved greatly and system resources were saved through debounce with flagbit. There were errorfree actions of key, and the response sensitivity of keys was improved at the same time. A good effect of human-computer interaction was achieved.