[go: up one dir, main page]

CN204359405U - The flow velocity simulation system of ultrasonic flow meter - Google Patents

The flow velocity simulation system of ultrasonic flow meter Download PDF

Info

Publication number
CN204359405U
CN204359405U CN201420824021.0U CN201420824021U CN204359405U CN 204359405 U CN204359405 U CN 204359405U CN 201420824021 U CN201420824021 U CN 201420824021U CN 204359405 U CN204359405 U CN 204359405U
Authority
CN
China
Prior art keywords
circuit
fpga
ultrasonic
resistance
flow meter
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.)
Expired - Lifetime
Application number
CN201420824021.0U
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.)
Chongqing Chuanyi Automation Co Ltd
Original Assignee
Chongqing Chuanyi Automation Co Ltd
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 Chongqing Chuanyi Automation Co Ltd filed Critical Chongqing Chuanyi Automation Co Ltd
Priority to CN201420824021.0U priority Critical patent/CN204359405U/en
Application granted granted Critical
Publication of CN204359405U publication Critical patent/CN204359405U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Measuring Volume Flow (AREA)

Abstract

一种超声波流量计的流速模拟系统,包括FPGA电路、触摸屏、DA转换器、输出控制电路、通道切换电路、信号阈值比较电路以及两个换能器,所述FPGA电路分别与输出控制电路、通道切换电路连接,用于分别控制输出控制电路、通道切换电路的接通或断开,所述待测超声波流量计用于分别向两个换能器发出驱动信号,所述两个换能器用于分别接受待测超声波流量计的驱动信号,并分别经通道切换电路传递给信号阈值比较电路,所述FPGA电路用于接收信号阈值比较电路的启动信号,产生定时时间,定时输出控制信号,控制DA转换器输出超声波脉冲波形,并经输出控制电路分别传递给两个换能器。

A flow velocity simulation system of an ultrasonic flowmeter, comprising an FPGA circuit, a touch screen, a DA converter, an output control circuit, a channel switching circuit, a signal threshold comparison circuit and two transducers, the FPGA circuit is connected to the output control circuit and the channel respectively The switching circuit is connected to control the on or off of the output control circuit and the channel switching circuit respectively, and the ultrasonic flowmeter to be tested is used to send driving signals to the two transducers respectively, and the two transducers are used for Respectively receive the driving signals of the ultrasonic flowmeter to be tested, and transmit them to the signal threshold comparison circuit through the channel switching circuit respectively, and the FPGA circuit is used to receive the start signal of the signal threshold comparison circuit, generate timing time, and output control signals at regular intervals to control the DA The converter outputs the ultrasonic pulse waveform, which is transmitted to the two transducers respectively through the output control circuit.

Description

超声波流量计的流速模拟系统Flow Velocity Simulation System of Ultrasonic Flowmeter

技术领域 technical field

本实用新型涉及超声波流量计测试领域,尤其涉及一种超声波流量计的流速模拟系统。 The utility model relates to the testing field of ultrasonic flowmeters, in particular to a flow velocity simulation system of ultrasonic flowmeters.

背景技术 Background technique

由于超声波流量计不接触被测介质,测量准确度受介质温度和压力参数影响较小等特点,使其得到广泛应用。 Because the ultrasonic flowmeter does not touch the measured medium, the measurement accuracy is less affected by the medium temperature and pressure parameters, so it is widely used.

申请人公司之前在超声波流量计研发过程中,采用时差法测量流体流速,基本原理都是测量超声波脉冲在顺水流和逆水流中的时间差来反应流速,从而测出流量。因此在此前的超声波流量计研发时,为得到流速的信息,须将超声波传感器安装在实际的管道上,并通过一定流速的流体,才能验证相关超声波流量计脉冲收发电路是否正常,测量结果是否线性等相关信息。在不具备管道和流体的情况下,这样的功能测试就不能进行。因此有必要设计一种模拟超声波传感器收发波形的电路系统,使超声波流量计的参数验证工作在没有实际管道和流体的情况下,也可以验证超声波脉冲收发电路是否正常,以及流量计线性度是否在合理范围内。 The applicant company used the time difference method to measure the fluid flow velocity in the development process of the ultrasonic flowmeter before. The basic principle is to measure the time difference of the ultrasonic pulse in the downstream flow and the upstream flow to reflect the flow velocity, so as to measure the flow rate. Therefore, in the development of the previous ultrasonic flowmeter, in order to obtain the information of the flow rate, the ultrasonic sensor must be installed on the actual pipeline, and the fluid with a certain flow rate must be passed through to verify whether the pulse transceiver circuit of the relevant ultrasonic flowmeter is normal and whether the measurement result is linear. and other relevant information. Functional testing like this cannot be done without the availability of piping and fluids. Therefore, it is necessary to design a circuit system that simulates the sending and receiving waveform of the ultrasonic sensor, so that the parameter verification of the ultrasonic flowmeter can also verify whether the ultrasonic pulse sending and receiving circuit is normal and whether the linearity of the flowmeter is in the absence of actual pipelines and fluids. within a reasonable range.

发明内容     Invention content

本实用新型是针对现有技术的不足,提供了一种超声波流量计的流速模拟系统,本系统可以有效地解决超声波流量计功能验证必须在具备管道和一定流速流体情况下才能进行的弊端,使超声波流量计的功能验证在无管道流体的情况下也能实现,本实用新型适用于在不需要实际管道流体的情况下,模拟超声波流量计的信号收发方式,实现流速的模拟和线性度分析。 The utility model aims at the deficiencies of the prior art, and provides a flow velocity simulation system of an ultrasonic flowmeter. This system can effectively solve the drawback that the functional verification of the ultrasonic flowmeter must be carried out only when there are pipelines and a fluid with a certain flow velocity. The function verification of the ultrasonic flowmeter can also be realized without pipeline fluid. The utility model is suitable for simulating the signal sending and receiving mode of the ultrasonic flowmeter to realize flow velocity simulation and linearity analysis without actual pipeline fluid.

本实用新型为解决上述技术问题采用的技术方案为:一种超声波流量计的流速模拟系统,包括FPGA电路、触摸屏、DA转换器、输出控制电路、通道切换电路、信号阈值比较电路以及两个换能器,所述FPGA电路分别与输出控制电路、通道切换电路连接,用于分别控制输出控制电路、通道切换电路的接通或断开,所述FPGA电路通过RS485接口与触摸屏连接,所述FPGA电路通过RS232接口与待测超声波流量计连接,所述待测超声波流量计用于分别向两个换能器发出驱动信号,所述两个换能器用于分别接受待测超声波流量计的驱动信号,并分别经通道切换电路传递给信号阈值比较电路,所述信号阈值比较电路用于将待测超声波流量计驱动换能器的驱动电压与设定的阈值进行比较,输出启动信号给FPGA电路,所述FPGA电路用于接收信号阈值比较电路的启动信号,产生定时时间,定时输出控制信号,控制DA转换器输出超声波脉冲波形,并经输出控制电路分别传递给两个换能器。 The technical scheme adopted by the utility model to solve the above technical problems is: a flow velocity simulation system of an ultrasonic flowmeter, including an FPGA circuit, a touch screen, a DA converter, an output control circuit, a channel switching circuit, a signal threshold comparison circuit and two switching circuits. The FPGA circuit is connected with the output control circuit and the channel switching circuit respectively, and is used to respectively control the connection or disconnection of the output control circuit and the channel switching circuit. The FPGA circuit is connected with the touch screen through the RS485 interface, and the FPGA The circuit is connected to the ultrasonic flowmeter to be tested through the RS232 interface, and the ultrasonic flowmeter to be tested is used to send driving signals to two transducers respectively, and the two transducers are used to respectively receive the driving signals of the ultrasonic flowmeter to be tested , and respectively passed to the signal threshold comparison circuit through the channel switching circuit, the signal threshold comparison circuit is used to compare the driving voltage of the driving transducer of the ultrasonic flowmeter to be tested with the set threshold, and output the start signal to the FPGA circuit, The FPGA circuit is used to receive the starting signal of the signal threshold comparison circuit, generate timing time, output the control signal regularly, control the DA converter to output the ultrasonic pulse waveform, and transmit it to the two transducers respectively through the output control circuit.

所述FPGA电路采用型号为EP4CE10的FPGA芯片。 The FPGA circuit adopts an FPGA chip whose model is EP4CE10.

所述DA转换器采用型号为AD9760AR的数模转换器。 The DA converter adopts a digital-to-analog converter whose model is AD9760AR.

所述输出控制电路采用型号为ADG1421的模拟开关芯片。 The output control circuit adopts an analog switch chip whose model is ADG1421.

所述信号阈值比较电路包括运放U12A、运放U14B以及若干电阻、电容,所述运放U14B的同相输入端经第28个电阻R28与通道切换电路的输出端连接,运放U14B的反相输入端分别与第26个电阻R26的一端、第27个电阻R27的一端、第53个电容C53的一端连接,第26个电阻R26的另一端接地,第27个电阻R27的另一端、第53个电容C53的另一端均与运放U14B的输出端连接,运放U14B的输出端经第29个电阻R29与运放U12A的同相输入端连接,运放U12A的反相输入端分别与电阻RA1的一端、电阻RA2的一端连接,电阻RA1的另一端接1.2V电压,电阻RA2的另一端接地,所述运放U12A的输出端与FPGA电路连接。 The signal threshold comparison circuit includes an operational amplifier U12A, an operational amplifier U14B and several resistors and capacitors, the non-inverting input terminal of the operational amplifier U14B is connected with the output terminal of the channel switching circuit through the 28th resistor R28, and the inverting input terminal of the operational amplifier U14B The input terminals are respectively connected to one end of the 26th resistor R26, one end of the 27th resistor R27, and one end of the 53rd capacitor C53, the other end of the 26th resistor R26 is grounded, the other end of the 27th resistor R27, the 53rd capacitor C53 The other end of each capacitor C53 is connected to the output terminal of the operational amplifier U14B, the output terminal of the operational amplifier U14B is connected to the non-inverting input terminal of the operational amplifier U12A through the 29th resistor R29, and the inverting input terminal of the operational amplifier U12A is respectively connected to the resistor RA1 One end of the resistor RA2 is connected to one end of the resistor RA2, the other end of the resistor RA1 is connected to a voltage of 1.2V, the other end of the resistor RA2 is grounded, and the output end of the operational amplifier U12A is connected to the FPGA circuit.

所述通道切换电路采用型号为ADG1421的模拟开关芯片。 The channel switching circuit adopts an analog switch chip whose model is ADG1421.

本实用新型采用上述技术方案的有益效果为:由于本实用新型的超声波流量计的流速模拟系统,包括FPGA电路、触摸屏、DA转换器、输出控制电路、通道切换电路、信号阈值比较电路以及两个换能器,所述FPGA电路分别与输出控制电路、通道切换电路连接,用于分别控制输出控制电路、通道切换电路的接通或断开,所述FPGA电路通过RS485接口与触摸屏连接,所述FPGA电路通过RS232接口与待测超声波流量计连接,所述待测超声波流量计用于分别向两个换能器发出驱动信号,所述两个换能器用于分别接受待测超声波流量计的驱动信号,并分别经通道切换电路传递给信号阈值比较电路,所述信号阈值比较电路用于将待测超声波流量计驱动换能器的驱动电压与设定的阈值进行比较,输出启动信号给FPGA电路,所述FPGA电路用于接收信号阈值比较电路的启动信号,产生定时时间,定时输出控制信号,控制DA转换器输出超声波脉冲波形,并经输出控制电路分别传递给两个换能器。本系统模拟超声波脉冲的收发电路以及超声波流量计参数设置系统, 可以在没有管道和流体的情况下,通过主要由触摸屏实现的参数设置系统和超声波脉冲收发模拟电路的巧妙结合,也可以验证超声波流量计收发电路功能是否正常,线性度是否在合理范围。 The utility model adopts the beneficial effect of the above-mentioned technical solution: because the flow velocity simulation system of the ultrasonic flowmeter of the utility model includes an FPGA circuit, a touch screen, a DA converter, an output control circuit, a channel switching circuit, a signal threshold comparison circuit and two The transducer, the FPGA circuit is connected with the output control circuit and the channel switching circuit respectively, and is used to control the connection or disconnection of the output control circuit and the channel switching circuit respectively, and the FPGA circuit is connected with the touch screen through the RS485 interface, and the The FPGA circuit is connected to the ultrasonic flowmeter to be tested through the RS232 interface, and the ultrasonic flowmeter to be tested is used to send driving signals to two transducers respectively, and the two transducers are used to receive the drive of the ultrasonic flowmeter to be tested respectively signal, and respectively pass the channel switching circuit to the signal threshold comparison circuit, the signal threshold comparison circuit is used to compare the drive voltage of the drive transducer of the ultrasonic flowmeter to be tested with the set threshold, and output the start signal to the FPGA circuit , the FPGA circuit is used to receive the starting signal of the signal threshold comparison circuit, generate a timing time, output a control signal regularly, control the DA converter to output the ultrasonic pulse waveform, and transmit it to the two transducers respectively through the output control circuit. This system simulates the transmitting and receiving circuit of ultrasonic pulse and the parameter setting system of ultrasonic flowmeter. In the absence of pipelines and fluids, through the ingenious combination of the parameter setting system mainly realized by the touch screen and the analog circuit of ultrasonic pulse transmitting and receiving, the ultrasonic flow rate can also be verified. Check whether the function of the transmitter and receiver circuit is normal, and whether the linearity is within a reasonable range.

本系统可以有效地解决超声波流量计功能验证必须在具备管道和一定流速流体情况下才能进行的弊端,使超声波流量计的功能验证在无管道流体的情况下也能实现。 This system can effectively solve the disadvantage that the function verification of ultrasonic flowmeter must be carried out under the condition of pipeline and fluid with a certain flow rate, so that the function verification of ultrasonic flowmeter can also be realized without pipeline fluid.

附图说明 Description of drawings

图1为本实用新型的电路框图; Fig. 1 is the circuit diagram of the utility model;

图2为本实用新型的DA转换器、输出控制电路的电路图; Fig. 2 is the circuit diagram of DA converter of the present utility model, output control circuit;

图3为本实用新型的信号阈值比较电路、通道切换电路的电路图; Fig. 3 is a circuit diagram of a signal threshold comparison circuit and a channel switching circuit of the present invention;

图4为本实用新型的方法流程图; Fig. 4 is the method flowchart of the present utility model;

图5为差法测流速示意图。 Figure 5 is a schematic diagram of flow rate measurement by differential method.

具体实施方式 Detailed ways

下面结合附图和实施例对本实用新型作进一步说明: Below in conjunction with accompanying drawing and embodiment the utility model is further described:

参见图1至图5,一种超声波流量计的流速模拟系统,包括FPGA电路、触摸屏、DA转换器、输出控制电路、通道切换电路、信号阈值比较电路以及两个换能器,所述FPGA电路分别与输出控制电路、通道切换电路连接,用于分别控制输出控制电路、通道切换电路的接通或断开,所述FPGA电路通过RS485接口与触摸屏连接,所述FPGA电路通过RS232接口与待测超声波流量计连接,所述待测超声波流量计用于分别向两个换能器发出驱动信号,所述两个换能器用于分别接受待测超声波流量计的驱动信号,并分别经通道切换电路传递给信号阈值比较电路,所述信号阈值比较电路用于将待测超声波流量计驱动换能器的驱动电压与设定的阈值进行比较,输出启动信号给FPGA电路,所述FPGA电路用于接收信号阈值比较电路的启动信号,产生定时时间,定时输出控制信号,控制DA转换器输出超声波脉冲波形,并经输出控制电路分别传递给两个换能器。 Referring to Figures 1 to 5, a flow velocity simulation system of an ultrasonic flowmeter includes an FPGA circuit, a touch screen, a DA converter, an output control circuit, a channel switching circuit, a signal threshold comparison circuit and two transducers, the FPGA circuit Connect with the output control circuit and the channel switching circuit respectively, and are used to control the connection or disconnection of the output control circuit and the channel switching circuit respectively. The FPGA circuit is connected with the touch screen through the RS485 interface, and the FPGA circuit is connected with the test device through the RS232 interface. The ultrasonic flowmeter is connected, and the ultrasonic flowmeter to be tested is used to send driving signals to two transducers respectively, and the two transducers are used to respectively receive the driving signals of the ultrasonic flowmeter to be tested, and pass through the channel switching circuit respectively Passed to the signal threshold comparison circuit, the signal threshold comparison circuit is used to compare the drive voltage of the drive transducer of the ultrasonic flowmeter to be tested with the set threshold, and output the start signal to the FPGA circuit, and the FPGA circuit is used to receive The start signal of the signal threshold comparison circuit generates a timing time, outputs a control signal at a timing, controls the DA converter to output an ultrasonic pulse waveform, and transmits it to two transducers respectively through the output control circuit.

如图1所示,触摸屏主要用来设置参数,如超声波速度,管道直径,安装角度等,同时验证结果和线性度信息也在触摸屏上显示;FPGA是本专利核心器件,用来接收换能器信号,产生精确定时时间,控制DA输出超声波脉冲波形以及通道切换等。信号阈值比较电路将设定的阈值与待测超声波流量计驱动换能器的电压比较,超过阈值则输出启动信号,通知FPGA立刻开始计时,进行一次超声波脉冲波形发送。 As shown in Figure 1, the touch screen is mainly used to set parameters, such as ultrasonic velocity, pipe diameter, installation angle, etc. At the same time, the verification results and linearity information are also displayed on the touch screen; FPGA is the core device of this patent, used to receive transducers Signal, generate precise timing, control DA output ultrasonic pulse waveform and channel switching, etc. The signal threshold comparison circuit compares the set threshold with the voltage of the driving transducer of the ultrasonic flowmeter to be tested. If the threshold is exceeded, the start signal is output, and the FPGA is notified to start timing immediately and send an ultrasonic pulse waveform.

在FPGA与换能器间设置触发电路作用是在超声波流量计输出信号幅值很小(此电路为10毫伏),阈值比较即输出高电平触发FPGA,减少延迟时间。如果不设置的化流量计输出信号会在较高的电平(2.0V以上)才会被FPGA检测到,时间延迟大。 The function of setting the trigger circuit between the FPGA and the transducer is that the output signal amplitude of the ultrasonic flowmeter is very small (this circuit is 10 millivolts), and the threshold value comparison is to output a high level to trigger the FPGA to reduce the delay time. If it is not set, the output signal of the flowmeter will be detected by the FPGA at a higher level (above 2.0V), and the time delay will be large.

具体电路描述如下: The specific circuit description is as follows:

所述FPGA电路采用型号为EP4CE10的FPGA芯片。所述DA转换器采用型号为AD9760AR的数模转换器。该数模转换器的DACLK引脚是FPGA通过内部锁相环分频获得的32M HZ正弦波时钟信号。所述输出控制电路采用型号为ADG1421的模拟开关芯片。所述通道切换电路采用型号为ADG1421的模拟开关芯片。 The FPGA circuit adopts an FPGA chip whose model is EP4CE10. The DA converter adopts a digital-to-analog converter whose model is AD9760AR. The DACLK pin of the digital-to-analog converter is the 32M HZ sine wave clock signal obtained by the FPGA through the frequency division of the internal phase-locked loop. The output control circuit adopts an analog switch chip whose model is ADG1421. The channel switching circuit adopts an analog switch chip whose model is ADG1421.

所述信号阈值比较电路包括运放U12A、运放U14B以及若干电阻、电容,所述运放U14B的同相输入端经第28个电阻R28与通道切换电路的输出端连接,运放U14B的反相输入端分别与第26个电阻R26的一端、第27个电阻R27的一端、第53个电容C53的一端连接,第26个电阻R26的另一端接地,第27个电阻R27的另一端、第53个电容C53的另一端均与运放U14B的输出端连接,运放U14B的输出端经第29个电阻R29与运放U12A的同相输入端连接,运放U12A的反相输入端分别与电阻RA1的一端、电阻RA2的一端连接,电阻RA1的另一端接1.2V电压,电阻RA2的另一端接地,所述运放U12A的输出端与FPGA电路连接。 The signal threshold comparison circuit includes an operational amplifier U12A, an operational amplifier U14B and several resistors and capacitors, the non-inverting input terminal of the operational amplifier U14B is connected with the output terminal of the channel switching circuit through the 28th resistor R28, and the inverting input terminal of the operational amplifier U14B The input terminals are respectively connected to one end of the 26th resistor R26, one end of the 27th resistor R27, and one end of the 53rd capacitor C53, the other end of the 26th resistor R26 is grounded, the other end of the 27th resistor R27, the 53rd capacitor C53 The other end of each capacitor C53 is connected to the output terminal of the operational amplifier U14B, the output terminal of the operational amplifier U14B is connected to the non-inverting input terminal of the operational amplifier U12A through the 29th resistor R29, and the inverting input terminal of the operational amplifier U12A is respectively connected to the resistor RA1 One end of the resistor RA2 is connected to one end of the resistor RA2, the other end of the resistor RA1 is connected to a voltage of 1.2V, the other end of the resistor RA2 is grounded, and the output end of the operational amplifier U12A is connected to the FPGA circuit.

参见图4,一种超声波流量计的流速模拟方法,采用了上述超声波流量计的流速模拟系统,包括以下步骤: Referring to Fig. 4, a flow velocity simulation method of an ultrasonic flowmeter adopts the flow velocity simulation system of the above-mentioned ultrasonic flowmeter, including the following steps:

1)在触摸屏中预先设置模拟参数,包括管道直径D、两超声波换能器与管道水平方向夹角                                               、量程、超声波速度c,根据设定的量程确定多个用于测试线性度的测试点,各个测试点的流体流速v对应量程的各个百分比,将从两个换能器中的第一换能器开始发送脉冲到第二换能器接收到脉冲信号的时间定义为t1,从第二换能器发送脉冲到第一换能器接收到脉冲信号的时间定义为t2,t1与t2之差定义为⊿t,在触摸屏上设置好模拟参数后,FPGA根据设置的模拟参数,通过公式1、2、3计算出多个不同量程百分比点对应的t1值和t2值,其中,公式1为,公式2为,公式3为1) Pre-set the simulation parameters on the touch screen, including the pipe diameter D, the angle between the two ultrasonic transducers and the horizontal direction of the pipe , range, ultrasonic velocity c, determine a plurality of test points for testing linearity according to the set range, the fluid flow velocity v of each test point corresponds to each percentage of the range, and the first transducer of the two transducers The time from when the transducer starts to send a pulse to when the second transducer receives the pulse signal is defined as t1, and the time from when the second transducer sends a pulse to when the first transducer receives the pulse signal is defined as t2, and the difference between t1 and t2 is defined as is ⊿t, after setting the simulation parameters on the touch screen, the FPGA calculates the t1 and t2 values corresponding to multiple different range percentage points through formulas 1, 2 and 3 according to the set simulation parameters, among which, formula 1 is , formula 2 is , formula 3 is .

本实施例中根据量程设置5个测试点,5个测试点的流体流速v对应量程的10%、30%、60%、90%、100%。当设定的量程为10m/S时,则第一个检测点根据1m/S的流体流速v 计算t1、t2,第二个检测点根据3m/S的流体流速计算t1、t2,第三个检测点根据6m/S的流体流速计算t1、t2,第四个检测点根据9m/S的流体流速计算t1、t2,第五个检测点根据10m/S的流体流速计算t1、t2。超声波在流体中的速度c是相对固定的,在本发明中作为常数处理,本发明利用下式1,2,3测量管道中流体的速度。公式1,2,3只计算流体实际流速,量程即最大流速确定后,超声波速度已知,管道直径和安装角度也设定好后,管道中流体流速v就只与t1和t2有关,不同流速对应不同的t1和t2差值,百分比大的测试点对应的t1值和t2差值大。 In this embodiment, 5 test points are set according to the range, and the fluid velocity v of the 5 test points corresponds to 10%, 30%, 60%, 90%, and 100% of the range. When the set range is 10m/S, the first detection point calculates t1 and t2 according to the fluid velocity v of 1m/S, the second detection point calculates t1 and t2 according to the fluid velocity v of 3m/S, and the third The detection point calculates t1 and t2 according to the fluid flow velocity of 6m/S, the fourth detection point calculates t1 and t2 according to the fluid flow velocity of 9m/S, and the fifth detection point calculates t1 and t2 according to the fluid flow velocity of 10m/S. The velocity c of the ultrasonic wave in the fluid is relatively fixed, and it is treated as a constant in the present invention. The present invention uses the following formulas 1, 2, and 3 to measure the velocity of the fluid in the pipeline. Formulas 1, 2, and 3 only calculate the actual flow velocity of the fluid. After the range, that is, the maximum flow velocity is determined, the ultrasonic velocity is known, and the pipe diameter and installation angle are also set, the fluid flow velocity v in the pipeline is only related to t1 and t2. Different flow velocities Corresponding to different differences between t1 and t2, the test point with a large percentage corresponds to a large difference between t1 and t2.

2)启动测试,FPGA电路通过RS232接口通知超声波流量计测试过程开始,超声波流量计首先在第一换能器上发出驱动脉冲,FPGA电路通过信号阈值比较电路确定接收到超声波流量计发射脉冲后,FPGA电路立刻开始计时,计时t1时间后,FPGA电路控制DA转换器给第二换能器输出模拟接收信号波形,超声波流量计测量从发送驱动脉冲到接收到模拟接收信号波形的时间间隔T1,然后超声波流量计在第二换能器上发出驱动脉冲,FPGA电路通过信号阈值比较电路确定接收到超声波流量计发射脉冲后,FPGA电路立刻开始计时,计时t2时间后,FPGA电路控制DA转换器给第一换能器输出模拟接收信号波形,超声波流量计测量从发送驱动脉冲到接收到模拟接收信号波形的时间间隔T2,超声波流量计根据测量得到的时间间隔T1和T2,计算出流速V,并将此流速V发送给FPGA电路,FPGA电路根据该流速V即可判断出超声波流量计工作收发信号功能是否正常,并发送给触摸屏显示; 2) Start the test, the FPGA circuit notifies the ultrasonic flowmeter that the test process starts through the RS232 interface, the ultrasonic flowmeter first sends a driving pulse on the first transducer, and the FPGA circuit determines that after receiving the ultrasonic flowmeter emission pulse through the signal threshold comparison circuit, The FPGA circuit starts timing immediately. After timing t1, the FPGA circuit controls the DA converter to output the analog receiving signal waveform to the second transducer. The ultrasonic flowmeter measures the time interval T1 from sending the driving pulse to receiving the analog receiving signal waveform, and then The ultrasonic flowmeter sends a driving pulse on the second transducer, and the FPGA circuit determines through the signal threshold comparison circuit that after receiving the transmitted pulse of the ultrasonic flowmeter, the FPGA circuit immediately starts timing. After timing t2, the FPGA circuit controls the DA converter to the second transducer. A transducer outputs an analog receiving signal waveform. The ultrasonic flowmeter measures the time interval T2 from sending the driving pulse to receiving the analog receiving signal waveform. The ultrasonic flowmeter calculates the flow velocity V according to the measured time interval T1 and T2, and The flow velocity V is sent to the FPGA circuit, and the FPGA circuit can judge whether the ultrasonic flowmeter's work sending and receiving signal function is normal according to the flow velocity V, and send it to the touch screen for display;

所述的模拟接收信号波形是一系列峰值渐增到达最高值后递减的正弦波包络。本系统中需要FPGA和DA转换器模拟此波形作为待测超声波流量计回波接收信号。所述的驱动脉冲是频率为1Mhz的6个连续正弦波,用于模拟换能器在接收到超声脉冲激励后产生的一定电压峰值的正弦波包络。 The analog receiving signal waveform is a series of sine wave envelopes whose peaks gradually increase to the highest value and then decrease. In this system, FPGA and DA converter are needed to simulate this waveform as the echo receiving signal of the ultrasonic flowmeter to be tested. The driving pulses are 6 continuous sine waves with a frequency of 1Mhz, which are used to simulate the sine wave envelope of a certain voltage peak generated by the transducer after receiving the ultrasonic pulse excitation.

3)根据步骤2)分别计算出多个测试点对应的流速,并判断线性度。 3) According to step 2), calculate the flow velocity corresponding to multiple test points, and judge the linearity.

线性度以量程10%点和100%点的流速测试值作一直线,以量程为30m/S为例,假设流速模拟器根据根据式1,2,3发出10%量程点(理论值3m/S)的⊿t信号给超声波流量计,超声波流量计实测值假设为3.2m/S;同样假设流速模拟器根据根据式1,2,3发出100%量程点(理论值30m/S)的⊿t信号给超声波流量计,超声波流量计实测值假设为29m/S,那么根据上述两实测值, 30%(9m/S)点的实测值理论上应为3.2+(29-3.2)*(30%-10%)=8.36m/S.而当超声波流速模拟器发出30%量程测试点对应的⊿t信号,超声波流量计实测出来的值为8.86,那么改点的线性偏差即为(8.86-8.36)/29=0.017即1.7%。同理可得60%和90%点的线性偏差。 Linearity is a straight line based on the flow velocity test values of 10% of the range and 100% of the point. Taking the range of 30m/S as an example, it is assumed that the flow velocity simulator sends 10% of the range according to formulas 1, 2, and 3 (theoretical value 3m/S The ⊿t signal of S) is sent to the ultrasonic flowmeter, and the measured value of the ultrasonic flowmeter is assumed to be 3.2m/S; it is also assumed that the flow velocity simulator sends ⊿ of the 100% range point (theoretical value 30m/S) according to formulas 1, 2, and 3 The t signal is sent to the ultrasonic flowmeter, and the actual measured value of the ultrasonic flowmeter is assumed to be 29m/S, then according to the above two measured values, the measured value of the 30% (9m/S) point should theoretically be 3.2+(29-3.2)*(30 %-10%)=8.36m/S. When the ultrasonic flow velocity simulator sends out the ⊿t signal corresponding to the 30% range test point, the actual measured value of the ultrasonic flowmeter is 8.86, then the linear deviation of the changed point is (8.86- 8.36)/29=0.017 or 1.7%. In the same way, the linear deviation of the 60% and 90% points can be obtained.

在本方法采用了如图5所示的时差法测量原理,图5所示为超声波流量计时差法测流速的示意图,从第一换能器开始发送脉冲到第二换能器接收到脉冲信号的时间为t1,从第二换能器发送脉冲到第一换能器接收到脉冲信号的时间为t2. t1与t2之差为⊿t,其与管道内流体流速关系如式1所示: In this method, the time-difference method measurement principle shown in Figure 5 is adopted. Figure 5 shows a schematic diagram of the ultrasonic flowmeter differential method for measuring flow velocity, starting from the first transducer to send pulses to the second transducer receiving pulse signals The time of t1 is t1, and the time from the second transducer sending the pulse to the first transducer receiving the pulse signal is t2. The difference between t1 and t2 is ⊿t, and its relationship with the fluid velocity in the pipeline is shown in formula 1:

                         (1) (1)

                          (2) (2)

                        (3) (3)

式中,c为超声波在流体中的速度,D为管道直径,是两超声波换能器与管道水平方向夹角。由式1可见,当超声波在静止流体中传播速度可认为是常数时,流体流速就与时间差⊿t成正比,测量⊿t即可得到流速,进而求得流量。 In the formula, c is the speed of ultrasonic waves in the fluid, D is the diameter of the pipe, is the angle between the two ultrasonic transducers and the horizontal direction of the pipeline. It can be seen from Equation 1 that when the propagation velocity of ultrasonic waves in a stationary fluid can be considered constant, the fluid flow velocity is proportional to the time difference ⊿t, and the flow velocity can be obtained by measuring ⊿t, and then the flow rate can be obtained.

本发明的脉冲模拟及功能测试原理采用图1所示示意图。第一换能器和第二换能器并不是真正的传感器,他们的发送信号由流量计产生,接收信号通过本流速模拟器模拟产生。设置好模拟管道流量的参数后(如管道直径,超声波速度,安装角度等,量程),确定上述参数后,经过公式1,2,3的计算,流速模拟系统就可以确定在5个不同量程百分比点(10%,30%,60%,90%,100%)对应t1和t2的值,FPGA通过阈值触发电路确定接收到超声波流量计发射脉冲后,FPGA控制DA转换器分别以t1和t2的时间间隔在对应的换能器上输出模拟接收信号波形。按下触摸屏上的启动按钮,测试过程启动。FPGA通过RS232接口通知超声波流量计测试过程开始,超声波流量计首先在第一换能器上发出驱动波形,驱动波形是频率1Mhz 的6个连续正弦波,幅值约4V左右,模拟的是换能器在接收到超声脉冲激励后产生的一定电压峰值的正弦波包络,图3所示是换能器接收到超生脉冲后实际生成的正弦包络,本流速模拟器通过DA转换器模拟该波形大于阈值时,阈值设置为当流量计发送驱动脉冲大于10毫伏时,阈值检测电路输出高电平触发FPGA开始计时t1,计时时间t1到达后,FPGA立刻驱动DA转换器输出图3所示的模拟波形,模拟波形是一系列峰值渐增到达最高值后递减的正弦波包络,一般液体超声波接收信号最高点峰值电压在500毫伏左右,本例中的流量计在正弦包络的第二个正弦波作为时间测量点。通过通道控制输出到第二换能器上作为流量计接收信号,如果超声波流量计收发电路工作正常,可得出此次第一换能器发送脉冲开始到第二换能器接收到回波信号为止的时间为t1;同理,超声波流量计在第二换能器发送波形开始到第一换能器接收到模拟回波信号为止的时间为t2;由式1,超声波流量计依据上述时间t1和t2即可计算出流量,并将此流量信息发送给FPGA,FPGA在发送给触摸屏显示。量程设定后,对应的5个测试点就明确了,量程设定是根据传感器测量范围而变化,如量程设置为10m/S,对应的10%,30%,60%,90%,100%测试点为(1m/S,3m/S,6m/S,9m/S,10m/S),量程只有一个。为了测量线性度,根据量程不同,需要设置5个测试点,分别为量程的10%,30%,60%,90%,100%,不同测试点,如公式1,2,3所示,确定了管道直径、安装角度、超声波速度等参数后,仅需改变t1和t2时间,如果超声波流量计工作收发信号功能正常,就能得出相应的理论流速,系统的线性度误差不应超过2%。本系统目前设置的测试点是上述5个,这也是超声波流量计行业内流速实流标定一般要求的测试点,以后,可以通过触摸屏参数设置灵活更改测试点位置和数量。 The principle of pulse simulation and function test of the present invention adopts the schematic diagram shown in FIG. 1 . The first transducer and the second transducer are not real sensors, their sending signals are generated by the flowmeter, and the receiving signals are simulated by this flow rate simulator. After setting the parameters of the simulated pipeline flow (such as pipeline diameter, ultrasonic velocity, installation angle, etc., range), after determining the above parameters, the flow rate simulation system can be determined in 5 different range percentages after calculation of formulas 1, 2, and 3. Points (10%, 30%, 60%, 90%, 100%) correspond to the values of t1 and t2, and the FPGA determines through the threshold trigger circuit that after receiving the transmitted pulse of the ultrasonic flowmeter, the FPGA controls the DA converter with the values of t1 and t2 respectively. The time interval outputs the analog receiving signal waveform on the corresponding transducer. Press the start button on the touch screen to start the test process. The FPGA notifies the ultrasonic flowmeter to start the test process through the RS232 interface. The ultrasonic flowmeter first sends out a driving waveform on the first transducer. The driving waveform is 6 continuous sine waves with a frequency of 1Mhz and an amplitude of about 4V. The simulation is the transducer The sine wave envelope of a certain voltage peak generated by the transducer after receiving the ultrasonic pulse excitation. Figure 3 shows the sine wave envelope actually generated by the transducer after receiving the ultrasonic pulse. The flow velocity simulator simulates the waveform through the DA converter When the threshold is greater than the threshold, the threshold is set so that when the flowmeter sends a drive pulse greater than 10 millivolts, the threshold detection circuit outputs a high level to trigger the FPGA to start timing t1, and when the timing t1 arrives, the FPGA immediately drives the DA converter to output the output shown in Figure 3 Analog waveform, the analog waveform is a series of sine wave envelopes whose peak value gradually increases to the highest value and then decreases. Generally, the peak voltage of the highest point of the liquid ultrasonic receiving signal is about 500 millivolts. The flowmeter in this example is at the second A sine wave is used as the time measurement point. Output to the second transducer through the channel control as the flowmeter receiving signal. If the ultrasonic flowmeter transceiver circuit works normally, it can be concluded that the first transducer sends the pulse and the second transducer receives the echo signal. The time until the end is t1; similarly, the time from when the second transducer sends the waveform to when the first transducer receives the analog echo signal is t2; from formula 1, the ultrasonic flowmeter is based on the above time t1 and t2 can calculate the flow, and send this flow information to FPGA, and FPGA will send it to the touch screen for display. After the range is set, the corresponding 5 test points are clear. The range setting is changed according to the measurement range of the sensor. For example, if the range is set to 10m/S, the corresponding 10%, 30%, 60%, 90%, 100% The test points are (1m/S, 3m/S, 6m/S, 9m/S, 10m/S), and there is only one measuring range. In order to measure the linearity, depending on the range, it is necessary to set 5 test points, respectively 10%, 30%, 60%, 90%, 100% of the range, different test points, as shown in formula 1, 2, 3, determine After the pipe diameter, installation angle, ultrasonic speed and other parameters are determined, it is only necessary to change the time t1 and t2. If the ultrasonic flowmeter works normally, the corresponding theoretical flow rate can be obtained, and the linearity error of the system should not exceed 2%. . The test points currently set in this system are the above five, which are also the test points generally required for the actual flow calibration of the ultrasonic flowmeter industry. In the future, the position and quantity of the test points can be flexibly changed through the touch screen parameter setting.

Claims (6)

1. the flow velocity simulation system of a ultrasonic flow meter, it is characterized in that: comprise FPGA circuit, touch-screen, D/A converter, output control circuit, channel switching circuit, signal threshold value comparator circuit and two transducers, described FPGA circuit respectively with output control circuit, channel switching circuit connects, for controlling output control circuit respectively, being switched on or switched off of channel switching circuit, described FPGA circuit is connected with touch-screen by RS485 interface, described FPGA circuit is connected with ultrasonic flow meter to be measured by RS232 interface, described ultrasonic flow meter to be measured is used for sending drive singal respectively to two transducers, described two transducers are used for the drive singal accepting ultrasonic flow meter to be measured respectively, and pass to signal threshold value comparator circuit through channel switching circuit respectively, described signal threshold value comparator circuit is used for ultrasonic flow meter to be measured to drive the driving voltage of transducer and the threshold value of setting to compare, export enabling signal to FPGA circuit, described FPGA circuit is used for the enabling signal of Received signal strength threshold value comparator circuit, produce timing, timing output control signal, control D/A converter output ultrasonic wave pulse waveform, and pass to two transducers respectively through output control circuit.
2. the flow velocity simulation system of ultrasonic flow meter according to claim 1, is characterized in that: described FPGA circuit adopts model to be the fpga chip of EP4CE10.
3. the flow velocity simulation system of ultrasonic flow meter according to claim 1, is characterized in that: described D/A converter adopts model to be the digital to analog converter of AD9760AR.
4. the flow velocity simulation system of ultrasonic flow meter according to claim 1, is characterized in that: described output control circuit adopts model to be the analog switch chip of ADG1421.
5. the flow velocity simulation system of ultrasonic flow meter according to claim 1, it is characterized in that: described signal threshold value comparator circuit comprises amplifier (U12A), amplifier (U14B) and some resistance, electric capacity, the in-phase input end of described amplifier (U14B) is connected with the output terminal of channel switching circuit through the 28th resistance (R28), the inverting input of amplifier (U14B) respectively with one end of the 26th resistance (R26), one end of 27th resistance (R27), one end of 53rd electric capacity (C53) connects, the other end ground connection of the 26th resistance (R26), the other end of the 27th resistance (R27), the other end of the 53rd electric capacity (C53) is all connected with the output terminal of amplifier (U14B), the output terminal of amplifier (U14B) is connected with the in-phase input end of amplifier (U12A) through the 29th resistance (R29), the inverting input of amplifier (U12A) respectively with one end of resistance (RA1), one end of resistance (RA2) connects, another termination 1.2V voltage of resistance (RA1), the other end ground connection of resistance (RA2), the output terminal of described amplifier (U12A) is connected with FPGA circuit.
6. the flow velocity simulation system of ultrasonic flow meter according to claim 1, is characterized in that: described channel switching circuit adopts model to be the analog switch chip of ADG1421.
CN201420824021.0U 2014-12-23 2014-12-23 The flow velocity simulation system of ultrasonic flow meter Expired - Lifetime CN204359405U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201420824021.0U CN204359405U (en) 2014-12-23 2014-12-23 The flow velocity simulation system of ultrasonic flow meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201420824021.0U CN204359405U (en) 2014-12-23 2014-12-23 The flow velocity simulation system of ultrasonic flow meter

Publications (1)

Publication Number Publication Date
CN204359405U true CN204359405U (en) 2015-05-27

Family

ID=53260869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201420824021.0U Expired - Lifetime CN204359405U (en) 2014-12-23 2014-12-23 The flow velocity simulation system of ultrasonic flow meter

Country Status (1)

Country Link
CN (1) CN204359405U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104535141A (en) * 2014-12-23 2015-04-22 重庆川仪自动化股份有限公司 Flow speed simulating system and method of ultrasonic flowmeter

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104535141A (en) * 2014-12-23 2015-04-22 重庆川仪自动化股份有限公司 Flow speed simulating system and method of ultrasonic flowmeter
CN104535141B (en) * 2014-12-23 2017-10-24 重庆川仪自动化股份有限公司 The flow velocity simulation system and method for ultrasonic flowmeter

Similar Documents

Publication Publication Date Title
CN104535141B (en) The flow velocity simulation system and method for ultrasonic flowmeter
CN102589656B (en) Sound delay testing method and measuring device for gas ultrasonic flowmeter
CN106768103B (en) A kind of method of the automatic prover time deviation of ultrasonic flowmeter
CN105157771B (en) A kind of transit-time ultrasonic flow measuring method and device
CN104501889B (en) Ultrasonic flow detection method based on cross-correlation time difference method
CN101446505B (en) System for calibrating ultrasonic flowmeter by time difference method
CN100565241C (en) Ultrasonic Echo Frontier Detection Method Based on Modulation Domain Measurement
CN106840290A (en) A kind of high accuracy quadraphonic gas ultrasound wave current transmitter
CA2635390A1 (en) System and method for field calibration of flow meters
CN103261848B (en) Flow volume measuring device
CN103090916A (en) Ultrasonic flow measurement device and ultrasonic flow measurement method
CN105698884A (en) Improved measurement method of time difference type ultrasonic flow meter
CN103196504A (en) Method and device for measuring multi-channel ultrasonic flow
CN105403265A (en) Automatic zero drift-correction ultrasound water meter and correction method
Tian et al. Energy peak fitting of echo based signal processing method for ultrasonic gas flow meter
CN102866261B (en) Method for detecting flight time of ultrasonic wave in flow speed measurement
CN104457871A (en) Flowmeter and fluid measurement method
CN105181045B (en) Ultrasonic flowmeter, which eliminates temperature, influences the method for the velocity of sound
CN106768104A (en) A kind of ultrasonic wave mass flowmenter
CN101922954A (en) Method for processing envelope line of ultrasonic measuring signal
CN204359405U (en) The flow velocity simulation system of ultrasonic flow meter
CN202216742U (en) Dual-channel Ultrasonic Flowmeter Time Difference Detection Device
CN206291930U (en) A kind of ultrasonic wave mass flowmenter
CN112903043B (en) Multichannel ultrasonic flowmeter system
CN209117096U (en) A kind of low-consumption ultrasonic flow measurement meter

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
AV01 Patent right actively abandoned

Granted publication date: 20150527

Effective date of abandoning: 20171024

AV01 Patent right actively abandoned