Automatic gain adjustment system and ultrasonic measurement and transducer health diagnosis method

By introducing automatic gain adjustment and health diagnosis functions into the ultrasonic metering system, and using digital adjustable resistance and time difference metering modules, inaccurate metering and transducer health issues under fluid and environmental changes are solved, and accurate metering and timely maintenance are achieved. .

CN115096408BActive Publication Date: 2024-10-22SHAANXI AEROSPACE POWER HIGH TECH
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202210507826.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-10
Publication Date
2024-10-22
Estimated Expiration
2042-05-10

Smart Images

  • Figure CN115096408B_ABST
    Figure CN115096408B_ABST
Patent Text Reader

Abstract

The present invention relates to an automatic gain adjustment system and an ultrasonic metering and transducer health diagnosis method; the problem in the prior art that when the fluids flowing through the flow meter pipeline are different and the temperature and pressure are different, the amplitude of the ultrasonic signal emitted by the ultrasonic transducer is also different, so it is necessary to perform AGC automatic gain adjustment on the analog amplifier circuit, and with the continuous use of the flow meter, problems such as transducer surface dirt, transducer damage, and circuit board line failure may occur; the adjustment system specifically includes an MCU, a liquid crystal display module, a time difference metering module based on automatic gain adjustment, and two relatively arranged ultrasonic transducers, and the time difference metering module based on automatic gain adjustment includes a digital adjustable resistor, and the resistance value of the digital adjustable resistor is automatically adjusted so that the maximum voltage value of the amplified waveform of the corresponding ultrasonic transducer reaches a target value; the present invention also proposes the above-mentioned ultrasonic metering and transducer health diagnosis method using the above-mentioned system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an ultrasonic measurement system, and in particular to an automatic gain adjustment system and an ultrasonic measurement and transducer health diagnosis method based on the system. Background Art

[0002] The ultrasonic flow meter is an ultrasonic sensor made of piezoelectric ceramic chips. The signal it sends to the circuit board is only at the mV level. Therefore, in the ultrasonic metering system based on automatic gain adjustment, it needs to be amplified by the analog amplifier circuit before it can be sent to the MCU for signal processing. In addition, when the flow rate changes, the signal at the ultrasonic transmitter will be offset and the signal received by the receiver will also become smaller. Therefore, the analog amplifier circuit usually needs to use software for AGC automatic gain adjustment.

[0003] When the fluids flowing through the flow meter pipeline are different and the temperature and pressure are different, the amplitude of the ultrasonic signal emitted by the ultrasonic transducer is also different, and the analog amplifier circuit needs to be adjusted by AGC automatic gain. However, this function is usually not available in existing ultrasonic metering systems based on automatic gain adjustment. In addition, with the continuous use of the flow meter, the transducer surface may become dirty, the transducer may be damaged, and the circuit board may fail. In other words, the transducer may have health problems, but the system usually cannot self-diagnose these health problems. Summary of the invention

[0004] The purpose of the present invention is to solve the problem in the prior art that when the fluids flowing through the flow meter pipeline are different and the temperature and pressure are different, the amplitude of the ultrasonic signal emitted by the ultrasonic transducer is also different, so it is necessary to perform AGC automatic gain adjustment on the analog amplifier circuit, but this function is usually not available in the existing system; in addition, with the continuous use of the flow meter, phenomena such as dirt on the transducer surface, damage to the transducer, and circuit board failure may occur, and the system cannot perform health diagnosis due to these phenomena. Therefore, an automatic gain adjustment system and ultrasonic measurement and transducer health diagnosis method are provided.

[0005] To achieve the above purpose, the technical solution adopted by the present invention is:

[0006] An automatic gain adjustment system, the special features of which are:

[0007] It includes an MCU, a liquid crystal display module, a time difference measurement module based on automatic gain adjustment, and a first transducer and a second transducer arranged relatively;

[0008] The first transducer and the second transducer are used to be installed on the ultrasonic gas flow meter, and the two input ends of the time difference metering module based on automatic gain adjustment are respectively connected to the first transducer and the second transducer, and are used to measure the downstream propagation time, the upstream propagation time and the amplified waveform voltage value output by the first transducer and the second transducer, and the output end thereof is connected to the MCU;

[0009] The MCU is used to receive the gas downstream propagation time, the upstream propagation time data and the amplified waveform voltage values ​​output by the first transducer and the second transducer, and perform data processing;

[0010] The liquid crystal display module is connected to the MCU and is used to display the gas cumulative flow, standard flow, operating flow, temperature, pressure, system alarm, and health alarm information of the first transducer and the second transducer;

[0011] The time difference metering module based on automatic gain adjustment includes a digital adjustable resistor, which is connected to the MCU and is used for the system to automatically adjust the resistance of the digital adjustable resistor so that the maximum voltage value of the amplified waveform of the first transducer and the second transducer reaches the target value.

[0012] The present invention also proposes an ultrasonic measurement and transducer health diagnosis method based on the above automatic gain adjustment system, which is special in that it includes the following steps:

[0013] Step 1: Set the metering cycle T, the target adjustment times N of the digital adjustable resistor within the metering cycle T, and the limit value R of the digital adjustable resistor in the system. max , digital adjustable resistor limit value R max The actual resistance value R of the digital adjustable resistor real The ideal difference R a , the upper limit value of the target voltage V goalmax , the middle value V goalmed And the lower limit V goalmin ;

[0014] Step 2: The metering cycle starts and the initial record collection times A are set i is 0;

[0015] Step 3: Record the number of acquisitions A i , A i is the number of collections within the measurement cycle;

[0016] Step 4: If A i ≤N, proceed to step 5; if A i > N, the system reports an error, the gain adjustment fails, and the current digital adjustable resistor value R is recorded. real , output alarm signal, stop metering and overhaul the system;

[0017] Step 5: Collect the maximum voltage value V of the amplified waveform output by the first transducer real1 ;

[0018] Step 6: If V real1 >V goalmax , then calculate the resistance value F to be adjusted temp , and the current resistance value R of the digital adjustable resistor real Make adjustments; after adjustment, return to step 3; otherwise, proceed to step 7;

[0019] Step 7: If V real1 <V goalmin , then calculate the resistance value F to be adjusted temp , and the current resistance value R of the digital adjustable resistor real Make adjustments; after adjustment, return to step 3; otherwise, proceed to step 8;

[0020] Step 8: Perform normal measurement and record the current resistance value R of the digital adjustable resistor. real If R max -R real <R a , then the first transducer health status alarm signal is output, and step 9 is performed to stop the measurement after the current measurement cycle ends and to repair the system; otherwise, it indicates that the first transducer is in good condition, and step 9 is performed;

[0021] Step 9: Record the number of acquisitions A i+1 , if A i+1 > N, the system reports an error, the gain adjustment fails, and the current digital adjustable resistor value R is recorded. real , output an alarm signal, stop measuring and repair the system, otherwise, proceed to step 10;

[0022] Step 10: Collect the maximum voltage value V of the amplified waveform output by the second transducer real2 ;

[0023] Step 11: If V real2 >V goalmax , then calculate the resistance value F to be adjusted temp , and the current resistance value R of the digital adjustable resistor real Make adjustments; after adjustment, return to step 9; otherwise, proceed to step 12;

[0024] Step 12: If V real2 <V goalmin , then calculate the resistance value F to be adjusted temp , and the current resistance value R of the digital adjustable resistor real Make adjustments; after adjustment, return to step 9; otherwise, proceed to step 13;

[0025] Step 13: Measure normally and proceed to step 14. At the same time, record the current resistance value R of the digital adjustable resistor. real If R max -R real <R a , then the second transducer health status alarm signal is output, and step 14 is performed, and the measurement is stopped after the current measurement cycle ends, and the system is repaired; otherwise, it means that the second transducer is good, and normal measurement is performed, and step 14 is performed.

[0026] Step 14: until the metering cycle T ends, proceed to the next cycle.

[0027] Furthermore, the method further comprises the following steps:

[0028] Step 15: Select the resistance value of the digital adjustable resistor of the same ultrasonic transducer at the same time within one day and store it in a memory;

[0029] Step 16: Draw a resistance change curve based on the resistance data in the storage, and then estimate the expected failure time of the first transducer and the second transducer based on the resistance change curve, and replace or repair the first transducer or the second transducer according to the expected failure time.

[0030] Furthermore, the resistance value F to be adjusted temp The calculation formula is as follows:

[0031]

[0032] In step 6 and step 11, R adj =R real -F temp ;

[0033] In steps 7 and 12, R adj =R real +F temp ;

[0034] Among them, R adj It is the resistance value of the digital adjustable resistor after adjustment.

[0035] Further, in step 16: the estimated expected failure time of the first transducer or the second transducer is obtained by fitting data through software.

[0036] The beneficial effects of the present invention are:

[0037] 1. The present invention can meet the requirements of ultrasonic flowmeters with large diameters, large flows and high pressures, and can achieve accurate measurement through automatic gain adjustment methods.

[0038] 2. The present invention can be realized by converting the ideal difference Ra By comparing the actual difference with the actual value, real-time monitoring of the health status of the transducer can be achieved.

[0039] 3. The present invention can judge the health status of the transducer by the resistance change of the digital adjustable resistor at the same time on different dates, and can predict the failure time of the transducer, so as to repair or replace the transducer in time and reduce the economic loss caused by the failure of the transducer. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a flow chart of an embodiment of an ultrasonic measurement and transducer health diagnosis method based on automatic gain adjustment of the present invention;

[0041] Figure 2 is a schematic diagram of the automatic gain adjustment system of the present invention;

[0042] Figure 3 The present invention is a structural principle diagram of an ultrasonic transducer of an automatic gain adjustment system installed in an ultrasonic gas flow meter.

[0043] Reference numerals: 1, first transducer, 2, second transducer. DETAILED DESCRIPTION

[0044] In order to make the purpose, advantages and features of the present invention clearer, the automatic gain adjustment system and ultrasonic measurement and transducer health diagnosis method proposed in the present invention are further described in detail in combination with the accompanying drawings and specific embodiments. According to the following specific implementation methods, the advantages and features of the present invention will be clearer. It should be noted that the accompanying drawings are in a very simplified form, which is only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.

[0045] The present invention proposes an automatic gain adjustment system, such as Figure 2 As shown, it includes an MCU, an LCD liquid crystal display module, a time difference measurement module based on automatic gain adjustment, a temperature and pressure measurement module, a first transducer 1 and a second transducer 2;

[0046] The first transducer 1 and the second transducer 2 are used to be relatively installed on the ultrasonic gas flowmeter, and there is an angle θ between the axis between the first transducer 1 and the second transducer 2 and the axis of the ultrasonic gas flowmeter, wherein 0<θ<90°, and the two input ends of the time difference metering module based on automatic gain adjustment are respectively connected to the first transducer 1 and the second transducer 2, and are used to measure the downstream propagation time, the upstream propagation time and the amplified waveform voltage value output by the first transducer 1 and the second transducer 2, and the output end thereof is connected to the MCU;

[0047] The MCU is used to control the received gas downstream propagation time, upstream propagation time data and the amplified waveform voltage values ​​output by the first transducer 1 and the second transducer 2, and perform data processing;

[0048] The liquid crystal display module is connected to the MCU and is used to display the gas cumulative flow, standard flow, operating flow, temperature, pressure, system alarm, and health alarm information of the first transducer 1 and the second transducer 2;

[0049] The time difference metering module based on automatic gain adjustment includes a digital adjustable resistor, which is connected to the MCU and is used for the system to automatically adjust the resistance of the digital adjustable resistor so that the maximum voltage value of the amplified waveform of the first transducer 1 and the second transducer 2 reaches the target value.

[0050] The temperature and pressure measurement module is used to measure the gas temperature and pressure, and its output end is connected to the MCU;

[0051] This system adopts the measurement principle of propagation time difference method. By measuring the time difference of ultrasonic airflow forward and reverse propagation, the gas velocity and flow rate are calculated. Then, the measured working condition gas flow rate is converted into standard condition flow rate by combining with temperature and pressure measurement module. The measurement principle is as follows: Figure 3 As shown:

[0052] Assume that the downstream arrival time is t1, the upstream arrival time is t2, the average gas velocity is B, the sound velocity is C, the distance between the first transducer 1 and the second transducer 2 is L, the angle between the first transducer 1 and the second transducer 2 and the central axis of the ultrasonic gas flowmeter is θ, and the cross-sectional area is A (m 2 ), the correction coefficient is K;

[0053] It can be seen that the calculation formulas of t1 and t2 are shown in formulas (1) and (2):

[0054]

[0055]

[0056] From equations (1) and (2), we can know that the average gas velocity B (m / s) and the operating flow rate Q 工况 (m 3 / h) are shown in formula (3) and formula (4) respectively:

[0057]

[0058] Q 工况 =A·B·3600·K Formula (4)

[0059] Standard flow rate Q 标况 (m 3 / h) as shown in formula (5):

[0060]

[0061] Wherein, P is the working pressure, in kPa; Pn is the standard pressure, in kPa; T is the working temperature, in °C; Tn is the standard temperature, in °C; Z is the working compression factor; Z n is the standard compression factor.

[0062] The present invention proposes an ultrasonic measurement and transducer health diagnosis method based on automatic gain adjustment, using the above-mentioned automatic gain adjustment system, such as Figure 1 As shown, the following steps are included:

[0063] Step 1: Set the metering cycle T, the target adjustment times N of the digital adjustable resistor within the metering cycle T, and the limit value R of the digital adjustable resistor in the system. max , digital adjustable resistor limit value R max The actual resistance value R of the digital adjustable resistor real The ideal difference R a , the upper limit value of the target voltage V goalmax , the middle value V goalmed And the lower limit V goalmin ;

[0064] Specific: Digital adjustable resistor limit value R max The actual resistance value R of the digital adjustable resistor real The ideal difference R a , that is, in R max An alarm zone is set around the digital adjustable resistor. real Once you enter the alarm area, the system will issue an alarm reminder;

[0065] Step 2: The metering cycle starts and the initial record collection times A are set i is 0;

[0066] Step 3: Record the number of acquisitions A i , A i is the number of collections within the measurement cycle;

[0067] Step 4: If A i ≤N, proceed to step 5; if A i > N, the system reports an error, the gain adjustment fails, and the current digital adjustable resistor value R is recorded. real , output alarm signal, stop metering and overhaul the system;

[0068] Step 5: Collect the maximum voltage value V of the amplified waveform output by the first transducer 1 real1 ;

[0069] Step 6: If Vreal1 >V goalmax , then calculate the resistance value F to be adjusted temp , and the current resistance value R of the digital adjustable resistor real Make adjustments; after adjustment, return to step 3; otherwise, proceed to step 7;

[0070] Specific: After adjustment, the resistance value of the digital adjustable resistor R adj For: R adj =R real -F temp ;

[0071] Step 7: If V real1 <V goalmin , then calculate the resistance value F to be adjusted temp , and the current resistance value R of the digital adjustable resistor real Make adjustments; after adjustment, return to step 3; otherwise, proceed to step 8;

[0072] Specific: After adjustment, the resistance value of the digital adjustable resistor R adj For: R adj =R real +F temp ;

[0073] Step 8: Perform normal measurement and record the current resistance value R of the digital adjustable resistor. real If R max -R real <R a , then the health status alarm signal of the first transducer 1 is output, and step 9 is performed to stop the measurement after the current measurement cycle ends and to repair the system; otherwise, it means that the first transducer 1 is in good condition and the measurement is normal, and step 9 is performed;

[0074] Step 9: Record the number of acquisitions A i+1 , if A i+1 > N, the system reports an error, the gain adjustment fails, and the current digital adjustable resistor value R is recorded. real , output an alarm signal, stop measuring and repair the system, otherwise, proceed to step 10;

[0075] Step 10: Collect the maximum voltage value V of the amplified waveform output by the second transducer 2 real2 ;

[0076] Step 11: If V real2 >V goalmax , then calculate the resistance value F to be adjusted temp , and the current resistance value R of the digital adjustable resistor realMake adjustments; after adjustment, return to step 9; otherwise, proceed to step 12;

[0077] Specific: After adjustment, the resistance value of the digital adjustable resistor R adj For: R adj =R real -F temp ;

[0078] Step 12: If V real2 <V goalmin , then calculate the resistance value F to be adjusted temp , and the current resistance value R of the digital adjustable resistor real Make adjustments; after adjustment, return to step 9; otherwise, proceed to step 13;

[0079] Specific: After adjustment, the resistance value of the digital adjustable resistor R adj For: R adj =R real +F temp ;

[0080] Step 13: Perform normal measurement and record the current resistance value R of the digital adjustable resistor. real If R max -R real <R a , then the health status alarm signal of the second transducer 2 is output, and step 14 is performed, and the measurement is stopped after the current measurement cycle ends, and the system is repaired. Otherwise, the measurement is normal, and step 14 is performed;

[0081] Step 14: until the metering cycle T ends, proceed to the next cycle.

[0082] Step 15: Select the resistance value of the digital adjustable resistor of the same ultrasonic transducer at the same time within one day and store it in a memory;

[0083] Step 16: Draw a resistance change curve based on the resistance data in the storage, and then estimate the expected failure time of the first transducer 1 and the second transducer 2 based on the resistance change curve, and replace or repair the first transducer 1 or the second transducer 2 according to the expected failure time.

[0084] The estimated failure time of the first transducer 1 or the second transducer 2 is obtained by fitting data through software.

Claims

1. An ultrasonic measurement and transducer health diagnosis method, using an automatic gain adjustment system, the automatic gain adjustment system comprising an MCU, a liquid crystal display module, a time difference measurement module based on automatic gain adjustment, and a first transducer (1) and a second transducer (2) arranged relatively; The first transducer (1) and the second transducer (2) are used to be installed on an ultrasonic gas flow meter; the two input ends of the time difference measurement module based on automatic gain adjustment are respectively connected to the first transducer (1) and the second transducer (2) for measuring the downstream propagation time and the upstream propagation time as well as the amplified waveform voltage value output by the first transducer (1) and the second transducer (2); and the output end is connected to the MCU; The MCU is used to receive data of gas downstream propagation time, upstream propagation time and amplified waveform voltage values ​​output by the first transducer (1) and the second transducer (2), and perform data processing; The liquid crystal display module is connected to the MCU and is used to display the gas cumulative flow, standard flow, operating flow, temperature, pressure, system alarm, and health alarm information of the first transducer (1) and the second transducer (2); The time difference measurement module based on automatic gain adjustment comprises a digital adjustable resistor, which is connected to the MCU and is used for the system to automatically adjust the resistance value of the digital adjustable resistor so that the maximum voltage value of the amplified waveform of the first transducer (1) and the second transducer (2) reaches a target value; Features: The following steps are involved: Step 1: Set the metering cycle T, the target adjustment times N of the digital adjustable resistor within the metering cycle T, and the limit value R of the digital adjustable resistor in the system. max , digital adjustable resistor limit value R max The actual resistance value R of the digital adjustable resistor real The ideal difference R a , the upper limit value of the target voltage V goalmax , the middle value V goalmed And the lower limit V goalmin ; Step 2: The metering cycle starts and the initial record collection times A are set i is 0; Step 3: Record the number of acquisitions A i , A i is the number of collections within the measurement cycle; Step 4: If A i ≤N, proceed to step 5; if A i > N, the system reports an error, the gain adjustment fails, and the current digital adjustable resistor value R is recorded. real , output alarm signal, stop metering and overhaul the system; Step 5: Collect the maximum voltage value V of the amplified waveform output by the first transducer (1) real1 ; Step 6: If V real1 >V goalmax , then calculate the resistance value F to be adjusted temp , and the current resistance value R of the digital adjustable resistor real Make adjustments; after adjustment, return to step 3; otherwise, proceed to step 7; Specific: After adjustment, the resistance value of the digital adjustable resistor R adj For: R adj =R real -F temp ; Step 7: If V real1 <V goalmin , then calculate the resistance value F to be adjusted temp , and the current resistance value R of the digital adjustable resistor real Make adjustments; after adjustment, return to step 3; otherwise, proceed to step 8; Specific: After adjustment, the resistance value of the digital adjustable resistor R adj For: R adj =R real +F temp ; Step 8: Perform normal measurement and record the current resistance value R of the digital adjustable resistor. real If R max -R real< R a , then the first transducer (1) health status alarm signal is output, and step 9 is performed, and the measurement is stopped after the current measurement cycle ends, and the system is repaired; otherwise, it means that the first transducer (1) is good, and step 9 is performed; Step 9: Record the number of acquisitions A i+1 , if A i+1 > N, the system reports an error, the gain adjustment fails, and the current digital adjustable resistor value R is recorded. real , output an alarm signal, stop measuring and repair the system, otherwise, proceed to step 10; Step 10: Collect the maximum voltage value V of the amplified waveform output by the second transducer (2) real2 ; Step 11: If V real2 >V goalmax , then calculate the resistance value F to be adjusted temp , and the current resistance value R of the digital adjustable resistor real Make adjustments; after adjustment, return to step 9; Otherwise, proceed to step 12; Specific: After adjustment, the resistance value of the digital adjustable resistor R adj For: R adj =R real -F temp ; Step 12: If V real2 <V goalmin , then calculate the resistance value F to be adjusted temp , and the current resistance value R of the digital adjustable resistor real Make adjustments; after adjustment, return to step 9; otherwise, proceed to step 13; Specific: After adjustment, the resistance value of the digital adjustable resistor R adj For: R adj =R real +F temp ; Step 13: Perform normal measurement and record the current resistance value R of the digital adjustable resistor. real If R max -R real< R a , then output a health status alarm signal of the second transducer (2), and proceed to step 14, stop measuring after the current measuring cycle ends, and perform system maintenance; otherwise, measure normally and proceed to step 14; Step 14: until the metering cycle T ends, proceed to the next cycle.

2. The method of ultrasonic measurement and transducer health diagnosis according to claim 1, characterized in that: The following steps are also included: Step 15: Select the resistance value of the digital adjustable resistor of the same ultrasonic transducer at the same time within one day and store it in a memory; Step 16: Draw a resistance change curve based on the resistance data in the storage, and then estimate the expected failure time of the first transducer (1) and the second transducer (2) based on the resistance change curve, and replace or repair the first transducer (1) or the second transducer (2) based on the expected failure time.

3. The method of ultrasonic measurement and transducer health diagnosis according to claim 2, characterized in that: In step 16: the estimated failure time of the first transducer (1) or the second transducer (2) is obtained by fitting data using software.

Citation Information

Patent Citations

  • Receipt signal strength automatic gain control method for gas ultrasonic flow meter transducer

    CN104601131A

  • Ultrasonic gas flowmeter and flow measuring method thereof

    CN107727176A

  • Diagnosis system and method for natural gas orifice plate flowmeter

    CN108801403A

  • Anti-fault wave detection device for gas ultrasonic flowmeter

    CN109579950A

  • Ultrasonic wave control method combining amplitude and pulse width modulation

    CN109632024A