摘要
数学公式编辑是任意波形发生器(AWG)的波形编辑手段之一,它具有数学表达方便、生成信号精确等优点。文中基于编译原理的相关知识,给出了AWG公式编辑软件的设计与实现步骤,详细介绍了公式表达式的词法分析、语法分析、转换计算和结果存储表的设计方法,实现了多变量、多公式的同时编辑与计算。结果表明,该设计可靠灵活,计算效率高,具有较好的应用价值。
Math equation editing is one of waveform editing methods in arbitrary waveform generator(AWG),which has many advantages,such as the convenience of math expression,the preciseness of generating signal and so on.Basing on compiler theory,this paper gives the design and the implementation steps of AWG equation editing software,particularly introduces the design methods of lexical analysis,syntactic analysis,calculation and result-stored table of equation expression,which are used to implement the function of simultaneously editing and calculating multi-variable and multi-equation.Results show that this design is reliable,flexible and effective,and it has good application value.
出处
《国外电子测量技术》
2012年第1期92-97,共6页
Foreign Electronic Measurement Technology
关键词
任意波形发生器
公式编辑
词法分析
语法分析
中缀表达式
arbitrary waveform generator(AWG)
equation editing
lexical analysis
syntactic analysis
infix notation