Digital oscilloscope mathematical operation processing method based on inverse Polish algorithm

The invention discloses a digital oscilloscope mathematical operation processing method based on an inverse Polish algorithm, and the method comprises the steps: inputting character parameters, and generating an operation expression; carrying out conversion analysis on the arithmetic operation expre...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: YE PENG, TIAN SHULIN, SHUAI WEIWEI, ZHAO YONG, ZHANG QINCHUAN, HUANG WUHUANG, WANG HOUJUN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a digital oscilloscope mathematical operation processing method based on an inverse Polish algorithm, and the method comprises the steps: inputting character parameters, and generating an operation expression; carrying out conversion analysis on the arithmetic operation expression from an infix expression to an inverse Polish expression, and detecting the legality of the expression in the analysis process; calculating the inverse Polish form expression element by element; storing a calculation result into a data buffer area of the corresponding mathematical channel; anddisplaying an operation result on an oscilloscope screen. According to the method, a basic operation method can be provided, a user can construct a complex operation expression according to own testrequirements, analysis and calculation are completed, and more measurement requirements are met. 本发明公开了一种基于逆波兰算法的数字示波器数学运算处理方法,该方法包括输入字符参数,生成运算表达式;对算术运算表达式进行中缀表达式向逆波兰式转换解析,并检测解析过程中表达式的合法性;逐元素对逆波兰形式表达式进行计算;将计算结果存储至对应的数学通道的数据缓冲区