[go: up one dir, main page]

CN103148897A - Digital intelligent vortex shedding flowmeter based on DSP and metering method of same - Google Patents

Digital intelligent vortex shedding flowmeter based on DSP and metering method of same Download PDF

Info

Publication number
CN103148897A
CN103148897A CN2013100475294A CN201310047529A CN103148897A CN 103148897 A CN103148897 A CN 103148897A CN 2013100475294 A CN2013100475294 A CN 2013100475294A CN 201310047529 A CN201310047529 A CN 201310047529A CN 103148897 A CN103148897 A CN 103148897A
Authority
CN
China
Prior art keywords
signal
vortex
digital
module
amplitude
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2013100475294A
Other languages
Chinese (zh)
Inventor
戴华平
黄满金
钱嘉伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN2013100475294A priority Critical patent/CN103148897A/en
Publication of CN103148897A publication Critical patent/CN103148897A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Measuring Volume Flow (AREA)

Abstract

本发明公开了一种基于DSP的数字化智能涡街流量计及其计量方法,包括信号检测模块、频谱分析模块、信号输出模块、人机接口模块、参数存储模块、监测模块和电源模块,其中信号检测模块包括涡街信号检测电路和干扰检测电路,频谱分析模块由一块数字信号处理芯片完成,包括模数转换单元、数字带通滤波单元、插值FFT计算单元以及智能算法规则单元。本发明的计量方法在两路信号检测和频谱分析的基础上,通过智能算法规则能够有效的提取涡街信号强度小于现场振动干扰强度情况下的涡街信号频率,抗干扰性、可靠性、稳定性等方面都具有较好的表现。

Figure 201310047529

The invention discloses a DSP-based digital intelligent vortex flowmeter and its measurement method, including a signal detection module, a spectrum analysis module, a signal output module, a man-machine interface module, a parameter storage module, a monitoring module and a power supply module, wherein the signal The detection module includes a vortex signal detection circuit and an interference detection circuit. The spectrum analysis module is completed by a digital signal processing chip, including an analog-to-digital conversion unit, a digital band-pass filter unit, an interpolation FFT calculation unit, and an intelligent algorithm rule unit. On the basis of two-way signal detection and spectrum analysis, the metering method of the present invention can effectively extract the vortex signal frequency under the condition that the vortex signal intensity is less than the on-site vibration interference intensity through intelligent algorithm rules, and has the advantages of anti-interference, reliability and stability. Sexuality and other aspects have a good performance.

Figure 201310047529

Description

一种基于DSP的数字化智能涡街流量计及其计量方法A DSP-based digital intelligent vortex flowmeter and its measurement method

技术领域technical field

本发明属于流量检测领域,具体涉及一种基于数字信号处理器DSP的数字化智能涡街流量计以及计量方法。The invention belongs to the field of flow detection, and in particular relates to a digital intelligent vortex flowmeter based on a digital signal processor DSP and a measurement method.

背景技术Background technique

涡街流量计发展迅速,应用范围越来越广泛,涡街传感器和涡街信号频率提取技术是涡街流量计设计过程中的两个关键技术。涡街传感器涉及流体力学的知识,而我们更关注的是基于涡街信号频率提取技术的二次仪表的相关研究。The vortex flowmeter develops rapidly and its application range is more and more extensive. Vortex sensor and vortex signal frequency extraction technology are two key technologies in the design process of vortex flowmeter. The vortex sensor involves the knowledge of fluid mechanics, and we pay more attention to the related research of the secondary instrument based on the frequency extraction technology of the vortex signal.

传统涡街信号提取的方法主要通过放大、滤波、整形、计数等四步来实现,前三部主要的工作由模拟硬件电路完成,计数由MCU实现。由这种涡街信号提取方法设计的系统的量程低,易受电磁和现场干扰。从传统的方法中可以归纳出涡街信号提取的技术要点有两个,分别是信号滤波和涡街信号频谱信息的获取。由于信号频谱分析方法研究相对较成熟,故在涡街信号提取中,诸如小波变换、现代谱分析、陷波滤波、FFT等信号分析方法都有学者研究过。相对于传统的方法,这些通过软件算法实现的频谱分析方法的频率分辨率都比传统的方法更高,但考虑到二次仪表的离线工作的实时性,这些方法在实际应用中却比较少。FFT能满足实时性的要求,但由于存在“栅栏效应”而往往会造成频谱泄露。The traditional vortex signal extraction method is mainly realized through four steps of amplification, filtering, shaping, and counting. The first three main tasks are completed by analog hardware circuits, and the counting is realized by MCU. The system designed by this vortex signal extraction method has a low range and is susceptible to electromagnetic and field interference. From the traditional method, it can be concluded that there are two technical points of vortex signal extraction, which are signal filtering and acquisition of vortex signal spectrum information. Since the research on signal spectrum analysis methods is relatively mature, scholars have studied signal analysis methods such as wavelet transform, modern spectrum analysis, notch filter, and FFT in vortex street signal extraction. Compared with traditional methods, the frequency resolution of these spectrum analysis methods implemented by software algorithms is higher than traditional methods, but considering the real-time nature of offline work of secondary instruments, these methods are relatively rare in practical applications. FFT can meet the real-time requirements, but it often causes spectrum leakage due to the existence of "fence effect".

涡街信号具有低频段易噪声干扰、高频段特征明显的特点,在低频段时易受现场噪声干扰。现在对涡街信号提取的研究往往基于单路信号,造成的结果是当干扰信号强于涡街信号时,前者会把后者覆盖,最终得到的涡街信号其实是干扰信号。The vortex street signal has the characteristics of easy noise interference in the low frequency band and obvious characteristics in the high frequency band, and it is easy to be interfered by on-site noise in the low frequency band. The current research on vortex signal extraction is often based on single-channel signals. The result is that when the interference signal is stronger than the vortex signal, the former will cover the latter, and the final vortex signal is actually an interference signal.

发明内容Contents of the invention

针对硬件信号处理电路易受外界干扰、仪表离线工作的实时性和准确性要求及单路传感信号采集的缺陷等技术问题,本发明提供了一种基于DSP的数字化智能涡街流量计及其计量方法。Aiming at technical problems such as the hardware signal processing circuit is susceptible to external interference, the real-time and accuracy requirements of the instrument offline work, and the defects of single-channel sensing signal acquisition, the present invention provides a digital intelligent vortex flowmeter based on DSP and its measurement method.

一种基于DSP的数字化智能涡街流量计,包括信号检测模块、信号输出模块、人机接口模块和电源模块,所述信号检测模块包括涡街信号检测电路和干扰检测电路;所述智能涡街流量计还包括频谱分析模块,所述频谱分析模块包括:A digital intelligent vortex flowmeter based on DSP, including a signal detection module, a signal output module, a man-machine interface module and a power module, the signal detection module includes a vortex signal detection circuit and an interference detection circuit; the intelligent vortex The flow meter also includes a spectrum analysis module, which includes:

模数转换单元,用于将所述信号检测模块输出的两路检测信号转换为数字信号;An analog-to-digital conversion unit, configured to convert the two detection signals output by the signal detection module into digital signals;

数字带通滤波单元,用于对所述模数转换单元输出的数字信号进行带通滤波;A digital band-pass filter unit, configured to band-pass filter the digital signal output by the analog-to-digital conversion unit;

插值FFT计算单元,用于对所述数字带通滤波单元输出的滤波后的数字信号进行频谱分析,得到所述信号检测模块两路检测信号的谐波的频谱信息;An interpolation FFT calculation unit, configured to perform spectrum analysis on the filtered digital signal output by the digital bandpass filter unit, to obtain the spectrum information of the harmonics of the two detection signals of the signal detection module;

智能算法规则单元,用于比较所述两路检测信号的谐波的频谱信息,提取涡街信号的频率。The intelligent algorithm rule unit is used to compare the spectrum information of the harmonics of the two detection signals, and extract the frequency of the vortex signal.

进一步地,所述智能涡街流量计还包括与频谱分析模块相连的监测模块,所述监测模块为看门狗电路。所述看门狗电路,设定一定的工作周期作为喂狗的时间周期,如果本发明智能涡街流量计工作出现故障,便无法及时喂狗,那么看门狗电路便会向DSP芯片的复位端发送系统复位信号。Further, the intelligent vortex flowmeter also includes a monitoring module connected to the spectrum analysis module, and the monitoring module is a watchdog circuit. The watchdog circuit sets a certain duty cycle as the time period for feeding the dog. If the smart vortex flowmeter of the present invention breaks down in work, it cannot feed the dog in time, and the watchdog circuit will reset the DSP chip. The terminal sends a system reset signal.

进一步地,所述智能涡街流量计还包括与频谱分析模块相连的参数存储模块,用于存储累积流量等重要参数,防止流量计掉电时参数丢失。Further, the intelligent vortex flowmeter also includes a parameter storage module connected to the spectrum analysis module, which is used to store important parameters such as accumulated flow, so as to prevent parameters from being lost when the flowmeter is powered off.

进一步地,所述涡街信号检测电路和干扰检测电路的硬件电路均包括传感器,电荷放大器和预滤波电路,所述传感器为压电传感器。用于分两路采集涡街信号和现场振动干扰,并对其进行放大后通过低通滤波和缓冲隔离后输出到频谱分析模块。Further, the hardware circuits of the vortex signal detection circuit and the interference detection circuit both include a sensor, a charge amplifier and a pre-filter circuit, and the sensor is a piezoelectric sensor. It is used to collect vortex street signals and on-site vibration interference in two channels, amplify them, and then output them to the spectrum analysis module after low-pass filtering and buffer isolation.

进一步地,所述频谱分析模块为数字信号处理器DSP(Digital SignalProcessing,简称DSP)。涡街流量计的主要工作包括滤波、信号频谱分析以及剔除现场主干扰的智能算法规则都在DSP中通过软件实现。Further, the spectrum analysis module is a digital signal processor DSP (Digital Signal Processing, DSP for short). The main work of the vortex flowmeter, including filtering, signal spectrum analysis, and intelligent algorithm rules for eliminating main interference on site, are all implemented in DSP through software.

进一步地,所述数字化智能涡街流量计,还包括稳压电路,所述稳压电路包括一个稳压器,用于将所述电源模块输出的参考电压转变为所述模数转化模块的输入电压,专门的稳压产生电路在稳定性上要优于内部参考电压。Further, the digital intelligent vortex flowmeter also includes a voltage stabilizing circuit, and the voltage stabilizing circuit includes a voltage stabilizer for converting the reference voltage output by the power supply module into the input of the analog-to-digital conversion module Voltage, the special voltage stabilization circuit is better than the internal reference voltage in terms of stability.

本发明还提出了基于上述数字化智能涡街流量计的计量方法,包括步骤:The present invention also proposes a measurement method based on the above-mentioned digital intelligent vortex flowmeter, comprising steps:

(1)、分别对涡街信号和干扰信号进行检测获得两路检测信号;(1) Detect the vortex signal and the interference signal respectively to obtain two detection signals;

(2)、对检测出的两路检测信号进行采样,转变为数字信号;(2) Sampling the detected two detection signals and converting them into digital signals;

(3)、对数字信号进行滤波,做基于幅值的插值FFT,得到两路检测信号的谐波的频谱信息;(3) Filter the digital signal and perform amplitude-based interpolation FFT to obtain the spectrum information of the harmonics of the two detection signals;

(4)、比较两路检测信号的谐波的频谱信息,通过智能算法规则提取涡街信号的频率;(4) Compare the spectrum information of the harmonics of the two detection signals, and extract the frequency of the vortex signal through intelligent algorithm rules;

(5)、经过换算输出流量计量信息。(5) Output flow metering information after conversion.

其中,所述谐波的频谱信息包括谐波的幅值平均值、谐波的幅值以及谐波的频率索引值。Wherein, the spectrum information of the harmonic includes the average value of the harmonic amplitude, the amplitude of the harmonic, and the frequency index value of the harmonic.

进一步地,所述步骤(3)包括步骤:Further, the step (3) includes the steps of:

(3.1)、对数字信号进行滤波,对滤波后数字信号作FFT,存储相应的谐波的频谱信息,存储数组的第一个就是谐波幅值平均值;(3.1), filter the digital signal, perform FFT on the filtered digital signal, store the spectrum information of the corresponding harmonic, and the first one of the storage array is the average value of the harmonic amplitude;

(3.2)、通过频谱确定主瓣,找到主瓣内的幅值最大值谱线,记录其幅值信息X1和频率索引值K1;(3.2) Determine the main lobe through the spectrum, find the maximum amplitude spectral line in the main lobe, and record its amplitude information X1 and frequency index value K1;

(3.3)、找到频率索引值为(K1-1)、(K1+1)所对应的谱线,这两条谱线中幅值更大的谱线记录为次大值谱线,其幅值为X2,频率索引值为K2;(3.3) Find the spectral lines corresponding to the frequency index values (K1-1) and (K1+1), and the spectral line with the larger amplitude among the two spectral lines is recorded as the second largest value spectral line, and its amplitude is X2, and the frequency index value is K2;

(3.4)、通过X1和X2计算得到频率索引值修正参数δ,具体计算如下(3.4), calculate the frequency index value correction parameter δ through X1 and X2, the specific calculation is as follows

δδ == Xx 22 Xx 11 ++ Xx 22 ;;

(3.5)、最后由修正参数δ和K1可以得到主频信号的频率索引K,具体计算如下:(3.5). Finally, the frequency index K of the main frequency signal can be obtained from the correction parameters δ and K1. The specific calculation is as follows:

K=K1±δ。K=K1±δ.

进一步地,假定A1为涡街信号支路谐波幅值最大值,A2为干扰信号支路谐波幅值最大值,F1为涡街信号支路谐波幅值最大值对应谱线的频率索引值,F2为干扰信号支路谐波幅值最大值对应谱线的频率索引值,Aa1为涡街信号支路幅值平均值,Aa2为干扰信号支路幅值平均值,F为最终涡街信号主频频率索引值,则所述步骤(4)包括步骤:Further, assume that A1 is the maximum harmonic amplitude of the vortex signal branch, A2 is the maximum harmonic amplitude of the interference signal branch, and F1 is the frequency index of the spectral line corresponding to the maximum harmonic amplitude of the vortex signal branch F2 is the frequency index value of the spectral line corresponding to the maximum harmonic amplitude of the interference signal branch, Aa1 is the average amplitude of the vortex signal branch, Aa2 is the average amplitude of the interference signal branch, and F is the final vortex street signal main frequency frequency index value, then the step (4) includes the steps of:

(4.1)比较两路检测信号的谐波幅值最大值,若A1<A2,表示测量出现异常,为非法数据,涡街流量计提出异常警告,并放弃此次的测量结果;若A1≧A2,则进入下一步;(4.1) Compare the maximum value of the harmonic amplitude of the two detection signals. If A1<A2, it means that the measurement is abnormal and is illegal data. The vortex flowmeter will give an abnormal warning and give up the measurement result this time; if A1≧A2 , then go to the next step;

(4.2)判断两路检测信号的谐波幅值最大值A1与A2是否相等,若相等则继续比较两路谐波的幅值平均值,若Aa1=Aa2,则可判断涡街信号支路为空管,结束;若Aa1≠Aa2,则将F1、F2所对应谱线的幅值归零,重新返回步骤(4.1);若A1>A2,则进行下一步;(4.2) Determine whether the maximum harmonic amplitude values A1 and A2 of the two detection signals are equal. If they are equal, continue to compare the average amplitude values of the two harmonics. If Aa1=Aa2, it can be judged that the vortex street signal branch is Empty tube, end; if Aa1≠Aa2, reset the amplitudes of the spectral lines corresponding to F1 and F2 to zero, and return to step (4.1); if A1>A2, proceed to the next step;

(4.3)比较F1与F2,若F1≧F2,则判断涡街信号的频率索引值为F1;否则表示测量出现异常,为非法数据,涡街流量计提出异常警告,并放弃此次的测量结果。(4.3) Compare F1 and F2, if F1≧F2, then judge the frequency index value of the vortex signal to be F1; otherwise, it means that the measurement is abnormal, which is illegal data, and the vortex flowmeter will issue an abnormal warning and give up the measurement result this time .

本发明提出的基于DSP的数字化智能涡街流量计及其计量方法,相对于传统方法,仅采用一块DSP,器件减少,成本降低,抗干扰性和可靠性增强,使用数字切比雪夫带通滤波器,软件算法实现,提高了系统进行滤波的灵活性;使用基于幅值的插值FFT,满足系统离线工作的实时性要求,同时改善了FFT由于“栅栏效应”而造成的频谱泄露的不足,提高了频谱分析的准确性;同时智能算法规则扩宽了低频段量程,能够有效提取涡街信号强度小于现场振动干扰强度时的涡街信号频率;基于两路信号检测和两路信号的频谱分析,由此可以扩宽低频段的测量量程,完成干扰强度大于涡街信号强度时的主频信号检测。Compared with the traditional method, the DSP-based digital intelligent vortex flowmeter and its measurement method proposed by the present invention only use one DSP, reduce the number of devices, reduce the cost, enhance the anti-interference and reliability, and use digital Chebyshev band-pass filter The implementation of software algorithm improves the flexibility of the system for filtering; the use of amplitude-based interpolation FFT meets the real-time requirements of the system's offline work, and at the same time improves the lack of spectrum leakage caused by FFT due to the "fence effect", improving The accuracy of spectrum analysis is improved; at the same time, the intelligent algorithm rules widen the low-frequency range, which can effectively extract the vortex signal frequency when the vortex signal intensity is lower than the on-site vibration interference intensity; based on two-way signal detection and two-way signal spectrum analysis, Therefore, the measurement range of the low frequency band can be expanded, and the main frequency signal detection when the interference intensity is greater than the vortex street signal intensity can be completed.

附图说明Description of drawings

图1为本发明数字化智能涡街流量计的结构示意图;Fig. 1 is a schematic structural view of a digital intelligent vortex flowmeter of the present invention;

图2为本发明检测电路中电荷放大器的电路图;Fig. 2 is the circuit diagram of charge amplifier in the detection circuit of the present invention;

图3为本发明检测电路中预滤波电路图;Fig. 3 is a pre-filter circuit diagram in the detection circuit of the present invention;

图4为本发明模数转换单元稳压发生电路的电路图;Fig. 4 is the circuit diagram of the voltage-stabilizing generating circuit of the analog-to-digital conversion unit of the present invention;

图5为本发明监测模块的看门狗电路图;Fig. 5 is the watchdog circuit diagram of monitoring module of the present invention;

图6为本发明数字化智能涡街流量计量方法流程图;Fig. 6 is a flow chart of the digital intelligent vortex flow metering method of the present invention;

图7为本发明基于幅值的插值FFT算法流程图;Fig. 7 is the flow chart of the interpolation FFT algorithm based on amplitude in the present invention;

图8为本发明智能算法规则流程图。Fig. 8 is a flowchart of intelligent algorithm rules of the present invention.

具体实施方式Detailed ways

下面结合附图和实施例对本发明技术方案做进一步详细说明,以下实施例不构成对本发明的限定。The technical solution of the present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments, and the following embodiments do not constitute a limitation of the present invention.

本发明提供了一种基于DSP的数字化智能涡街流量计,其硬件结构如图1所示,包括信号检测模块、频谱分析模块、信号输出模块、人机接口模块、参数存储模块、监测模块和电源模块。信号检测模块包括两路信号检测电路,分别为涡街信号检测电路和干扰检测电路,一路用于采集涡街信号,其中包括了涡街信号和现场振动干扰,另一路采集现场振动干扰。两路检测电路硬件处理电路相同,都包括传感器、电荷放大器、预滤波。The present invention provides a digital intelligent vortex flowmeter based on DSP, the hardware structure of which is shown in Figure 1, including a signal detection module, a spectrum analysis module, a signal output module, a man-machine interface module, a parameter storage module, a monitoring module and power module. The signal detection module includes two signal detection circuits, namely the vortex signal detection circuit and the interference detection circuit, one for collecting the vortex signal, including the vortex signal and field vibration interference, and the other for collecting field vibration interference. The hardware processing circuits of the two detection circuits are the same, including sensors, charge amplifiers, and pre-filtering.

如图2所示为电荷放大器单元,主要是对压电传感器信号进行电荷放大,其包括一个运算放大器U2,3个电阻R3、R4、R5,4个电容C3、C4、C5、C6,运算放大器采用TI公司的OP07;其连接关系为:C3、R4、C5的一端与U2的3号端口相连,C4、R5、C6的一端与U2的2号端口相连,U2的7、4号端口分别接正、负12V直流电,U2的6号端口输出放大后的模拟信号并与R5、C6的另一端相连,R4、C5的另一端与地相连,C3另一端、R3一端与传感器信号输入端相连,C4另一端、R3另一端与传感器信号另一输入端相连。As shown in Figure 2, the charge amplifier unit is mainly used to amplify the charge of the piezoelectric sensor signal, which includes an operational amplifier U2, three resistors R3, R4, R5, four capacitors C3, C4, C5, C6, and an operational amplifier The OP07 of TI Company is used; the connection relationship is: one end of C3, R4, and C5 is connected to port 3 of U2, one end of C4, R5, and C6 is connected to port 2 of U2, and ports 7 and 4 of U2 are respectively connected to Positive and negative 12V DC, the No. 6 port of U2 outputs the amplified analog signal and is connected to the other end of R5 and C6, the other end of R4 and C5 is connected to the ground, the other end of C3 and one end of R3 are connected to the sensor signal input end, The other end of C4 and the other end of R3 are connected to the other input end of the sensor signal.

如图3所示为预滤波的电路图,对信号进行简单的低通滤波,并起缓冲和隔离的作用,其包括一个运算放大器U1B,2个电阻R12、R23,1个电容C27,一个稳压管D2,稳压管起到了限定最大电压值的作用,运算放大器采用TI的LM324N;其连接关系为:R12、R23、C27的一端与U1B的5号端口相连,R12的另一端与电荷放大器单元的输出端相连,R23、C27的另一端与地相连,U1B的6、7号端口及稳压管D2的反相端相连,D2的正向端接地,U1B的输出端即7号端口与频谱分析模块内模数转换单元(A/D)的输入端相连。As shown in Figure 3, it is the circuit diagram of pre-filtering, which performs simple low-pass filtering on the signal, and plays the role of buffering and isolation. It includes an operational amplifier U1B, 2 resistors R12, R23, 1 capacitor C27, and a regulator Tube D2 and the voltage regulator tube play a role in limiting the maximum voltage value. The operational amplifier uses TI's LM324N; the connection relationship is: one end of R12, R23, and C27 is connected to the No. 5 port of U1B, and the other end of R12 is connected to the charge amplifier unit The output terminals of R23 and C27 are connected to the ground, the ports 6 and 7 of U1B are connected to the inverting terminal of the voltage regulator tube D2, the positive terminal of D2 is grounded, and the output port of U1B, which is port 7, is connected to the spectrum The input terminals of the analog-to-digital conversion unit (A/D) in the analysis module are connected.

本发明频谱分析模块采用数字信号处理器DSP来实现,包括10位模数转换单元(A/D)、数字带通滤波单元、插值FFT计算单元以及智能算法规则单元。涡街流量计的主要工作包括滤波、信号频谱分析以及剔除现场主干扰的智能算法规则都在DSP中通过软件实现。本实施例采用DSP主控芯片是TI公司的TMS32LF2407A。The frequency spectrum analysis module of the present invention is realized by a digital signal processor DSP, including a 10-bit analog-to-digital conversion unit (A/D), a digital band-pass filter unit, an interpolation FFT calculation unit and an intelligent algorithm rule unit. The main work of the vortex flowmeter, including filtering, signal spectrum analysis, and intelligent algorithm rules for eliminating main interference on site, are all implemented in DSP through software. The DSP main control chip adopted in this embodiment is TMS32LF2407A of TI Company.

信号检测模块输出的两路检测信号经过DSP中的模数转换单元后转换为数字信号,并输入到数字带通滤波单元,然后通过插值FFT计算单元计算,在计算所得的两路信号的频谱信息的基础上,通过智能算法规则单元提取出涡街信号的频率。其中数字带通滤波单元采用数字切比雪夫带通滤波器,避免了硬件滤波带入的模拟干扰,数字切比雪夫带通滤波器是一种常用的滤波技术,在设计中首先要确定带通的宽度,依据是管道口径和管道内流体的介质类型;其次是截止频率、通带衰减纹波比、阻带衰减比等三个参数选取,根据工程需求而定。具体的数字滤波器设计分四步,如下:The two-way detection signals output by the signal detection module are converted into digital signals through the analog-to-digital conversion unit in the DSP, and input to the digital band-pass filter unit, and then calculated by the interpolation FFT calculation unit, and the spectrum information of the calculated two-way signals On the basis of , the frequency of the vortex signal is extracted through the intelligent algorithm rule unit. Among them, the digital band-pass filter unit adopts a digital Chebyshev band-pass filter, which avoids the analog interference brought by hardware filtering. The digital Chebyshev band-pass filter is a commonly used filtering technology. The width of the pipe is based on the diameter of the pipe and the medium type of the fluid in the pipe; followed by the selection of three parameters such as cut-off frequency, passband attenuation ripple ratio, and stopband attenuation ratio, which are determined according to engineering requirements. The specific digital filter design is divided into four steps, as follows:

(1)模拟低通滤波器设计;(1) Analog low-pass filter design;

(2)模拟频带变换—低通变带通;(2) Analog frequency band conversion - low-pass variable band-pass;

(3)滤波器变换—模拟变数字,使用双线变换;(3) Filter transformation—analog to digital, using two-line transformation;

(4)计算滤波器参数,分析参数是否满足设计要求。(4) Calculate the filter parameters and analyze whether the parameters meet the design requirements.

采用设计好的数字切比雪夫带通滤波器对采样的数据进行数字带通滤波,这一功能主要是实现了传统方法中模拟硬件滤波的作用。The designed digital Chebyshev band-pass filter is used to perform digital band-pass filtering on the sampled data. This function mainly realizes the function of analog hardware filtering in the traditional method.

需要说明的是,DSP内的模数转换单元对两路检测信号进行采样,采样频率根据工业应用背景设定,采样点数N为2的整数幂,例如本实施例中采样点数为128,为2的7次方。数字带通滤波单元对采样的数据进行数字滤波,采用的是切比雪夫带通滤波器,其带宽频率根据具体的工业应用背景设定,不同口径和流体介质所对应的涡街信号带宽不一样,这里不再赘述。It should be noted that the analog-to-digital conversion unit in the DSP samples the two detection signals, the sampling frequency is set according to the industrial application background, and the number of sampling points N is an integer power of 2. For example, the number of sampling points in this embodiment is 128, which is 2 to the 7th power. The digital band-pass filter unit performs digital filtering on the sampled data, using a Chebyshev band-pass filter, whose bandwidth frequency is set according to the specific industrial application background, and the bandwidth of the vortex signal corresponding to different calibers and fluid media is different , which will not be repeated here.

DSP片内A/D可以通过内部电路提供参考电压,但专门的稳压产生电路在稳定性上要优于内部参考电压,本实施例中采用外部稳压发生电路产生的2.5V电压作为A/D的参考源,如图4所示,发生电路包括1个电阻R9,1个电容CL,一个稳压器U5,本实施例中采样的是TI公司的TL431;其连接关系为:R9、CL的一端、U5的参考输出端与A/D参考源输入端相连,R9的另一端、U5的阳极端接VCC,CL的另一端、U5的阴极端口接地。The A/D in the DSP chip can provide a reference voltage through the internal circuit, but the special voltage stabilization generating circuit is better than the internal reference voltage in stability. In this embodiment, the 2.5V voltage generated by the external voltage stabilization generating circuit is used as the A/D voltage. The reference source of D, as shown in Figure 4, the generating circuit includes a resistor R9, a capacitor CL, and a voltage regulator U5. In this embodiment, TI’s TL431 is sampled; the connection relationship is: R9, CL One end of R9, the reference output end of U5 is connected to the A/D reference source input end, the other end of R9, the anode end of U5 is connected to VCC, the other end of CL, the cathode port of U5 is grounded.

对经过数字带通滤波单元滤波后的采样数据,输入到插值FFT计算单元作频谱计算,分别得到涡街信号通道、干扰信号通道两路检测信号的谐波的频谱信息,谐波的频谱信息包括谐波的幅值平均值、谐波幅值以及与谐波幅值对应的谐波频率索引值。所用到算法是基于幅值的插值FFT。The sampled data filtered by the digital band-pass filter unit is input to the interpolation FFT calculation unit for spectrum calculation, and the harmonic spectrum information of the two detection signals of the vortex signal channel and the interference signal channel are respectively obtained. The harmonic spectrum information includes The average value of the harmonic amplitude, the harmonic amplitude value, and the harmonic frequency index value corresponding to the harmonic amplitude value. The algorithm used is the magnitude-based interpolated FFT.

插值FFT计算单元输出的频谱信息输入到智能算法规则单元进行比较,提取出涡街信号的频率。在两路信号幅值、频率索引以及幅值平均值三个参量估计值的基础上,根据智能算法规则剔除现在振动干扰,获得涡街信号频率。The frequency spectrum information output by the interpolation FFT calculation unit is input to the intelligent algorithm rule unit for comparison, and the frequency of the vortex signal is extracted. On the basis of the three parameter estimates of the two-way signal amplitude, frequency index, and amplitude average value, the current vibration interference is eliminated according to the rules of the intelligent algorithm, and the frequency of the vortex street signal is obtained.

信号输出模块包括RS485通讯通道、4~20mA电流输出通道以及脉冲输出通道。RS485通讯主要用于流量计与上位机的通讯,电流输出通道用于电流变送器的工业应控制用,脉冲输出通道用于累积流量定量输出。为防止外部电路对主控芯片的影响,RS485通讯、脉冲输出、4~20mA电流输出等硬件电路都通过光电耦合器件连接到DSP控制芯片的I/O。The signal output module includes RS485 communication channel, 4~20mA current output channel and pulse output channel. RS485 communication is mainly used for the communication between the flowmeter and the upper computer, the current output channel is used for the industrial application control of the current transmitter, and the pulse output channel is used for the cumulative flow quantitative output. In order to prevent external circuits from affecting the main control chip, hardware circuits such as RS485 communication, pulse output, and 4~20mA current output are connected to the I/O of the DSP control chip through photocoupler devices.

人机接口主要包括液晶显示和按键,液晶显示用于显示流速和累积流量,按键用于参数的设定。参数存储模块采用电可擦可编程只读存储器EEPROM,用于存储累积流量等重要参数,防止流量计掉电时参数丢失。The man-machine interface mainly includes liquid crystal display and keys, the liquid crystal display is used to display the flow rate and cumulative flow, and the keys are used for parameter setting. The parameter storage module adopts the electrically erasable programmable read-only memory EEPROM, which is used to store important parameters such as accumulated flow and prevent the parameters from being lost when the flowmeter is powered off.

为了正确监测系统工作,本发明提供了片外监测模块,本实施例采用看门狗电路,在本实施例中以140ms为周期对看门狗喂狗,如果流量计工作中出现故障,便无法及时喂狗,那么看门狗电路便会向DSP芯片的复位端发送系统复位信号。本实施例中,看门狗电路单元如图5,包括一片看门狗集成芯片U4,1个电阻R7,看门狗集成芯片采用ON Semiconductor的CAT823;其连接关系为:R7一端、U4的1号端口以及DSP芯片复位端口相连,R7另一端与U4的2号端口接地,U4的3号端口与另一端接地的按键一端相连,U4的4号端口与DSP芯片的喂狗程序输出口相连,U4的5号端口接VCC,VCC正3V直流电压。In order to monitor the work of the system correctly, the present invention provides an off-chip monitoring module. The present embodiment adopts a watchdog circuit. In this embodiment, 140 ms is used as a cycle to feed the watchdog. Feed the dog in time, then the watchdog circuit will send a system reset signal to the reset terminal of the DSP chip. In this embodiment, the watchdog circuit unit is as shown in Figure 5, including a watchdog integrated chip U4, 1 resistor R7, and the watchdog integrated chip adopts the CAT823 of ON Semiconductor; its connection relationship is: one end of R7, 1 of U4 The other end of R7 is connected to the No. 2 port of U4, the No. 3 port of U4 is connected to the other end of the button that is grounded, and the No. 4 port of U4 is connected to the dog feeding program output port of the DSP chip. The No. 5 port of U4 is connected to VCC, and VCC is a positive 3V DC voltage.

本发明同时还提出了一种基于DSP的数字化智能涡街流量计的计量方法,如图6所示,包括步骤:The present invention also proposes a measurement method of a digital intelligent vortex flowmeter based on DSP at the same time, as shown in Figure 6, including steps:

步骤61、分别对涡街信号和干扰信号进行检测获得两路检测信号;Step 61. Detecting the vortex signal and the interference signal respectively to obtain two detection signals;

步骤62、对检测出的两路检测信号进行采样,转变为数字信号;Step 62, sampling the detected two detection signals and converting them into digital signals;

步骤63、对数字信号进行滤波,做基于幅值的插值FFT,得到两路检测信号的谐波的频谱信息;Step 63, filter the digital signal, perform amplitude-based interpolation FFT, and obtain the spectrum information of the harmonics of the two detection signals;

步骤64、比较两路检测信号的谐波的频谱信息,通过智能算法规则提取涡街信号的频率;Step 64, comparing the spectrum information of the harmonics of the two detection signals, and extracting the frequency of the vortex signal through intelligent algorithm rules;

步骤65、经过换算输出流量计量信息。(如何将频率信息转化为流量计量信息输出的?)Step 65, output flow metering information after conversion. (How to convert frequency information into flow measurement information output?)

通过上述的步骤64即可得到涡街信号中的强度最大的谐波的幅值和频率索引值信息,此谐波即为主频涡街信号,其频率可通过下式计算得到:Through the above step 64, the amplitude and frequency index value information of the harmonic with the highest intensity in the vortex signal can be obtained. This harmonic is the main frequency vortex signal, and its frequency can be calculated by the following formula:

ff == ff sthe s NN KK

式中f为涡街信号的频率,fs为A/D采样频率,N为采样点数,K为上述的频率索引值。通过计算出的涡街信号频率,在信号输出模块中经过换算,输出流量信息。Where f is the frequency of the vortex signal, f s is the A/D sampling frequency, N is the number of sampling points, and K is the above-mentioned frequency index value. The calculated vortex signal frequency is converted in the signal output module to output flow information.

本发明分两路分别采集涡街信号和干扰信号,一路用于采集涡街信号,其中包括了涡街信号和现场振动干扰,另一路采集现场振动干扰;对两路检测到的信号进行采样,转变为数字信号,并进行数字带通滤波;对滤波后的信号做插值FFT,得到两路检测信号的谐波的频谱信息,然后通过智能算法规则提出振动干扰,获得涡街信号频率。The present invention collects the vortex street signal and the interference signal respectively in two ways, one is used to collect the vortex street signal, which includes the vortex street signal and the on-site vibration interference, and the other way collects the on-site vibration interference; the two-way detected signals are sampled, Convert it into a digital signal and perform digital band-pass filtering; perform interpolation FFT on the filtered signal to obtain the spectrum information of the harmonics of the two detection signals, and then propose vibration interference through intelligent algorithm rules to obtain the frequency of the vortex signal.

具体地,做基于幅值的插值FFT,得到信号的谐波的频谱信息的方法如图7所示,包括步骤:Specifically, the method of performing amplitude-based interpolation FFT to obtain the spectral information of the harmonics of the signal is shown in Figure 7, including steps:

步骤71、对数字信号进行滤波,对滤波后的数字信号作FFT,存储相应的谐波的频谱信息,存储数组的第一个元素就是谐波幅值平均值。Step 71: Filter the digital signal, perform FFT on the filtered digital signal, store the spectrum information of the corresponding harmonic, and the first element of the storage array is the average value of the harmonic amplitude.

如假设存储数组为DATA[],那么DATA[0]即为幅值平均值,DATA[i]为第i个谐波的幅值,i为该谐波的频率索引值。For example, if the storage array is DATA[], then DATA[0] is the average value of the amplitude, DATA[i] is the amplitude of the i-th harmonic, and i is the frequency index value of the harmonic.

步骤72、通过频谱确定主瓣,找到主瓣内的幅值最大值谱线,记录其幅值信息X1和频率索引值K1。Step 72: Determine the main lobe through the frequency spectrum, find the maximum amplitude spectral line in the main lobe, and record its amplitude information X1 and frequency index value K1.

步骤73、找到频率索引值为(K1-1)、(K1+1)所对应的谱线,这两条谱线中幅值更大的谱线记录为次大值谱线,其幅值为X2,频率索引值为K2;Step 73. Find the spectral lines corresponding to the frequency index values (K1-1) and (K1+1), and record the spectral line with the larger amplitude among the two spectral lines as the next largest value spectral line, and its amplitude is X2, the frequency index value is K2;

步骤74、由X1和X2计算得到频率索引值修正参数δ,具体计算如下Step 74, calculate the frequency index value correction parameter δ from X1 and X2, the specific calculation is as follows

&delta;&delta; == Xx 22 Xx 11 ++ Xx 22

步骤75、最后由修正参数δ和K1可以得到主频信号的频率索引K,具体计算如下Step 75. Finally, the frequency index K of the main frequency signal can be obtained from the correction parameters δ and K1, and the specific calculation is as follows

K=K1±δ。K=K1±δ.

这种频谱的计算方法相对于FFT,在FFT的基础上,对频率索引进行了修正。修正参数通过FFT频谱主瓣内两条幅值最大的谱线的幅值信息得到,由主瓣内幅值最大的谱线的频率索引估计和修正参数可以得到主频信号的频率信息。需要说明的是,当K1>K2时,主频信号频率索引为K=K1-δ,当K1<K2时,主频信号频率索引为K=K1+δ。这里的主频信号是指所检测支路的信号。Compared with the FFT, this calculation method of the frequency spectrum modifies the frequency index on the basis of the FFT. The correction parameters are obtained from the amplitude information of the two spectral lines with the largest amplitudes in the main lobe of the FFT spectrum, and the frequency information of the main frequency signal can be obtained from the frequency index estimation of the spectral lines with the largest amplitudes in the main lobe and the correction parameters. It should be noted that when K1>K2, the frequency index of the main frequency signal is K=K1-δ, and when K1<K2, the frequency index of the main frequency signal is K=K1+δ. The main frequency signal here refers to the signal of the detected branch.

在得到两路信号的频谱信息后,通过智能算法规则可以提取涡街信号的频率,智能算法规则实现的流程如图8所示,包括步骤:After obtaining the spectrum information of the two signals, the frequency of the vortex signal can be extracted through the intelligent algorithm rules. The process of implementing the intelligent algorithm rules is shown in Figure 8, including steps:

步骤81、比较两路信号的谐波幅值最大值,若A1<A2,表示测量出现异常,为非法数据,涡街流量计提出异常警告,并放弃此次的测量结果;否则进入下一步。Step 81. Compare the maximum value of the harmonic amplitude of the two signals. If A1<A2, it means that the measurement is abnormal and the data is illegal. The vortex flowmeter gives an abnormal warning and discards the measurement result; otherwise, go to the next step.

步骤82、判断两路信号的谐波幅值最大值是否相等,若相等则继续比较两路谐波的幅值平均值,若Aa1=Aa2,则可判断涡街信号支路为空管,结束;若Aa1≠Aa2,则将F1、F2所对应谱线的幅值归零,重新返回步骤(1);若A1>A2,则进行下一步。Step 82. Determine whether the maximum values of the harmonic amplitudes of the two signals are equal. If they are equal, continue to compare the average values of the two harmonic amplitudes. If Aa1=Aa2, it can be judged that the vortex street signal branch is an empty pipe. End ; If Aa1≠Aa2, reset the amplitudes of the spectral lines corresponding to F1 and F2 to zero, and return to step (1); if A1>A2, proceed to the next step.

步骤83、比较F1与F2,若F1≧F2,则判断涡街信号的频率索引值为F1;否则表示测量出现异常,为非法数据,涡街流量计提出异常警告,并放弃此次的测量结果。Step 83. Compare F1 and F2. If F1≧F2, judge that the frequency index value of the vortex signal is F1; otherwise, it means that the measurement is abnormal, which is illegal data. The vortex flowmeter issues an abnormal warning and discards the measurement result this time. .

实际上当F1=F2,则此时涡街信号的频率与干扰信号的频率相等,频率索引值都为F1,若F1>F2,则涡街信号的频率索引值为F1。In fact, when F1=F2, the frequency of the vortex signal is equal to the frequency of the interference signal, and the frequency index value is F1. If F1>F2, the frequency index value of the vortex signal is F1.

需要说明的是,执行智能算法规则的两个前提:一个是硬件前提,即为两路信号检测;一个是软件前提,即为插值FFT频谱分析。智能算法规则实现了在干扰强于涡街信号强度的条件下仍能提取涡街信号。涡街信号最明显的特点就是低频段易受干扰。传统方法应对低频段干扰,往往采取缩小低频段量程的措施。本发明中的智能算法规则可以有效改善这一不足。当涡街频率大于干扰频率时,两路信号的频谱特征为,涡街信号支路中谐波幅值最大值大于干扰信号支路中谐波幅值最大值,且前者对应的频率索引大于后者对应的频率索引;当涡街频率等于干扰频率时,两路信号的频谱特征为,涡街信号支路中谐波幅值最大值不等于干扰信号支路中谐波幅值最大值,但是二者对应的频率索引相等,同时涡街信号支路的幅值平均值大于干扰信号支路的幅值平均值;当涡街频率小于干扰频率时,两路信号的频谱特征为,涡街信号支路中谐波幅值最大值等于干扰信号支路中的谐波幅值最大值。此时,如果两路的幅值平均值相等,则可知涡街信号支路为空管;当涡街频率小于干扰频率时,两路信号的频谱特征为,涡街信号支路中谐波幅值最大值等于干扰信号支路中的谐波幅值最大值,如果涡街信号支路的幅值平均值大于干扰信号支路的幅值平均值,则可知干扰信号频率覆盖了涡街信号频率。干扰频率覆盖涡街信号频率时,为了获取准确的涡街频率,需消除两路中的幅值最大的谐波的频谱信息,然后在剩下的谐波中,重新根据算法规则提取涡街频率。It should be noted that there are two prerequisites for the implementation of intelligent algorithm rules: one is the hardware prerequisite, that is, two-way signal detection; the other is the software prerequisite, that is, the interpolation FFT spectrum analysis. The intelligent algorithm rules realize that the vortex signal can still be extracted under the condition that the interference is stronger than the vortex signal strength. The most obvious feature of the vortex signal is that the low frequency band is susceptible to interference. Traditional methods to deal with low-frequency interference often take measures to reduce the low-frequency range. The intelligent algorithm rules in the present invention can effectively improve this deficiency. When the vortex frequency is greater than the interference frequency, the spectrum characteristics of the two signals are that the maximum value of the harmonic amplitude in the vortex signal branch is greater than the maximum harmonic amplitude in the interference signal branch, and the corresponding frequency index of the former is greater than that of the latter The corresponding frequency index; when the frequency of the vortex street is equal to the interference frequency, the spectral characteristics of the two signals are that the maximum value of the harmonic amplitude in the vortex signal branch is not equal to the maximum value of the harmonic amplitude in the interference signal branch, but The corresponding frequency indexes of the two are equal, and the average value of the amplitude of the vortex signal branch is greater than the average value of the amplitude of the interference signal branch; when the vortex frequency is smaller than the interference frequency, the spectral characteristics of the two signals are, The maximum value of the harmonic amplitude in the branch is equal to the maximum value of the harmonic amplitude in the branch of the interference signal. At this time, if the average values of the amplitudes of the two channels are equal, it can be known that the vortex street signal branch is an empty tube; when the vortex street frequency is lower than the interference frequency, the spectrum characteristics of the two signals are that the harmonic amplitude The maximum value is equal to the maximum value of the harmonic amplitude in the interference signal branch. If the average amplitude of the vortex signal branch is greater than the average amplitude of the interference signal branch, it can be known that the frequency of the interference signal covers the frequency of the vortex signal. . When the interference frequency covers the vortex signal frequency, in order to obtain the accurate vortex frequency, it is necessary to eliminate the spectrum information of the harmonic with the largest amplitude in the two channels, and then extract the vortex frequency again according to the algorithm rules from the remaining harmonics .

以上实施例仅用以说明本发明的技术方案而非对其进行限制,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。The above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding changes and changes according to the present invention. deformation, but these corresponding changes and deformations should belong to the scope of protection of the appended claims of the present invention.

Claims (10)

1.一种基于DSP的数字化智能涡街流量计,包括信号检测模块、信号输出模块、人机接口模块和电源模块,其特征在于,所述信号检测模块包括涡街信号检测电路和干扰检测电路;所述智能涡街流量计还包括频谱分析模块,所述频谱分析模块包括:1. A digital intelligent vortex flowmeter based on DSP, comprising a signal detection module, a signal output module, a man-machine interface module and a power supply module, characterized in that the signal detection module comprises a vortex signal detection circuit and an interference detection circuit The intelligent vortex flowmeter also includes a spectrum analysis module, and the spectrum analysis module includes: 模数转换单元,用于将所述信号检测模块输出的两路检测信号转换为数字信号;An analog-to-digital conversion unit, configured to convert the two detection signals output by the signal detection module into digital signals; 数字带通滤波单元,用于对所述模数转换单元输出的数字信号进行带通滤波;A digital band-pass filter unit, configured to band-pass filter the digital signal output by the analog-to-digital conversion unit; 插值FFT计算单元,用于对所述数字带通滤波单元输出的滤波后的数字信号进行频谱分析,得到所述信号检测模块两路检测信号的谐波的频谱信息;An interpolation FFT calculation unit, configured to perform spectrum analysis on the filtered digital signal output by the digital bandpass filter unit, to obtain the spectrum information of the harmonics of the two detection signals of the signal detection module; 智能算法规则单元,用于比较所述两路检测信号的谐波的频谱信息,提取涡街信号的频率。The intelligent algorithm rule unit is used to compare the spectrum information of the harmonics of the two detection signals, and extract the frequency of the vortex signal. 2.根据权利要求1所述的基于DSP的数字化智能涡街流量计,其特征在于:所述智能涡街流量计还包括与频谱分析模块相连的监测模块,所述监测模块为看门狗电路。2. The digital intelligent vortex flowmeter based on DSP according to claim 1, characterized in that: the intelligent vortex flowmeter also includes a monitoring module connected to the spectrum analysis module, and the monitoring module is a watchdog circuit . 3.根据权利要求1所述的基于DSP的数字化智能涡街流量计,其特征在于:所述智能涡街流量计还包括与频谱分析模块相连的参数存储模块。3. The digital intelligent vortex flowmeter based on DSP according to claim 1, characterized in that: the intelligent vortex flowmeter further comprises a parameter storage module connected with the spectrum analysis module. 4.根据权利要求1,2,3任一权利要求所述的基于DSP的数字化智能涡街流量计,其特征在于:所述涡街信号检测电路和干扰检测电路的硬件电路均包括传感器,电荷放大器和预滤波电路,所述传感器为压电传感器。4. According to claim 1, 2, the digital intelligent vortex flowmeter based on DSP according to any one of claims 3, it is characterized in that: the hardware circuits of the vortex signal detection circuit and the interference detection circuit all include sensors, charge An amplifier and a pre-filter circuit, the sensor is a piezoelectric sensor. 5.根据权利要求1所述的基于DSP的数字化智能涡街流量计,其特征在于:所述频谱分析模块为数字信号处理器DSP。5. The digital intelligent vortex flowmeter based on DSP according to claim 1, characterized in that: the spectrum analysis module is a digital signal processor (DSP). 6.根据权利要求1所述的基于DSP的数字化智能涡街流量计,其特征在于:所述数字化智能涡街流量计,还包括稳压电路,所述稳压电路包括一个稳压器,用于将所述电源模块输出的参考电压转变为所述模数转化模块的输入电压。6. The digital intelligent vortex flowmeter based on DSP according to claim 1, characterized in that: the digital intelligent vortex flowmeter also includes a voltage stabilizing circuit, and the voltage stabilizing circuit includes a voltage regulator for for converting the reference voltage output by the power supply module into the input voltage of the analog-to-digital conversion module. 7.一种基于DSP的数字化智能涡街流量计量方法,其特征在于,包括步骤:7. A DSP-based digital intelligent vortex flow metering method, characterized in that it comprises steps: (1)、分别对涡街信号和干扰信号进行检测获得两路检测信号;(1) Detect the vortex signal and the interference signal respectively to obtain two detection signals; (2)、对检测出的两路检测信号进行采样,转变为数字信号;(2) Sampling the detected two detection signals and converting them into digital signals; (3)、对数字信号进行滤波,做基于幅值的插值FFT,得到两路检测信号的谐波的频谱信息;(3) Filter the digital signal and perform amplitude-based interpolation FFT to obtain the spectrum information of the harmonics of the two detection signals; (4)、比较两路检测信号的谐波的频谱信息,通过智能算法规则提取涡街信号的频率;(4) Compare the spectrum information of the harmonics of the two detection signals, and extract the frequency of the vortex signal through intelligent algorithm rules; (5)、经过换算输出流量计量信息。(5) Output flow metering information after conversion. 8.根据权利要求7所述的基于DSP的数字化智能涡街流量计量方法,其特征在于,所述谐波的频谱信息包括谐波的幅值平均值、谐波的幅值以及谐波的频率索引值。8. The digital intelligent vortex flow metering method based on DSP according to claim 7, characterized in that, the frequency spectrum information of the harmonics includes the amplitude mean value of the harmonics, the amplitude of the harmonics and the frequency of the harmonics index value. 9.根据权利要求8所述的基于DSP的数字化智能涡街流量计量方法,其特征在于,所述步骤(3)包括步骤:9. The DSP-based digital intelligent vortex flow metering method according to claim 8, characterized in that the step (3) includes the steps of: (3.1)、对数字信号进行滤波,对滤波后数字信号作FFT,存储相应的谐波的频谱信息,存储数组的第一个就是谐波幅值平均值;(3.1), filter the digital signal, perform FFT on the filtered digital signal, store the spectrum information of the corresponding harmonic, and the first one of the storage array is the average value of the harmonic amplitude; (3.2)、通过频谱确定主瓣,找到主瓣内的幅值最大值谱线,记录其幅值信息X1和频率索引值K1;(3.2) Determine the main lobe through the spectrum, find the maximum amplitude spectral line in the main lobe, and record its amplitude information X1 and frequency index value K1; (3.3)、找到频率索引值为(K1-1)、(K1+1)所对应的谱线,这两条谱线中幅值更大的谱线记录为次大值谱线,其幅值为X2,频率索引值为K2;(3.3) Find the spectral lines corresponding to the frequency index values (K1-1) and (K1+1), and the spectral line with the larger amplitude among the two spectral lines is recorded as the second largest value spectral line, and its amplitude is X2, and the frequency index value is K2; (3.4)、通过X1和X2计算得到频率索引值修正参数δ,具体计算如下:(3.4) Calculate the frequency index value correction parameter δ through X1 and X2, and the specific calculation is as follows: &delta;&delta; == Xx 22 Xx 11 ++ Xx 22 ;; (3.5)、最后由修正参数δ和K1可以得到主频信号的频率索引K,具体计算如下(3.5). Finally, the frequency index K of the main frequency signal can be obtained from the correction parameters δ and K1. The specific calculation is as follows K=K1±δ。K=K1±δ. 10.根据权利要求9所述的基于DSP的数字化智能涡街流量计量方法,其特征在于,假定A1为涡街信号支路谐波幅值最大值,A2为干扰信号支路谐波幅值最大值,F1为涡街信号支路谐波幅值最大值对应谱线的频率索引值,F2为干扰信号支路谐波幅值最大值对应谱线的频率索引值,Aa1为涡街信号支路幅值平均值,Aa2为干扰信号支路幅值平均值,F为最终涡街信号主频频率索引值,则所述步骤(4)包括步骤:10. The DSP-based digital intelligent vortex flow metering method according to claim 9, wherein it is assumed that A1 is the maximum harmonic amplitude value of the vortex signal branch, and A2 is the maximum harmonic amplitude value of the interference signal branch F1 is the frequency index value of the spectral line corresponding to the maximum harmonic amplitude of the vortex street signal branch, F2 is the frequency index value of the maximum harmonic amplitude of the interference signal branch corresponding to the spectral line, Aa1 is the vortex street signal branch The average value of the amplitude, Aa2 is the average value of the amplitude of the interference signal branch, and F is the index value of the main frequency of the final vortex signal, then the step (4) includes the steps: (4.1)比较两路检测信号的谐波幅值最大值,若A1<A2,表示测量出现异常,为非法数据,涡街流量计提出异常警告,并放弃此次的测量结果;若A1≧A2,则进入下一步;(4.1) Compare the maximum value of the harmonic amplitude of the two detection signals. If A1<A2, it means that the measurement is abnormal and is illegal data. The vortex flowmeter will give an abnormal warning and give up the measurement result this time; if A1≧A2 , go to the next step; (4.2)判断两路检测信号的谐波幅值最大值A1与A2是否相等,若相等则继续比较两路谐波的幅值平均值,若Aa1=Aa2,则可判断涡街信号支路为空管,结束;若Aa1≠Aa2,则将F1、F2所对应谱线的幅值归零,重新返回步骤(4.1);若A1>A2,则进行下一步;(4.2) Determine whether the maximum harmonic amplitude values A1 and A2 of the two detection signals are equal. If they are equal, continue to compare the average amplitude values of the two harmonics. If Aa1=Aa2, it can be judged that the vortex street signal branch is Empty tube, end; if Aa1≠Aa2, reset the amplitudes of the spectral lines corresponding to F1 and F2 to zero, and return to step (4.1); if A1>A2, proceed to the next step; (4.3)比较F1与F2,若F1≧F2,则判断涡街信号的频率索引值为F1;否则表示测量出现异常,为非法数据,涡街流量计提出异常警告,并放弃此次的测量结果。(4.3) Compare F1 and F2, if F1≧F2, then judge the frequency index value of the vortex signal to be F1; otherwise, it means that the measurement is abnormal, which is illegal data, and the vortex flowmeter will issue an abnormal warning and give up the measurement result this time .
CN2013100475294A 2013-02-01 2013-02-01 Digital intelligent vortex shedding flowmeter based on DSP and metering method of same Pending CN103148897A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013100475294A CN103148897A (en) 2013-02-01 2013-02-01 Digital intelligent vortex shedding flowmeter based on DSP and metering method of same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013100475294A CN103148897A (en) 2013-02-01 2013-02-01 Digital intelligent vortex shedding flowmeter based on DSP and metering method of same

Publications (1)

Publication Number Publication Date
CN103148897A true CN103148897A (en) 2013-06-12

Family

ID=48547106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013100475294A Pending CN103148897A (en) 2013-02-01 2013-02-01 Digital intelligent vortex shedding flowmeter based on DSP and metering method of same

Country Status (1)

Country Link
CN (1) CN103148897A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105067048A (en) * 2015-07-17 2015-11-18 合肥科迈捷智能传感技术有限公司 Vibration interference resisting measuring method of digitalized vortex shedding flowmeter
CN109238379A (en) * 2018-10-30 2019-01-18 合肥工业大学 A kind of anti-pipe vibration method and system of vortex-shedding meter that frequency variance calculating is combined with amplitude operation

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001153698A (en) * 1999-09-14 2001-06-08 Yokogawa Electric Corp Vortex flowmeter
CN1737506A (en) * 2005-07-13 2006-02-22 合肥工业大学 A low-cost intelligent vortex flowmeter signal processing system based on DSP
CN101113995A (en) * 2007-08-29 2008-01-30 湖南大学 Fundamental wave and harmonic detection method based on Nuttall window bimodal interpolation FFT
CN101162162A (en) * 2007-11-14 2008-04-16 合肥工业大学 Low-power consumption two-wire system vortex flowmeter
CN101614566A (en) * 2009-06-29 2009-12-30 合肥工业大学 Low power consumption two-wire vortex flowmeter based on fast Fourier transform
CN101701982A (en) * 2009-11-16 2010-05-05 浙江大学 Harmonic Detection Method of Power System Based on Windowed Interpolation FFT
CN101701834A (en) * 2009-11-10 2010-05-05 合肥工业大学 Digital Vortex Flowmeter Based on Dual Sensors Against Strong Interference

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001153698A (en) * 1999-09-14 2001-06-08 Yokogawa Electric Corp Vortex flowmeter
CN1737506A (en) * 2005-07-13 2006-02-22 合肥工业大学 A low-cost intelligent vortex flowmeter signal processing system based on DSP
CN101113995A (en) * 2007-08-29 2008-01-30 湖南大学 Fundamental wave and harmonic detection method based on Nuttall window bimodal interpolation FFT
CN101162162A (en) * 2007-11-14 2008-04-16 合肥工业大学 Low-power consumption two-wire system vortex flowmeter
CN101614566A (en) * 2009-06-29 2009-12-30 合肥工业大学 Low power consumption two-wire vortex flowmeter based on fast Fourier transform
CN101701834A (en) * 2009-11-10 2010-05-05 合肥工业大学 Digital Vortex Flowmeter Based on Dual Sensors Against Strong Interference
CN101701982A (en) * 2009-11-16 2010-05-05 浙江大学 Harmonic Detection Method of Power System Based on Windowed Interpolation FFT

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈志国等: "基于Nuttall窗插值FFT的谐波分析方法", 《电力自动化设备》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105067048A (en) * 2015-07-17 2015-11-18 合肥科迈捷智能传感技术有限公司 Vibration interference resisting measuring method of digitalized vortex shedding flowmeter
CN105067048B (en) * 2015-07-17 2018-02-13 合肥科迈捷智能传感技术有限公司 A kind of measuring method of the digitlization vortex-shedding meter of anti-vibration interference
CN109238379A (en) * 2018-10-30 2019-01-18 合肥工业大学 A kind of anti-pipe vibration method and system of vortex-shedding meter that frequency variance calculating is combined with amplitude operation
CN109238379B (en) * 2018-10-30 2020-03-24 合肥工业大学 Method and system for preventing pipeline vibration of vortex shedding flowmeter by combining frequency variance calculation and amplitude calculation

Similar Documents

Publication Publication Date Title
CN101701834B (en) Strong interference resistant digital vortex shedding flowmeter based on double sensors
CN101476906B (en) Anti-strong fixed interference digital signal processing system of vortex street flowmeter
CN101614566B (en) Low-power and two-wire vortex shedding flowmeter based on fast Fourier transform
CN101893465A (en) A Signal Processing System of Electromagnetic Flowmeter Based on DSP
CN103185837B (en) Method for measuring frequency of power system
CN106679741A (en) Anti-interference signal processing method and system based on vortex shedding flowmeter
CN104729591B (en) A kind of signal processing method for the strong transient impact vibration of the anti-low frequency of vortex-shedding meter replaced based on data
CN103163380A (en) Micro-ohm resistance measurement system based on LabVIEW developing platform
CN203364966U (en) High-precision and high-sensitivity optical power meter with large dynamic range
CN103257280A (en) Capacitive equipment dielectric loss monitoring device based on electric field sensor and monitoring method
CN107687875B (en) An electromagnetic vortex flowmeter for measuring the flow of gas-containing conductive liquid
CN111351535A (en) Signal processing method of high-frequency sine wave excitation electromagnetic flowmeter
CN103529294A (en) HHT (Hilbert-Huang Transform)-based harmonic detection system and method for grid-connected inverter of photovoltaic system
CN101363746B (en) Fluid vibration type effusion meter self-adapting FFT power spectrum analysis and signal processing method
CN201247401Y (en) Apparatus for collecting and processing signal of subway stray current optical fiber sensing system
CN103148897A (en) Digital intelligent vortex shedding flowmeter based on DSP and metering method of same
CN203241084U (en) Vortex street flow converter based on application-specific integrated circuit
CN202886471U (en) Multi-channel leakage current phase difference detection equipment
CN100385207C (en) A low-cost intelligent vortex flowmeter signal processing system based on DSP
CN113029258A (en) Vortex street flow meter digital signal processing system based on vortex street amplitude-frequency characteristic anti-interference
CN104391209A (en) Device for measuring line status
CN203672481U (en) Electric equipment noise detection device
CN107561360B (en) A kind of sinusoidal signal method for measuring phase difference based on FPGA and subtraction circuit
CN214669650U (en) A cold atom gravimeter ground low frequency vibration signal processing circuit
CN201688869U (en) Double-blunt-body vortex street flowmeter based on self-adaptive FFT power spectrum analysis

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130612