A PI-based signal adjustment method, device, equipment and medium
Patent Information
- Application Number
- CN202510344240.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-20
- Publication Date
- 2026-09-22
AI Technical Summary
[0003]有鉴于此,本发明提供了一种基于PI的信号调节方法、装置、设备及介质,以解决实测信号抗干扰能力差的问题
[0015] In this embodiment of the invention, a PI-based signal conditioning method is provided. A short time period is defined, and based on this time period, the signal deviation between the measured signal and the target signal is independently monitored for each time period. Then, the PI parameters are individually tuned for each time period according to the signal deviation. There is no logical relationship between the PI parameters of two adjacent time periods; the PI parameter of each time period is only responsible for adjusting the waveform of the measured signal in the corresponding time period. Throughout the entire time period, the PI parameter of each time period exists independently and is related to the waveform of the measured signal in the corresponding time period. The traditional PI control method with fixed PI parameters is no longer used for the entire time period. Therefore, adjusting the measured signal based on the tuned PI parameters for each time period can significantly smooth the waveform distortion caused by sudden external interference in the measured signal, keeping the measured signal stable near the target signal for a long period and improving the accuracy of the measured signal.
Smart Images

Figure CN122802068A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of signal processing technology, and specifically to a PI-based signal conditioning method, apparatus, device, and medium. Background Technology
[0002] Voltage signals, current signals, power signals, and vibration signals are commonly used signals in the field of signal processing. To ensure that the measured signal of a device reaches the target signal, the parameters of the device are often adjusted using the PI (Proportional Integral) control method. When the PI parameters are optimal, a set of PI parameters can make the measured signal as close as possible to the target signal. However, some long-term external interferences cause the measured signal to oscillate each time an external interference occurs, preventing the measured signal from closely matching the target signal for a short period. Traditional PI control strategies cannot solve this problem, resulting in poor anti-interference capability of the measured signal. Therefore, how to keep the measured signal stable near the target signal is an urgent problem to be solved. Summary of the Invention
[0003] In view of this, the present invention provides a PI-based signal conditioning method, apparatus, device and medium to solve the problem of poor anti-interference capability of measured signals.
[0004] In a first aspect, the present invention provides a signal conditioning method based on PI, the method comprising: acquiring a measured signal; determining the signal deviation between a signal sub-waveform of each time period and a target signal in the measured signal, wherein the time period is a predefined time length for PI parameter tuning; tuning the PI parameter separately for each time period according to the signal deviation of each time period; and adjusting the measured signal based on the tuned PI parameter of each time period.
[0005] In some optional implementations, a tuning period is defined as the length of a preset number of time periods. The step of individually tuning the PI parameters for each time period based on the signal deviation of each time period includes: obtaining the measured signal waveform corresponding to the Nth time period in the current tuning period; obtaining the original PI parameters for the Nth time period in the previous tuning period; calculating the sub-signal error of the Nth time period in the current tuning period based on the target signal and the measured signal waveform of the Nth time period in the current tuning period; and adjusting the original PI parameters according to the sub-signal error of the Nth time period in the current tuning period to obtain the new PI parameters for the Nth time period in the current tuning period.
[0006] In some optional embodiments, the method further includes: when a target signal deviation greater than a preset threshold occurs periodically between the measured signal and the target signal, determining from the measured signal the target time period in each tuning period where the target signal deviation is located; for the target time period, tuning the PI parameters by the steps from obtaining the measured signal waveform corresponding to the Nth time period in the current tuning period to adjusting the original PI parameters according to the sub-signal error of the Nth time period in the current tuning period to obtain new PI parameters for the Nth time period in the current tuning period; for non-target time periods that do not include the target signal deviation, adjusting the measured signal using the initialized original PI parameters.
[0007] In some optional implementations, before individually tuning the PI parameter for each time period based on the signal deviation of each time period, the method further includes: canceling the adjustment of the measured signal when the signal deviation between the signal sub-waveform of each time period and the target signal is less than or equal to a preset threshold.
[0008] In some optional implementations, adjusting the original PI parameters based on the sub-signal error of the Nth time period within the current tuning period to obtain new PI parameters for the Nth time period within the current tuning period includes: when the sub-signal error indicates that the measured signal is less than the target signal, increasing the proportional parameter and decreasing the integral parameter in the corresponding original sub-PI parameters; when the sub-signal error indicates that the measured signal is greater than the target signal, decreasing the proportional parameter and increasing the integral parameter in the corresponding original sub-PI parameters.
[0009] In some alternative implementations, the measured signal includes at least one of a voltage signal, a current signal, and a radio frequency signal.
[0010] Secondly, the present invention provides a PI-based signal conditioning device, the device comprising: a measured signal detection module for acquiring a measured signal; a signal deviation detection module for determining the signal deviation between the signal sub-waveform of each time period and the target signal in the measured signal; a PI parameter tuning module for individually tuning the PI parameter for each time period according to the signal deviation of each time period; and a signal conditioning module for adjusting the measured signal based on the tuned PI parameter for each time period.
[0011] In some optional implementations, a tuning period is defined as the length of a preset number of time periods. The PI parameter tuning module includes: a wavelet acquisition unit for acquiring the measured signal waveform corresponding to the Nth time period within the current tuning period; an original parameter acquisition unit for acquiring the original PI parameters for the Nth time period within the previous tuning period; a sub-error calculation unit for calculating the sub-signal error of the Nth time period within the current tuning period based on the target signal and the measured signal waveform of the Nth time period within the current tuning period; and a tuning unit for adjusting the original PI parameters according to the sub-signal error of the Nth time period within the current tuning period to obtain new PI parameters for the Nth time period within the current tuning period.
[0012] Thirdly, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the method described in the first aspect or any corresponding embodiment thereof.
[0013] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to perform the method described in the first aspect or any corresponding embodiment thereof.
[0014] The technical solution provided by this invention has the following advantages:
[0015] In this embodiment of the invention, a PI-based signal conditioning method is provided. A short time period is defined, and based on this time period, the signal deviation between the measured signal and the target signal is independently monitored for each time period. Then, the PI parameters are individually tuned for each time period according to the signal deviation. There is no logical relationship between the PI parameters of two adjacent time periods; the PI parameter of each time period is only responsible for adjusting the waveform of the measured signal in the corresponding time period. Throughout the entire time period, the PI parameter of each time period exists independently and is related to the waveform of the measured signal in the corresponding time period. The traditional PI control method with fixed PI parameters is no longer used for the entire time period. Therefore, adjusting the measured signal based on the tuned PI parameters for each time period can significantly smooth the waveform distortion caused by sudden external interference in the measured signal, keeping the measured signal stable near the target signal for a long period and improving the accuracy of the measured signal. Attached Figure Description
[0016] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0017] Figure 1 This is a diagram showing the effect of adjusting the signal using the traditional PI control method.
[0018] Figure 2 This is a diagram illustrating the effect of parameter tuning and signal adjustment in a traditional PI control method.
[0019] Figure 3 This is a signal effect diagram of the traditional PI control method when external interference occurs;
[0020] Figure 4 This is a schematic flowchart of a PI-based signal conditioning method according to an embodiment of the present invention;
[0021] Figure 5 This is a diagram illustrating the effect of adjusting a signal according to an embodiment of the present invention;
[0022] Figure 6 This is another effect diagram of the signal adjustment method based on PI according to an embodiment of the present invention;
[0023] Figure 7 This is another effect diagram of the signal adjustment method based on PI according to an embodiment of the present invention;
[0024] Figure 8 This is a schematic diagram of a PI-based signal conditioning device according to an embodiment of the present invention;
[0025] Figure 9 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0027] Voltage signals, current signals, power signals, and vibration signals are all commonly used signals in the field of signal processing. To ensure that the measured signals of a device reach the target signal, PI (Proportional Integral) control methods are often used to adjust the device's parameters. For example... Figure 1As shown, when the PI parameters are optimal, a set of PI parameters can make the measured signal of the device as close as possible to the target signal. If the initial PI parameters are poor, causing the measured signal to fail to reach the target signal, the traditional PI control method will tune the initial PI parameters. The tuning approach is to modify the PI parameters of the next time period based on the PI parameters of the previous time period until the measured signal can reach the target signal, and then fix the tuned PI parameters. Figure 2 As shown, the PI parameters for time period 2 are tuned based on the PI parameters for time period 1, and the PI parameters for time period 3 are tuned based on the PI parameters for time period 2. Through multiple tunings, when the measured signal reaches the target signal, the PI parameters of the last tuning are kept unchanged. It is easy to see that although the PI parameters change after tuning in the traditional PI control method compared to the initial PI parameters, it is essentially still a PI control with fixed parameters. If the initial PI parameters are chosen very appropriately, the signal adjustment effect will be... Figure 1 The effect of the display.
[0028] The effectiveness of the aforementioned control method is assumed to be achieved under ideal conditions without sudden external interference. Some long-term external interferences cause the measured signal to oscillate each time an external interference occurs, preventing the measured signal from closely matching the target signal for a short period. For example... Figure 3 The problem is illustrated. Traditional PI control strategies cannot solve this. Figure 3 The problems are twofold. First, traditional PI control strategies adjust the PI parameters in adjacent time periods, with each subsequent period adjusting the parameters of the previous period, resulting in a fixed final PI parameter. This approach only eliminates globally prevalent interference. For short-lived external interference, the adjusted parameters may over-adjust when the interference disappears, leading to a mismatch between the measured signal and the target signal after the sudden interference subsides. Second, traditional PI control strategies have a slow response time and cannot promptly eliminate waveform distortion caused by sudden external interference. Therefore, stabilizing the measured signal near the target signal and improving its anti-interference capability are urgent problems to be solved.
[0029] According to an embodiment of the present invention, a PI-based signal conditioning method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0030] This embodiment provides a PI-based signal modulation method. Figure 4This is a flowchart of a PI-based signal conditioning method according to an embodiment of the present invention, the process including the following steps:
[0031] Step S101: Obtain the measured signal;
[0032] Step S102: Determine the signal deviation between the signal sub-waveforms of each time period in the measured signal and the target signal. The time period is a predefined time length used for PI parameter tuning.
[0033] Step S103: Adjust the PI parameters individually for each time period based on the signal deviation of each time period;
[0034] Step S104: Adjust the measured signal based on the PI parameters after tuning for each time period.
[0035] Specifically, this invention provides a PI-based signal conditioning method. First, a measured signal is acquired, which includes at least one of voltage, current, and radio frequency signals. Similar to traditional PI control methods, the PI signal conditioning method provided by this invention defines short time intervals, each used to tune the PI parameters. Subsequent steps of the method use these time intervals as adjustment ranges, independently monitoring the signal deviation between the measured signal and the target signal for each interval, and then tuning the PI parameters for each interval based on the signal deviation. The PI parameters obtained by tuning each interval can be obtained through expert experience, experimental values, or fine-tuning based on a baseline value. There is no logical relationship between the PI parameters of adjacent time intervals; each PI parameter only adjusts the waveform of the measured signal for that corresponding time interval. Throughout the entire time period, the PI parameters for each time interval exist independently, and the total time length is no longer determined by fixed PI parameters. The PI parameters for each time interval are related to the waveform of the measured signal for that corresponding time interval. For example… Figure 5 As shown, there is no correlation between the PI parameters of time period A and time period B, and the PI parameters of time period B are not adjusted based on the PI parameters of time period A. Time periods A and B are independent of each other. The PI parameters of each time period are set separately according to the corresponding measured signal waveform. The measured signal is adjusted based on the PI parameters after each time period. This can significantly smooth the waveform distortion caused by external sudden interference in the measured signal, so that the measured signal is stable near the target signal for a long time, thus improving the accuracy of the measured signal.
[0036] In some optional implementations, a time length including a preset number of time periods is defined as an adjustment period, and step S103 includes:
[0037] Step a1: Obtain the measured signal waveform corresponding to the Nth time period within the current tuning cycle;
[0038] Step a2: Obtain the original PI parameters for the Nth time period within the previous tuning cycle;
[0039] Step a3: Calculate the sub-signal error of the Nth time period within the current tuning period based on the target signal and the measured signal waveform of the Nth time period within the current tuning period;
[0040] Step a4: Adjust the original PI parameters according to the sub-signal error of the Nth time period within the current tuning period to obtain the new PI parameters for the Nth time period within the current tuning period.
[0041] Specifically, in this embodiment of the invention, a tuning period is divided into several time periods, allowing for adaptive PI parameter tuning according to the tuning period. When the PI parameter of the next tuning period needs adjustment, this embodiment uses the PI parameter of the previous tuning period as the tuning basis. In other words, in the Nth time period of the next tuning period, the PI parameter of the Nth time period in the previous tuning period is adjusted based on the sub-signal error of the Nth time period, thereby obtaining a new PI parameter for the Nth time period of the next tuning period. This significantly improves the accuracy and efficiency of PI parameter tuning. The PI parameter setting for the Nth time period within each tuning period is based on the sub-signal error of the Nth time period; in other words, the PI parameter for the Nth time period is determined to increase or decrease based on the sub-signal error.
[0042] For example Figure 6 As shown, time period C in tuning period 2 and time period A in tuning period 1 are corresponding time periods, both being the 18th time period. Therefore, time period C in tuning period 2 needs to be adjusted based on the original PI parameters of time period A to obtain the new PI parameters for time period C. Similarly, the new PI parameters for time period D are obtained by adjusting the original PI parameters of time period B. The PI parameters of time period B have no logical relationship with the PI parameters of time period A, and similarly, the PI parameters of time period D have no logical relationship with the PI parameters of time period C.
[0043] The solution provided by this invention addresses periodic external interference, which occurs periodically. The method is highly effective in eliminating such interference. This is because the PI parameters for each time period in the subsequent tuning cycle are based on the corresponding PI parameters from the previous tuning cycle. If the waveform in the Nth time period of the subsequent tuning cycle has stabilized at the target power, the PI parameters for the Nth time period in the subsequent tuning cycle directly reference those from the Nth time period in the previous tuning cycle, without modification. If the measured signal waveform in the Nth time period of the subsequent tuning cycle has a significant error compared to the target signal, the PI parameters for the Nth time period in the subsequent tuning cycle need to be fine-tuned based on those from the Nth time period in the previous tuning cycle. The newly obtained PI parameters are used to adjust the measured signal, causing the measured signal in the Nth time period of the next tuning cycle to stabilize at the target signal. In other words, each time period of the measured signal uses an independent PI parameter to adjust the waveform of the measured signal for that time period. The PI parameters of adjacent time periods do not affect each other. Since the waveform and PI parameters in the previous tuning period are known, the approximate location of waveform jitter in the previous tuning period is also known. Therefore, the waveform of each time period in the subsequent tuning period can be predicted. The method provided by the embodiments of the present invention can predictively fine-tune the PI parameters in the previous tuning period to obtain the PI parameters in the subsequent tuning period. By adjusting the parameters by a small amount, the difficulty of setting the PI parameters in the subsequent tuning period is significantly reduced, the waveform distortion in each time period in the subsequent tuning period is overcome, and the response speed of PI control is significantly improved, so that the measured signal can be stabilized at the target signal more quickly.
[0044] Additionally, in some optional implementations, when the complete measured signal within the target tuning period is consistent with the target signal, the PI parameters for each time period within the target tuning period can be saved separately, and the PI parameters saved within the target tuning period can be used in subsequent tuning periods. This is because the waveform jitter of the measured signal caused by external interference occurs periodically. Therefore, when the measured signal can be stabilized at the target signal for the entire time, the embodiments of the present invention can save the PI parameters within the corresponding period (e.g., Figure 6 (In the box) The PI parameters for each time period are saved separately, and the PI parameters saved for each time period are copied and reused in each subsequent tuning cycle. This can quickly solve the problem of measured signal distortion, and eliminate the need for repeated parameter tuning in each tuning cycle, thereby improving signal control efficiency and reducing the computing power loss of the controller.
[0045] In some optional embodiments, the PI-based signal conditioning method provided by the present invention further includes the following steps:
[0046] Step b1: When the target signal deviation between the measured signal and the target signal that is greater than a preset threshold is generated periodically, the target time period in each tuning period is determined from the measured signal.
[0047] Step b2, for the target time period, from the step of obtaining the measured signal waveform corresponding to the Nth time period within the current setting period to the step of adjusting the original PI parameters based on the sub-signal error of the Nth time period within the current setting period, to obtaining the new PI parameters for the Nth time period within the current setting period, the PI parameters are set.
[0048] Step b3: For non-target time periods that do not include the target signal deviation, adjust the measured signal using the initialized original PI parameters.
[0049] Specifically, if the target signal deviation between the measured signal and the target signal that exceeds a preset threshold is periodically generated, it indicates that external interference is periodically generated. Based on this, embodiments of the present invention can first determine the target time period in which external interference occurs within each tuning period, for example... Figure 7 The target time period α and target time period β are defined. Then, this embodiment of the invention can adjust the PI parameters only for the target time period using a PI control method. For example, the PI parameters in target time period β are adjusted based on the PI parameters in target time period α. For non-target time periods without external interference, this embodiment sets the initial fixed PI parameters. Signal adjustment using these initial PI parameters further improves the response speed of PI control and reduces redundant work in tuning a large number of PI parameters.
[0050] In some alternative implementations, prior to step S103, the method further includes:
[0051] Step c1: When the signal deviation between the signal sub-waveforms of each time period in the measured signal and the target signal is less than or equal to the preset threshold, the adjustment of the measured signal is cancelled.
[0052] Specifically, in this embodiment of the invention, if the signal deviation between the signal sub-waveforms of each time period in the acquired measured signal and the target signal is less than or equal to a preset threshold, it indicates that there is no external interference. Therefore, it is not necessary to adjust the measured signal using the PI control method provided in this embodiment of the invention; signal adjustment can be performed based on the initialized fixed PI parameters, which can reduce the computing power consumption of the controller and improve the signal adjustment efficiency. The initialized fixed PI parameters can be obtained through expert experience or experimental tuning and are the optimal PI parameters that enable the measured signal to reach the target signal.
[0053] In some alternative implementations, step a4 above includes:
[0054] Step a41: When the sub-signal error indicates that the measured signal is less than the target signal, increase the proportional parameter and decrease the integral parameter in the corresponding original sub-PI parameters.
[0055] Step a42: When the sub-signal error indicates that the measured signal is greater than the target signal, the proportional parameter in the corresponding original sub-PI parameter is reduced and the integral parameter is increased.
[0056] Specifically, in this embodiment of the invention, when the measured signal is less than the target signal, the proportional parameter in the PI parameter is increased and the integral parameter is decreased to increase the speed at which the measured signal reaches the target signal. However, when the measured signal is greater than the target signal, overshoot has occurred. In this case, the proportional parameter in the PI parameter needs to be decreased to reduce the rise rate of the measured signal, and the integral parameter is increased to allow the measured signal to slowly accumulate to the target signal position, thus overcoming the overshoot. Through these steps, accurate PI parameter tuning is achieved for each time period.
[0057] This embodiment also provides a PI-based signal conditioning device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0058] This embodiment provides a PI-based signal conditioning device, such as... Figure 8 As shown, it includes:
[0059] The measured signal detection module 801 is used to acquire the measured signal;
[0060] The signal deviation detection module 802 is used to determine the signal deviation between the signal sub-waveform of the measured signal and the target signal at each time period.
[0061] The PI parameter tuning module 803 is used to tune the PI parameter separately for each time period based on the signal deviation of each time period.
[0062] The signal conditioning module 804 is used to adjust the measured signal based on the PI parameters after tuning for each time period.
[0063] In some alternative implementations, the PI parameter tuning module 803 includes:
[0064] The wavelet acquisition unit is used to acquire the measured signal waveform corresponding to the Nth time period within the current tuning period;
[0065] The raw parameter acquisition unit is used to acquire the raw PI parameters for the Nth time period within the previous tuning cycle;
[0066] The sub-error calculation unit is used to calculate the sub-signal error in the Nth time period within the current tuning period based on the target signal and the measured signal waveform in the Nth time period within the current tuning period.
[0067] The tuning unit is used to adjust the original PI parameters based on the sub-signal error of the Nth time period within the current tuning period, so as to obtain the new PI parameters for the Nth time period within the current tuning period.
[0068] In some alternative embodiments, the apparatus further includes:
[0069] The target time period determination module is used to determine the target time period in each tuning cycle from the measured signal when the target signal deviation between the measured signal and the target signal is greater than a preset threshold and is generated periodically.
[0070] The partial tuning module is used to tune the PI parameters by, for the target time period, from the step of obtaining the measured signal waveform corresponding to the Nth time period in the current tuning period to the step of adjusting the original PI parameters according to the sub-signal error of the Nth time period in the current tuning period, and obtaining the new PI parameters for the Nth time period in the current tuning period.
[0071] The partial untuning module is used to adjust the measured signal using the initialized original PI parameters for non-target time periods that do not include the target signal deviation.
[0072] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0073] The device in this embodiment is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0074] This invention also provides a computer device; please refer to [link / reference]. Figure 9 , Figure 9 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 9As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 9 Take a processor 10 as an example.
[0075] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.
[0076] The memory 20 stores instructions executable by at least one processor 10 to cause at least one processor 10 to perform the method shown in the above embodiments.
[0077] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0078] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0079] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.
[0080] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.
[0081] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0082] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A PI-based signal modulation method, characterized in that, The method includes: Acquire the measured signal; Determine the signal deviation between the signal sub-waveforms of the measured signal and the target signal at each time period, where the time period is a predefined time length used for PI parameter tuning; The PI parameters are individually tuned for each time period based on the signal deviation for each time period. The measured signal is adjusted based on the PI parameters after tuning for each time period.
2. The method according to claim 1, characterized in that, The definition includes a preset number of time periods as a tuning period, and the step of individually tuning the PI parameters for each time period based on the signal deviation of each time period includes: Obtain the measured signal waveform corresponding to the Nth time period within the current tuning cycle; Obtain the original PI parameters for the Nth time period within the previous tuning cycle; The sub-signal error in the Nth time period within the current tuning period is calculated based on the target signal and the measured signal waveform in the Nth time period within the current tuning period. Based on the sub-signal error of the Nth time period within the current tuning period, the original PI parameters are adjusted to obtain the new PI parameters for the Nth time period within the current tuning period.
3. The method according to claim 2, characterized in that, The method further includes: When the target signal deviation between the measured signal and the target signal that is greater than a preset threshold is generated periodically, the target time period in which the target signal deviation occurs within each tuning period is determined from the measured signal. For the target time period, the PI parameters are tuned from the step of obtaining the measured signal waveform corresponding to the Nth time period within the current tuning period to the step of adjusting the original PI parameters according to the sub-signal error of the Nth time period within the current tuning period to obtain the new PI parameters for the Nth time period within the current tuning period. For non-target time periods that do not include the target signal deviation, the measured signal is adjusted using the initialized original PI parameters.
4. The method according to claim 3, characterized in that, Before individually tuning the PI parameters for each time period based on the signal deviation of each time period, the method further includes: When the signal deviation between the signal sub-waveforms of each time period in the measured signal and the target signal is less than or equal to a preset threshold, the adjustment of the measured signal is cancelled.
5. The method according to claim 2 or 3, characterized in that, The step of adjusting the original PI parameters based on the sub-signal error of the Nth time period within the current tuning period to obtain the new PI parameters for the Nth time period within the current tuning period includes: When the sub-signal error indicates that the measured signal is less than the target signal, the proportional parameter and integral parameter in the corresponding original sub-PI parameters will be increased and decreased. When the sub-signal error indicates that the measured signal is greater than the target signal, the proportional parameter and integral parameter in the corresponding original sub-PI parameters will be reduced and increased.
6. The method according to claim 1, characterized in that, The measured signal includes at least one of voltage signal, current signal and radio frequency signal.
7. A PI-based signal conditioning device, characterized in that, The device includes: The measured signal detection module is used to acquire the measured signal; The signal deviation detection module is used to determine the signal deviation between the signal sub-waveform of each time period in the measured signal and the target signal; The PI parameter tuning module is used to tune the PI parameters for each time period based on the signal deviation of each time period. The signal conditioning module is used to adjust the measured signal based on the PI parameters after tuning for each time period.
8. The apparatus according to claim 7, characterized in that, The definition includes a preset number of time periods as a tuning period, and the PI parameter tuning module includes: The wavelet acquisition unit is used to acquire the measured signal waveform corresponding to the Nth time period within the current tuning period; The raw parameter acquisition unit is used to acquire the raw PI parameters for the Nth time period within the previous tuning cycle; The sub-error calculation unit is used to calculate the sub-signal error in the Nth time period within the current tuning period based on the target signal and the measured signal waveform in the Nth time period within the current tuning period; The tuning unit is used to adjust the original PI parameters according to the sub-signal error of the Nth time period in the current tuning period, so as to obtain the new PI parameters for the Nth time period in the current tuning period.
9. A computer device, characterized in that, include: A memory and a controller are communicatively connected, the memory storing computer instructions, and the controller executing the computer instructions to perform the method of any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a computer to perform the method of any one of claims 1 to 6.