摘要
简要的介绍了MVC模式的基本思想。基于MVC模式设计的X线机控制台软件实现原理。然后结合X线机具体功能模块讨论了该系统在MVC模式下的设计和实现。在软件的设计过程中,摆脱了传统的嵌入式开发模式,充分应用现代软件工程思想,将业务逻辑和数据分开,方便系统的升级和维护;系统的整体采用轮询等待方式,中断触发。与PC机通讯采用232通讯协议,与逻辑板软件通讯采用485通讯协议。该控制台很好的完成了对X线机的控制。提供给用户的界面友好,操作方便,高效。对X线机的控制准确,反应迅速。
The basic theory of MVC pattern and the working process of X-ray console system is introduced and then talk out the system based on MVC model. With modern software engineering design software, it is very important to achieve the separation of business logic and data, to make the system upgrades and maintenance to be easy. This paper use 232 protocols to communicate with PC, and 485 protocol to communicate with logic board. In order to facilitate reading the data, the whole-chip Flash is divided into code area and data area. The data area is divided into the file structure area, the data table area, and the character area. The console control the whole X-ray machine. There are many advantages, such as friendly interface, easy operation, efficient running, accurate control, and fast response.
出处
《微型电脑应用》
2010年第9期48-50,67,共3页
Microcomputer Applications