Power quality waveform generation method and device, power quality waveform simulation system
By obtaining and correcting the impact of environmental factors on current and voltage, a more accurate power quality waveform is generated, and the waveform inaccuracy problem caused by environmental factors in the prior art is solved.
Patent Information
- Application Number
- CN202411430300.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2044-10-14
AI Technical Summary
The prior art does not consider environmental factors when generating power quality waveforms, resulting in the impact of current and voltage not being accurately reflected, resulting in inaccurate waveforms.
By obtaining the measured current, measured voltage and measured environmental variables (including temperature, humidity, electromagnetic interference intensity and air pressure), the data correction factor is calculated, and the current and voltage are corrected when the factor is 1 to generate more accurate power quality Waveform.
The accuracy of power quality waveform generation is improved, making the waveform closer to the actual situation, and solving the inaccuracy problem caused by environmental factors.
Smart Images

Figure CN118937763B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power quality waveforms, and in particular to a method for generating a power quality waveform, a device for generating a power quality waveform, a computer-readable storage medium, and a power quality waveform simulation system. Background Art
[0002] The multifunctional power quality waveform simulation system is a special device used to generate and simulate different types of power quality waveforms.
[0003] The patent with publication number CN115602005A discloses a power quality monitoring experimental system and method. It includes: a host, a power quality monitoring device, a display device, an image acquisition device and a signal generating device; wherein the power quality monitoring device is used to obtain the waveform image sent by the host, and judge whether the waveform image is qualified according to the preset standard; the signal generating device is used to generate a corresponding electrical signal according to the power parameters received by the host, and the host is used to receive the power parameters sent by the power quality monitoring device, send the power parameters to the signal generating device, and convert the received electrical signal into a waveform image and send it to the display device and the power quality monitoring device.
[0004] The patent with publication number CN105244880A discloses a method and system for suppressing DC voltage fluctuations in a power quality regulation device, including obtaining a voltage waveform of a DC pole capacitor; simulating a sinusoidal waveform, screening out N moments in the simulated waveform whose amplitude does not meet preset conditions, and determining the pulse width of the DC voltage component in the voltage waveform at N moments; detecting the harmonic voltage of the harmonic voltage component in the voltage waveform at N moments according to a preset sampling number, obtaining the value of the harmonic voltage component corresponding to each sampling number at N moments, the harmonic coefficient corresponding to each sampling number, and the total harmonic coefficient; respectively calculating the product between each total harmonic coefficient and the pulse width of its corresponding DC voltage component, and after revising the pulse width of the DC voltage component at each moment in the voltage waveform to the corresponding product, modulating it into a sinusoidal wave output.
[0005] The relevant data detected in the prior art do not take into account the influence of environmental factors, and the generated waveform will have certain errors. Summary of the invention
[0006] The main purpose of the present application is to provide a method for generating a power quality waveform, a device for generating a power quality waveform, a computer-readable storage medium and a power quality waveform simulation system, so as to at least solve the problem in the prior art that when generating a power quality waveform, the influence of environmental factors on current and voltage is not considered, resulting in inaccurate generated power quality waveform.
[0007] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for generating a power quality waveform is provided, comprising: obtaining current measured values, voltage measured values and environmental variable measured values, the environmental variable measured values comprising ambient temperature measured values, ambient humidity measured values, ambient electromagnetic interference intensity measured values and ambient air pressure measured values; determining a data correction factor according to the environmental variable measured values, the data correction factor being 1 or 0, and being used to determine whether it is necessary to correct the current measured value and the voltage measured value; when the data correction factor is 1, correcting the current measured value and the voltage measured value to obtain a corrected current and a corrected voltage, respectively; and generating a power quality waveform according to the corrected current and the corrected voltage.
[0008] Optionally, determining the data correction factor according to the actual measured value of the environmental variable includes: calculating the difference between each actual measured value of the environmental variable and the corresponding set value of the environmental variable to obtain the environmental variable difference, the environmental variable set value includes the environmental temperature set value, the environmental humidity set value and the environmental electromagnetic interference intensity set value, and the environmental variable difference includes the environmental temperature difference, the environmental humidity difference and the environmental electromagnetic interference intensity difference; determining the data correction factor according to the environmental variable difference using a first formula, the first formula is ,in, is the data correction factor, is the ambient temperature difference, is the ideal value of the ambient temperature difference, is the ambient humidity difference, is the ideal value of the ambient humidity difference, is the difference in the environmental electromagnetic interference intensity, is the ideal value of the difference in the environmental electromagnetic interference intensity.
[0009] Optionally, calculating the difference between the actual value of each environmental variable and the corresponding set value of the environmental variable to obtain the environmental variable difference includes: calculating the ambient temperature difference according to a second formula, wherein the second formula is ,in, is the measured value of the ambient temperature, is the ambient temperature setting value, is the measured value of the ambient humidity, is the ambient humidity setting value, is the actual measured value of the ambient air pressure; calculate the difference between the actual measured value of the ambient humidity and the set value of the ambient humidity to obtain the ambient humidity difference; calculate the difference between the actual measured value of the ambient electromagnetic interference intensity and the set value of the ambient electromagnetic interference intensity to obtain the ambient electromagnetic interference intensity difference.
[0010] Optionally, when the data correction factor is 1, the current measured value and the voltage measured value are corrected to obtain a corrected current and a corrected voltage, respectively, including: obtaining a vibration influence factor and an interference influence factor of the current sensor; calculating the corrected current according to a third formula, wherein the third formula is ,in, is the correction current, is the measured value of the current, is the vibration influence factor, is the interference factor, is an error limit, and the error limit is an error limit of the current sensor detecting the current; obtaining an environmental electromagnetic interference intensity influence index of the voltage sensor, is the ambient temperature setting value, is the ambient humidity setting value; the correction voltage is calculated according to the fourth formula, and the fourth formula is , is the correction voltage, is the measured value of the voltage, is the environmental electromagnetic interference intensity impact index, is the adjustment coefficient.
[0011] Optionally, obtaining the vibration influence factor and interference influence factor of the current sensor includes: obtaining the actual measured value of the vibration frequency of the current sensor, the actual measured value of the environmental noise and the set value of the interference index, wherein the actual measured value of the vibration frequency is the actual measured value of the vibration frequency of the current sensor, the actual measured value of the environmental noise is the actual measured value of the noise of the environment in which the current sensor is located, and the set value of the interference index is the set value of the interference influence factor; when the actual measured value of the vibration frequency is greater than the set value of the vibration frequency, determining the vibration influence factor to be the first factor set value; when the actual measured value of the vibration frequency is less than or equal to the set value of the vibration frequency, determining the vibration influence factor to be the second factor set value, and the first factor set value is greater than the second factor set value; when the environmental interference is greater than the set value of the interference index, determining the interference influence factor to be the third factor set value, and the environmental interference is the value obtained by adding the actual measured value of the environmental electromagnetic interference intensity and the actual measured value of the environmental noise; when the environmental interference is less than or equal to the set value of the interference index, determining the interference influence factor to be the fourth factor set value, and the fourth factor set value is greater than the third factor set value.
[0012] Optionally, obtaining the environmental electromagnetic interference intensity impact index of the voltage sensor includes: when the actual measured value of the environmental electromagnetic interference intensity is greater than the electromagnetic interference intensity setting value of a first set multiple, determining that the environmental electromagnetic interference intensity impact index is a first impact index, and the first set multiple is greater than 1; when the actual measured value of the environmental electromagnetic interference intensity is less than or equal to the environmental electromagnetic interference intensity setting value of the first set multiple, and greater than the environmental electromagnetic interference intensity setting value of a second set multiple, determining that the environmental electromagnetic interference intensity impact index is a second impact index, the first set multiple is greater than the second set multiple, the second set multiple is greater than 1, and the second impact index is greater than the first impact index; when the actual measured value of the environmental electromagnetic interference intensity is less than or equal to the environmental electromagnetic interference intensity setting value of the second set multiple, and greater than the third set multiple of the set value of the environmental electromagnetic interference intensity, the environmental electromagnetic interference intensity impact index is determined to be the third impact index, the second set multiple is greater than the third set multiple, the third set multiple is greater than 1, and the third impact index is greater than the second impact index; when the actual measured value of the environmental electromagnetic interference intensity is less than or equal to the set value of the environmental electromagnetic interference intensity of the third set multiple, and greater than the set value of the environmental electromagnetic interference intensity, the environmental electromagnetic interference intensity impact index is determined to be the fourth impact index, and the fourth impact index is greater than the third impact index; when the actual measured value of the environmental electromagnetic interference intensity is less than or equal to the set value of the environmental electromagnetic interference intensity, the environmental electromagnetic interference intensity impact index is determined to be the fifth impact index, and the fifth impact index is greater than the fourth impact index.
[0013] Optionally, after calculating the data correction factor according to the actual measured value of the environmental variable, the method further includes: when the data correction factor is 0, generating the power quality waveform according to the actual measured value of the current and the actual measured value of the voltage.
[0014] According to another aspect of the present application, a device for generating a power quality waveform is provided, the device comprising: an acquisition unit, used to acquire a current measured value, a voltage measured value and an environmental variable measured value, the environmental variable measured value comprising an ambient temperature measured value, an ambient humidity measured value, an ambient electromagnetic interference intensity measured value and an ambient air pressure measured value; a determination unit, used to determine a data correction factor according to the environmental variable measured values, the data correction factor being 1 or 0, and used to determine whether it is necessary to correct the current measured value and the voltage measured value; a correction unit, used to correct the current measured value and the voltage measured value when the data correction factor is 1, and obtain a corrected current and a corrected voltage, respectively; a first generation unit, used to generate a power quality waveform according to the corrected current and the corrected voltage.
[0015] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described.
[0016] According to another aspect of the present application, a power quality waveform simulation system is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and when the one or more programs are executed, any one of the described methods is implemented.
[0017] Applying the technical solution of the present application, in the method for generating a power quality waveform, first, the current measured value, the voltage measured value and the environmental variable measured value are obtained, and the environmental variable measured value includes the ambient temperature measured value, the ambient humidity measured value, the ambient electromagnetic interference intensity measured value and the ambient air pressure measured value; then, the data correction factor is determined according to the ambient variable measured value, and the data correction factor is 1 or 0, which is used to determine whether the current measured value and the voltage measured value need to be corrected; then, when the data correction factor is 1, the current measured value and the voltage measured value are corrected to obtain the corrected current and the corrected voltage respectively; finally, the power quality waveform is generated according to the corrected current and the corrected voltage. The present application monitors environmental factors in real time (such as temperature, humidity, electromagnetic interference and air pressure), and determines whether the interference effect on the voltage and current is large through the changes in environmental factors. When the interference effect is large, the current measured value and the voltage measured value are corrected according to the changes in environmental factors, so as to ensure that the generated power quality waveform is closer to the actual situation and improve the accuracy of waveform generation. The present application solves the problem in the prior art that when generating a power quality waveform, the influence of environmental factors on current and voltage is not considered, resulting in an inaccurate power quality waveform being generated. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A hardware structure block diagram of a mobile terminal for executing a method for generating a power quality waveform provided in an embodiment of the present application is shown;
[0019] Figure 2 A schematic flow chart of a method for generating a power quality waveform according to an embodiment of the present application is shown;
[0020] Figure 3 The overall structural diagram of a power quality waveform simulation system provided according to an embodiment of the present application is shown;
[0021] Figure 4 A harmonic waveform diagram for generating a power quality waveform provided according to an embodiment of the present application is shown;
[0022] Figure 5 A structural block diagram of a device for generating a power quality waveform provided according to an embodiment of the present application is shown.
[0023] The above drawings include the following reference numerals:
[0024] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION
[0025] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] As introduced in the background technology, the relevant data detected in the prior art does not take into account the influence of environmental factors, and the generated waveform will have certain errors. In order to solve the problem that the generated power quality waveform is inaccurate due to the influence of environmental factors on current and voltage not being considered when generating the power quality waveform, the embodiments of the present application provide a method for generating a power quality waveform, a device for generating a power quality waveform, a computer-readable storage medium and a power quality waveform simulation system.
[0029] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0030] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal for executing a method for generating a power quality waveform according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0031] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for generating power quality waveform in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0032] In this embodiment, a method for generating a power quality waveform running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.
[0033] Figure 2 FIG. 1 is a flow chart of a method for generating a power quality waveform according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0034] Step S201, obtaining current measured values, voltage measured values and environmental variable measured values, wherein the environmental variable measured values include ambient temperature measured values, ambient humidity measured values, ambient electromagnetic interference intensity measured values and ambient air pressure measured values.
[0035] Specifically, the current sensor in the power quality waveform simulation system monitors the above-mentioned current measured value, the voltage sensor monitors the above-mentioned voltage measured value, and the environmental monitoring module monitors all environmental variables. When detecting the measured value of the ambient temperature, the measured value of the ambient humidity, and the measured value of the ambient electromagnetic interference intensity, try to get as close to the relevant sensors as possible.
[0036] It should also be noted that Figure 3 The overall structure diagram of a power quality waveform simulation system is shown in FIG. Figure 3 As shown, the power quality waveform simulation system includes a parameter setting module, an environmental monitoring module, a current sensor, a voltage sensor, a data processing module, a control module and a display module; the parameter setting module is used to set basic parameters and transmit them to the control module; the environmental monitoring module is used to monitor environmental factors and obtain information on whether there is interference from environmental factors, and transmit the information on whether there is interference from environmental factors to the data processing module; the current sensor is used to detect current and obtain the actual measured value of current and transmit it to the data processing module; the voltage sensor is used to detect voltage and obtain the actual measured value of voltage and transmit it to the data processing module; the data processing module transmits the actual measured value of current and the actual measured value of voltage to the control module according to the information that there is no interference from environmental factors, or corrects the actual measured value of current and the actual measured value of voltage according to the information that there is interference from environmental factors, and transmits the corrected data to the control module; the control module generates a power quality waveform according to the basic parameters and the data obtained by the data processing module, and transmits the power quality waveform to the display module; the display module displays the power quality waveform to the user.
[0037] Step S202, determining a data correction factor according to the actual measured value of the environmental variable, wherein the data correction factor is 1 or 0, and is used to determine whether the actual measured value of the current and the actual measured value of the voltage need to be corrected.
[0038] Specifically, the data correction factor is calculated using the environmental monitoring module in the above-mentioned power quality waveform simulation system to determine whether there is information about environmental interference. When there is information about environmental interference, the data correction factor is 1, and when there is no information about environmental interference, the data correction factor is 0.
[0039] Step S203, when the data correction factor is 1, the current measured value and the voltage measured value are corrected to obtain a corrected current and a corrected voltage respectively.
[0040] Specifically, the data correction factor When the voltage and current data need to be corrected, it means that there is interference from environmental factors, so the corrected data is more in line with the actual value, which helps to improve the accuracy of system detection and further improve the accuracy of waveform simulation. When there is no interference from environmental factors, the voltage and current data do not need to be corrected.
[0041] Step S204: generating a power quality waveform according to the correction current and the correction voltage.
[0042] Specifically, the control module in the power quality waveform simulation system generates a power quality waveform based on basic parameters, voltage and current data acquired by the data processing module, and transmits the power quality waveform to the display module for display to the user. Basic parameters can be frequency, amplitude, phase difference and other parameters. The frequency represents the period of the waveform, the amplitude represents the amplitude of the waveform, and the phase difference represents the time offset of the waveform. The control module can generate different types of power quality waveforms by using a waveform generation algorithm combined with basic parameters and data acquired by the data processing module. The waveform diagram can be as follows: Figure 4 shown.
[0043] In this embodiment, first, the current measured value, the voltage measured value and the environmental variable measured value are obtained, and the environmental variable measured value includes the ambient temperature measured value, the ambient humidity measured value, the ambient electromagnetic interference intensity measured value and the ambient air pressure measured value; then, the data correction factor is determined according to the ambient variable measured value, and the data correction factor is 1 or 0, which is used to determine whether the current measured value and the voltage measured value need to be corrected; then, when the data correction factor is 1, the current measured value and the voltage measured value are corrected to obtain the corrected current and the corrected voltage respectively; finally, the power quality waveform is generated according to the corrected current and the corrected voltage. The present application monitors environmental factors in real time, such as temperature, humidity, electromagnetic interference and air pressure), and determines whether the interference effect on the voltage and current is large according to the changes in environmental factors. When the interference effect is large, the current measured value and the voltage measured value are corrected according to the changes in environmental factors, so as to ensure that the generated power quality waveform is closer to the actual situation and improve the accuracy of waveform generation. The present application solves the problem that the generated power quality waveform is inaccurate because the influence of environmental factors on current and voltage is not considered when generating power quality waveform in the prior art.
[0044] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the method for generating a power quality waveform of the present application will be described in detail below in combination with specific embodiments.
[0045] In order to perform interference judgment on environmental factors to improve the detection accuracy of the system, in an optional implementation manner, the above step S202 includes:
[0046] Step S2021, calculating the difference between the actual value of each of the above environmental variables and the corresponding set value of the environmental variable to obtain the environmental variable difference, the above environmental variable set value includes the environmental temperature set value, the environmental humidity set value and the environmental electromagnetic interference intensity set value, and the above environmental variable difference includes the environmental temperature difference, the environmental humidity difference and the environmental electromagnetic interference intensity difference;
[0047] Step S2022, determining the data correction factor using the first formula according to the difference in the environmental variables, the first formula being: ,in, is the correction factor for the above data, is the above ambient temperature difference, is the ideal value of the above ambient temperature difference, is the above-mentioned environmental humidity difference, is the ideal value of the above-mentioned environmental humidity difference, is the difference in the above-mentioned environmental electromagnetic interference intensity, It is the ideal value of the above-mentioned difference in environmental electromagnetic interference intensity.
[0048] In the above embodiment, the units of the measured value of ambient temperature and the set value of ambient temperature are degrees Celsius, and the units of the measured value of ambient electromagnetic interference intensity and the set value of ambient electromagnetic interference intensity are Tesla; the ideal value of ambient temperature difference, the ideal value of ambient humidity difference, the ideal value of ambient electromagnetic interference intensity difference, the ambient temperature set value, the ambient humidity set value and the ambient electromagnetic interference intensity set value are all set by technical personnel in this field according to actual conditions; under the ideal conditions of ambient temperature set value, ambient humidity set value and ambient electromagnetic interference intensity set value, the relevant sensors can work normally. , when the absolute value of the ambient temperature difference is greater than the ideal value of the ambient temperature difference, or the ideal value of the ambient humidity is less than , or the absolute value of the environmental electromagnetic interference intensity difference is greater than the ideal value of the environmental electromagnetic interference intensity difference, or the sum of the absolute values of the environmental temperature difference, the environmental humidity difference and the environmental electromagnetic interference intensity difference is greater than the sum of the ideal values of the environmental temperature difference, the ideal values of the environmental humidity difference and the ideal values of the environmental electromagnetic interference intensity difference, it indicates that there is an environmental interference factor, and the data correction factor is determined to be 1, otherwise the environmental interference factor is saved and the data correction factor is determined to be 0.
[0049] In order to accurately calculate the data correction factor, in an optional implementation manner, the above step S2021 includes:
[0050] Step S20211, calculating the above-mentioned ambient temperature difference according to the second formula, the above-mentioned second formula is ,in, is the measured value of the above ambient temperature, is the above ambient temperature setting value, is the measured value of the above ambient humidity, For the above ambient humidity setting value, is the measured value of the above ambient air pressure;
[0051] Step S20212, calculating the difference between the above-mentioned ambient humidity measured value and the above-mentioned ambient humidity set value to obtain the above-mentioned ambient humidity difference;
[0052] Step S20213, calculating the difference between the actual value of the environmental electromagnetic interference intensity and the set value of the environmental electromagnetic interference intensity to obtain the environmental electromagnetic interference intensity difference.
[0053] In the above embodiment, the ambient temperature difference is calculated according to the above second formula, wherein the value 1013.25 is the standard atmospheric pressure in hectopascals (hPa); the value 0.01 indicates unit conversion. , the difference in electromagnetic interference intensity of the above environment By calculating the difference in ambient temperature, ambient humidity and ambient electromagnetic interference intensity, it is possible to timely discover the interference that environmental changes may cause to the voltage sensor and current sensor, and it is also convenient for the subsequent accurate calculation of the data correction factor. It should also be noted that the calculations involving different parameters in each formula are dimensionless calculations.
[0054] In order to make the current and voltage values more realistic and improve the accuracy of generating the power quality waveform, in an optional implementation, the above step S203 includes:
[0055] Step S2031, obtaining a vibration influence factor and an interference influence factor of the current sensor;
[0056] Step S2032, calculating the correction current according to a third formula, the third formula is: ,in, is the above correction current, is the measured value of the above current, is the above vibration influence factor, is the interference factor, is the error limit, and the above error limit is the error limit of the current detected by the above current sensor, is the above ambient temperature setting value, is the above-mentioned ambient humidity setting value;
[0057] Step S2033, obtaining an environmental electromagnetic interference intensity impact index of the voltage sensor;
[0058] Step S2034, calculating the correction voltage according to the fourth formula, the fourth formula is: , is the above correction voltage, is the measured value of the above voltage, is the impact index of the above-mentioned environmental electromagnetic interference intensity, is the adjustment coefficient.
[0059] In the above embodiments, relevant influencing factors such as vibration, temperature, humidity, noise, and electromagnetic interference intensity are introduced when calculating the correction current. For example, when the measured value of the ambient temperature is greater than the set value of the ambient temperature, the current sensor will have reduced sensitivity or increased internal resistance of the electronic component, which will cause the measured value of the detected current to be too large, and vice versa; when the measured value of the ambient humidity is greater than the set value of the ambient humidity, the conductivity in the circuit will be enhanced, which will cause the measured value of the detected current to be too small, and vice versa; when the current sensor itself is subjected to greater vibration, it will cause the current sensor itself to have poor contact. At this time, it is difficult for the current sensor to capture the circuit signal, which will cause the measured value of the detected current to be too small; when the environmental interference is too large, it will reduce the performance of the current sensor. For example, when the measured value of the environmental noise is too large, the noise will enter the current sensor in an irregular waveform. , interfering with the normal current signal, thus causing the actual value of the detected current to be too large. When the actual value of the environmental electromagnetic interference intensity is too large, the current sensor may misread the interference signal as a current signal, thus causing the actual value of the detected current to be too large. The unit of the error limit of the current sensor is ampere. Generally, the factory setting will mark the error limit at plus or minus 0.1 ampere, which means that the difference between the actual value of the detected current and the actual value does not exceed 0.1 ampere. After obtaining the corresponding data, the error limit of the corresponding current sensor can be obtained by comparing the actual detection with the accurate reference value. The accurate reference value is the value obtained by measuring the current under well-controlled environmental conditions using a high-precision standard instrument. For example, the error limit obtained by the query is plus or minus 0.1 ampere. After the experiment, it is known that the actual data detected by the current sensor will be too large, then the error limit of the corresponding current sensor is negative 0.1 ampere. Finally, the above correction current is calculated according to the third formula.
[0060] When calculating the correction voltage, relevant influencing factors such as temperature, humidity, and electromagnetic interference intensity are introduced. For example, when the measured value of the ambient temperature is greater than the set value of the ambient temperature, the resistance value of the electronic component will increase, resulting in the measured value of the detected voltage being too large, and vice versa; when the measured value of the ambient humidity is greater than the set value of the ambient humidity, high humidity will increase the surface conductivity of the electronic component, which may cause current leakage or charge accumulation in the circuit, resulting in the measured value of the detected voltage being too large; when the measured value of the ambient humidity is less than the set value of the ambient humidity, the surface of the electronic component is dry, which may cause uneven charge distribution or electrostatic interference, resulting in the measured value of the detected voltage being too small; when the measured value of the ambient electromagnetic interference intensity is too large, the voltage sensor may receive irrelevant electromagnetic signals, resulting in the voltage sensor mistakenly believing that these interference signals are part of the measured voltage signal. Finally, the correction voltage is calculated according to the fourth formula. The following is an example of specific data: Assuming that in a certain measurement, the measured value of voltage is 220 volts, the measured value of environmental electromagnetic interference intensity is equal to the set value of environmental electromagnetic interference intensity, and the corresponding environmental electromagnetic interference intensity impact index is equal to 1, the measured value of ambient temperature is equal to the set value of ambient temperature, both are equal to 25°C, the measured value of ambient humidity is 50%, and the set value of ambient humidity is 40%, substitute all the data into , then the corresponding correction voltage is 219.975.
[0061] In order to improve the accuracy of current calibration, in an optional implementation manner, the above step S2031 includes:
[0062] Step S20311, obtaining a vibration frequency measured value, an environmental noise measured value and an interference index setting value of the current sensor, wherein the vibration frequency measured value is a measured value of the vibration frequency of the current sensor, the environmental noise measured value is a measured value of the noise of the environment in which the current sensor is located, and the interference index setting value is a setting value of the interference influence factor;
[0063] Step S20312, when the actual vibration frequency value is greater than the vibration frequency setting value, determining the vibration influence factor to be the first factor setting value;
[0064] Step S20313, when the actual vibration frequency value is less than or equal to the vibration frequency setting value, determining that the vibration influence factor is the second factor setting value, and the first factor setting value is greater than the second factor setting value;
[0065] Step S20314, when the environmental interference is greater than the set value of the interference index, determining the interference impact factor as the set value of the third factor, the environmental interference being the value obtained by adding the actual measured value of the environmental electromagnetic interference intensity to the actual measured value of the environmental noise;
[0066] Step S20315: when the environmental interference is less than or equal to the interference index setting value, determine the interference impact factor as a fourth factor setting value, and the fourth factor setting value is greater than the third factor setting value.
[0067] In the above embodiment, the power quality waveform simulation system can also monitor the environmental noise and obtain the measured value of the environmental noise, monitor the vibration of the current sensor and obtain the measured value of the vibration frequency, and according to the measured value of the vibration frequency , Vibration frequency setting value The vibration influence factor ,like , according to the measured value of the environmental electromagnetic interference intensity , Actual measured value of environmental noise , Interference index setting value Interference Factor ,like , the specific values can be replaced by those skilled in the art according to the specific circumstances.
[0068] In order to understand the performance of the system in different electromagnetic interference environments and improve the accuracy of voltage calibration, in an optional implementation, the above step S2033 includes:
[0069] Step S20331, when the actual measured value of the environmental electromagnetic interference intensity is greater than the electromagnetic interference intensity setting value of the first setting multiple, determining the environmental electromagnetic interference intensity impact index as the first impact index, and the first setting multiple is greater than 1;
[0070] Step S20332, when the actual measured value of the environmental electromagnetic interference intensity is less than or equal to the environmental electromagnetic interference intensity setting value of the first setting multiple and greater than the environmental electromagnetic interference intensity setting value of the second setting multiple, determine that the environmental electromagnetic interference intensity impact index is the second impact index, the first setting multiple is greater than the second setting multiple, the second setting multiple is greater than 1, and the second impact index is greater than the first impact index;
[0071] Step S20333, when the measured value of the environmental electromagnetic interference intensity is less than or equal to the environmental electromagnetic interference intensity setting value of the second setting multiple and greater than the environmental electromagnetic interference intensity setting value of the third setting multiple, determine that the environmental electromagnetic interference intensity impact index is the third impact index, the second setting multiple is greater than the third setting multiple, the third setting multiple is greater than 1, and the third impact index is greater than the second impact index;
[0072] Step S20334, when the measured value of the environmental electromagnetic interference intensity is less than or equal to the third set multiple of the environmental electromagnetic interference intensity setting value, and is greater than the environmental electromagnetic interference intensity setting value, determining that the environmental electromagnetic interference intensity impact index is a fourth impact index, and the fourth impact index is greater than the third impact index;
[0073] Step S20335: when the measured value of the environmental electromagnetic interference intensity is less than or equal to the set value of the environmental electromagnetic interference intensity, determine that the environmental electromagnetic interference intensity impact index is a fifth impact index, and the fifth impact index is greater than the fourth impact index.
[0074] In the above embodiment, the process of determining the impact index under different environmental electromagnetic interference intensities is described. The impact index is an indicator for evaluating the degree of influence of electromagnetic interference on system performance. The larger the value, the greater the influence of electromagnetic interference on system performance. Different impact indexes are determined based on the comparison between the actual measured environmental electromagnetic interference intensity and the set value. The performance impact of the system under different electromagnetic interference environments can be classified and evaluated, so as to correct the voltage and ensure the normal operation and performance stability of the system. It is convenient to understand the performance of the system under different electromagnetic interference environments, optimize and improve it in a targeted manner, and improve the reliability and stability of the system. For example, the environmental electromagnetic interference intensity impact index Of course, this formula is only a preferred embodiment provided, but those skilled in the art can adjust it according to actual conditions, and there may be less than five judgment conditions or more than five judgment conditions.
[0075] In order to generate the power quality waveform in time, in an optional implementation manner, after the above step S204, the method further includes:
[0076] Step S301 , when the data correction factor is 0, generating the power quality waveform according to the current measured value and the voltage measured value.
[0077] In the above embodiment, when When the environmental factors have little interference, the data does not need to be corrected, and the power quality waveform is directly generated according to the current measured value and the voltage measured value to display the power quality waveform to the user.
[0078] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0079] The embodiment of the present application also provides a device for generating a power quality waveform. It should be noted that the device for generating a power quality waveform in the embodiment of the present application can be used to execute the method for generating a power quality waveform provided in the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation in hardware, or a combination of software and hardware, is also possible and conceivable.
[0080] The following introduces the device for generating a power quality waveform provided in an embodiment of the present application.
[0081] Figure 5 is a structural block diagram of a device for generating a power quality waveform according to an embodiment of the present application. Figure 5 As shown, the device comprises:
[0082] The acquisition unit 10 is used to acquire the current measured value, the voltage measured value and the environmental variable measured value, wherein the environmental variable measured value includes the ambient temperature measured value, the ambient humidity measured value, the ambient electromagnetic interference intensity measured value and the ambient air pressure measured value.
[0083] Specifically, the current sensor in the power quality waveform simulation system monitors the above-mentioned current measured value, the voltage sensor monitors the above-mentioned voltage measured value, and the environmental monitoring module monitors all environmental variables. When detecting the measured value of the ambient temperature, the measured value of the ambient humidity, and the measured value of the ambient electromagnetic interference intensity, try to get as close to the relevant sensors as possible.
[0084] It should also be noted that Figure 3 The overall structure diagram of a power quality waveform simulation system is shown in FIG. Figure 3As shown, the power quality waveform simulation system includes a parameter setting module, an environmental monitoring module, a current sensor, a voltage sensor, a data processing module, a control module and a display module; the parameter setting module is used to set basic parameters and transmit them to the control module; the environmental monitoring module is used to monitor environmental factors and obtain information on whether there is interference from environmental factors, and transmit the information on whether there is interference from environmental factors to the data processing module; the current sensor is used to detect current and obtain the actual measured value of current and transmit it to the data processing module; the voltage sensor is used to detect voltage and obtain the actual measured value of voltage and transmit it to the data processing module; the data processing module transmits the actual measured value of current and the actual measured value of voltage to the control module according to the information that there is no interference from environmental factors, or corrects the actual measured value of current and the actual measured value of voltage according to the information that there is interference from environmental factors, and transmits the corrected data to the control module; the control module generates a power quality waveform according to the basic parameters and the data obtained by the data processing module, and transmits the power quality waveform to the display module; the display module displays the power quality waveform to the user.
[0085] The determination unit 20 is used to determine a data correction factor according to the actual measured value of the environmental variable, and the data correction factor is 1 or 0, and is used to determine whether the actual measured value of the current and the actual measured value of the voltage need to be corrected.
[0086] Specifically, the data correction factor is calculated using the environmental monitoring module in the above-mentioned power quality waveform simulation system to determine whether there is information about environmental interference. When there is information about environmental interference, the data correction factor is 1, and when there is no information about environmental interference, the data correction factor is 0.
[0087] The correction unit 30 is used to correct the above-mentioned current measured value and the above-mentioned voltage measured value when the above-mentioned data correction factor is 1, so as to obtain a corrected current and a corrected voltage respectively.
[0088] Specifically, the data correction factor When the voltage and current data need to be corrected, it means that there is interference from environmental factors, so the corrected data is more in line with the actual value, which helps to improve the accuracy of system detection and further improve the accuracy of waveform simulation. When there is no interference from environmental factors, the voltage and current data do not need to be corrected.
[0089] The first generating unit 40 is used to generate a power quality waveform according to the correction current and the correction voltage.
[0090] Specifically, the control module in the power quality waveform simulation system generates a power quality waveform based on basic parameters, voltage and current data acquired by the data processing module, and transmits the power quality waveform to the display module for display to the user. Basic parameters can be frequency, amplitude, phase difference and other parameters. The frequency represents the period of the waveform, the amplitude represents the amplitude of the waveform, and the phase difference represents the time offset of the waveform. The control module can generate different types of power quality waveforms by using a waveform generation algorithm combined with basic parameters and data acquired by the data processing module. The waveform diagram can be as follows: Figure 4 shown.
[0091] In this embodiment, the acquisition unit is used to obtain the current measured value, the voltage measured value and the environmental variable measured value, and the environmental variable measured value includes the ambient temperature measured value, the ambient humidity measured value, the ambient electromagnetic interference intensity measured value and the ambient air pressure measured value; the calculation unit is used to determine the data correction factor according to the environmental variable measured value, the data correction factor is 1 or 0, and is used to determine whether it is necessary to correct the current measured value and the voltage measured value; the correction unit is used to correct the current measured value and the voltage measured value when the data correction factor is 1, and obtain the corrected current and the corrected voltage respectively; the first generation unit is used to generate the power quality waveform according to the corrected current and the corrected voltage. The present application monitors environmental factors in real time (such as temperature, humidity, electromagnetic interference and air pressure), and determines whether the interference effect on the voltage and current is large through the changes of environmental factors. When the interference effect is large, the current measured value and the voltage measured value are corrected according to the changes of environmental factors, so as to ensure that the generated power quality waveform is closer to the actual situation and improve the accuracy of waveform generation. The present application solves the problem in the prior art that when generating a power quality waveform, the influence of environmental factors on current and voltage is not considered, resulting in an inaccurate power quality waveform being generated.
[0092] In order to perform interference judgment on environmental factors to improve the detection accuracy of the system, in an optional implementation manner, the determination unit includes:
[0093] A first calculation module calculates the difference between the actual value of each of the above environmental variables and the corresponding environmental variable setting value to obtain the environmental variable difference, wherein the environmental variable setting value includes an environmental temperature setting value, an environmental humidity setting value and an environmental electromagnetic interference intensity setting value, and the environmental variable difference includes an environmental temperature difference, an environmental humidity difference and an environmental electromagnetic interference intensity difference;
[0094] A determination module determines the data correction factor using a first formula according to the difference in the environmental variables. The first formula is: ,in, is the correction factor for the above data, is the above ambient temperature difference, is the ideal value of the above ambient temperature difference, is the above-mentioned environmental humidity difference, is the ideal value of the above-mentioned environmental humidity difference, is the difference in the above-mentioned environmental electromagnetic interference intensity, It is the ideal value of the above-mentioned difference in environmental electromagnetic interference intensity.
[0095] In the above embodiment, the units of the measured value of ambient temperature and the set value of ambient temperature are degrees Celsius, and the units of the measured value of ambient electromagnetic interference intensity and the set value of ambient electromagnetic interference intensity are Tesla; the ideal value of ambient temperature difference, the ideal value of ambient humidity difference, the ideal value of ambient electromagnetic interference intensity difference, the ambient temperature set value, the ambient humidity set value and the ambient electromagnetic interference intensity set value are all set by technical personnel in this field according to actual conditions; under the ideal conditions of ambient temperature set value, ambient humidity set value and ambient electromagnetic interference intensity set value, the relevant sensors can work normally. , when the absolute value of the ambient temperature difference is greater than the ideal value of the ambient temperature difference, or the ideal value of the ambient humidity is less than , or the absolute value of the environmental electromagnetic interference intensity difference is greater than the ideal value of the environmental electromagnetic interference intensity difference, or the sum of the absolute values of the environmental temperature difference, the environmental humidity difference and the environmental electromagnetic interference intensity difference is greater than the sum of the ideal values of the environmental temperature difference, the ideal values of the environmental humidity difference and the ideal values of the environmental electromagnetic interference intensity difference, it indicates that there is an environmental interference factor, and the data correction factor is determined to be 1, otherwise the environmental interference factor is saved and the data correction factor is determined to be 0.
[0096] In order to accurately calculate the data correction factor, in an optional implementation manner, the first calculation module includes:
[0097] The first calculation submodule calculates the above-mentioned ambient temperature difference according to the second formula. The above-mentioned second formula is: , is the measured value of the above ambient temperature, is the set value of the above ambient temperature, is the measured value of the above ambient humidity, For the above ambient humidity setting value, is the measured value of the above ambient air pressure;
[0098] The second calculation submodule calculates the difference between the above-mentioned ambient humidity measured value and the above-mentioned ambient humidity set value to obtain the above-mentioned ambient humidity difference;
[0099] The third calculation submodule calculates the difference between the actual value of the environmental electromagnetic interference intensity and the set value of the environmental electromagnetic interference intensity to obtain the environmental electromagnetic interference intensity difference.
[0100] In the above embodiment, the ambient temperature difference is calculated according to the above second formula, wherein the value 1013.25 is the standard atmospheric pressure in hectopascals (hPa); the value 0.01 indicates unit conversion. , the difference in electromagnetic interference intensity of the above environment By calculating the difference in ambient temperature, ambient humidity and ambient electromagnetic interference intensity, it is possible to timely discover the interference that environmental changes may cause to the voltage sensor and current sensor, and it is also convenient for the subsequent accurate calculation of the data correction factor. It should also be noted that the calculations involving different parameters in each formula are dimensionless calculations.
[0101] In order to make the values of current and voltage more realistic and improve the accuracy of generating power quality waveforms, in an optional implementation, the correction unit includes:
[0102] A first acquisition module is used to acquire a vibration influence factor and an interference influence factor of the current sensor;
[0103] The fourth calculation module calculates the correction current according to the third formula. The third formula is: ,in, is the above correction current, is the measured value of the above current, is the above vibration influence factor, is the interference factor, is the error limit, and the above error limit is the error limit of the current detected by the above current sensor, is the above ambient temperature setting value, is the above-mentioned ambient humidity setting value;
[0104] The second acquisition module acquires the environmental electromagnetic interference intensity impact index of the voltage sensor;
[0105] The fifth calculation module calculates the correction voltage according to the fourth formula. The fourth formula is: , is the above correction voltage, is the measured value of the above voltage, is the impact index of the above-mentioned environmental electromagnetic interference intensity, is the adjustment coefficient.
[0106] In the above embodiments, relevant influencing factors such as vibration, temperature, humidity, noise, and electromagnetic interference intensity are introduced when calculating the correction current. For example, when the measured value of the ambient temperature is greater than the set value of the ambient temperature, the current sensor will have reduced sensitivity or increased internal resistance of the electronic component, which will cause the measured value of the detected current to be too large, and vice versa; when the measured value of the ambient humidity is greater than the set value of the ambient humidity, the conductivity in the circuit will be enhanced, which will cause the measured value of the detected current to be too small, and vice versa; when the current sensor itself is subjected to greater vibration, it will cause the current sensor itself to have poor contact. At this time, it is difficult for the current sensor to capture the circuit signal, which will cause the measured value of the detected current to be too small; when the environmental interference is too large, it will reduce the performance of the current sensor. For example, when the measured value of the environmental noise is too large, the noise will enter the current sensor in an irregular waveform. , interfering with the normal current signal, thus causing the actual value of the detected current to be too large. When the actual value of the environmental electromagnetic interference intensity is too large, the current sensor may misread the interference signal as a current signal, thus causing the actual value of the detected current to be too large. The unit of the error limit of the current sensor is ampere. Generally, the factory setting will mark the error limit at plus or minus 0.1 ampere, which means that the difference between the actual value of the detected current and the actual value does not exceed 0.1 ampere. After obtaining the corresponding data, the error limit of the corresponding current sensor can be obtained by comparing the actual detection with the accurate reference value. The accurate reference value is the value obtained by measuring the current under well-controlled environmental conditions using a high-precision standard instrument. For example, the error limit obtained by the query is plus or minus 0.1 ampere. After the experiment, it is known that the actual data detected by the current sensor will be too large, then the error limit of the corresponding current sensor is negative 0.1 ampere. Finally, the above correction current is calculated according to the third formula.
[0107] When calculating the correction voltage, relevant influencing factors such as temperature, humidity, and electromagnetic interference intensity are introduced. For example, when the measured value of the ambient temperature is greater than the set value of the ambient temperature, the resistance value of the electronic component will increase, resulting in the measured value of the detected voltage being too large, and vice versa; when the measured value of the ambient humidity is greater than the set value of the ambient humidity, high humidity will increase the surface conductivity of the electronic component, which may cause current leakage or charge accumulation in the circuit, resulting in the measured value of the detected voltage being too large; when the measured value of the ambient humidity is less than the set value of the ambient humidity, the surface of the electronic component is dry, which may cause uneven charge distribution or electrostatic interference, resulting in the measured value of the detected voltage being too small; when the measured value of the ambient electromagnetic interference intensity is too large, the voltage sensor may receive irrelevant electromagnetic signals, resulting in the voltage sensor mistakenly believing that these interference signals are part of the measured voltage signal. Finally, the correction voltage is calculated according to the fourth formula. The following is an example of specific data: Assuming that in a certain measurement, the measured value of voltage is 220 volts, the measured value of environmental electromagnetic interference intensity is equal to the set value of environmental electromagnetic interference intensity, and the corresponding environmental electromagnetic interference intensity impact index is equal to 1, the measured value of ambient temperature is equal to the set value of ambient temperature, both are equal to 25°C, the measured value of ambient humidity is 50%, and the set value of ambient humidity is 40%, substitute all the data into , then the corresponding correction voltage is 219.975.
[0108] In order to improve the accuracy of current correction, in an optional implementation manner, the first acquisition module includes:
[0109] A first acquisition submodule is configured to acquire a vibration frequency measured value, an environmental noise measured value, and an interference index setting value of the current sensor, wherein the vibration frequency measured value is a measured value of the vibration frequency of the current sensor, the environmental noise measured value is a measured value of the noise in the environment where the current sensor is located, and the interference index setting value is a setting value of the interference influencing factor;
[0110] A first determination submodule, when the actual vibration frequency value is greater than the vibration frequency setting value, determines the vibration influence factor to be a first factor setting value;
[0111] A second determination submodule, when the vibration frequency measured value is less than or equal to the vibration frequency setting value, determines that the vibration influence factor is a second factor setting value, and the first factor setting value is greater than the second factor setting value;
[0112] A third determination submodule, when the environmental interference is greater than the interference index setting value, determines the interference impact factor as the third factor setting value, and the environmental interference is the value obtained by adding the environmental electromagnetic interference intensity measured value and the environmental noise measured value;
[0113] The fourth determining submodule determines, when the environmental interference is less than or equal to the interference index setting value, that the interference impact factor is a fourth factor setting value, and the fourth factor setting value is greater than the third factor setting value.
[0114] In the above embodiment, the power quality waveform simulation system can also monitor the environmental noise and obtain the measured value of the environmental noise, monitor the vibration of the current sensor and obtain the measured value of the vibration frequency, and according to the measured value of the vibration frequency , Vibration frequency setting value The vibration influence factor ,like , according to the measured value of the environmental electromagnetic interference intensity , Actual measured value of environmental noise , Interference index setting value Interference Factor ,like , the specific values can be replaced by those skilled in the art according to the specific circumstances.
[0115] In order to understand the performance of the system in different electromagnetic interference environments and improve the accuracy of voltage calibration, in an optional implementation, the second acquisition module includes:
[0116] A fifth determination submodule, when the actual value of the environmental electromagnetic interference intensity is greater than the electromagnetic interference intensity setting value of the first setting multiple, determines that the environmental electromagnetic interference intensity impact index is a first impact index, and the first setting multiple is greater than 1;
[0117] The sixth determination submodule determines that the environmental electromagnetic interference intensity impact index is a second impact index when the actual measured value of the environmental electromagnetic interference intensity is less than or equal to the environmental electromagnetic interference intensity setting value of the first setting multiple and greater than the environmental electromagnetic interference intensity setting value of the second setting multiple, the first setting multiple is greater than the second setting multiple, the second setting multiple is greater than 1, and the second impact index is greater than the first impact index;
[0118] The seventh determination submodule determines that the environmental electromagnetic interference intensity impact index is the third impact index when the actual measured value of the environmental electromagnetic interference intensity is less than or equal to the environmental electromagnetic interference intensity setting value of the second setting multiple and greater than the environmental electromagnetic interference intensity setting value of the third setting multiple, the second setting multiple is greater than the third setting multiple, the third setting multiple is greater than 1, and the third impact index is greater than the second impact index;
[0119] An eighth determination submodule determines that the environmental electromagnetic interference intensity impact index is a fourth impact index, and the fourth impact index is greater than the third impact index, when the measured value of the environmental electromagnetic interference intensity is less than or equal to the third set multiple of the environmental electromagnetic interference intensity setting value, and is greater than the environmental electromagnetic interference intensity setting value;
[0120] The ninth determination submodule determines that the environmental electromagnetic interference intensity impact index is a fifth impact index when the actual value of the environmental electromagnetic interference intensity is less than or equal to the set value of the environmental electromagnetic interference intensity, and the fifth impact index is greater than the fourth impact index.
[0121] In the above embodiment, the process of determining the impact index under different environmental electromagnetic interference intensities is described. The impact index is an indicator for evaluating the degree of influence of electromagnetic interference on system performance. The larger the value, the greater the influence of electromagnetic interference on system performance. Different impact indexes are determined based on the comparison between the actual measured environmental electromagnetic interference intensity and the set value. The performance impact of the system under different electromagnetic interference environments can be classified and evaluated, so as to correct the voltage and ensure the normal operation and performance stability of the system. It is convenient to understand the performance of the system under different electromagnetic interference environments, optimize and improve it in a targeted manner, and improve the reliability and stability of the system. For example, the environmental electromagnetic interference intensity impact index Of course, this formula is only a preferred embodiment provided, but those skilled in the art can adjust it according to actual conditions, and there may be less than five judgment conditions or more than five judgment conditions.
[0122] In order to generate the power quality waveform in time, in an optional implementation manner, the device further includes:
[0123] The second generating unit is used to generate the power quality waveform according to the actual current value and the actual voltage value after calculating the data correction factor according to the actual environmental variable value and when the data correction factor is 0.
[0124] In the above embodiment, when When the environmental factors have little interference, the data does not need to be corrected, and the power quality waveform is directly generated according to the current measured value and the voltage measured value to display the power quality waveform to the user.
[0125] The power quality waveform generating device includes a processor and a memory. The acquisition unit, the determination unit and the calculation unit are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions. The modules are all located in the same processor; or, the modules are located in different processors in any combination.
[0126] The processor includes a kernel, and the kernel calls the corresponding program unit from the memory. One or more kernels can be set, and the problem of inaccurate power quality waveform generated by not considering the influence of environmental factors on current and voltage when generating power quality waveform in the prior art is solved by adjusting kernel parameters.
[0127] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0128] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for generating the power quality waveform.
[0129] Specifically, the method for generating the power quality waveform includes:
[0130] Step S201, obtaining current measured values, voltage measured values and environmental variable measured values, wherein the environmental variable measured values include ambient temperature measured values, ambient humidity measured values, ambient electromagnetic interference intensity measured values and ambient air pressure measured values;
[0131] Step S202, determining a data correction factor according to the measured value of the environmental variable, the data correction factor being 1 or 0, and used to determine whether the measured current value and the measured voltage value need to be corrected;
[0132] Step S203, when the data correction factor is 1, correcting the current measured value and the voltage measured value to obtain a corrected current and a corrected voltage respectively;
[0133] Step S204: generating a power quality waveform according to the correction current and the correction voltage.
[0134] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the method for generating a power quality waveform is executed when the program is run.
[0135] Specifically, the method for generating the power quality waveform includes:
[0136] Step S201, obtaining current measured values, voltage measured values and environmental variable measured values, wherein the environmental variable measured values include ambient temperature measured values, ambient humidity measured values, ambient electromagnetic interference intensity measured values and ambient air pressure measured values;
[0137] Step S202, determining a data correction factor according to the measured value of the environmental variable, the data correction factor being 1 or 0, and used to determine whether the measured current value and the measured voltage value need to be corrected;
[0138] Step S203, when the data correction factor is 1, correcting the current measured value and the voltage measured value to obtain a corrected current and a corrected voltage respectively;
[0139] Step S204: generating a power quality waveform according to the correction current and the correction voltage.
[0140] An embodiment of the present invention provides a power quality waveform simulation system, the power quality waveform simulation system includes a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:
[0141] Step S201, obtaining current measured values, voltage measured values and environmental variable measured values, wherein the environmental variable measured values include ambient temperature measured values, ambient humidity measured values, ambient electromagnetic interference intensity measured values and ambient air pressure measured values;
[0142] Step S202, determining a data correction factor according to the measured value of the environmental variable, the data correction factor being 1 or 0, and used to determine whether the measured current value and the measured voltage value need to be corrected;
[0143] Step S203, when the data correction factor is 1, correcting the current measured value and the voltage measured value to obtain a corrected current and a corrected voltage respectively;
[0144] Step S204: generating a power quality waveform according to the correction current and the correction voltage.
[0145] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:
[0146] Step S201, obtaining current measured values, voltage measured values and environmental variable measured values, wherein the environmental variable measured values include ambient temperature measured values, ambient humidity measured values, ambient electromagnetic interference intensity measured values and ambient air pressure measured values;
[0147] Step S202, determining a data correction factor according to the measured value of the environmental variable, the data correction factor being 1 or 0, and used to determine whether the measured current value and the measured voltage value need to be corrected;
[0148] Step S203, when the data correction factor is 1, correcting the current measured value and the voltage measured value to obtain a corrected current and a corrected voltage respectively;
[0149] Step S204: generating a power quality waveform according to the correction current and the correction voltage.
[0150] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0151] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0152] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0153] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1A function specified in one or more boxes.
[0154] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0155] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0156] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0157] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0158] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0159] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0160] 1) The method for generating the power quality waveform of the present application first obtains the current measured value, the voltage measured value and the environmental variable measured value, the environmental variable measured value includes the ambient temperature measured value, the ambient humidity measured value, the ambient electromagnetic interference intensity measured value and the ambient air pressure measured value; then, the data correction factor is determined according to the environmental variable measured value, the data correction factor is 1 or 0, and is used to determine whether the current measured value and the voltage measured value need to be corrected; thereafter, when the data correction factor is 1, the current measured value and the voltage measured value are corrected to obtain the corrected current and the corrected voltage, respectively; finally, the power quality waveform is generated according to the corrected current and the corrected voltage. The present application monitors environmental factors in real time (such as temperature, humidity, electromagnetic interference and air pressure), and determines whether the interference effect on the voltage and current is large through the changes in environmental factors. When the interference effect is large, the current measured value and the voltage measured value are corrected according to the changes in environmental factors, so as to ensure that the generated power quality waveform is closer to the actual situation and improve the accuracy of waveform generation. The present application solves the problem in the prior art that when generating a power quality waveform, the influence of environmental factors on current and voltage is not considered, resulting in an inaccurate power quality waveform being generated.
[0161] 2) The power quality waveform generation device of the present application includes an acquisition unit for acquiring the current measured value, the voltage measured value and the environmental variable measured value, wherein the environmental variable measured value includes the ambient temperature measured value, the ambient humidity measured value, the ambient electromagnetic interference intensity measured value and the ambient air pressure measured value; a calculation unit for determining a data correction factor according to the ambient variable measured value, wherein the data correction factor is 1 or 0, and is used to determine whether the current measured value and the voltage measured value need to be corrected; a correction unit for correcting the current measured value and the voltage measured value when the data correction factor is 1, and obtaining a corrected current and a corrected voltage respectively; a first generation unit for generating a power quality waveform according to the corrected current and the corrected voltage. The present application monitors environmental factors in real time (such as temperature, humidity, electromagnetic interference and air pressure), and determines whether the interference effect on the voltage and current is large according to the changes in environmental factors. When the interference effect is large, the current measured value and the voltage measured value are corrected according to the changes in environmental factors, so as to ensure that the generated power quality waveform is closer to the actual situation and improve the accuracy of waveform generation. The present application solves the problem in the prior art that when generating a power quality waveform, the influence of environmental factors on current and voltage is not considered, resulting in an inaccurate power quality waveform being generated.
[0162] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for generating a power quality waveform, characterized in that: include: Obtaining current measured values, voltage measured values and environmental variable measured values, wherein the environmental variable measured values include ambient temperature measured values, ambient humidity measured values, ambient electromagnetic interference intensity measured values and ambient air pressure measured values; Determine a data correction factor according to the measured value of the environmental variable, wherein the data correction factor is 1 or 0 and is used to determine whether the measured current value and the measured voltage value need to be corrected; When the data correction factor is 1, the current measured value and the voltage measured value are corrected to obtain a corrected current and a corrected voltage respectively; generating a power quality waveform according to the correction current and the correction voltage, Determining a data correction factor according to the actual measured value of the environmental variable includes: calculating the difference between each actual measured value of the environmental variable and the corresponding set value of the environmental variable to obtain an environmental variable difference, wherein the environmental variable set value includes an environmental temperature set value, an environmental humidity set value, and an environmental electromagnetic interference intensity set value, and the environmental variable difference includes an environmental temperature difference, an environmental humidity difference, and an environmental electromagnetic interference intensity difference; determining the data correction factor according to the environmental variable difference using a first formula, wherein the first formula is ,in, is the data correction factor, is the ambient temperature difference, is the ideal value of the ambient temperature difference, is the ambient humidity difference, is the ideal value of the ambient humidity difference, is the difference in the intensity of the environmental electromagnetic interference, is the ideal value of the difference in the intensity of the electromagnetic interference in the environment; Calculating the difference between the actual value of each environmental variable and the corresponding set value of the environmental variable to obtain the environmental variable difference, including: calculating the ambient temperature difference according to a second formula, wherein the second formula is ,in, is the measured value of the ambient temperature, is the ambient temperature setting value, is the measured value of the ambient humidity, is the ambient humidity setting value, is the actual measured value of the ambient air pressure; the difference between the actual measured value of the ambient humidity and the set value of the ambient humidity is calculated to obtain the ambient humidity difference; the difference between the actual measured value of the ambient electromagnetic interference intensity and the set value of the ambient electromagnetic interference intensity is calculated to obtain the ambient electromagnetic interference intensity difference; When the data correction factor is 1, the current measured value and the voltage measured value are corrected to obtain a corrected current and a corrected voltage, respectively, including: obtaining a vibration influence factor and an interference influence factor of the current sensor; calculating the corrected current according to a third formula, wherein the third formula is ,in, is the correction current, is the measured value of the current, is the vibration influence factor, is the interference factor, is an error limit, and the error limit is an error limit of the current detected by the current sensor, is the ambient temperature setting value, is the ambient humidity setting value; obtains the ambient electromagnetic interference intensity impact index of the voltage sensor; calculates the correction voltage according to the fourth formula, the fourth formula is , is the correction voltage, is the measured value of the voltage, is the environmental electromagnetic interference intensity impact index, is the adjustment coefficient.
2. The method according to claim 1, characterized in that Obtaining the vibration influence factor and the interference influence factor of the current sensor, including: Obtaining a vibration frequency measured value, an environmental noise measured value, and an interference index setting value of the current sensor, wherein the vibration frequency measured value is the measured value of the vibration frequency of the current sensor, the environmental noise measured value is the measured value of the noise of the environment in which the current sensor is located, and the interference index setting value is the setting value of the interference influence factor; When the measured value of the vibration frequency is greater than the set value of the vibration frequency, determining the vibration influence factor to be the set value of the first factor; When the vibration frequency measured value is less than or equal to the vibration frequency setting value, determining that the vibration influence factor is a second factor setting value, and the first factor setting value is greater than the second factor setting value; In the case where the environmental interference is greater than the set value of the interference index, determining the interference impact factor to be the set value of the third factor, the environmental interference being the value obtained by adding the actual measured value of the environmental electromagnetic interference intensity to the actual measured value of the environmental noise; In a case where the environmental interference is less than or equal to the interference index setting value, the interference impact factor is determined to be a fourth factor setting value, and the fourth factor setting value is greater than the third factor setting value.
3. The method according to claim 1, characterized in that Obtain the environmental electromagnetic interference intensity impact index of the voltage sensor, including: In a case where the actual measured value of the environmental electromagnetic interference intensity is greater than the electromagnetic interference intensity setting value of the first setting multiple, determining the environmental electromagnetic interference intensity impact index as the first impact index, and the first setting multiple is greater than 1; In the case where the measured value of the environmental electromagnetic interference intensity is less than or equal to the environmental electromagnetic interference intensity setting value of the first setting multiple, and is greater than the environmental electromagnetic interference intensity setting value of the second setting multiple, determining that the environmental electromagnetic interference intensity impact index is the second impact index, the first setting multiple is greater than the second setting multiple, the second setting multiple is greater than 1, and the second impact index is greater than the first impact index; In the case where the measured value of the environmental electromagnetic interference intensity is less than or equal to the environmental electromagnetic interference intensity setting value of the second setting multiple, and is greater than the environmental electromagnetic interference intensity setting value of the third setting multiple, determining that the environmental electromagnetic interference intensity impact index is the third impact index, the second setting multiple is greater than the third setting multiple, the third setting multiple is greater than 1, and the third impact index is greater than the second impact index; When the measured value of the environmental electromagnetic interference intensity is less than or equal to the third set multiple of the environmental electromagnetic interference intensity setting value, and is greater than the environmental electromagnetic interference intensity setting value, determining that the environmental electromagnetic interference intensity impact index is a fourth impact index, and the fourth impact index is greater than the third impact index; When the measured value of the environmental electromagnetic interference intensity is less than or equal to the set value of the environmental electromagnetic interference intensity, the environmental electromagnetic interference intensity impact index is determined to be a fifth impact index, and the fifth impact index is greater than the fourth impact index.
4. The method according to claim 1, characterized in that: After calculating the data correction factor according to the measured value of the environmental variable, the method further includes: When the data correction factor is 0, the power quality waveform is generated according to the current measured value and the voltage measured value.
5. A device for generating a power quality waveform, characterized in that: The device comprises: An acquisition unit, used to acquire a current measured value, a voltage measured value and an environmental variable measured value, wherein the environmental variable measured value includes an ambient temperature measured value, an ambient humidity measured value, an ambient electromagnetic interference intensity measured value and an ambient air pressure measured value; a determination unit, configured to determine a data correction factor according to the measured value of the environmental variable, wherein the data correction factor is 1 or 0, and is configured to determine whether the measured current value and the measured voltage value need to be corrected; a correction unit, configured to correct the current measured value and the voltage measured value when the data correction factor is 1, to obtain a corrected current and a corrected voltage respectively; a first generating unit, configured to generate a power quality waveform according to the correction current and the correction voltage, The determination unit includes: a first calculation module, which calculates the difference between the actual value of each environmental variable and the corresponding environmental variable setting value to obtain the environmental variable difference, wherein the environmental variable setting value includes an environmental temperature setting value, an environmental humidity setting value and an environmental electromagnetic interference intensity setting value, and the environmental variable difference includes an environmental temperature difference, an environmental humidity difference and an environmental electromagnetic interference intensity difference; a determination module, which determines the data correction factor according to the environmental variable difference using a first formula, wherein the first formula is ,in, is the data correction factor, is the ambient temperature difference, is the ideal value of the ambient temperature difference, is the ambient humidity difference, is the ideal value of the ambient humidity difference, is the difference in the intensity of the environmental electromagnetic interference, is the ideal value of the difference in the intensity of the electromagnetic interference in the environment; The first calculation module includes: a first calculation submodule, which calculates the ambient temperature difference according to a second formula, and the second formula is: , is the measured value of the ambient temperature, is the ambient temperature setting value, is the measured value of the ambient humidity, is the ambient humidity setting value, is the measured value of the ambient air pressure; a second calculation submodule calculates the difference between the measured value of the ambient humidity and the set value of the ambient humidity to obtain the ambient humidity difference; a third calculation submodule calculates the difference between the measured value of the ambient electromagnetic interference intensity and the set value of the ambient electromagnetic interference intensity to obtain the ambient electromagnetic interference intensity difference; The correction unit includes: a first acquisition module, which acquires the vibration influence factor and the interference influence factor of the current sensor; a fourth calculation module, which calculates the correction current according to a third formula, and the third formula is ,in, is the correction current, is the measured value of the current, is the vibration influence factor, is the interference factor, is an error limit, and the error limit is an error limit of the current detected by the current sensor, is the ambient temperature setting value, is the ambient humidity setting value; a second acquisition module, obtaining the environmental electromagnetic interference intensity impact index of the voltage sensor; a fifth calculation module, calculating the correction voltage according to the fourth formula, the fourth formula is , is the correction voltage, is the measured value of the voltage, is the environmental electromagnetic interference intensity impact index, is the adjustment coefficient.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 4.
7. A power quality waveform simulation system, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and when the one or more programs are executed, the method described in any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Method and system for suppressing direct-current voltage fluctuation of power quality regulator
CN105244880A
Electric energy quality monitoring experiment system and method
CN115602005A
Digital-to-analog conversion error correction method and related device
CN114567324A
Power quality disturbance classification method and system based on TLBO algorithm
CN115374823A