Flowmeter calibration method and device, electronic device, and storage medium
By calculating the target pulse number of the flowmeter and calibrating the actual oil injection amount, the pulse equivalent of the flowmeter is adjusted, which solves the measurement deviation problem of the flowmeter in measuring different media, and realizes the accurate calibration and stable operation of the flowmeter.
Patent Information
- Application Number
- CN202210317174.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-29
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2042-03-29
AI Technical Summary
Existing flow meters are prone to measurement deviations when measuring the flow of different media, which increases the inconvenience of calibration.
By obtaining the pulse equivalent of the flow meter and the specified first oil injection flow rate, the target number of pulses is calculated, and the flow meter is calibrated according to the calibration configuration information to obtain the actual oil injection amount, and the pulse equivalent is adjusted to achieve accurate calibration.
When measuring the flow of different media, the pulse equivalent of the flow meter can be flexibly calibrated, which broadens the application scenarios, improves measurement accuracy, and ensures stable operation of the oil injection device.
Smart Images

Figure CN114777884B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of oil injection processing, and in particular to a flowmeter calibration method and device, electronic equipment, and a storage medium. Background Art
[0002] Currently, flowmeter manufacturers calibrate flowmeters' measurement parameters before they leave the factory, allowing users to directly use the flowmeters to measure fluid flow. This practice is already being applied in the oil injection process. However, it has been found in practice that pre-calibrated flowmeters are typically suitable for media with a specific density, but are prone to measurement deviations when measuring the flow of media with different densities, making flowmeter calibration more inconvenient. Summary of the Invention
[0003] The present application provides a flowmeter calibration method and device, electronic equipment, and storage medium, the main purpose of which is to achieve accurate calibration of the flowmeter when measuring the flow of different media.
[0004] To achieve the above objectives, an embodiment of the present application provides a flow meter calibration method, the method comprising:
[0005] Obtaining a pulse equivalent of a flow meter, wherein the flow meter is used to detect an oil injection flow rate of an oil injection device, wherein the pulse equivalent represents a ratio between the number of pulses output by the flow meter and the oil injection flow rate detected by the flow meter;
[0006] Get the specified first oil injection flow rate;
[0007] Calculating a target pulse number corresponding to the flowmeter according to the pulse equivalent and the first oil injection flow rate;
[0008] According to the target pulse number, controlling the oil injection device to inject oil into the equipment to be oiled;
[0009] Acquiring calibration configuration information, and determining a configuration state of the flow meter according to the calibration configuration information;
[0010] If the configuration state is the calibration state, the actual oil filling amount inside the device to be oiled is obtained, and the pulse equivalent is calibrated according to the target pulse number and the actual oil filling amount to obtain a new pulse equivalent.
[0011] To achieve the above objectives, the present application also provides a flow meter calibration device, which includes:
[0012] an acquisition module, configured to acquire a pulse equivalent of a flow meter, the flow meter being configured to detect an oil injection flow rate of an oil injection device, the pulse equivalent representing a ratio between the number of pulses output by the flow meter and the oil injection flow rate detected by the flow meter; and to acquire a specified first oil injection flow rate;
[0013] a calculation module, configured to calculate a target pulse number corresponding to the flowmeter according to the pulse equivalent and the first oil injection flow rate;
[0014] A control module, configured to control the oil injection device to inject oil into the equipment to be oiled according to the target pulse number;
[0015] The acquisition module is further used to acquire calibration configuration information;
[0016] a determination module, configured to determine a configuration state of the flow meter according to the calibration configuration information;
[0017] The acquisition module is further configured to acquire the actual oil filling amount inside the equipment to be oiled when the configuration state is the calibration state;
[0018] The calibration module is used to calibrate the pulse equivalent according to the target pulse number and the actual oil injection amount to obtain a new pulse equivalent.
[0019] To achieve the above objectives, an embodiment of the present application further proposes an electronic device, which includes a memory and a processor, wherein a program is stored in the memory, and when the program is executed by the processor, the steps of the above method are implemented.
[0020] To achieve the above objectives, the present application provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the aforementioned method.
[0021] The flowmeter calibration method and device, electronic device, and storage medium proposed in this application can calculate the target pulse number corresponding to the flowmeter by obtaining the specified first oil injection flow rate and the pulse equivalent of the flowmeter, thereby controlling the oil injection device to inject oil into the device to be oiled according to the target pulse number. Based on this, if the flowmeter is identified as being in a calibrated state according to the calibration configuration information adjusted by the user, the actual oil injection amount inside the device to be oiled is obtained, and a new pulse equivalent is determined for the flowmeter based on the target pulse number and the actual oil injection amount. It can be seen that the pulse equivalent is a variable used to represent the ratio between the number of pulses output by the flowmeter and the oil injection flow rate it detects. Therefore, this method can respond to the actual needs of the user and flexibly calibrate the pulse equivalent of the flowmeter when measuring the flow rates of different media, which is conducive to broadening the application scenarios of the flowmeter, while improving the measurement accuracy and making the oil injection device operate stably. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 This is a structural block diagram of a flow meter calibration system used in an embodiment of the present application;
[0023] Figure 2This is a structural block diagram of an electronic device used in an embodiment of the present application;
[0024] Figure 3 Schematic diagram of the composition of an oil injection system used in an embodiment of the present application;
[0025] Figure 4 This is a flow chart of a flow meter calibration method provided in an embodiment of the present application;
[0026] Figure 5 is a schematic diagram of a monitoring interface used in an embodiment of the present application;
[0027] Figure 6 is a schematic diagram of a calibration configuration interface used in an embodiment of the present application;
[0028] Figure 7 This is a structural block diagram of a flow meter calibration device used in an embodiment of the present application. DETAILED DESCRIPTION
[0029] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0030] In the subsequent description, suffixes such as "module," "component," or "unit" used to represent elements are used only to facilitate the description of the present application and have no specific meaning. Therefore, "module," "component," or "unit" may be used interchangeably.
[0031] A pulse flowmeter is an instrument that measures fluid flow in a pipe or open channel by counting pulses. Its operating principle is as follows: a pulse flowmeter consists of at least a sensor housing, an impeller, blades, and a signal detector. As fluid flows through the sensor housing, the impeller blades are angled to the flow direction. The fluid's impact creates a rotational torque, causing the blades to rotate after overcoming friction and fluid resistance. Once these torques are balanced, the speed stabilizes. Under certain conditions, the speed is proportional to the flow rate. Because the blades are magnetically conductive and located within the magnetic field of a signal detector (composed of a permanent magnet and a coil), the rotating blades cut through the magnetic lines of force, periodically altering the magnetic flux of the coil and inducing an electrical pulse signal across the coil. This pulse signal is amplified and shaped by an amplifier, forming a continuous rectangular pulse wave with a specific amplitude. This pulse signal is then transmitted to a display instrument to indicate the instantaneous flow rate or total flow.
[0032] Currently, flowmeter manufacturers calibrate flowmeters' measurement parameters before they leave the factory, allowing users to directly use the flowmeters to measure fluid flow. This practice is already being applied in the oil injection process. However, it has been found in practice that pre-calibrated flowmeters are typically suitable for media with a specific density, but are prone to measurement deviations when measuring the flow of media with different densities, making flowmeter calibration more inconvenient.
[0033] In order to solve the above problems, the present application provides a flow meter calibration method, which is applied to a flow meter calibration system. Figure 1 As shown, Figure 1 The figure is a block diagram of a flowmeter calibration system used in an embodiment of the present application. The flowmeter calibration system includes at least an oiling system and electronic equipment 20. The oiling system includes at least an oiling device 11, a flowmeter 12, a device to be oiled 13, and a vacuum device 14. The electronic equipment 20 is electrically connected to the oiling device 11, the vacuum device 14, and the flowmeter 12, respectively, to implement data collection and remote control functions for each device or apparatus.
[0034] Reference Figure 2 As shown, Figure 2 It is a structural block diagram of an electronic device 20 used in an embodiment of the present application.
[0035] In the embodiment of the present application, the electronic device 20 may be a terminal device with computing functions, such as a server, a smart phone, a tablet computer, a portable computer, or a desktop computer.
[0036] The electronic device 20 includes a memory 21 , a processor 22 , a network interface 23 , and a data bus 24 .
[0037] The memory 21 includes at least one type of readable storage medium, which may be a non-volatile storage medium such as a flash memory, a hard disk, a multimedia card, a card-type memory, or the like. In some embodiments, the readable storage medium may be an internal storage unit of the electronic device 20, such as a hard disk of the electronic device 20. In other embodiments, the readable storage medium may be an external memory of the electronic device 20, such as a plug-in hard disk equipped on the electronic device 20, a smart memory card (SMC), a secure digital (SD) card, a flash memory card, or the like.
[0038] In this embodiment, the readable storage medium of the memory 21 is generally used to store flow meter calibration programs, programmable logic controller (PLC) programs, etc. installed in the electronic device 20. The memory 21 can also be used to temporarily store data that has been output or is to be output.
[0039] In some embodiments, the processor 22 may be a central processing unit (CPU), a microprocessor, or other data processing chip, configured to execute program codes or process data stored in the memory 21, such as executing a flow meter calibration procedure.
[0040] The network interface 23 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface), and is generally used to establish a communication connection between the electronic device 20 and other electronic devices.
[0041] The data bus 24 is used to realize the connection and communication between these components.
[0042] Figure 2 Only an electronic device having components 21 - 24 is shown, but it should be understood that implementing all of the shown components is not a requirement, and more or fewer components may alternatively be implemented.
[0043] To understand the components of the oil injection system, refer to Figure 3 As shown, Figure 3 The diagram is a schematic diagram of the composition of an oil injection system used in an embodiment of the present application. The oil injection device 11 may include an oil storage tank for containing oil and at least one oil pipeline, and the oil storage tank is connected to the equipment to be oiled 13 through the oil pipeline to form an oil injection passage. Figure 3 The oil injection system shown includes 6 oil pipelines. This is only an example and does not constitute a specific limit on the number of oil pipelines. Based on this, each oil pipeline is provided with a flow meter 12. The flow meter 12 can be a pulse flow meter 12, which is used to measure the flow rate of the oil pipeline (i.e., the oil injection flow rate of the oil injection device 11) by outputting pulses. It can be understood that Figure 3 Only one flow meter 12 is shown, installed on the oil pipeline, and this is not intended to be limiting. Optionally, the oil pipeline may also be provided with an oil delivery valve and an oil delivery pump (not shown) connected in series with the flow meter 12. In actual applications, the electronic device 20 may be connected to the oil delivery valve and the oil delivery pump, respectively, to control the oil injection path by opening or closing the oil delivery valve, and to control the oil delivery pump to provide power for the delivery of oil within the oil pipeline.
[0044] See Figure 3As shown, the oil filling device 13 includes a tank body 131 and a tank door 132. The tank body 131 has a placement cavity formed therein for placing the oil container to be filled. The tank body 131 is provided with an oil inlet, a pressure regulating port, and an opening connected to the outside. The tank door 132 can be movably arranged at the opening to close or not close the opening. The oil inlet is used to connect to the oil pipeline, and the pressure regulating port is used to connect to the vacuum device 14. In one implementation, a weighing device (such as an electronic scale) is provided in the tank body 131. The user can first place the oil container to be filled on the weighing device, and then control the oil filling process of the oil container to be filled through the electronic device 20, so that the electronic device 20 obtains the weight information of the oil container to be filled through the weighing device. Alternatively, the weighing device is provided with a display screen for displaying the weighing value, and the tank body 131 is provided with an observation window. The user can directly observe the weighing device's display screen through the observation window to manually read the weighing value. In another implementation, the user can also install a weighing device on a mobile device (such as a cart, trolley, etc.), and then place the oil container to be filled on the weighing device. Based on this, the user pushes the mobile device into the tank body and then closes the tank door 132 to form a sealed space inside the tank body 131, which is convenient for operation.
[0045] See Figure 3 As shown, the vacuum pumping device 14 may include a vacuum gauge, an evacuation pipeline, a condenser, a Roots pump, and a vacuum pump. One end of the vacuum gauge is connected to the oil-filled equipment 13, and the other end of the vacuum gauge is connected to the condenser and one end of the evacuation pipeline, respectively. The other end of the evacuation pipeline is connected to the oil storage tank. The condenser is also connected in series with the Roots pump and the vacuum pump. The oil storage condenser is used to condense the gas drawn into the evacuation pipeline. The Roots pump and the vacuum pump are both used to evacuate the air, and the vacuum gauge is used to measure the vacuum level.
[0046] In actual application, the electronic device 20 controls the operation of the vacuum pumping device 14 so that the vacuum pumping device 14 automatically adjusts the pressure or performs vacuum treatment on the inside of the equipment to be oiled 13. At this time, there is a pressure difference between the inside of the oil injection device 11 and the inside of the equipment to be oiled 13. The oil inside the oil storage tank is injected into the equipment to be oiled 13 through the oil pipeline and the oil inlet of the equipment to be oiled 13 in turn. At the same time, the flow meter 12 installed in the oil pipeline generates a pulse and sends it to the electronic device 20.
[0047] The following is a detailed description of a flow meter calibration method disclosed in an embodiment of the present application.
[0048] like Figure 4 As shown, Figure 4 This is a flow chart of a flow meter calibration method provided in an embodiment of the present application. Figure 2 In the electronic device shown, the processor 22 implements the following steps S400 to S450 when executing the program stored in the memory 21.
[0049] Step S400: Obtain the pulse equivalent of the flow meter.
[0050] In the present embodiment, pulse equivalent represents the ratio between the number of pulses output by the flowmeter and the oil injection flow rate detected by the flowmeter. The flowmeter is pre-calibrated with a pulse equivalent at the factory. Subsequently, the flowmeter is calibrated using the calibration method in steps S400 to S450 to continuously update the pulse equivalent. The most recently calibrated pulse equivalent is stored for easy recall during the next calibration.
[0051] Step S410: Obtain a specified first oil injection flow rate.
[0052] In the embodiment of the present application, the first oil injection flow rate can be manually specified and adjusted. In an optional embodiment, a monitoring interface can be generated on the electronic device, thereby displaying the composition structure and corresponding status information of the oil injection system on the monitoring interface. Figure 5 , Figure 5 This is a schematic diagram of a monitoring interface used in the embodiment of the present application. Figure 5 As shown, a status bar 50 corresponding to each flow meter is generated in the monitoring interface. The status bar 50 includes a reset control 501, a first information box 502, a second information box 503, and a third information box 504. The first information box 502 is used to display the first oil injection flow rate of the corresponding flow meter. Based on this, the electronic device can also obtain the manually input first oil injection flow rate through the first information box 502. The second information box 503 and the third information box 504 are respectively used to display the current flow rate and current flow rate of the corresponding flow meter. In addition, when a confirmation operation (such as a click operation) on the reset control 501 is detected, the corresponding flow meter is reset.
[0053] In addition, the monitoring interface is also used to Figure 3 The various components of the oil filling system and their connection relationships are graphically displayed. For example, icon 51 represents a flow meter, icon 52 represents the equipment to be oiled, icon 53 represents an oil storage tank, icon 54 represents a vacuum gauge, and the detection information 541 of the vacuum gauge is displayed at icon 54. Icon 55 represents an evacuation pipeline, icon 56 represents a condenser, icon 57 represents a Roots pump, and icon 58 represents a vacuum pump, thereby optimizing the visualization of oil filling monitoring.
[0054] Step S420: Calculate the target pulse number corresponding to the flowmeter according to the pulse equivalent and the first oil injection flow rate.
[0055] In one optional embodiment, target pulse number = pulse equivalent × first oil injection flow rate. In other embodiments, the proportional coefficient for calculating the target pulse number can also be adjusted according to actual needs, for example, target pulse number = k × pulse equivalent × first oil injection flow rate, where k is the proportional coefficient.
[0056] Step S430: According to the target pulse number, the oil injection device is controlled to inject oil into the equipment to be oiled.
[0057] Specifically, the electronic device can control the oil injection device to open the oil delivery valve, thereby connecting the oil delivery pipeline. The oil injection device then injects oil into the device to be oiled, and the flow meter generates pulses to begin pulse counting. When the cumulative number of pulses collected by the electronic device through the flow meter reaches the target pulse number, the electronic device controls the oil injection device to close the oil delivery valve, disconnecting the oil delivery channel, and thus ending the oil injection process.
[0058] Step S440: Acquire calibration configuration information, and determine the configuration status of the flow meter according to the calibration configuration information.
[0059] In some optional embodiments, prior to step S440, the electronic device may generate a calibration configuration interface and, within the calibration configuration interface, create a configuration area corresponding to the flow meter, the configuration area including selection controls and an input area. Accordingly, step S440 specifically involves the electronic device detecting operation information on the selection controls and determining the configuration state of the flow meter based on the operation information. The electronic device obtains the actual amount of oil injected into the device to be injected through the input area. Based on the configuration state and the actual amount of oil injected, the electronic device determines the calibration configuration information.
[0060] See also Figure 6 , Figure 6 This is a schematic diagram of a calibration configuration interface used in the embodiment of the present application. Figure 6 As shown, the electronic device displays the configuration area of each flow meter in the calibration configuration interface, that is, the row area in Table 60. The configuration area includes a selection control (i.e., a calibration selection box), an input area, and a display area. The input area is used to detect information input manually, such as the actual amount of oil injected, and the display area is used to input information that does not require configuration, such as the flow meter's number information "Calibration Selection 921". When the user needs to calibrate a flow meter with the number information "Calibration Selection 921", the user can check the calibration selection box corresponding to the flow meter, and the electronic device determines that the configuration status of the flow meter is the calibration status. Conversely, when the user does not check the calibration selection box corresponding to a flow meter, such as a flow meter with the number information "Calibration Selection 922", the electronic device determines that the configuration status of the flow meter is not the calibration status.
[0061] In another optional embodiment, the electronic device can also directly obtain the weighing information of the equipment to be oiled through a weighing device, and calculate the actual oil filling amount inside the equipment to be oiled according to the formula v=m / ρ, where v represents the actual oil filling amount, m represents the weighing information, and ρ represents the medium density of the oil.
[0062] Step S450: If the configuration state is the calibration state, the actual oil filling amount inside the equipment to be oiled is obtained, and the pulse equivalent is calibrated according to the target pulse number and the actual oil filling amount to obtain a new pulse equivalent.
[0063] In an optional embodiment, in step S450, if the configuration state is a calibration state, the electronic device can also calculate the flow deviation value based on the actual oil injection amount and the first oil injection flow rate. If the flow deviation value does not meet the preset calibration conditions, a new pulse equivalent is calculated based on the target number of pulses and the actual oil injection amount, and step S410 is continued. Among them, the preset calibration conditions can be set and adjusted manually. For example, the preset calibration condition is that the flow deviation value does not exceed 0.1L, and there is no specific limitation on this. It can be seen that the electronic device can calibrate the flow meter multiple times until the latest flow deviation value does not meet the preset calibration conditions, which can optimize the accuracy of the flow meter calibration.
[0064] In some optional implementations, in order to more accurately observe the actual oil injection situation, the electronic device can also obtain a specified collection period, and in the process of controlling the oil injection device to inject oil into the equipment to be oiled, collect the first pulse number and the second pulse number output by the flow meter in sequence according to the collection period. Afterwards, the electronic device subtracts the second pulse number from the first pulse data to obtain the periodic pulse number, and thus calculates the flow rate information of the flow meter based on the periodic pulse number and the pulse equivalent, thereby realizing the monitoring of the oil injection speed during the collection period. Optionally, combined with Figure 5 From this perspective, the electronic device can determine in the monitoring interface that the third information box 504 corresponding to the flow meter displays flow rate information.
[0065] Furthermore, in one implementation, the electronic device can calculate the flow rate information of the flow meter based on a preset flow rate calculation formula, combining the number of periodic pulses and the pulse equivalent. The flow rate calculation formula is: flow rate information = (number of periodic pulses ÷ pulse equivalent) × (preset duration ÷ collection period). The preset duration is related to the unit of the flow rate information. For example, if the flow rate unit is liters / minute, the preset duration is 60 seconds. If the flow rate unit is liters / hour, the preset duration is 3600 seconds.
[0066] In some optional embodiments, after step S450, the electronic device may further add one to the cumulative number of flow meter calibrations to update the calibration count. Therefore, for each calibration, in step S410, the electronic device may first obtain the flow meter's calibration count. If this is the first calibration of the flow meter, the electronic device may use a preset oil injection flow rate as the designated first oil injection flow rate. The preset oil injection flow rate is manually specified and adjustable, for example, 10 liters or 12 liters, and this is not specifically limited.
[0067] If the calibration is not the first time, the electronic device obtains the historical oil injection flow rate specified during the previous calibration and calculates the specified first oil injection flow rate based on the historical oil injection flow rate. It is understood that the calculation relationship between the historical oil injection flow rate and the first oil injection flow rate can be adjusted according to actual needs.
[0068] For example, in one implementation, the first oil injection flow rate = historical oil injection flow rate + (calibration times - 1) × preset oil injection flow rate. For example, if the preset oil injection flow rate is 10 liters, the first oil injection flow rate specified during the second calibration is 20 liters. In another embodiment, the flow deviation value calculated during the previous calibration can be obtained as the historical deviation value, and the historical deviation value can be converted into a matching weighted weight. Then, the first oil injection flow rate = historical oil injection flow rate + weighted weight × preset oil injection flow rate, wherein the historical deviation value and the weighted weight can satisfy a positive correlation conversion relationship, and there is no limitation. It can be seen that according to the degree of deviation of the previous calibration, the oil injection flow rate can be adaptively adjusted, which not only meets the calibration requirements but also helps to improve the calibration efficiency.
[0069] In some optional embodiments, when a calibration counter is added, step S430 may specifically include the following: If this is the first calibration, the electronic device initializes the flowmeter and controls the vacuum pump to evacuate the equipment to be oiled until the vacuum level within the equipment meets a predetermined level. This initialization includes, but is not limited to, clearing the flowmeter pulse count. The electronic device then controls the oil injection device to inject oil into the equipment to be oiled, and during the injection process, detects the cumulative pulse count output by the flowmeter. When the cumulative pulse count reaches the target pulse count, the oil injection device is controlled to stop injection, thereby achieving oil injection control.
[0070] In practical applications, combined with Figure 6 From the above, the electronic device can also generate a first configuration area 61 and a second configuration area 62 in the calibration configuration interface, and detect the collection period of the user input through the first configuration area 61, and detect the preset vacuum degree of the user input through the second configuration area 62, which is convenient to operate.
[0071] It can be seen that in the implementation of the above method embodiment, the pulse equivalent is regarded as a variable to represent the ratio between the number of pulses output by the flow meter and the oil injection flow rate it detects. Therefore, this method can respond to the actual needs of users and flexibly calibrate the pulse equivalent of the flow meter when measuring the flow rate of different media, which is conducive to broadening the application scenarios of the flow meter, while improving the measurement accuracy and making the oil injection device operate stably.
[0072] The present application also provides a flow meter calibration device. Figure 7 , Figure 7This is a structural block diagram of a flow meter calibration device used in the embodiment of the present application. Figure 7 As shown, the flow meter calibration device includes an acquisition module 710, a calculation module 720, a control module 730, a determination module 740 and a calibration module 750, wherein:
[0073] An acquisition module 710 is configured to acquire a pulse equivalent of a flow meter, the flow meter being used to detect an oil injection flow rate of an oil injection device, wherein the pulse equivalent represents a ratio between the number of pulses output by the flow meter and the oil injection flow rate detected by the flow meter; and to acquire a specified first oil injection flow rate;
[0074] A calculation module 720 is used to calculate a target pulse number corresponding to the flow meter according to the pulse equivalent and the first oil injection flow rate;
[0075] The control module 730 is used to control the oil injection device to inject oil into the equipment to be oiled according to the target pulse number;
[0076] The acquisition module 710 is further used to obtain calibration configuration information;
[0077] a determination module 740 for determining a configuration state of the flow meter according to the calibration configuration information;
[0078] The acquisition module 710 is further configured to acquire the actual amount of oil injected into the device to be injected when the configuration state is the calibration state;
[0079] The calibration module 750 is used to calibrate the pulse equivalent according to the target pulse number and the actual oil injection amount to obtain a new pulse equivalent.
[0080] In some optional embodiments, the calibration module 750 is specifically used to calculate a flow deviation value based on the actual oil injection amount and the first oil injection flow rate; and if the flow deviation value does not meet the preset calibration conditions, a new pulse equivalent is calculated based on the target pulse number and the actual oil injection amount, and the step of obtaining the specified first oil injection flow rate is continued.
[0081] In some optional embodiments, the flowmeter calibration device further includes a generation module. This generation module is configured to generate a calibration configuration interface before the acquisition module 710 acquires the calibration configuration information, and to create a configuration area corresponding to the flowmeter within the calibration configuration interface. The configuration area includes a selection control and an input area. Accordingly, the acquisition module is further configured to detect operation information on the selection control and determine the configuration status of the flowmeter based on the operation information; obtain the actual oil injection volume within the device to be oiled via the input area; and determine the calibration configuration information based on the configuration status and the actual oil injection volume.
[0082] In some optional embodiments, the flowmeter calibration device further includes a flow rate calculation module. The flow rate calculation module is configured to obtain a specified collection period; collect first and second pulse numbers output by the flowmeter in sequence according to the collection period while controlling the oil injection device to inject oil into the equipment to be oiled; subtract the second pulse number from the first pulse data to obtain a periodic pulse number; and calculate the flow rate information of the flowmeter based on the periodic pulse number and the pulse equivalent.
[0083] Furthermore, in some optional embodiments, the flow rate calculation module is further configured to calculate the flow rate information of the flow meter based on a preset flow rate calculation formula, in combination with the number of periodic pulses and the pulse equivalent. The flow rate calculation formula is: flow rate information = (number of periodic pulses ÷ pulse equivalent) × (preset duration ÷ acquisition period).
[0084] In some optional embodiments, the flowmeter calibration device further includes a counting module. The counting module is configured to, after the calibration module 750 calibrates the pulse equivalent based on the target pulse count and the actual oil injection volume, obtain a new pulse equivalent and then increment the number of flowmeter calibrations by one. Accordingly, the acquisition module 710 is further configured to, if this is the first time the flowmeter has been calibrated, use a preset oil injection flow rate as the designated first oil injection flow rate; and, if this is not the first time the flowmeter has been calibrated, obtain the historical oil injection flow rate designated during the previous calibration and calculate the designated first oil injection flow rate based on the historical oil injection flow rate.
[0085] Furthermore, in some optional embodiments, the control module 730 is also used to initialize the flow meter when the calibration is the first time, and control the vacuum device to evacuate the equipment to be oiled until the vacuum degree inside the equipment to be oiled meets the preset vacuum degree; control the oil injection device to inject oil into the equipment to be oiled, and detect the cumulative number of pulses output by the flow meter during the oil injection process; when the cumulative number of pulses reaches the target number of pulses, control the oil injection device to stop injecting oil.
[0086] It should be noted that the specific implementation process of this embodiment can refer to the specific implementation process of the above method embodiment, and will not be repeated here.
[0087] An embodiment of the present application further provides an electronic device, which includes a memory and a processor. The memory stores a program, and when the program is executed by the processor, the above-mentioned flow meter calibration method is implemented.
[0088] An embodiment of the present application further provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned flow meter calibration method.
[0089] Those skilled in the art will appreciate that all or some of the steps in the methods, systems, and functional modules / units in the devices disclosed above may be implemented as software, firmware, hardware, or appropriate combinations thereof.
[0090] In a hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0091] The preferred embodiments of the present application are described above with reference to the accompanying drawings, but are not intended to limit the scope of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and essence of the present application shall fall within the scope of the present application.
Claims
1. A flow meter calibration method, characterized in that: The method comprises: Obtaining a pulse equivalent of a flow meter, wherein the flow meter is used to detect an oil injection flow rate of an oil injection device, wherein the pulse equivalent represents a ratio between the number of pulses output by the flow meter and the oil injection flow rate detected by the flow meter; Get the specified first oil injection flow rate; Calculating a target pulse number corresponding to the flowmeter according to the pulse equivalent and the first oil injection flow rate; According to the target pulse number, controlling the oil injection device to inject oil into the equipment to be oiled; Acquiring calibration configuration information, and determining a configuration state of the flow meter according to the calibration configuration information; If the configuration state is the calibration state, the actual oil filling amount inside the device to be oiled is obtained, and the pulse equivalent is calibrated according to the target pulse number and the actual oil filling amount to obtain a new pulse equivalent; The step of calibrating the pulse equivalent according to the target pulse number and the actual oil injection amount to obtain a new pulse equivalent includes: Calculating a flow deviation value according to the actual oil injection amount and the first oil injection flow rate; If the flow deviation value does not meet the preset calibration condition, a new pulse equivalent is calculated according to the target pulse number and the actual oil injection amount, and the step of obtaining the specified first oil injection flow rate is continued; After calibrating the pulse equivalent according to the target pulse number and the actual oil injection amount to obtain a new pulse equivalent, the method further includes: adding one to the cumulative number of calibrations of the flow meter; The obtaining of the specified first oil injection flow rate comprises: Obtaining the number of calibrations of the flow meter; When the flow meter is calibrated for the first time, a preset oil injection flow rate is used as the designated first oil injection flow rate; If the calibration number is not the first time, the historical oil injection flow rate specified during the previous calibration is obtained, and the specified first oil injection flow rate is calculated based on the historical oil injection flow rate, where the first oil injection flow rate = historical oil injection flow rate + (calibration number - 1) × preset oil injection flow rate.
2. The method according to claim 1, characterized in that Before obtaining the calibration configuration information, the method further includes: Generate calibration configuration interface; Generating a configuration area corresponding to the flow meter in the calibration configuration interface, wherein the configuration area includes a selection control and an input area; The obtaining of calibration configuration information includes: detecting operation information of the selection control, and determining a configuration state of the flow meter according to the operation information; Obtaining the actual oil filling amount inside the equipment to be oiled through the input area; Calibration configuration information is determined according to the configuration state and the actual oil injection amount.
3. The method according to any one of claims 1 to 2, characterized in that The method further comprises: Get the specified collection period; In the process of controlling the oil injection device to inject oil into the equipment to be oiled, sequentially collecting the first pulse number and the second pulse number output by the flow meter according to the collection period; Subtracting the second pulse number from the first pulse data to obtain the periodic pulse number; The flow rate information of the flow meter is calculated based on the number of periodic pulses and the pulse equivalent.
4. The method according to claim 3, characterized in that The calculating and obtaining the flow rate information of the flow meter according to the periodic pulse number and the pulse equivalent includes: Calculating the flow rate information of the flow meter according to a preset flow rate calculation formula, combining the periodic pulse number and the pulse equivalent; Wherein, the flow rate calculation formula is: Flow rate information = (number of pulses in a cycle ÷ pulse equivalent) × (preset duration ÷ collection cycle).
5. The method according to claim 1, wherein The step of controlling the oil injection device to inject oil into the equipment to be oiled according to the target pulse number comprises: When the calibration is performed for the first time, the flow meter is initialized, and a vacuum pump is controlled to evacuate the equipment to be oiled until the vacuum degree inside the equipment to be oiled meets a preset vacuum degree; Controlling the oil injection device to inject oil into the equipment to be oiled, and detecting the cumulative number of pulses output by the flow meter during the oil injection process; When the accumulated pulse number reaches the target pulse number, the oil injection device is controlled to stop oil injection.
6. A flow meter calibration device, applying the method according to any one of claims 1 to 5, characterized in that: The device comprises: an acquisition module, configured to acquire a pulse equivalent of a flow meter, the flow meter being configured to detect an oil injection flow rate of an oil injection device, the pulse equivalent representing a ratio between the number of pulses output by the flow meter and the oil injection flow rate detected by the flow meter; and to acquire a specified first oil injection flow rate; a calculation module, configured to calculate a target pulse number corresponding to the flowmeter according to the pulse equivalent and the first oil injection flow rate; a control module, configured to control the oil injection device to inject oil into the equipment to be oiled according to the target pulse number; The acquisition module is further used to acquire calibration configuration information; a determination module, configured to determine a configuration state of the flow meter according to the calibration configuration information; The acquisition module is further configured to acquire the actual oil filling amount inside the equipment to be oiled when the configuration state is the calibration state; The calibration module is used to calibrate the pulse equivalent according to the target pulse number and the actual oil injection amount to obtain a new pulse equivalent.
7. An electronic device, characterized in that: The electronic device includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory. When the program is executed by the processor, the flow meter calibration method according to any one of claims 1 to 5 is realized.
8. A storage medium for computer-readable storage, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the flow meter calibration method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Measuring device for liquid production capacity of oil well and measuring method thereof
CN108979621A