Air volume micro-differential-pressure filtering method, electronic equipment and storage medium

By combining multiple filtering algorithms and sorting methods in the air volume control system, the problem of unstable air volume is solved, and stable air volume value acquisition is achieved, system cost is reduced and hardware upgrades are avoided.

CN119271658APending Publication Date: 2025-01-07ZHUHAI YANTAI ELECTRONIC TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411799893.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-09
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

In the air volume control system, the wind force magnitude and wind direction changes lead to unstable air volume. The existing filtering algorithm has limited effect, especially in the case of sudden data changes, it is difficult to obtain a stable air volume value, and the cost of upgrading a single hardware is high.

Method used

A combination of multiple filtering algorithms and sorting methods is adopted, including median average filtering and sliding average filtering, and a stable air volume value is obtained through multi-stage filtering, reducing hardware costs.

Benefits of technology

Effective filtering of unstable pressure differential data is realized, fast refresh rate is maintained, data is more accurate, system costs are reduced, and hardware upgrades are required.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119271658A_ABST
    Figure CN119271658A_ABST
Patent Text Reader

Abstract

The invention discloses an air volume micro-differential-pressure filtering method, electronic equipment and a storage medium, and relates to the technical field of data filtering. The method comprises the following steps: acquiring a first quantity of original pressure difference data; creating a first array, putting the first quantity of original differential pressure data into the first array, and sorting the data of the first array; performing median value average filtering on the sorted data of the first array to obtain a first filtering value; creating a second array, putting the first filtering value into the second array, and executing first-in first-out operation on the second array; creating a third array, copying the data of the second array, putting the data into the third array, and sorting the data of the third array; performing median average filtering on the sorted data of the third array to obtain a second filtering value; and when the second filtering value is within the error range of the preset value, filtering the second filtering value to obtain a final result. According to the method provided by the embodiment of the invention, a stable air volume value can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data filtering, and in particular to an air volume micro-pressure difference filtering method, electronic equipment and storage medium. Background Art

[0002] In some systems that require air volume control, a micro-pressure differential sensor is usually used to detect the dynamic pressure and static pressure of the air outlet. The air volume is calculated through a series of calculations based on the pressure difference to control the air volume. In the control system, the detected air volume directly affects the system control, so the stability of the air volume is very important. However, due to the limitations of the fan itself and the system control accuracy, the wind force and direction are constantly changing, and the speed is not constant, so the detected air volume is a constantly changing and unstable value. At this time, it is necessary to upgrade the system hardware or filter the software data to obtain a stable air volume value.

[0003] In the control system mentioned above, there are two ways to obtain a stable air volume value. One is to use high-precision sensors on the hardware, combined with high-stability fans, to obtain stable values ​​from the source of the data. However, the cost of this hardware is too high, resulting in a relatively high cost of the entire control system, which is a heavy burden for projects with limited budgets and is not suitable for all projects. The second is to use a filtering algorithm in the software to filter the detected data to obtain a more stable value. Common classic filtering algorithms include limited amplitude filtering, median filtering, arithmetic averaging, heap averaging, de-jitter filtering, etc. However, a single filtering algorithm has limited effect, especially in the case of frequent data mutations in the air volume control system, the effect is minimal. Although the data after filtering is improved compared to the data without filtering, the fluctuations are usually still large and can only be improved by other means. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes an air volume micro-pressure difference filtering method, electronic equipment and storage medium, which can help obtain a stable air volume value and improve the control accuracy of the control system.

[0005] In a first aspect, a method for filtering air volume with a slight pressure difference according to an embodiment of the present invention comprises the following steps: Acquire a first amount of raw pressure difference data; Creating a first array, putting a first amount of the original pressure difference data into the first array, and sorting the data in the first array; Performing median average filtering on the sorted data of the first array to obtain a first filtered value; Creating a second array, placing the first filtered value into the second array, and performing a first-in-first-out operation on the second array; Create a third array, copy the data of the second array into the third array, and sort the data of the third array; Performing median average filtering on the sorted data of the third array to obtain a second filtered value; When the second filtered value is within the error range of the preset value, filtering is performed on the second filtered value to obtain a final result.

[0006] According to some embodiments of the present invention, the step of creating a first array, placing a first amount of the original pressure difference data into the first array, and sorting the data in the first array includes: Creating a first array, and putting a first quantity of the original pressure difference data into the first array; The data in the first array is sorted in ascending order by using a heap sort method. According to some embodiments of the present invention, the step of performing median average filtering on the sorted data of the first array to obtain a first filtered value includes: Obtaining a second amount of data located in the middle of the first array; An arithmetic mean of the second amount of data is calculated to obtain the first filtered value. According to some embodiments of the present invention, the step of creating a second array, placing the first filtered value into the second array, and performing a first-in-first-out operation on the second array includes: Create a second array whose number of elements is the first number plus 1; the initial value of each element of the second array is 0; The first filter value is assigned to the data of the last element of the second array, and a first-in-first-out operation is performed on the second array to remove the data of the first element of the second array. According to some embodiments of the present invention, the step of performing median average filtering on the sorted data of the third array to obtain a second filtered value includes: Obtaining a third amount of data located in the middle of the third array after being sorted in ascending order; An arithmetic mean of the third amount of data is calculated to obtain the second filtered value. According to some embodiments of the present invention, when the second filtered value is within an error range of a preset value, the step of filtering the second filtered value to obtain a final result includes: Create a fourth array; Assigning the second filtered value to the data of the last element of the fourth array, and performing a first-in-first-out operation on the fourth array to remove the data of the first element of the fourth array; Sorting all data in the fourth array in ascending order, and obtaining a fourth number of data in the middle of the sorting result; The arithmetic mean of the fourth amount of data is calculated to obtain the final result. According to some embodiments of the present invention, when the second filtered value is within an error range of a preset value, the step of filtering the second filtered value to obtain a final result further includes: When the second filtered value is within the error range of the preset value for the first time, the second filtered value is assigned to the data of all elements of the fourth array.

[0007] According to some embodiments of the present invention, the further comprising: When the second filtered value exceeds the error range of the preset value, the second filtered value is output. In a second aspect, an electronic device according to an embodiment of the present invention includes: A memory for storing program instructions; The processor is used to call the program instructions stored in the memory and execute the air volume micro-pressure difference filtering method described in the embodiment of the first aspect according to the obtained program instructions.

[0008] In a third aspect, according to a storage medium of an embodiment of the present invention, the storage medium stores computer executable instructions, and the computer executable instructions are used to enable a computer to execute the air volume micro-pressure difference filtering method described in the embodiment of the first aspect.

[0009] The air volume micro-pressure difference filtering method, electronic device and storage medium according to the embodiments of the present invention have at least the following beneficial effects: the characteristics of different filtering algorithms are fully utilized, a plurality of different filtering algorithms are combined, and a sorting method with low resource occupancy is used to effectively filter the very unstable pressure difference data collected at the air outlet. When filtering increasing or decreasing data, a faster refresh rate can be maintained, and data close to the preset value can be de-interfered again, making the data more accurate. A pure software processing method is used, and there is no need to modify the hardware, reduce system costs, and no maintenance costs. Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which: Figure 1 A flow chart of the steps of the air volume micro-pressure difference filtering method according to an embodiment of the present invention; Figure 2The figure is a flow chart of the air volume micro-pressure difference filtering method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0011] Embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and are not to be construed as limitations on the present application. For the step numbers in the following embodiments, they are only provided for the convenience of explanation, and the order between the steps is not limited in any way, and the execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0012] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0013] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present invention and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0014] Reference to "embodiments" in the present invention means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0015] In some systems that require air volume control, a micro-pressure differential sensor is usually used to detect the dynamic pressure and static pressure of the air outlet. The air volume is calculated through a series of calculations based on the pressure difference to control the air volume. In the control system, the detected air volume directly affects the system control, so the stability of the air volume is very important. However, due to the limitations of the fan itself and the system control accuracy, the wind force and direction are constantly changing, and the speed is not constant, so the detected air volume is a constantly changing and unstable value. At this time, it is necessary to upgrade the system hardware or filter the software data to obtain a stable air volume value.

[0016] In the control system mentioned above, there are two ways to obtain a stable air volume value. One is to use high-precision sensors on the hardware, combined with high-stability fans, to obtain stable values ​​from the source of the data. However, the cost of this hardware is too high, resulting in a relatively high cost of the entire control system, which is a heavy burden for projects with limited budgets and is not suitable for all projects. The second is to use a filtering algorithm in the software to filter the detected data to obtain a more stable value. Common classic filtering algorithms include limited amplitude filtering, median filtering, arithmetic averaging, heap averaging, de-jitter filtering, etc. However, a single filtering algorithm has limited effect, especially in the case of frequent data mutations in the air volume control system, the effect is minimal. Although the data after filtering is improved compared to the data without filtering, the fluctuations are usually still large and can only be improved by other means.

[0017] To this end, an embodiment of the present invention provides an air volume micro-pressure difference filtering method, an electronic device and a storage medium. Without upgrading the hardware, the outlet pressure difference is detected, and a combination of multiple filtering algorithms and sorting methods are used in software filtering processing to obtain a more stable pressure difference value with a smaller fluctuation amplitude, so that a more stable air volume can be calculated. The air volume micro-pressure difference filtering method, electronic device and storage medium according to the embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.

[0018] On the one hand, the embodiment of the present invention provides a method for filtering air volume with a slight pressure difference, such as Figure 1 As shown, the method comprises the following steps: Step S100: Acquire a first amount of original pressure difference data; It should be noted that the first number can be set to a reasonable value according to actual conditions. In this example, the first number is set to n, and n is a positive integer greater than 1. These n original pressure difference data have not been filtered and are relatively unstable.

[0019] Step S200: creating a first array, putting a first amount of original pressure difference data into the first array, and sorting the data in the first array; It should be noted that, in this example, the number of elements in the first array is n, and the n original pressure difference data correspond to the n elements of the first array respectively. Then, according to the size of these n original pressure difference data, the elements of the first array need to be sorted (it can be ascending or descending sorting). The final first array is the sorted n elements: BUF1[0], BUF1[1], ....., BUF1[n-1].

[0020] Step S300: performing median average filtering on the sorted data of the first array to obtain a first filtered value; Among them, median average filtering refers to selecting m1 data (m1 is a positive integer, and m1<n) in the middle of the first array, and then taking the arithmetic mean of these m1 data to obtain a relatively stable first filter value, which is recorded as DATA1.

[0021] Step S400: creating a second array, putting the first filtered value into the second array, and performing a first-in-first-out operation on the second array; It should be noted that in this example, the second array has n+1 elements, namely BUF2[0], BUF2[1], ..., BUF2[n], and the initial values ​​of these n+1 elements are all set to 0. After the first filtered value DATA1 is calculated, DATA1 is assigned to BUF2[n], and then a first-in-first-out operation is performed to discard the oldest data in the second array, and then: (BUF2[0]...BUF2[n-1]) = (BUF2[1]...BUF2[n]); After the operation, BUF2[0]...BUF2[n-1] are data to be used subsequently, and BUF2[n] is data to be replaced by the new DATA1 next time.

[0022] Step S500: creating a third array, copying the data of the second array into the third array, and sorting the data of the third array; It should be noted that the third array has n elements, namely BUF3[0], BUF3[1], ..., BUF2[n-1], and the values ​​of the n elements are the same as BUF2[0]-BUF2[n-1] of the second array. The data of the third array also needs to be sorted to facilitate subsequent filtering processing.

[0023] Step S600: performing median average filtering on the sorted data of the third array to obtain a second filtered value; Among them, median average filtering refers to selecting m2 data (m2 is a positive integer, and m2<n) in the middle of the third array, and then taking the arithmetic mean of the m2 data to obtain a more stable second filter value, recorded as DATA2.

[0024] Step S700: When the second filtered value is within the error range of the preset value, filtering is performed on the second filtered value to obtain a final result.

[0025] When the second filter value is within the error range of the preset value, it means that the pressure difference has reached a stable value, but the pressure difference will change around the stable value. At this time, filtering the second filter value can obtain a more accurate pressure difference value, thereby making the final calculated air volume value more accurate and improving the control accuracy of the control system.

[0026] The air volume micro-pressure difference filtering method according to the embodiment of the present invention makes full use of the characteristics of different filtering algorithms, combines multiple different filtering algorithms, and cooperates with a sorting method with low resource occupancy rate to effectively filter the very unstable pressure difference data collected at the air outlet. When filtering the increasing or decreasing data, a faster refresh rate can be maintained, and the data close to the preset value can be de-interfered again, making the data more accurate. The pure software processing method is adopted, and there is no need to modify the hardware, reduce system costs, and no maintenance costs.

[0027] Further, in some embodiments of the present invention, the above step S200: creating a first array, putting a first amount of original pressure difference data into the first array, and sorting the data in the first array, includes the following two steps: (1) creating a first array and placing a first amount of raw pressure difference data into the first array; (2) Use heap sort to sort the data in the first array in ascending order.

[0028] After creating the first array, n original pressure difference data are put into the first array to obtain BUF1[0], ..., BUF1[n-1]. These n data are unstable pressure difference data. Then, heap sort is used to sort the data of the first array from small to large to obtain: BUF1[0](min) ... BUF1[n-1](max), where BUF1[0](min) is the minimum value of the first array, BUF1[n-1](max) is the maximum value of the first array, and the rest are data between the minimum and maximum values. It should be noted that in addition to heap sorting, bubble sorting and other sorting methods can also be used; in addition to sorting the data of the first array from small to large, the data of the first array can also be sorted from large to small.

[0029] Further, in some embodiments of the present invention, the above step S300: performing median average filtering on the sorted data of the first array to obtain a first filtered value includes the following two steps: (1) Obtaining a second amount of data located in the middle of the first array; (2) Calculate the arithmetic mean of the second amount of data to obtain a first filtered value.

[0030] Specifically, assuming that the second number is m1, the formula for calculating the arithmetic mean of m1 data is: 1; Among them, BUF1[(n-m1) / 2] is the first data among the calculated m1 data, and BUF1[(n-m1) / 2+m1-1] is the last data among the calculated m1 data.

[0031] Further, in some embodiments of the present invention, the above step S400: creating a second array, placing the first filtered value into the second array, and performing a first-in-first-out operation on the second array, includes the following two steps: (1) Create a second array with the number of elements equal to the first number plus 1; the initial value of each element of the second array is 0; (2) Assign the first filter value to the data of the last element of the second array, and perform a first-in-first-out operation on the second array to remove the data of the first element of the second array.

[0032] Specifically, assuming that the first number is n, the number of elements in the second array is n+1, namely BUF2[0], ..., BUF2[n]. The second array is used for sliding average filtering, so as to obtain smoother data. The initial value of all elements in the second array is 0. Each time a first filtering value DATA1 is obtained by calculation, BUF2[n]=DATA1 is set, and then a first-in-first-out operation is performed, and the oldest data is discarded, then: (BUF2[0]...BUF2[n-1]) = (BUF2[1]...BUF2[n]); Among them, BUF2[0]...BUF2[n-1] are data to be used subsequently, and BUF2[n] is data to be replaced by new DATA1 next time.

[0033] The second array is reserved for use when the next new DATA1 is moved in, ensuring that each filtering is valid data and will not be affected by sorting and filtering. At the same time, BUF2[0]...BUF2[n-1] is copied to the third array BUF3.

[0034] Further, in some embodiments of the present invention, the above step S600: performing median average filtering on the sorted data of the third array to obtain the second filtered value includes the following two steps: (1) Obtain the third amount of data located in the middle of the third array after being sorted in ascending order; (2) Calculate the arithmetic mean of the third amount of data to obtain a second filtered value.

[0035] Specifically, the data of the third array is sorted from small to large using a heap sort method, and the result is: BUF3[0](min)......BUF3[n-1](max), where BUF3[0](min) is the minimum value of the third array, BUF3[n-1](max) is the maximum value of the third array, and the rest are data between the minimum and maximum values. It should be noted that in addition to using heap sort, bubble sort and other sorting methods can also be used; in addition to sorting the data of the third array from small to large, the data of the first array can also be sorted from large to small. Assuming that the third number is m3, the formula for calculating the arithmetic mean of m3 data is: ; Among them, BUF3[(n-m3) / 2] is the first data among the calculated m3 data, and BUF3[(n-m3) / 2+m3-1] is the last data among the calculated m3 data.

[0036] Further, in some embodiments of the present invention, the above step S700: when the second filtered value is within the error range of the preset value, filtering the second filtered value to obtain the final result, includes the following four steps: (1) Create the fourth array; (2) assigning the second filter value to the data of the last element of the fourth array, and performing a first-in-first-out operation on the second array to remove the data of the first element of the fourth array; (3) Sort all data in the fourth array in ascending order, and obtain a fourth number of data in the middle of the sorted results; (4) Calculate the arithmetic mean of the fourth quantity of data to obtain the final result.

[0037] Specifically, in this example, the fourth array includes n+1 elements, namely BUF4[0]...BUF4[n]; the error range of the preset value may be ±10% of the preset value. When the second filtered value DATA2 is within the error range of the preset value for the first time, the second filtered value DATA2 is assigned to all elements of the fourth array. When there is a new DATA2 later, the new DATA2 is assigned to BUF4[n], and then a first-in-first-out operation is performed, and the oldest data is discarded, and then: (BUF4[0]...BUF4[n-1]) = (BUF4[1]...BUF4[n]); After the operation, BUF4[0]...BUF4[n-1] are the data to be used later, and BUF4[n] is the data to be replaced by the new DATA2 next time. Use heap sort to sort the data in the fourth array from small to large, and get: BUF4[0](min)...BUF4[n-1](max); Among them, BUF4[0](min) is the minimum value of the fourth array, BUF4[n-1](max) is the maximum value of the fourth array, and the rest are data between the minimum and maximum values. Assuming that the fourth number is m4 (m4 is a positive integer, and m4<n), calculate the arithmetic mean of the m4 data in the middle of the fourth array, and finally get a more stable value DATA3, then: ; Among them, BUF4[(n-m4) / 2] is the first of the m4 data calculated, and BUF4[(nm) / 2+m-1] is the last of the m4 data calculated, and the final result DATA3 is obtained.

[0038] Furthermore, the air volume micro-pressure difference filtering method according to the embodiment of the present invention further includes the following steps: when the second filtering value exceeds the error range of the preset value, the second filtering value is output.

[0039] If the second filtered value is not within the error range of the preset value, it means that the pressure difference data is still changing. At this time, the second filtered value is directly output and displayed, so that the data change process can be seen quickly until the second filtered value reaches the error range of the preset value.

[0040] The air volume micro-pressure difference filtering method according to the embodiment of the present invention uses a variety of filtering algorithms and sorting methods to cooperate, and finally obtains a stable result through multi-stage filtering. Among them, the filtering algorithm mainly includes: 1. Median average filtering, the algorithm is improved, and the arithmetic mean of multiple data in the middle is calculated, which can eliminate the pulse interference caused by accidental factors and the sampling value deviation caused by it, so as to obtain a more stable value; 2. Sliding average filtering, the algorithm is improved, and the more stable value is put into the tail of the new queue, and the first-in-first-out principle is adopted to discard the primary data at the head of the new queue; then, the median average filtering algorithm is embedded, and the arithmetic mean of multiple data in the middle of the new queue is calculated, which can eliminate high-frequency oscillation interference and obtain a smoother value. The specific process of the air volume micro-pressure difference filtering method is as follows. Figure 2 As shown, a, b, c, and d are all positive integers, and b, c, and d are all less than a.

[0041] On the other hand, an embodiment of the present invention further provides an electronic device, including: The processor may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application; The memory can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory can store an operating system and other application programs. When the technical solution provided in the embodiments of this specification is implemented by software or firmware, the relevant program code is stored in the memory, and the processor is called to execute the air volume micro-pressure difference filtering method of the embodiment of this application; Input / output interface, used to realize information input and output; Communication interface, used to realize communication interaction between this device and other devices. Communication can be realized through wired methods (such as USB, network cable, etc.) or wireless methods (such as mobile network, WIFI, Bluetooth, etc.); The bus, which transfers information between the various components of the device (such as the processor, memory, input / output interfaces, and communication interfaces); The processor, memory, input / output interface and communication interface are connected to each other through a bus inside the device.

[0042] On the other hand, an embodiment of the present invention further provides a storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed by a processor, the above-mentioned air volume micro-pressure difference filtering method is implemented.

[0043] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are implemented to be located in one place, or may also be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0044] Although specific embodiments are described herein, those of ordinary skill in the art will recognize that many other modifications or alternative embodiments are also within the scope of the present disclosure. For example, any of the functions and / or processing capabilities described in conjunction with a particular device or component may be performed by any other device or component. In addition, although various exemplary implementations and architectures have been described according to embodiments of the present disclosure, those of ordinary skill in the art will recognize that many other modifications to the exemplary implementations and architectures described herein are also within the scope of the present disclosure.

[0045] Some aspects of the present disclosure are described above with reference to the block diagram and flow chart of the system, method, system and / or computer program product according to the exemplary embodiments.It should be understood that the combination of one or more blocks in the block diagram and the flow chart and the blocks in the block diagram and the flow chart can be realized by executing computer executable program instructions respectively.Equally, according to some embodiments, some blocks in the block diagram and the flow chart may not need to be executed in the order shown, or may not need to be executed in full.In addition, additional components and / or operations beyond those components and / or operations shown in the blocks in the block diagram and the flow chart may be present in certain embodiments.

[0046] Therefore, the blocks in the block diagrams and flow charts support the combination of devices for performing the specified functions, the combination of elements or steps for performing the specified functions, and the program instruction devices for performing the specified functions. It should also be understood that each block in the block diagrams and flow charts and the combination of blocks in the block diagrams and flow charts can be implemented by a special-purpose hardware computer system or a combination of special-purpose hardware and computer instructions that performs a specific function, element or step.

[0047] The program modules, applications, etc. described herein may include one or more software components, including, for example, software objects, methods, data structures, etc. Each such software component may include computer-executable instructions that, in response to execution, cause at least a portion of the functionality described herein (e.g., one or more operations of the illustrative methods described herein) to be performed.

[0048] Software components can be encoded with any of various programming languages. An exemplary programming language can be a low-level programming language, such as an assembly language associated with a specific hardware architecture and / or an operating system platform. The software component comprising assembly language instructions may need to be converted to executable machine code by an assembler before being executed by hardware architecture and / or platform. Another exemplary programming language can be a higher-level programming language, which can be transplanted across multiple architectures. The software component comprising a higher-level programming language may need to be converted to an intermediate representation by an interpreter or a compiler before execution. Other examples of programming languages ​​include but are not limited to macro languages, shells or command languages, job control languages, scripting languages, database queries or search languages ​​or report writing languages. In one or more exemplary embodiments, the software component comprising the instruction of one of the above-mentioned programming language examples can be directly executed by an operating system or other software components, without first being converted into another form.

[0049] Software components may be stored as files or other data storage structures. Software components of similar type or related functions may be stored together, such as in a specific directory, folder, or library. Software components may be static (e.g., preset or fixed) or dynamic (e.g., created or modified at execution time).

[0050] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present invention.

Claims

1. A method for filtering air volume with micro-pressure difference, characterized in that: The following steps are involved: Acquire a first amount of raw pressure difference data; Creating a first array, putting a first amount of the original pressure difference data into the first array, and sorting the data in the first array; Performing median average filtering on the sorted data of the first array to obtain a first filtered value; Creating a second array, placing the first filtered value into the second array, and performing a first-in-first-out operation on the second array; Create a third array, copy the data of the second array into the third array, and sort the data of the third array; Performing median average filtering on the sorted data of the third array to obtain a second filtered value; When the second filtered value is within the error range of the preset value, filtering is performed on the second filtered value to obtain a final result.

2. The air volume micro-pressure difference filtering method according to claim 1, characterized in that: The step of creating a first array, putting a first amount of the original pressure difference data into the first array, and sorting the data in the first array comprises: Creating a first array, and putting a first quantity of the original pressure difference data into the first array; The data in the first array is sorted in ascending order by using a heap sort method.

3. The air volume micro-pressure difference filtering method according to claim 2, characterized in that: The step of performing median average filtering on the sorted data of the first array to obtain a first filtered value comprises: Obtaining a second amount of data located in the middle of the first array; An arithmetic mean of the second amount of data is calculated to obtain the first filtered value.

4. The air volume micro-pressure difference filtering method according to claim 1, characterized in that: The steps of creating a second array, placing the first filtered value into the second array, and performing a first-in-first-out operation on the second array include: Create a second array whose number of elements is the first number plus 1; the initial value of each element of the second array is 0; The first filter value is assigned to the data of the last element of the second array, and a first-in-first-out operation is performed on the second array to remove the data of the first element of the second array.

5. The air volume micro-pressure difference filtering method according to claim 1, characterized in that: The step of performing median average filtering on the sorted data of the third array to obtain a second filtered value comprises: Obtaining a third amount of data located in the middle of the third array after being sorted in ascending order; An arithmetic mean of the third amount of data is calculated to obtain the second filtered value.

6. The air volume micro-pressure difference filtering method according to claim 1, characterized in that: When the second filtered value is within the error range of the preset value, the step of filtering the second filtered value to obtain a final result includes: Create a fourth array; Assigning the second filtered value to the data of the last element of the fourth array, and performing a first-in-first-out operation on the fourth array to remove the data of the first element of the fourth array; Sorting all data in the fourth array in ascending order, and obtaining a fourth number of data in the middle of the sorting result; The arithmetic mean of the fourth amount of data is calculated to obtain the final result.

7. The air volume micro-pressure difference filtering method according to claim 6, characterized in that: The step of filtering the second filtered value to obtain a final result when the second filtered value is within an error range of a preset value further includes: When the second filtered value is within the error range of the preset value for the first time, the second filtered value is assigned to the data of all elements of the fourth array.

8. The air volume micro-pressure difference filtering method according to claim 1, characterized in that: Also includes: When the second filtered value exceeds the error range of the preset value, the second filtered value is output.

9. An electronic device, characterized in that: include: A memory for storing program instructions; The processor is used to call the program instructions stored in the memory, and execute the air volume micro-pressure difference filtering method according to any one of claims 1-8 according to the obtained program instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the air volume micro-pressure difference filtering method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Clean area room pressure difference adaptive control system

    CN110262239A

  • Quick response processing method for gas sampling

    CN116483311A

  • Touchscreen data processing

    US20140022211A1