Control method and apparatus for output phase of broadband synchronous signal source and storage medium
By using the second pulse signal and the standard broadband test signal for synchronous sampling in the broadband synchronous signal source, the phase correction control quantity is obtained and the output phase is corrected, which solves the problem of low phase output accuracy in the prior art and realizes high-precision phase output.
Patent Information
- Application Number
- PCT/CN2024/081354
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-11-06
- Filing Date
- 2024-03-13
- Publication Date
- 2025-05-15
AI Technical Summary
The phase output accuracy of existing broadband synchronous signal sources is low, making it difficult to meet the needs of broadband detection of new power systems.
By setting the main clock signal source to output the second pulse signal and the broadband synchronization signal source to output the standard broadband test signal, synchronous sampling is performed to obtain the phase correction control amount, and the output phase of the broadband synchronization signal source is corrected.
The output phase accuracy of the broadband synchronous signal source is improved to meet the needs of broadband detection of new power systems.
Smart Images

Figure CN2024081354_15052025_PF_FP_ABST
Abstract
Description
Method, device and storage medium for controlling output phase of broadband synchronous signal source
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on November 6, 2023, with application number 202311460419.0 and invention name “Control method, device and storage medium for output phase of wideband synchronization signal source”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present invention relates to the field of output signal correction, and in particular to a method, device and storage medium for controlling the output phase of a broadband synchronous signal source. Background Art
[0003] With the construction and development of new power systems, power electronics technology is increasingly being used in power grids. Power electronics are being incorporated into every link of the power system, from power generation to transmission, distribution, and consumption, with intensified nonlinear characteristics. Controlled by numerous power electronic devices with diverse characteristics, the system experiences broadband oscillations, extending from the traditional 50Hz power frequency band to high-frequency bands exceeding 1000Hz. Currently, broadband oscillations in power grids are difficult to observe and measure. Both domestically and internationally, broadband oscillations frequently lead to disconnections of new energy generators, equipment damage, and DC outages, posing a significant challenge to the safe and stable operation of the system.
[0004] Solving the problem of broadband oscillation requires making it observable and measurable. Therefore, broadband measurement technology and products have become a research priority. For a long time, power grid measurements have primarily been conducted in the 50Hz power frequency band. As a result, existing test and inspection R&D platforms are unable to meet the needs of broadband measurement technology and product development. A key issue is the lack of broadband synchronization signal sources capable of high-precision phase output. Existing broadband synchronization signal sources have low phase output accuracy, making them difficult to meet application requirements.
[0005] Summary of the Invention
[0006] Based on this, the present invention provides a control method, device and storage medium for the output phase of a broadband synchronous signal source. On the basis of the existing broadband synchronous signal source, a phase correction control amount is obtained through a second pulse signal and a standard broadband test signal, thereby correcting the output phase of the broadband synchronous signal source and improving the output phase accuracy.
[0007] In a first aspect, the present invention provides a method for controlling the output phase of a broadband synchronous signal source, comprising:
[0008] Step S101, setting the main clock signal source to output a pulse-per-second signal;
[0009] Step S102, setting parameters of the broadband synchronization signal source to output a standard broadband test signal;
[0010] Step S103, acquiring a first synchronous sampling sequence and a second synchronous sampling sequence according to the pulse-per-second signal and the standard broadband test signal respectively;
[0011] Step S104, determining the sampling moment corresponding to any rising edge signal in the first synchronous sampling sequence as the first moment;
[0012] Step S105, determining a reference value of the standard broadband test signal, and determining a corresponding second moment in the second synchronous sampling sequence according to the reference value and the first moment;
[0013] Step S106, calculating and outputting a phase correction control amount according to the first moment and the second moment;
[0014] Step S107: If the number of the acquired phase correction control values is less than the preset threshold, repeat the above steps S102-S106 until the number of the acquired phase correction control values is greater than the preset threshold;
[0015] Step S108 : If the number of the acquired phase correction control quantities is greater than a preset threshold, a final phase correction control quantity is obtained according to the plurality of the phase correction control quantities, and a corrected standard broadband test signal is obtained according to the final phase correction control quantity.
[0016] Furthermore, the pulse-per-second signal is specifically a 1 pps pulse-per-second signal.
[0017] Furthermore, the parameters of the broadband synchronization signal source are set to output a standard broadband test signal, specifically:
[0018] Set the signal amplitude, signal frequency and signal phase of the broadband synchronous signal source, and output the standard triangle wave signal as the standard broadband test signal;
[0019] The expression of the standard broadband test signal is: n =f(A n ,f n ,α n ,t),
[0020] Among them, M n is a standard broadband test signal, A n is the signal amplitude, the value range is A n ∈[0,100],f n is the signal frequency, and its value range is f n ∈[0,2500],α n is the signal phase, and its value range is α n∈[0°,360°], n is the nth phase correction control quantity.
[0021] Furthermore, the first synchronous sampling sequence and the second synchronous sampling sequence are obtained according to the pulse per second signal and the standard broadband signal, respectively, specifically:
[0022] Setting the start time, end time and sampling frequency of the second pulse signal and the standard broadband signal to be the same;
[0023] The pulse-per-second signal and the standard broadband signal are sampled respectively according to the start time, the end time and the sampling frequency to obtain a first synchronous sampling sequence and a second synchronous sampling sequence.
[0024] Furthermore, the determining of a reference value of the standard broadband test signal and determining a corresponding second moment in the second synchronous sampling sequence according to the reference value and the first moment are specifically as follows:
[0025] Selecting a standard broadband test signal value of the standard broadband test signal at a starting moment as a reference benchmark value;
[0026] Determine, according to the reference benchmark value, each sampling signal value that meets a preset condition in the second synchronous sampling sequence;
[0027] The difference between the sampling time corresponding to each sampling signal value and the first time is calculated, and the sampling time with the smallest difference is selected as the second time.
[0028] In a second aspect, the present invention further provides a device for controlling the output phase of a broadband synchronous signal source, comprising:
[0029] The first signal output module is used to set the main clock signal source to output a second pulse signal;
[0030] The second signal output module is used to set the parameters of the broadband synchronization signal source and output a standard broadband test signal;
[0031] A synchronous sampling module, configured to acquire a first synchronous sampling sequence and a second synchronous sampling sequence according to the pulse-per-second signal and the standard broadband test signal respectively;
[0032] A first moment determination module, configured to determine a sampling moment corresponding to any rising edge signal in the first synchronous sampling sequence as a first moment;
[0033] A second time determination module is configured to determine a reference value of the standard broadband test signal, and determine a corresponding second time in the second synchronous sampling sequence according to the reference value and the first time;
[0034] A phase correction calculation module, configured to calculate and output a phase correction control amount according to the first moment and the second moment;
[0035] a phase correction recalculation module, configured to repeat the second signal output module, the synchronous sampling module, the first moment determination module, the second moment determination module, and the phase correction calculation module if the number of phase correction control quantities obtained is less than a preset threshold, until the number of phase correction control quantities obtained is greater than the preset threshold;
[0036] The final phase correction determination module is used to obtain a final phase correction control amount based on several phase correction control amounts if the number of acquired phase correction control amounts is greater than a preset threshold, and to obtain a corrected standard broadband test signal based on the final phase correction control amount.
[0037] In a third aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for controlling the output phase of a wide-band synchronous signal source according to any one of the first aspects.
[0038] In a fourth aspect, the present invention further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, it executes any method for controlling the output phase of a wideband synchronous signal source according to the first aspect.
[0039] The beneficial effects of the above technical solution are as follows: Based on an existing wideband synchronous signal source, the present invention simultaneously samples a pulse-per-second signal and a standard wideband test signal to obtain a first synchronous sampling sequence and a second synchronous sampling sequence. Based on the first and second synchronous sampling sequences, a number of phase correction control variables are obtained, respectively. The final phase correction control variable is obtained by taking the average of these phase correction control variables, thereby obtaining a corrected standard wideband test signal. This technical approach achieves high-precision phase output based entirely on the existing wideband synchronous signal source hardware structure, thus meeting the application requirements of broadband detection in new power systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for describing the embodiments or the prior art.
[0041] FIG1 is a schematic diagram of a method for controlling the output phase of a broadband synchronization signal source according to an embodiment of the present application;
[0042] FIG2 is a flow chart of a method for controlling the output phase of a broadband synchronization signal source according to an embodiment of the present application;
[0043] FIG3 is a schematic diagram of a control system for output phase of a broadband synchronous signal source according to an embodiment of the present application;
[0044] FIG4 is a schematic diagram showing preset conditions for extracting sampled signal values from a second synchronous sampling sequence according to an embodiment of the present application;
[0045] FIG5 is a schematic diagram of a first synchronous sampling sequence and a second synchronous sampling sequence when acquiring a first phase correction control value in one embodiment of the present application;
[0046] FIG6 is a schematic diagram of a first synchronous sampling sequence and a second synchronous sampling sequence when acquiring a second phase correction control value in one embodiment of the present application;
[0047] FIG7 is a schematic diagram of a control device for the output phase of a broadband synchronization signal source in one embodiment of the present application. DETAILED DESCRIPTION
[0048] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 making any creative efforts are within the scope of protection of the present invention. To illustrate the present invention in more detail, the control method, device and storage medium for the output phase of the broadband synchronous signal source provided by the present invention are specifically described below in conjunction with the accompanying drawings.
[0049] With the construction and development of new power systems, power electronics technology is increasingly being used in power grids. Power electronics are being incorporated into every aspect of the power system, and nonlinear characteristics are being enhanced. Wideband oscillations are a newly emerging problem in current power systems. The oscillation frequency ranges from 5Hz to 2500Hz, making them difficult to observe and measure in practice. The development of wideband measurement technology and products is crucial for resolving this issue. The core issue within this critical area is the lack of wideband synchronous signal sources capable of high-precision phase output.
[0050] In this regard, the present invention provides a method for controlling the output phase of a broadband synchronization signal source, so as to output a broadband synchronization signal with a high-precision phase without changing the hardware device. The method is explained by taking the application of the method to a terminal device as an example, combined with a schematic diagram of the method for controlling the output phase of a broadband synchronization signal source shown in Figure 1 and a flow chart of the method for controlling the output phase of a broadband synchronization signal source shown in Figure 2.
[0051] The method for controlling the output phase of a broadband synchronous signal source of the present invention also includes a corresponding control system for the output phase of the broadband synchronous signal source, as shown in FIG3 . The control system includes a satellite antenna, a master clock signal source, a broadband synchronous signal source, and a sampling device. The satellite antenna is a SYN108 Beidou / GPS dual-mode timing antenna, which provides satellite signals to the master clock signal source. The master clock signal source is a SYN2411 IEEE1588 clock, which receives satellite signals and simultaneously outputs a synchronous clock signal and a pulse-second signal. The broadband synchronous signal source is an LDDL-PMU430 three-phase high-frequency harmonic synchronous signal source, which generates a standard broadband test signal. The sampling device is a DS0-X3024A digital oscilloscope, which synchronously samples the pulse-second signal and the standard broadband test signal.
[0052] The present application provides an application scenario for a method for controlling the output phase of a broadband synchronization signal source. This application scenario includes a terminal device provided in the embodiments, including but not limited to a smartphone and a computer device, wherein the computer device can be at least one of a desktop computer, a portable computer, a laptop computer, a mainframe computer, a tablet computer, and the like. A user operates the terminal device to obtain a calibrated standard broadband test signal. For details, please refer to the embodiment of the method for controlling the output phase of a broadband synchronization signal source.
[0053] Step S101, setting the main clock signal source to output a pulse-per-second signal.
[0054] The pulse-per-second signal is specifically a 1 pps pulse-per-second signal. The master clock signal source of this embodiment also serves as a synchronous clock signal of the broadband synchronous signal source, simplifying the link structure of the system.
[0055] Step S102 , setting parameters of a broadband synchronization signal source to output a standard broadband test signal.
[0056] The parameters of the broadband synchronous signal source include signal amplitude, signal frequency and signal phase. By setting the signal amplitude, signal frequency and signal phase of the broadband synchronous signal source, the standard triangle wave signal is output as the standard broadband test signal. The specific expression is: M n =f(A n ,f n ,α n ,t),
[0057] Among them, M n is a standard broadband test signal, A n is the signal amplitude, the value range is A n ∈[0,100],f n is the signal frequency, and its value range is f n ∈[0,2500],αn is the signal phase, and its value range is α n ∈[0°,360°], t is the time, and n is the nth phase correction control quantity.
[0058] Step S103 : acquiring a first synchronous sampling sequence and a second synchronous sampling sequence according to the pulse-per-second signal and the standard broadband test signal respectively.
[0059] The start time, end time and sampling frequency of the second pulse signal and the standard broadband signal are set to be the same;
[0060] The second pulse signal and the standard broadband signal are sampled according to the start time, the end time and the sampling frequency, respectively, to obtain a first synchronous sampling sequence and a second synchronous sampling sequence. The first synchronous sampling sequence is recorded as The second synchronous sampling sequence is recorded as Where c is the total number of samples in the sampling sequence, n represents the acquisition process of the nth phase correction control quantity corresponding to the synchronous sampling sequence, and n is a constant greater than 0. is the sampling time, for The sampling signal value of the second pulse signal at time t, for The sampled signal value of the standard broadband test signal at this moment.
[0061] Step S104 : determining a sampling moment corresponding to any rising edge signal in the first synchronous sampling sequence as the first moment.
[0062] Among them, in the first synchronous sampling sequence In the example, any rising edge signal is determined The rising edge signal The corresponding sampling time Recorded as the first moment
[0063] The rising edge signal The judgment basis is:
[0064] Step S105 : determining a reference value of the standard broadband test signal, and determining a corresponding second moment in the second synchronous sampling sequence according to the reference value and the first moment.
[0065] Wherein, step S105 specifically includes:
[0066] Step S201: Select the standard broadband test signal M n =f(A n ,f n ,αn ,t) At the starting time, i.e. t = 0, the standard broadband test signal value is the reference value, denoted as K n =f(A n ,f n ,α n ,0),K n For reference benchmark value.
[0067] Step S202: According to the reference value K n Determine the values of each sampling signal that meet the preset conditions in the second synchronous sampling sequence, wherein the preset conditions can be referred to FIG. 4 , and the sequence of each sampling signal value that meets the preset conditions can be recorded as Where bj≤c.
[0068] Step S203: Calculate the difference between the sampling time corresponding to each sampled signal value and the first time, and select the sampling time with the smallest difference as the second time. The specific expression for the difference between the sampling time corresponding to each sampled signal value and the first time is:
[0069] T n is the difference between the sampling moment and the first moment corresponding to the sampled signal value, is the sampling time corresponding to the sampled signal value.
[0070] Step S106: Calculate and output the phase correction control amount according to the first moment and the second moment.
[0071] Among them, the specific expression of the phase correction control amount is:
[0072] in, is the nth phase correction control quantity, f n is the signal frequency of the standard broadband test signal, For the first moment, For the second moment.
[0073] Step S107 : If the number of the acquired phase correction control variables is less than the preset threshold, repeat the above steps S102 - S106 until the number of the acquired phase correction control variables is greater than the preset threshold.
[0074] The preset threshold is a constant greater than 1 and can be determined based on the phase correction accuracy of the broadband test signal, typically ranging from 3 to 5. Step S107 is repeated multiple times to obtain the phase correction control value, and a final phase correction control value with high precision and accuracy can be calculated based on the multiple phase correction control values, thereby achieving correction of the standard broadband test signal.
[0075] Step S108 : If the number of the acquired phase correction control quantities is greater than a preset threshold, a final phase correction control quantity is obtained according to the plurality of the phase correction control quantities, and a corrected standard broadband test signal is obtained according to the final phase correction control quantity.
[0076] Specifically, the expression of the final phase correction control amount is:
[0077] in, is the final phase correction control value, H is the preset threshold, is the Hth phase correction control quantity.
[0078] Through the above-mentioned method for controlling the output phase of a broadband synchronous signal source, synchronous sampling of a pulse-per-second signal and a standard broadband test signal is performed on the basis of an existing broadband synchronous signal source. Based on the synchronous sampling sequence of the pulse-per-second signal, the rising edge moment of a particular pulse-per-second is determined, and a reference baseline value is calculated based on the initial parameters of the broadband synchronous signal source. Finally, based on the obtained synchronous sampling sequence, the correction control value for the output phase of the existing broadband synchronous signal source is calculated, and the output phase is corrected accordingly to improve the output phase accuracy. This method is completely based on the hardware structure of the existing broadband synchronous signal source and does not require any modification or replacement of the hardware. High-precision phase output can be achieved solely through the above-mentioned method, fully meeting the application requirements of broadband detection in new power systems.
[0079] Furthermore, the preset conditions in step S202 are described in detail as follows:
[0080] When the standard broadband test signal M n =f(A n ,f n ,α n When ,t) is a sine function, there are four cases:
[0081] (1) If α∈[0°,90°) or α∈(270°,360°], then M n =f(A n ,f n ,α n ,t) is a monotonically increasing function in this interval. In the second synchronous sampling sequence The sampling signal value that meets the following conditions (i is an arbitrary constant, 1≤i≤c-1), such that The sampling values that meet the conditions in the second synchronous sampling sequence constitute the sampling signal value set
[0082] (2) If α∈(90°,270°), then M n =f(A n,f n ,α n ,t) is a monotonically decreasing function in this interval. In the second synchronous sampling sequence The sampling signal value that meets the following conditions (i is an arbitrary constant, 1≤i≤c-1), such that The sampling values that meet the conditions in the second synchronous sampling sequence constitute the sampling signal value set
[0083] (3) If α = 90°, then M n =f(A n ,f n ,α n ,t) takes the maximum value, in the second synchronous sampling sequence The sampling signal value that meets the following conditions (i is an arbitrary constant, 1≤i≤c-1), such that and The sampling values that meet the conditions in the second synchronous sampling sequence constitute the sampling signal value set
[0084] (4) If α = 270°, then M n =f(A n ,f n ,α n ,t) takes the minimum value, in the second synchronous sampling sequence The sampling signal value that meets the following conditions (i is an arbitrary constant, 1≤i≤c-1), such that and The sampling values that meet the conditions in the second synchronous sampling sequence constitute the sampling signal value set
[0085] Similarly, when the standard broadband test signal M n =f(A n ,f n ,α n , t) is a cosine function, there are four cases:
[0086] (1) If α∈(0°,180°), then M n =f(A n ,f n ,α n ,t) is a monotonically decreasing function in this interval. In the second synchronous sampling sequence The sampling signal value that meets the following conditions (i is an arbitrary constant, 1≤i≤c-1), such that The sampling values that meet the conditions in the second synchronous sampling sequence constitute the sampling signal value set
[0087] (2) If α∈(180°,360°), then M n =f(A n ,f n ,α n ,t) is a monotonically increasing function in this interval. In the second synchronous sampling sequence The sampling signal value that meets the following conditions (i is an arbitrary constant, 1≤i≤c-1), such that The sampling values that meet the conditions in the second synchronous sampling sequence constitute the sampling signal value set
[0088] (3) If α = 0° or α = 360°, then M n =f(A n ,f n ,α n ,t) takes the maximum value, in the second synchronous sampling sequence The sampling signal value that meets the following conditions (i is an arbitrary constant, 1≤i≤c-1), such that and The sampling values that meet the conditions in the second synchronous sampling sequence constitute the sampling signal value set
[0089] (4) If α = 180°, then M n =f(A n ,f n ,α n ,t) takes the minimum value, in the second synchronous sampling sequence The sampling signal value that meets the following conditions (i is an arbitrary constant, 1≤i≤c-1), such that and The sampling values that meet the conditions in the second synchronous sampling sequence constitute the sampling signal value set
[0090] In order to better illustrate the method for controlling the output phase of a broadband synchronous signal source of the present invention, a specific example is introduced for illustration, specifically:
[0091] Step S301: Set the main clock signal source to output a 1 pps pulse signal.
[0092] In step S302, the signal amplitude of the broadband synchronization signal source is set to 10V, the signal frequency is set to 1000Hz, the signal phase is set to 270°, and the broadband synchronization signal source is set to a sine wave signal. The specific expression of the output standard broadband test signal is: M1 = f(A1, f1, α1, t) = 10×cos(2π×1000×t+270°).
[0093] In step S303, the sampling frequency is set to 200 kHz, which translates to a sampling interval of 5 μs. The rising edge of the pulse-per-second signal is used as the zero time base. A negative sampling time indicates a time before the time base, while a positive sampling time indicates a time after the time base. The total sampling duration is 5 ms. The pulse-per-second signal and the standard broadband test signal are synchronously sampled to obtain a first synchronous sampling sequence and a second synchronous sampling sequence, respectively. The resulting sampling sequence is 1000 points long. See Figure 5 for a partial sampling sequence before and after the zero time base.
[0094] Step S304, due to The sampled signal value The corresponding sampling time is time 0, that is,
[0095] Step S305: Since the standard broadband test signal is a cosine function and α=270°∈ (180°,360°), select The sequence of sampled signal values that meet the conditions is:
[0096] Compare the difference between the sampling moment corresponding to the above sampling signal value and the first moment to obtain the current value. When , the difference is the smallest, so we get the second moment
[0097] Step S306: Calculate the phase correction control amount
[0098] Step S307: If the number of the acquired phase correction control values is less than the preset threshold, repeat the above steps S302-S306 until the number of the acquired phase correction control values is greater than the preset threshold.
[0099] When obtaining the second phase correction control value, the specific expression of the output standard broadband test signal is: M2 = f(A2, f2, α2, t) = 57.735 × cos(2π × 1000 × t + 90°). The first synchronous sampling sequence and the second synchronous sampling sequence are specifically shown in FIG6. The sampling signal value sequence that meets the conditions in the second synchronous sampling sequence is: And thus we get the second moment The second phase correction control quantity is
[0100] Step S308: The final phase correction control amount is obtained according to the above two phase correction control amounts: The standard broadband test signal is corrected according to the final phase correction control amount.
[0101] It should be understood that although the steps in the flowcharts of Figures 1-3 are shown sequentially as indicated by arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in Figures 1-3 may include multiple sub-steps or sub-stages, and these sub-steps or stages are not necessarily executed and completed at the same time, but can be executed at different times. The order of execution of these sub-steps or stages is not necessarily sequential, but can be executed in rotation or alternation with other steps or at least a portion of the sub-steps or stages of other steps.
[0102] The above-mentioned embodiment disclosed in the present invention describes in detail a method for controlling the output phase of a wide-band synchronization signal source. The above-mentioned method disclosed in the present invention can be implemented using various forms of equipment. Therefore, the present invention also discloses a control device for the output phase of a wide-band synchronization signal source corresponding to the above-mentioned method. In conjunction with Figure 7, a specific embodiment is given below for detailed description.
[0103] The first signal output module 401 is used to set the main clock signal source to output a second pulse signal.
[0104] The second signal output module 402 is used to set parameters of the broadband synchronization signal source and output a standard broadband test signal.
[0105] The synchronous sampling module 403 is configured to acquire a first synchronous sampling sequence and a second synchronous sampling sequence according to the pulse per second signal and the standard broadband test signal.
[0106] The first time determination module 404 is configured to determine a sampling time corresponding to any rising edge signal in the first synchronous sampling sequence as a first time.
[0107] The second time determination module 405 is configured to determine a reference value of the standard broadband test signal, and determine a corresponding second time in the second synchronous sampling sequence according to the reference value and the first time.
[0108] The phase correction calculation module 406 is configured to calculate and output a phase correction control value according to the first moment and the second moment.
[0109] The phase correction recalculation module 407 is used to repeat the above-mentioned second signal output module, synchronous sampling module, first moment determination module, second moment determination module and phase correction calculation module if the number of phase correction control quantities obtained is less than the preset threshold value, until the number of phase correction control quantities obtained is greater than the preset threshold value.
[0110] The final phase correction determination module 408 is used to obtain a final phase correction control amount based on several phase correction control amounts if the number of acquired phase correction control amounts is greater than a preset threshold, and to obtain a corrected standard broadband test signal based on the final phase correction control amount.
[0111] Regarding the control device for the output phase of the broadband synchronization signal source, please refer to the above-mentioned method definition and will not be repeated here. Each module in the above-mentioned device can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor of the terminal device in the form of hardware, or can be stored in the memory of the terminal device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0112] In one embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method for controlling the output phase of the broadband synchronous signal source are implemented.
[0113] The computer-readable storage medium can be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM (Erasable Programmable Read-Only Memory), a hard disk, or a ROM. Optionally, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer-readable storage medium has storage space for program codes for executing any of the method steps of the above method. These program codes can be read from or written into one or more computer program products, and the program codes can be compressed in an appropriate form.
[0114] In one embodiment, the present invention provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the above-mentioned method for controlling the output phase of a broadband synchronous signal source when executing the computer program.
[0115] The computer device includes a memory, a processor, and one or more computer programs, wherein the one or more computer programs can be stored in the memory and configured to be executed by one or more processors, and the one or more application programs are configured to execute the above-mentioned method for controlling the output phase of the broadband synchronous signal source.
[0116] The processor may include one or more processing cores. The processor uses various interfaces and lines to connect the various parts of the entire computer device, and performs various functions of the computer device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory, and calling data stored in the memory. Optionally, the processor can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor can integrate one or more combinations of a central processing unit (CPU), a graphics processing unit (GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to handle wireless communication. It is understandable that the above-mentioned modem may not be integrated into the processor and may be implemented separately through a communication chip.
[0117] The memory may include random access memory (RAM) or read-only memory (ROM). The memory may be used to store instructions, programs, codes, code sets, or instruction sets. The memory may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the terminal device during use, etc.
[0118] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A method for controlling the output phase of a broadband synchronous signal source, characterized in that: include: Step S101, setting the main clock signal source to output a second pulse signal; Step S102, setting the parameters of the broadband synchronization signal source to output a standard broadband test signal; Step S103, acquiring a first synchronous sampling sequence and a second synchronous sampling sequence respectively according to the pulse per second signal and the standard broadband test signal; Step S104, determining a sampling moment corresponding to any rising edge signal in the first synchronous sampling sequence as a first moment; Step S105, determining a reference value of the standard broadband test signal, and determining a corresponding second moment in the second synchronous sampling sequence according to the reference value and the first moment; Step S106, calculating and outputting a phase correction control amount according to the first moment and the second moment; Step S107, if the number of the acquired phase correction control amounts is less than the preset threshold, repeat the above steps S102-S106 until the number of the acquired phase correction control amounts is greater than the preset threshold; Step S108, if the number of acquired phase correction control quantities is greater than a preset threshold, a final phase correction control quantity is obtained according to a number of the phase correction control quantities, and a corrected standard broadband test signal is obtained according to the final phase correction control quantity.
2. The method for controlling the output phase of a broadband synchronous signal source according to claim 1, characterized in that: The second pulse signal is specifically a 1 pps second pulse signal.
3. The method for controlling the output phase of a broadband synchronous signal source as claimed in claim 2, characterized in that: The parameters of the broadband synchronization signal source are set to output a standard broadband test signal, specifically: Set the amplitude parameters, frequency parameters and phase parameters of the broadband synchronous signal source, and output a standard triangle wave signal as a standard broadband test signal; The expression of the standard broadband test signal is: M n =f(A n ,f n ,α n ,t), Among them, M n is a standard broadband test signal, A n is the signal amplitude, the value range is A n ∈[0,100],f n is the signal frequency, and its value range is f n ∈[0,2500],α n is the signal phase, and its value range is α n ∈[0°,360°], t is the time, and n is the nth phase correction control amount.
4. The method for controlling the output phase of a broadband synchronous signal source as claimed in claim 3, characterized in that: The first synchronous sampling sequence and the second synchronous sampling sequence are obtained according to the second pulse signal and the standard broadband signal respectively, specifically: Setting the start time, end time and sampling frequency of the second pulse signal and the standard broadband signal to be the same; The pulse-per-second signal and the standard broadband signal are sampled respectively according to the start time, the end time and the sampling frequency to obtain a first synchronous sampling sequence and a second synchronous sampling sequence.
5. The method for controlling the output phase of a broadband synchronous signal source as claimed in claim 4, characterized in that: The step of determining a reference value of the standard broadband test signal and determining a corresponding second moment in the second synchronous sampling sequence according to the reference value and the first moment is specifically as follows: Selecting the standard broadband test signal value of the standard broadband test signal at the starting time as a reference benchmark value; Determine, according to the reference benchmark value, each sampling signal value that meets a preset condition in the second synchronous sampling sequence; Calculate the difference between the sampling time corresponding to each sampling signal value and the first time, and select the difference The sampling moment with the smallest value is the second moment.
6. The method for controlling the output phase of a broadband synchronous signal source as claimed in claim 5, characterized in that: The specific expression for calculating and outputting the phase correction control amount according to the first moment and the second moment is: in, is the nth phase correction control quantity, f n is the signal frequency of the standard broadband test signal, For the first moment, For the second moment.
7. The method for controlling the output phase of a broadband synchronous signal source as claimed in claim 6, characterized in that: The final phase correction control amount is obtained according to the plurality of phase correction control amounts, and the specific expression is: in, is the final phase correction control amount, H is the preset threshold, is the Hth phase correction control quantity.
8. A control device for output phase of a broadband synchronous signal source, characterized in that: include: The first signal output module is used to set the main clock signal source to output a second pulse signal; The second signal output module is used to set the parameters of the broadband synchronization signal source and output a standard broadband test signal; A synchronous sampling module, used for respectively acquiring a first synchronous sampling sequence and a second synchronous sampling sequence according to the pulse-per-second signal and the standard broadband test signal; A first moment determination module, used to determine a sampling moment corresponding to any rising edge signal in a first synchronous sampling sequence as a first moment; The second time determination module is used to determine the reference benchmark value of the standard broadband test signal. Determine a second moment corresponding to the second synchronous sampling sequence according to the reference benchmark value and the first moment; A phase correction calculation module, used to calculate and output a phase correction control amount according to the first moment and the second moment; A phase correction repetition calculation module, used for repeating the second signal output module, the synchronous sampling module, the first moment determination module, the second moment determination module and the phase correction calculation module if the number of the acquired phase correction control amount is less than the preset threshold value, until the number of the acquired phase correction control amount is greater than the preset threshold value; The final phase correction determination module is used to obtain a final phase correction control amount according to several phase correction control amounts if the number of acquired phase correction control amounts is greater than a preset threshold, and to obtain a corrected standard broadband test signal according to the final phase correction control amount.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for controlling the output phase of a wide-band synchronous signal source according to any one of claims 1 to 7 are implemented.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, it performs the method for controlling the output phase of a wide-band synchronous signal source according to any one of claims 1 to 7.
Citation Information
Patent Citations
Sampling circuit, sampling method, sampling oscilloscope, and waveform display method
CN106249016A
Method and device for outputting pulse per second signal
CN111130510A
Self-adaptive measurement method, device and system for broadband signal of power grid
CN114487589A
Broadband synchronization signal source output phase control method and device and storage medium
CN117200766A
Method and system and computer program for measuring alternating-current system quantities
US20190204370A1
Cited By
Full-automatic checking system for three-phase combined mutual inductor
CN122488013A