波谱学杂志 ›› 2011, Vol. 28 ›› Issue (2): 190-197.

• 磁共振谱仪研制技术进展专栏 • 上一篇    下一篇

NMR谱仪软件脚本环境的研究与应用

胡少斌1,3,陈义群1,鲍庆嘉2,刘造1,刘朝阳1*   

  1. 1. 波谱与原子分子物理国家重点实验室,武汉磁共振中心(中国科学院 武汉物理与数学研究所), 湖北 武汉 430071; 
    2. 华中科技大学 物理系,湖北 武汉 430074;3. 中国科学院 研究生院,北京 100049
  • 收稿日期:2010-05-24 修回日期:2010-06-21 出版日期:2011-06-05 发布日期:2011-06-05
  • 基金资助:

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

Scripting Environment Used in NMR Spectrometer Software

 HU Shao-Bin1,3, CHEN Xi-Qun1, BAO Qiang-Jia2, LIUZao1, LIU Chao-Yang1*   

  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. Department of Physics, Huazhong University of Science and Technology, Wuhan 430074, China;
    3. Graduate School of the Chinese Academy Sciences, Beijing 100049,China
  • Received:2010-05-24 Revised:2010-06-21 Online:2011-06-05 Published:2011-06-05
  • Supported by:

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

摘要:

主要讨论在核磁共振(Nuclear Magnetic Resonance,NMR)谱仪软件中引入脚本环境的方法和应用. 首先,介绍脚本语言的概念,并比较分析了几种脚本解析器;其次,概述了谱仪软件的系统结构,阐述了使用QtScript引擎建立脚本环境的方法,并结合NMR软件系统中实验参数、命令行等模块,提出了可行的脚本化方案;最后,给出了测试结果和改进方法.

关键词: 核磁共振软件, 脚本环境, 脚本引擎, 应用程序脚本化

Abstract:

This paper introduces embedding scripting environment in NMR spectrometer software. First, the concept of scripting languages is described, and the performance of several script parsers is compared. Secondly, the architecture of NMR software system is summarized, followed by discussions on the methods used to setup scripting environment with QtScript. Thirdly, some feasible solutions for scripting within the framework of NMR spectrometer software are developed. Lastly, some test results are reported and possible methods for improvement are proposed.

Key words: NMR spectrometer software, scripting environment, script engine, application scripting

中图分类号: