Multi-frequency signal spectrum optimization method and system capable of resisting spectrum aliasing
By calculating the maximum number of optimized frequency points and constructing frequency relationships, the spectrum of multi-frequency signals is optimized, and the problem of spectrum aliasing in multi-frequency signals in nonlinear system measurement is solved, the measurement accuracy and algorithm stability are improved, and it is suitable for multi-frequency signals. overall design.
Patent Information
- Application Number
- CN202411058518.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-11-15
AI Technical Summary
Existing multi-frequency signals are prone to spectral aliasing when measuring nonlinear systems, resulting in reduced measurement accuracy, and the optimization algorithm has problems of infinite cycles and insufficient measurement margins in high-frequency point processing.
By calculating the maximum number of optimized frequency points in the specified interval, construct the relationship between the measurement frequency point set and the system operating frequency, optimize the frequency point to be optimized to the selectable frequency point closest to it, and reconstruct the selectable frequency point set until all The frequency points are optimized and the optimized frequency points set is output to avoid spectral aliasing.
The accuracy and speed of spectrum design are achieved, the accuracy of frequency response measurement of nonlinear systems is ensured, infinite cycles and frequency point deviations are avoided, and the overall design input parameters of multi-frequency signals are provided, which are easy to use.
Smart Images

Figure CN118962237A_ABST
Abstract
Description
Background Art
[0002] Frequency response measurement methods are crucial for the analysis and debugging of complex systems. Frequency response measurements can be used for impedance measurement and loop analysis. Impedance measurement is to measure the impedance of a system or component. The impedance measurement results can be used to debug a circuit or perform stability analysis on the system; loop analysis is usually used to obtain the Bode plot (i.e., transfer function image) of the object under test. For example, by analyzing the loop of an audio amplifier, its frequency response and dynamic performance can be easily analyzed. In short, frequency response measurement can easily obtain the frequency domain model of the object under test, which is of great significance to the design, analysis, debugging, and optimization of the system.
[0003] There are many frequency response measurement methods with different characteristics and applicable scenarios in the industry. Although the measuring instruments and equipment used in these methods are different, there are only two types of excitation signals used according to their frequency domain characteristics: single-product sinusoidal excitation signals (hereinafter referred to as sinusoidal signals) and multi-frequency excitation signals (hereinafter referred to as multi-frequency signals). Sinusoidal signals have good universality and can be used to measure linear and nonlinear systems, but because they can only measure one frequency point at a time, the measurement speed is slow. Multi-frequency signals can measure multiple frequency points in one injection and have a fast measurement speed. However, multi-frequency signals can easily excite complex harmonic responses when measuring nonlinear systems, resulting in the aliasing of the response signal at a certain measurement point and the harmonic responses of other frequency points, causing significant deviations in the impedance value of the measurement point, reducing the accuracy of the measurement.
[0004] In the frequency response measurement method using multi-frequency signals, commonly used signals are Multisine signals, maximum length binary sequences (MLBS), discrete interval binary signals (DIBS), etc. The commonly used signal design method is to select n frequency points with logarithmic equidistant distribution in the specified interval as the specified frequency points, and then design the signal amplitude and other parameters. However, this method can easily cause spectrum aliasing and reduce measurement accuracy. For example: the harmonic f generated by the frequency point f1 to be measured p1 It may be equal to the frequency point f2 to be measured, causing spectrum aliasing at the frequency point f2, and there is a serious deviation between the frequency response measurement value of the frequency point f2 and the actual value.
[0005] In order to solve the problem of spectrum aliasing of multi-frequency excitation signals when measuring nonlinear systems, the spectrum of multi-frequency signals needs to be carefully designed. In this regard, the academic community has proposed a simple iterative method (Zhou B, Jaksic M, Shen Z, et al. Small-signal impedance identification of three-phase diode rectifier with multi-tone injection [C] / / 2014 IEEE Applied Power Electronics Conference and Exposition-APEC 2014. IEEE, 2014: 2746-2753.), which partially avoids the above-mentioned spectrum aliasing problem. However, the upper limit of the number of frequency points that can be optimized within the specified interval is not specified, and an infinite loop will be entered when the number of frequency points is large. At the same time, the algorithm adopts an iterative method of subtracting the system resolution from the original frequency in each iteration, so that the frequency point moves to the low frequency as a whole. The optimized high-frequency point is far from the original specified point, and the frequency band required by the user cannot be measured well. Finally, the algorithm does not consider retaining the measurement margin during the optimization process, and unstable results may occur in actual measurements. Summary of the invention
[0006] The technical problem to be solved by the present invention is to provide a multi-frequency signal spectrum optimization method and system with anti-spectral aliasing in view of the deficiencies in the above-mentioned prior art, which is used to solve the technical problem of spectrum aliasing generated when multi-frequency signals measure nonlinear systems.
[0007] The present invention adopts the following technical solutions:
[0008] A multi-frequency signal spectrum optimization method for anti-spectral aliasing comprises the following steps:
[0009] The maximum number of frequency points that can be optimized in the specified interval is calculated according to the input parameters. When the maximum number of frequency points that can be optimized in the specified interval is greater than or equal to the total number of frequency points, a measurement frequency point set is created and an optional frequency point set is calculated.
[0010] Construct the relationship between the measurement frequency point set and the system operating frequency;
[0011] Based on the relationship between the optional frequency point set, the measured frequency point set and the system operating frequency, the frequency point to be optimized is optimized to the optional frequency point closest to it;
[0012] Deleting the closest element selected from the optional frequency point set, and reconstructing the optional frequency point set until all frequency points are optimized;
[0013] Output the optimized frequency point set.
[0014] Preferably, the input parameters include the system operating frequency f line , measurement resolution f reso , margin ε; starting frequency F first , stop frequency f last And the total number of frequency points num.
[0015] Preferably, the maximum number of frequency points nmax that can be optimized in the specified interval is:
[0016]
[0017] Among them, f reso is the measurement resolution, f line is the system operating frequency, and ε is the margin.
[0018] Preferably, the selectable frequency point set τ is:
[0019] τ=p(f line +ε)
[0020] Where p = 1, 2, ..., nmax, f line is the system operating frequency, and ε is the margin.
[0021] Preferably, the measurement frequency point set fre is a specified number of frequency points distributed between the start frequency and the end frequency, and the measurement frequency point set is a set containing num elements.
[0022] Preferably, the relationship between the measurement frequency point set and the system operating frequency is constructed as follows:
[0023] According to the measurement frequency point set, each element in the set is represented by fre(i)=kf according to the system operating frequency line ±Δ form;
[0024] when have to:
[0025] fre(i)=kf line +Δ
[0026] Where k = fre(i)|f line ;
[0027] when Right now have to:
[0028] fre(i)=kf line -Δ
[0029] in, are both composed of fre(i) and f line The variable defined, f line The system operating frequency.
[0030] Preferably, when When Δ=mod(fre(i),f line ).
[0031] Preferably, when When Δ=f line -mod(fre(i),f line ).
[0032] Preferably, optimizing the frequency point to be optimized to the optional frequency point closest thereto is specifically:
[0033] The element Δ′ closest to Δ in the frequency selection point set is selected to optimize the frequency point, and the optimized fre(i) is restored to the interval where the original measured frequency point is located.
[0034] In a second aspect, an embodiment of the present invention provides a multi-frequency signal spectrum optimization system for anti-spectral aliasing, comprising:
[0035] The data module calculates the maximum number of frequency points that can be optimized in the specified interval according to the input parameters. When the maximum number of frequency points that can be optimized in the specified interval is greater than or equal to the total number of frequency points, a measurement frequency point set is created and an optional frequency point set is calculated;
[0036] Relationship module, constructs the relationship between the measurement frequency point set and the system operating frequency;
[0037] The optimization module optimizes the frequency point to be optimized to the closest optional frequency point based on the relationship between the optional frequency point set and the measured frequency point set and the system operating frequency;
[0038] A reconstruction module deletes the selected closest element from the optional frequency point set and reconstructs the optional frequency point set until all frequency points are optimized;
[0039] Output module, outputs the optimized frequency point set.
[0040] In a third aspect, a computer device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned multi-frequency signal spectrum optimization method for anti-spectral aliasing when executing the computer program.
[0041] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, including a computer program, which, when executed by a processor, implements the steps of the above-mentioned multi-frequency signal spectrum optimization method for anti-spectral aliasing.
[0042] Compared with the prior art, the present invention has at least the following beneficial effects:
[0043] A multi-frequency signal spectrum optimization method for resisting spectrum aliasing, firstly, the user inputs basic information, the system parameters are used to describe the system, and the user only needs to input according to the actual situation; the spectrum design parameters are used to create the initial spectrum, and the user only needs to input according to the basic measurement requirements to detect whether all frequency points are optimized; the purpose is to control the entire cycle process, ensure that all frequency points are optimized, and output the optimized frequency point set fre, which has the advantage of providing the user with the result of multi-frequency signal spectrum selection, and the output result can be used for the input parameter of the overall design of the multi-frequency signal, and has high ease of use.
[0044] Furthermore, the maximum number of frequency points that can be optimized in the specified interval is nmax. The reason for calculating the maximum number of frequency points that can be optimized is that the necessary condition for the aliasing of any two frequency points f1 and f2 in the system is: p2 ±f p1 =mf line Considering the influence of system resolution on the measurement results, in actual measurement, the necessary condition for the aliasing of the measurement results of f1 and f2 is: p2 ±f p1 =mf line ±f reso Therefore, adding frequency f i Generated harmonic frequency range I i , this area is the "forbidden zone" for other frequencies, that is, other frequencies cannot be located in this interval. Therefore, considering the margin, the maximum number of optimized frequencies is The maximum number of frequency points nmax that can be optimized in the specified interval is compared with the number of frequency points num specified by the user. If num≤nmax, the optimization can continue; otherwise, the program is terminated and the user is required to reduce num to num≤nmax. The advantage is that this condition indicates the upper limit of the number of frequency points that the algorithm can optimize, which can prevent the algorithm from entering an infinite loop. At the same time, when the user input does not meet the optimization conditions, nmax can be output to assist the user in making decisions.
[0045] Furthermore, an optional frequency point set τ is constructed, the purpose of which is to construct a total set of optional frequency points in a specified interval for subsequent selection; the advantage is that this construction makes the optional frequency points reasonably distributed, the number of optional frequency points reaches the theoretical upper limit of the maximum number of optimizable frequency points in the specified interval, and the total number of elements in the optional frequency point set nmax≥num. Therefore, this construction can select the frequency point that is closest to the original specified frequency point to the maximum extent.
[0046] Furthermore, a measurement frequency point set fre is created, which is a specified number of frequency points distributed between the start frequency and the end frequency, and fre is a set containing num elements; its purpose is to generate a frequency point set that meets the measurement requirements according to the needs of the user, as a reference for subsequent optimization; among them, in order to adapt to the general needs of frequency response measurement, logarithmic equidistant distribution is usually used; in fact, there is no strict requirement, and this algorithm is also applicable to linear equidistant or other spectrum creation methods.
[0047] Furthermore, fre(i) is constructed, the purpose of which is to map the frequency point to be optimized to The advantage is that any user-specified frequency can always be mapped to Therefore, it has the same optimization method and is universal.
[0048] Furthermore, the element Δ′ closest to Δ is selected from the optional frequency set. The purpose is to find the optional frequency closest to the original specified frequency. The advantage is that the optional frequency set has been constructed before entering the loop optimization. Each frequency only needs to find the closest optional frequency during optimization, avoiding the iterative calculation in the previous algorithm, with low computational complexity, and eliminating the risk of the system entering an infinite loop.
[0049] Furthermore, the selected element Δ′ is deleted from the optional frequency point set. The reason is that the element has been used in this optimization. In order to avoid the frequency points in the future from overlapping with it, the frequency point cannot be selected again. The advantage is that the optional frequency point set is updated at the end of each frequency point optimization to ensure the accuracy of the optional frequency point set, and to ensure that the frequency points selected later will not overlap with the optimized frequency points, so that the optimized frequency points do not need to be modified again, which ensures the rapidity of the algorithm.
[0050] It can be understood that the beneficial effects of the second aspect mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0051] In summary, the present invention can accurately calculate the maximum number of frequency points in a given interval and quickly optimize the frequency distribution, and the algorithm has high accuracy and low complexity. The present invention is applicable to the anti-aliasing spectrum selection process of all multi-frequency signals, is compatible with the selection algorithm of other parameters (such as amplitude) of the multi-frequency signal, can be embedded in the overall design algorithm of the multi-frequency signal, and has high ease of use.
[0052] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 It is a schematic diagram of spectrum optimization of multi-frequency signals with anti-spectral aliasing in the present invention;
[0054] Figure 2 It is an algorithm diagram of the multi-frequency signal spectrum optimization method for anti-spectral aliasing in the present invention;
[0055] Figure 3 This is a comparison chart of the frequency response measurement results errors between the numerical test with and without the algorithm;
[0056] Figure 4 A schematic diagram of a computer device provided by an embodiment of the present invention;
[0057] Figure 5 The present invention is a block diagram of an electronic device provided according to an embodiment. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] In the description of the present invention, it should be understood that the terms “include” and “comprises” indicate the presence of described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or collections thereof.
[0060] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural forms unless the context clearly indicates otherwise.
[0061] It should be further understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present invention generally indicates that the associated objects are in an "or" relationship.
[0062] It should be understood that, although the terms first, second, third, etc. may be used to describe preset ranges, etc. in the embodiments of the present invention, these preset ranges should not be limited to these terms. These terms are only used to distinguish preset ranges from each other. For example, without departing from the scope of the embodiments of the present invention, the first preset range may also be referred to as the second preset range, and similarly, the second preset range may also be referred to as the first preset range.
[0063] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0064] Various structural schematic diagrams of the embodiments disclosed in the present invention are shown in the accompanying drawings. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clear expression. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may additionally design regions / layers with different shapes, sizes, and relative positions according to actual needs.
[0065] The present invention provides a multi-frequency signal spectrum optimization method for anti-aliasing spectrum. According to user input, the maximum number of frequency points that can be optimized, the optional frequency point set and the measurement frequency point set are calculated; the relationship between the measurement frequency point set and the system operating frequency is constructed; the frequency point to be optimized is optimized to the optional frequency point closest to it; the optional frequency point set is reconstructed; the above steps are repeated until all frequency points are optimized; and the optimized frequency point set is output. The present invention can accurately calculate the maximum number of frequency points in a given interval and quickly optimize the frequency point distribution, improve the frequency response measurement accuracy of nonlinear systems, and the algorithm has high accuracy and low complexity; the present invention is applicable to the anti-aliasing spectrum selection process of all multi-frequency signals, and is compatible with the selection algorithm of other parameters (such as amplitude) of multi-frequency signals, and can be embedded in the overall design algorithm of multi-frequency signals, and has high ease of use.
[0066] See also Figure 2 The present invention provides a multi-frequency signal spectrum optimization method for anti-spectral aliasing, comprising the following steps:
[0067] S1. User inputs system parameters: system operating frequency f line , measurement resolution f reso , margin ε; spectrum design parameters: starting frequency f first , stop frequency f last and the total number of frequency points num;
[0068] System parameters entered by the user: system operating frequency f line , measurement resolution f reso , margin ε, these three parameters well describe the operating status of the system under test and the technical level of measurement.
[0069] Wherein, the margin ε is based on the measurement resolution f reso Design, that is: ε=∈f reso .
[0070] Spectrum design parameters: starting frequency f first , stop frequency f last And the total number of frequency points num, these three parameters are the three preset parameters necessary to determine the original measurement frequency distribution.
[0071] S2, calculate the maximum number of frequency points nmax that can be optimized in the specified interval, and compare it with the number of frequency points num specified by the user;
[0072] The calculation of the maximum number of optimizable frequency points is derived from the spectrum aliasing condition of the system to be tested:
[0073]
[0074] The maximum number of frequency points nmax that can be optimized in the specified interval is compared with the number of frequency points num specified by the user. If num≤nmax, the optimization can continue; otherwise, the program is terminated and the user is required to reduce num to num≤nmax. This method specifies the upper limit of the number of frequency points that can be optimized to prevent the algorithm from entering an infinite loop; at the same time, if the user input does not meet the optimization conditions, nmax is output to assist the user in making decisions.
[0075] S3, according to the initial information obtained in step S1, create a measurement frequency point set fre and calculate an optional frequency point set τ;
[0076] According to the needs of the user, create a measurement frequency point set fre, which is a specified number of frequency points distributed between the start frequency and the end frequency, as a reference for subsequent optimization, and fre is a set containing num elements. Among them, in order to meet the general needs of frequency response measurement, num frequency points with logarithmic equidistant distribution are usually selected in the specified interval. In fact, there is no strict requirement, and this method is also applicable to linear equidistant or other spectrum creation methods.
[0077] The optional frequency point set is constructed as: τ=p(f line +ε)(p=1,2,…,nmax), the total set of optional frequency points in the specified interval can be obtained for subsequent selection. This construction makes the optional frequency points reasonably distributed, and the number of optional frequency points reaches the theoretical upper limit of the maximum number of frequency points that can be optimized in the specified interval. The total number of elements in the optional frequency point set nmax≥num, so this construction can select the frequency point that is closest to the original specified frequency point to the maximum extent.
[0078] S4. According to the measurement frequency point set created in step S3, each element in the set is represented as fre(i)=kf according to the system operating frequency. line ±Δ form;
[0079] when have to:
[0080] fre(i)=kf line +Δ
[0081] Where k = fre(i)|f line ,Δ=mod(fre(i),f line ).
[0082] when Right now have to:
[0083] fre(i)=kf line -Δ
[0084] Where k = fre(i)|f line +1, Δ = f line -mod(fre(i),f line ).
[0085] S5, according to the set in step S3 and step S4, select the element Δ′ in the frequency selection point set that is closest to Δ, and optimize the frequency point;
[0086] fre(i)=kf line The plus and minus signs in ±Δ′ are consistent with those in step S4. The optimized fre(i) can be restored to the interval where the original measured frequency point is located by simply replacing Δ with Δ′ in this method.
[0087] S6, deleting the element Δ′ selected in step S5 from the optional frequency point set τ;
[0088] S7, repeating steps S4 to S6 until all frequency points of the measurement frequency point set created in step S3 are optimized, and the optimization ends;
[0089] This process is used to ensure that all selected frequency points are optimized results, thus ensuring the accuracy of the results.
[0090] S8. Output the optimized frequency point set fre.
[0091] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as systems, methods or program products. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which may be collectively referred to herein as "circuits", "modules" or "platforms".
[0092] In another embodiment of the present invention, a multi-frequency signal spectrum optimization system with resistance to spectral aliasing is provided. The system can be used to implement the above-mentioned multi-frequency signal spectrum optimization method with resistance to spectral aliasing. Specifically, the multi-frequency signal spectrum optimization system with resistance to spectral aliasing includes a data module, a relationship module, an optimization module, a reconstruction module and an output module.
[0093] The data module calculates the maximum number of frequency points that can be optimized in the specified interval according to the input parameters, and when the maximum number of frequency points that can be optimized in the specified interval is greater than or equal to the total number of frequency points, creates a measurement frequency point set and calculates an optional frequency point set;
[0094] Relationship module, constructs the relationship between the measurement frequency point set and the system operating frequency;
[0095] The optimization module optimizes the frequency point to be optimized to the closest optional frequency point based on the relationship between the optional frequency point set and the measured frequency point set and the system operating frequency;
[0096] A reconstruction module deletes the selected closest element from the optional frequency point set and reconstructs the optional frequency point set until all frequency points are optimized;
[0097] Output module, outputs the optimized frequency point set.
[0098] In another embodiment of the present invention, a terminal device is provided, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding function; the processor described in the embodiment of the present invention can be used for the operation of the multi-frequency signal spectrum optimization method for anti-spectral aliasing, including:
[0099] The maximum number of frequency points that can be optimized in the specified interval is calculated according to the input parameters. When the maximum number of frequency points that can be optimized in the specified interval is greater than or equal to the total number of frequency points, a measurement frequency point set is created and an optional frequency point set is calculated; a relationship between the measurement frequency point set and the system operating frequency is constructed; based on the relationship between the optional frequency point set and the measurement frequency point set and the system operating frequency, the frequency point to be optimized is optimized to the optional frequency point closest to it; the closest element is deleted from the optional frequency point set, and the optional frequency point set is reconstructed until all frequency points are optimized; and the optimized frequency point set is output.
[0100] In another embodiment of the present invention, the present invention also provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a terminal device for storing programs and data. It is understandable that the computer-readable storage medium here can include both the built-in storage medium in the terminal device and the extended storage medium supported by the terminal device, and can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that more specific examples (non-exhaustive list) of the computer-readable storage medium here include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0101] Computer readable storage media also include data signals propagated in baseband or as part of a carrier wave, which carry readable program codes. Such propagated data signals can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable storage medium can also be any readable medium other than a readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the readable storage medium can be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0102] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0103] The processor may load and execute one or more instructions stored in a computer-readable storage medium to implement the corresponding steps of the multi-frequency signal spectrum optimization method for anti-spectral aliasing in the above embodiment; the processor may load and execute the following steps:
[0104] The maximum number of frequency points that can be optimized in the specified interval is calculated according to the input parameters. When the maximum number of frequency points that can be optimized in the specified interval is greater than or equal to the total number of frequency points, a measurement frequency point set is created and an optional frequency point set is calculated; a relationship between the measurement frequency point set and the system operating frequency is constructed; based on the relationship between the optional frequency point set and the measurement frequency point set and the system operating frequency, the frequency point to be optimized is optimized to the optional frequency point closest to it; the closest element is deleted from the optional frequency point set, and the optional frequency point set is reconstructed until all frequency points are optimized; and the optimized frequency point set is output.
[0105] See also Figure 4 , the terminal device is a computer device, and the computer device 60 of this embodiment includes: a processor 61, a memory 62, and a computer program 63 stored in the memory 62 and executable on the processor 61. When the computer program 63 is executed by the processor 61, the method for calculating the composition of fluid in the reservoir transformation wellbore in the embodiment is realized. To avoid repetition, it is not described one by one here. Alternatively, when the computer program 63 is executed by the processor 61, the functions of each model / unit in the calculation system for the composition of fluid in the reservoir transformation wellbore in the embodiment are realized. To avoid repetition, it is not described one by one here.
[0106] The computer device 60 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The computer device 60 may include, but is not limited to, a processor 61 and a memory 62. Those skilled in the art will appreciate that Figure 4This is only an example of the computer device 60 and does not constitute a limitation of the computer device 60. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device may also include input and output devices, network access devices, buses, etc.
[0107] The processor 61 may be a central processing unit (CPU), or other general-purpose processors, central processing units, graphics processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, data processing logic based on quantum computing, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0108] The memory 62 may be an internal storage unit of the computer device 60, such as a hard disk or memory of the computer device 60. The memory 62 may also be an external storage device of the computer device 60, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., equipped on the computer device 60.
[0109] Furthermore, the memory 62 may include both an internal storage unit of the computer device 60 and an external storage device. The memory 62 is used to store computer programs and other programs and data required by the computer device. The memory 62 may also be used to temporarily store data that has been output or is to be output.
[0110] Any reference to memory, database or other media used in the embodiments provided in the present application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0111] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.
[0112] See also Figure 5 The terminal device 600 is an electronic device, and the electronic device is in the form of a general computing device. The components of the electronic device may include but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different platform components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.
[0113] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention described in the above method section of this specification. For example, the processing unit 610 can perform the following steps: Figure 2 Follow the steps shown in .
[0114] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 6201 and / or a cache storage unit 6202 , and may further include a read-only storage unit (ROM) 6203 .
[0115] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0116] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0117] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms, etc.
[0118] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention described and shown in the drawings here can usually be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0119] See also Figure 1 The present invention is used for the optimization design of spectrum of multi-frequency signals for anti-spectral aliasing, and its main purpose is to prevent the spectrum aliasing phenomenon of multi-frequency signals from occurring when measuring nonlinear systems.
[0120] First, the basic principle of preventing spectrum aliasing is introduced;
[0121] The necessary condition for aliasing of any two frequency points f1 and f2 in the system is:
[0122] f p2 ±f p1 =mf line (m=0,1,2,…,∞)
[0123] Considering the system resolution f reso Regarding the impact on the measurement results, in actual measurement, the necessary conditions for the aliasing of the measurement results of f1 and f2 are:
[0124] f p2 ±f p1 =mf line ±f reso (m=0,1,2,…,∞)
[0125] Therefore, adding the frequency f i Generated harmonic frequency range I i =[mf line ±f pi -f reso ,mf line ±f pi +f reso ](m=0,1,2,…,∞), this area is the “forbidden zone” for other frequency points, that is, other frequency points cannot be located in this interval.
[0126] Since the measurement frequency points are all greater than zero, for any f i >0, f can be constructed i =kf line ±Δ(0,1,2,…,∞), therefore, add the frequency point f i Generated harmonic frequency range I i =[mf line (kf line ±Δ)-f reso ,mf line ±(kf line ±Δ)+f reso ], the range simplifies to:
[0127] I i =[k′f line +Δ-f reso ,k′f line+Δ+f reso ]∪[k′f line -Δ-f reso ,k′f line -Δ+f reso ](k′=0,1,2,…,∞)
[0128] The blue part of the figure represents the frequency f i The resulting "forbidden zone"; considering the margin, the "forbidden zone" should extend to the red area:
[0129] [k′f line +Δ-(f reso ,+ε),
[0130] k′f line +Δ+(f reso +ε)]∪[k′f line -Δ-(f reso +ε),k′f line -Δ+(f reso +ε)]
[0131] Therefore, for any frequency f i >0, can be mapped to [f line +Δ,f line -Δ] range optimization. The maximum number of optimization points that can be accommodated in the interval is the densest arrangement of all frequency points without aliasing. Due to the existence of margin, the boundary of the red "forbidden zone" is the distance f i The nearest optional frequency point. Therefore, after mapping to the optimization interval, the minimum distance between any two measured frequency points is (f reso +ε). Therefore, the maximum number of frequency points that can be optimized is:
[0132]
[0133] in, Represents round down.
[0134] In this case, the selectable frequency points are:
[0135] τ=p(f line +ε)(p=1,2,…,nmax)
[0136] See also Figure 3 The present invention provides a comparison diagram of the frequency response measurement results using and not using the algorithm in a numerical test. The numerical test measures the port impedance of a three-phase bridge rectifier using a DIBS signal as the multi-frequency signal to be optimized.
[0137] It should be noted that the present invention can be used for any multi-frequency signal. The DIBS signal is used here for example only. The multi-frequency signal optimized by the present invention can be used to measure various linear and nonlinear systems. The three-phase bridge rectifier port impedance is used here for example only. According to this figure, the feasibility and advantages of this method in actual frequency response measurement can be seen.
[0138] In summary, the present invention provides a multi-frequency signal spectrum optimization method and system for anti-aliasing spectrum, which can accurately calculate the maximum number of frequency points in a given interval and quickly optimize the frequency point distribution, improve the frequency response measurement accuracy of nonlinear systems, and has high algorithm accuracy and low complexity; it is suitable for the anti-aliasing spectrum selection process of all multi-frequency signals, is compatible with the selection algorithm of other parameters (such as amplitude) of the multi-frequency signal, can be embedded in the overall design algorithm of the multi-frequency signal, and has high ease of use.
[0139] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0140] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0141] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0142] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0143] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0144] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0145] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0146] 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.
[0147] 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 1 A function specified in one or more boxes.
[0148] 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.
[0149] The above contents are only for explaining the technical idea of the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.
Claims
1. A multi-frequency signal spectrum optimization method for anti-spectral aliasing, characterized in that: The following steps are involved: The maximum number of frequency points that can be optimized in the specified interval is calculated according to the input parameters. When the maximum number of frequency points that can be optimized in the specified interval is greater than or equal to the total number of frequency points, a measurement frequency point set is created and an optional frequency point set is calculated. Construct the relationship between the measurement frequency point set and the system operating frequency; Based on the relationship between the optional frequency point set, the measured frequency point set and the system operating frequency, the frequency point to be optimized is optimized to the optional frequency point closest to it; The selected closest element is deleted from the optional frequency point set, and the optional frequency point set is reconstructed until all frequency points are optimized; and the optimized frequency point set is output.
2. The multi-frequency signal spectrum optimization method for anti-spectral aliasing according to claim 1 is characterized in that: Input parameters include system operating frequency f line , measurement resolution f reso , margin ε; starting frequency f first , stop frequency f last And the total number of frequency points num.
3. The multi-frequency signal spectrum optimization method for anti-spectral aliasing according to claim 1 is characterized in that: The maximum number of frequency points nmax that can be optimized in the specified interval is: Among them, f reso is the measurement resolution, f line is the system operating frequency, and ε is the margin.
4. The multi-frequency signal spectrum optimization method for anti-spectral aliasing according to claim 1 is characterized in that: The optional frequency point set τ is: τ=p(f line +e) Where p = 1, 2, ..., nmax, f line is the system operating frequency, and ε is the margin.
5. The multi-frequency signal spectrum optimization method for anti-spectral aliasing according to claim 4 is characterized in that: The measurement frequency point set fre is a specified number of frequency points distributed between the start frequency and the end frequency, and the measurement frequency point set is a set containing num elements.
6. The method for optimizing the spectrum of a multi-frequency signal with anti-aliasing spectrum according to claim 1, characterized in that: The relationship between the measurement frequency point set and the system operating frequency is as follows: According to the measurement frequency point set, each element in the set is represented by fre(i)=kf according to the system operating frequency line ±Δ form; when have to: fri(i)=kf line +Δ Where k = fre(i)|f line ; when Right now have to: fri(i)=kf line -Δ Where l = fre(i) | f line +1, are both fre(i) and f line The variable defined, f line The system operating frequency.
7. The method for optimizing the spectrum of a multi-frequency signal with anti-spectral aliasing according to claim 6, characterized in that: when When Δ=mod(fre(i),f line ).
8. The method for optimizing the spectrum of a multi-frequency signal with anti-spectral aliasing according to claim 6, characterized in that: when When Δ=f line -mod(fre(i),f line ).
9. The method for optimizing the spectrum of a multi-frequency signal with anti-spectral aliasing according to claim 1, characterized in that: Optimizing the frequency point to be optimized to the closest optional frequency point is as follows: The element Δ′ closest to Δ in the frequency selection point set is selected to optimize the frequency point, and the optimized fre(i) is restored to the interval where the original measured frequency point is located.
10. A multi-frequency signal spectrum optimization system for anti-spectral aliasing, characterized in that: include: The data module calculates the maximum number of frequency points that can be optimized in the specified interval according to the input parameters. When the maximum number of frequency points that can be optimized in the specified interval is greater than or equal to the total number of frequency points, a measurement frequency point set is created and an optional frequency point set is calculated; Relationship module, constructs the relationship between the measurement frequency point set and the system operating frequency; The optimization module optimizes the frequency point to be optimized to the closest optional frequency point based on the relationship between the optional frequency point set and the measured frequency point set and the system operating frequency; A reconstruction module deletes the selected closest element from the optional frequency point set and reconstructs the optional frequency point set until all frequency points are optimized; Output module, outputs the optimized frequency point set.
