摘要
语法分析模块作为智能测量仪器程控功能的核心,起着将总线上接收到的信息进行分析、过滤和转换成仪器内部可识别代码的作用,在智能仪器软件设计中具有重要地位。模块的性能直接影响测量仪器程控软件的稳定性、可靠性、可扩展性,以及程控执行效率。针对SCPI命令格式,介绍一种采用树结构构建数据结构并实现快速、高效语法分析的通用设计方法,以提高通用性、灵活性和可移植性。利用该方法设计的模块已经在多种智能仪器上得到应用,验证了方法的可行性。
Parsing module has always been the core of programming control in intelligent instru ments. It collects the information on the buses thcn parsing, filtering and transforming them toinstrument's internal codes. It plays a vcry important role in the intelligent instrument software design. The functionality of parsing module can directly affect the software's stability, reliability, expandability and programming execution efficiency. Concentrating on SCPI command format, this article introduced a high speed and high efficiency parsing design method based on tree structure to building up data.
出处
《国外电子测量技术》
2006年第2期42-44,共3页
Foreign Electronic Measurement Technology