波谱学杂志 ›› 2009, Vol. 26 ›› Issue (4): 497-503.

• 4 • 上一篇    下一篇

一种NMR谱仪控制台软件系统的多层架构设计

  

  1. 1.波谱与原子分子物理国家重点实验室,武汉磁共振中心(中国科学院 武汉物理与数学研究所), 湖北 武汉 430071; 
    2.中国科学院 研究生院,北京 100049
  • 收稿日期:2009-03-31 修回日期:2009-05-07 出版日期:2009-12-05 发布日期:2009-12-05
  • 基金资助:

    国家自然科学基金资助项目(10675162),科技支撑计划资助项目(2006BAK03A22).

Multi-Layer Architecture Design of Software Used on NMR Spectrometer Console

  1. 1.State Key Laboratory of Magnetic Resonance and Atomic and Molecular Physics, Wuhan Center for Magnetic Resonance(Wuhan Institute of Physics and Mathematics, Chinese Academy of Sciences), Wuhan 430071, China; 
    2.Graduate School of the Chinese Academy Sciences, Beijing 100049, China
  • Received:2009-03-31 Revised:2009-05-07 Online:2009-12-05 Published:2009-12-05
  • Supported by:

    国家自然科学基金资助项目(10675162),科技支撑计划资助项目(2006BAK03A22).

摘要:

提出了一种用于核磁共振(Nuclear Magnetic Resonance, NMR)谱仪控制台软件系统的多层架构设计. 该设计在逻辑功能上将系统抽象为Linux硬件设备驱动、驱动接口、业务逻辑、网络传输和协议控制5层,每一层完成系统中特定的功能,并且独立维护. 这种采用分层的设计方式降低了系统的耦合性,简化了系统结构; 并且能多层同时开发,提高了编程效率,缩短了开发周期. 严格测试后,该软件系统与实验室自主研发的硬件联合调试,运行良好,能够长期稳定的进行实验操作,满足设计要求.

关键词: 核磁共振波谱仪, 控制台软件, 系统架构, 硬件驱动

Abstract:

A software system used for the consoles of NMR spectrometers, designed -using a multi-layer architecture, is presented. The software system is divided into five layers: Linux driver layer, driver interface layer, BZ logic layer, socket layer and protocol control layer. Each layer has a specific function and is maintained independently. It was shown that multilayer architecture design not only reduces coupling in the system and simplifies the system structure, but also allows developing different layers simultaneously, thus improving the programming efficiency and reducing the development cycle time. The software system was debugged on the hardwares developed independently in the lab and passed rigorous testing.

Key words: NMR spectrometer, control software, system architecture, hardware driver

中图分类号: