CN117200766B - Control method and device for broadband synchronous signal source output phase and storage medium - Google Patents

Control method and device for broadband synchronous signal source output phase and storage medium Download PDF

Info

Publication number
CN117200766B
CN117200766B CN202311460419.0A CN202311460419A CN117200766B CN 117200766 B CN117200766 B CN 117200766B CN 202311460419 A CN202311460419 A CN 202311460419A CN 117200766 B CN117200766 B CN 117200766B
Authority
CN
China
Prior art keywords
signal
phase correction
time
correction control
synchronous
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311460419.0A
Other languages
Chinese (zh)
Other versions
CN117200766A (en
Inventor
吴为
周保荣
洪潮
李金�
杨元威
梅勇
周华锋
刘宇明
雷傲宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CSG Electric Power Research Institute
Original Assignee
CSG Electric Power Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CSG Electric Power Research Institute filed Critical CSG Electric Power Research Institute
Priority to CN202311460419.0A priority Critical patent/CN117200766B/en
Publication of CN117200766A publication Critical patent/CN117200766A/en
Application granted granted Critical
Publication of CN117200766B publication Critical patent/CN117200766B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)

Abstract

The invention provides a control method, a device and a storage medium for broadband synchronous signal source output phase, comprising the following steps: respectively acquiring a first synchronous sampling sequence and a second synchronous sampling sequence according to the second pulse signal and the standard broadband test signal; determining the sampling time corresponding to any rising edge signal in a first synchronous sampling sequence as a first time; determining a corresponding second moment in a second synchronous sampling sequence according to the reference value of the standard broadband test signal and the first moment; calculating and outputting a phase correction control amount according to the first time and the second time; if the number of the obtained phase correction control amounts is smaller than a preset threshold value, repeating the steps until the number of the obtained phase correction control amounts is larger than the preset threshold value; if the number of acquired phase correction control amounts is greater than the preset threshold, and obtaining a final phase correction control quantity according to the plurality of phase correction control quantities, and correcting the standard broadband test signal. By the above method can obtain high-precision broadband test signals.

Description

Control method and device for broadband synchronous signal source output phase and storage medium
Technical Field
The invention relates to the field of output signal correction, in particular to a control method, a device and a storage medium for the output phase of a broadband synchronous signal source.
Background
Along with the construction and development of a novel power system, the application of a power electronic technology in a power grid is wider and wider, and all links of power generation, power transmission, power distribution and power utilization of the power system show the characteristic of power electronization and the nonlinear characteristic is enhanced. Under the control of a plurality of power electronic devices with different characteristics, the broadband oscillation phenomenon of the system occurs, and the coverage frequency band extends from the vicinity of the traditional 50Hz industrial frequency band to the high frequency band above 1000 Hz. The broadband oscillation phenomenon of the power grid is difficult to be observably detected at present. The broadband oscillation problem at home and abroad causes the occurrence of the events of off-grid, equipment damage, direct current outage and the like of the new energy unit, and forms a great challenge for the safe and stable operation of the system.
The broadband oscillation problem is solved by firstly realizing considerable measurement of the broadband oscillation phenomenon, so that the broadband measurement technology and the broadband measurement product become important points of research. For a long time, the power grid measurement is mainly carried out around a 50Hz industrial frequency band, so that the existing test and inspection research and development platform cannot meet the requirements of broadband measurement technology and product research and development, and the most central problem is the lack of a broadband synchronous signal source with high-precision phase output capability. The phase output precision of the existing broadband synchronous signal source is low, and the application requirement is difficult to meet.
Disclosure of Invention
Based on the control method, the device and the storage medium for the output phase of the broadband synchronous signal source, the phase correction control quantity is obtained through the second pulse signal and the standard broadband test signal on the basis of the existing broadband synchronous signal source, so that the output phase of the broadband synchronous signal source is corrected, and the output phase precision is improved.
In a first aspect, the present invention provides a method for controlling an output phase of a broadband synchronization signal source, including:
step S101, a main clock signal source is set to output a second pulse signal;
step S102, setting parameters of a broadband synchronous signal source and outputting a standard broadband test signal;
step S103, respectively obtaining a first synchronous sampling sequence and a second synchronous sampling sequence according to the second pulse signal and the standard broadband test signal;
step S104, determining the sampling time corresponding to any rising edge signal in the first synchronous sampling sequence as a first time;
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 obtained phase correction control amounts is smaller than a preset threshold, repeating the steps S102-S106 until the number of the obtained phase correction control amounts is larger than the preset threshold;
step S108, if the number of the obtained phase correction control amounts is larger than a preset threshold value, obtaining a final phase correction control amount according to a plurality of the phase correction control amounts, and obtaining a corrected standard broadband test signal according to the final phase correction control amount.
Further, the second pulse signal is specifically a 1pps second pulse signal.
Further, the setting of parameters of the broadband synchronous signal source, outputting a standard broadband test signal, specifically:
setting the signal amplitude, the signal frequency and the signal phase of a broadband synchronous signal source, and outputting a standard triangular wave signal as a standard broadband test signal;
the expression of the standard broadband test signal is as follows:
wherein,is a standard broadband test signal, ">The value range is +.>,/>Takes the value of the signal frequencyIn the range of->,/>For signal phase, the value range is +.>,/>Is->The phase correction control amount.
Further, the step of respectively obtaining the first synchronous sampling sequence and the second synchronous sampling sequence according to the second pulse signal and the standard broadband signal specifically includes:
setting the starting time, the ending time and the sampling frequency of the second pulse signal and the standard broadband signal to be the same;
and respectively sampling the second pulse signal and the standard broadband signal according to the starting time, the ending time and the sampling frequency to obtain a first synchronous sampling sequence and a second synchronous sampling sequence.
Further, the determining the reference value of the standard broadband test signal, and determining the corresponding second time in the second synchronous sampling sequence according to the reference value and the first time, specifically includes:
selecting a standard broadband test signal value of the standard broadband test signal at the starting moment as a reference standard value;
determining each sampling signal value meeting the preset condition in the second synchronous sampling sequence according to the reference value;
and calculating the difference value between the sampling time corresponding to each sampling signal value and the first time, and selecting the sampling time with the minimum difference value as the second time.
In a second aspect, the present invention further provides a control device for an output phase of a broadband synchronization signal source, including:
the first signal output module is used for setting a main clock signal source to output a second pulse signal;
the second signal output module is used for setting parameters of the broadband synchronous signal source and outputting a standard broadband test signal;
the synchronous sampling module is used for respectively acquiring a first synchronous sampling sequence and a second synchronous sampling sequence according to the second pulse signal and the standard broadband test signal;
the first time determining module is used for determining the sampling time corresponding to any rising edge signal in the first synchronous sampling sequence as a first time;
the second moment determining module is used for 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;
the phase correction calculation module is used for calculating and outputting a phase correction control quantity according to the first moment and the second moment;
the phase correction repeated calculation module is used for repeating the second signal output module, the synchronous sampling module, the first moment determining module, the second moment determining module and the phase correction calculation module until the number of the acquired phase correction control amounts is larger than a preset threshold value if the number of the acquired phase correction control amounts is smaller than the preset threshold value;
and the final phase correction determining module is used for obtaining a final phase correction control quantity according to a plurality of phase correction control quantities and obtaining a corrected standard broadband test signal according to the final phase correction control quantity if the quantity of the obtained phase correction control quantities is larger than a preset threshold value.
In a third aspect, the present invention also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of controlling the output phase of any one of the broadband synchronization signal sources of the first aspect.
In a fourth aspect, the present invention also provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor executes the control method of the output phase of the broadband synchronization signal source in the first aspect when executing the computer program.
The beneficial effects of adopting above-mentioned technical scheme are: based on the existing broadband synchronous signal source, the invention obtains a first synchronous sampling sequence and a second synchronous sampling sequence by simultaneously sampling the second pulse signal and the standard broadband test signal, respectively obtains a plurality of phase correction control amounts according to the first synchronous sampling sequence and the second synchronous sampling sequence, and obtains the final phase correction control amount by obtaining the average value of the plurality of phase correction control amounts, thereby obtaining the corrected standard broadband test signal. Through the technical means, on the hardware structure based on the existing broadband synchronous signal source completely, high-precision phase output is realized, so that the broadband detection application requirement of the novel power system is met.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a schematic diagram of a method for controlling the output phase of a wideband synchronization signal source according to one embodiment of the present disclosure;
FIG. 2 is a flow chart of a method for controlling the output phase of a wideband synchronization signal source according to one embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a control system for the output phase of a wideband synchronization signal source according to one embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a preset condition for extracting a sampling signal value in a second synchronous sampling sequence according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a first synchronous sampling sequence and a second synchronous sampling sequence when a first phase correction control amount is obtained according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a first synchronous sampling sequence and a second synchronous sampling sequence when a second phase correction control amount is obtained according to an embodiment of the present application;
fig. 7 is a schematic diagram of a control device for the output phase of a wideband synchronization signal source according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention. In order to more specifically describe the present invention, the method, apparatus and storage medium for controlling the output phase of the wideband synchronization signal source provided by the present invention are specifically described below with reference to the accompanying drawings.
Along with the construction and development of a novel power system, the application of a power electronic technology in a power grid is wider and wider, each link of the power system presents the power electronic characteristic, and the nonlinear characteristic is enhanced. The phenomenon of wide frequency oscillations in current power systems is a new problem, the oscillation frequency range is between 5Hz and 2500Hz, and is difficult to be observably measured in practice. The broadband measurement technology and product research and development are important nodes for solving the broadband oscillation problem, and the most central problem in the important nodes is a broadband synchronous signal source which lacks high-precision phase output capability.
In this regard, the present invention provides a method for controlling the output phase of a wideband synchronization signal source, which is used to output a wideband synchronization signal with a high-precision phase without changing a hardware device, and is described by taking the application of the method to a terminal device as an example, and the method is combined with a schematic diagram of a control method for the output phase of a wideband synchronization signal source shown in fig. 1 and a schematic diagram of a control method for the output phase of a wideband synchronization signal source shown in fig. 2.
The control method of the broadband synchronous signal source output phase of the invention is also provided with a corresponding control system of the broadband synchronous signal source output phase, and referring to fig. 3, the system comprises a satellite antenna, a main clock signal source, a broadband synchronous signal source and a sampling device. The satellite antenna is a SYN108 type Beidou/GPS dual-mode time service antenna and is used for providing satellite signals for a main clock signal source; the master clock signal source is SYN2411 type IEEE1588 clock, which is used for receiving satellite signals and outputting synchronous clock signals and second pulse signals at the same time; the broadband synchronous signal source is an LDDL-PMU430 type three-phase high-frequency harmonic synchronous signal source and is used for generating a standard broadband test signal; the sampling device is a DS0-X3024A digital oscilloscope and is used for synchronously sampling the second pulse signal and the standard broadband test signal.
The application scene of the control method of the broadband synchronous signal source output phase is provided, the application scene comprises the terminal equipment provided by the embodiment, the terminal equipment comprises but is not limited to a smart phone and computer equipment, and the computer equipment can be at least one of a desktop computer, a portable computer, a laptop computer, a mainframe computer, a tablet computer and the like. The user operates the terminal device to obtain the corrected standard wideband test signal, and the specific process is shown in the embodiment of the control method of the wideband synchronization signal source output phase.
Step S101, a main clock signal source is set to output a second pulse signal.
Wherein the pulse-per-second signal is specifically a 1pps pulse-per-second signal. The main clock signal source of the embodiment is also used as the synchronous clock signal of the broadband synchronous signal source, so that the link structure of the system is simplified.
Step S102, parameters of the broadband synchronous signal source are set, and a standard broadband test signal is output.
The parameters of the broadband synchronous signal source comprise signal amplitude, signal frequency and signal phase, and the standard triangular wave signal is output as a standard broadband test signal by setting the signal amplitude, the signal frequency and the signal phase of the broadband synchronous signal source, and the specific expression is as follows:
wherein the method comprises the steps of the process comprises,is a standard broadband test signal, ">The value range is +.>,/>The value range is +.>,/>For signal phase, the value range is +.>,/>For time (I)>Is->The phase correction control amount.
Step S103, respectively obtaining a first synchronous sampling sequence and a second synchronous sampling sequence according to the second pulse signal and the standard broadband test signal.
Setting the starting time, the ending time and the sampling frequency of the second pulse signal and the standard broadband signal to be the same;
respectively sampling the second pulse signal and the standard broadband signal according to the starting time, the ending time and the sampling frequency to obtain a first synchronous sampling sequence and a second synchronous sampling sequence, and marking the first synchronous sampling sequence asThe second synchronous sampling sequence is recorded asWherein/>For the total number of samples of the sampling sequence, +.>Indicating that the synchronous sampling sequence corresponds to +.>Acquisition procedure of individual phase correction control amounts, +.>Is a constant greater than 0->For sampling time, +.>Is->Sampled signal value of time-of-second pulse signal, +.>Is->Sampling signal values of the time standard broadband test signal.
Step S104, determining the sampling time corresponding to any rising edge signal in the first synchronous sampling sequence as the first time.
Wherein, in the first synchronous sampling sequenceIn (2) optionally determining a rising edge signal +.>Rising edge signal +.>Corresponding sampling time +.>Marked as first moment->
The rising edge signalThe judgment basis of (1) is as follows: />
Step S105, determining a reference value of the standard broadband test signal, and determining a corresponding second time in the second synchronous sampling sequence according to the reference value and the first time.
The step S105 specifically includes:
step S201: selecting the standard broadband test signalAt the start time, i.e.The standard broadband test signal value is a reference value, recorded as +.>,/>Is a reference value.
Step S202: according to the reference valueDetermining each sampling signal value meeting the preset condition in the second synchronous sampling sequence, wherein the preset condition can be seen in figure 4, and the obtained sequence of each sampling signal value meeting the preset condition can be recorded as +.>Wherein->
Step S203: and calculating the difference value between the sampling time corresponding to each sampling signal value and the first time, and selecting the sampling time with the minimum difference value as the second time. The specific expression of the difference between the sampling time and the first time corresponding to each sampling signal value is:
for the difference between the sampling time and the first time corresponding to the sampled signal value, < >>The sampling time corresponding to the sampled signal value.
Step S106, calculating and outputting the phase correction control quantity according to the first time and the second time.
The specific expression of the phase correction control amount is as follows:
wherein,is->The control amount of the phase correction +.>Signal frequency of standard broadband test signal, +.>For the first moment, +.>Is the second moment.
Step S107, if the number of the obtained phase correction control amounts is smaller than the preset threshold, repeating the steps S102-S106 until the number of the obtained phase correction control amounts is larger than the preset threshold.
The preset threshold is a constant larger than 1, can be determined according to the phase correction precision of the broadband test signal, and is generally 3-5. The step S107 is repeated for a plurality of times to obtain the phase correction control quantity, and the final phase correction control quantity with higher precision and more accuracy can be obtained by calculating according to a plurality of phase correction control quantities, so that the correction of the standard broadband test signal is realized.
Step S108, if the number of the obtained phase correction control amounts is larger than a preset threshold value, obtaining a final phase correction control amount according to a plurality of the phase correction control amounts, and obtaining a corrected standard broadband test signal according to the final phase correction control amount.
Specifically, the expression of the final phase correction control amount is:
wherein,for the final phase correction control quantity, +.>For a preset threshold value, ++>Is->The phase correction control amount.
By the control method of the broadband synchronous signal source output phase, synchronous sampling is carried out on the second pulse signal and the standard broadband test signal on the basis of the existing broadband synchronous signal source; and determining the rising edge time of a second pulse according to the synchronous sampling sequence of the second pulse signal, calculating a reference value according to the initial parameter of the broadband synchronous signal source, and finally calculating the correction control quantity of the output phase of the existing broadband synchronous signal source according to the obtained synchronous sampling sequence, thereby correcting the output phase and improving the accuracy of the output phase. The method is completely based on the hardware structure of the existing broadband synchronous signal source, the hardware is not required to be changed or replaced, and the high-precision phase output can be realized only by the method, so that the application requirements of broadband detection of a novel power system are completely met.
Further, the preset conditions in the step S202 are described in detail as follows:
when the broadband is standard test signalWhen the function is sinusoidal, there are the following four cases:
(1) If it isOr->Then->In this interval is a monotonically increasing function in the second synchronous sampling sequence +.>In the above, the sampled signal value satisfying the following condition +.>(/>Is an arbitrary constant->) So that->Sampling values meeting the conditions in the second synchronous sampling sequence form a sampling signal value set
(2) If it isThen->In this interval a monotonically decreasing function in the second synchronous sampling sequence +.>In the sampling signal values satisfying the following conditions(/>Is an arbitrary constant->) So that->The sample values in the second synchronous sample sequence meeting the conditions constitute a set of sample signal values>
(3) If it isThen->Maximum value is taken, and the second synchronous sampling sequence is adoptedIn the above, the sampled signal value satisfying the following condition +.>(/>Is an arbitrary constant value, and is used for the control of the power supply,) So that->The sample values in the second synchronous sample sequence meeting the conditions constitute a set of sample signal values>
(4) If it isThen->Taking the minimum value, sampling in the second synchronous sampling sequenceIn the above, the sampled signal value satisfying the following condition +.>(/>Is an arbitrary constant value, and is used for the control of the power supply,) So that->The sample values in the second synchronous sample sequence meeting the conditions constitute a set of sample signal values>
Similarly, when the standard broadband test signalWhen the function is cosine function, there are the following four cases:
(1) If it isThen->In this interval a monotonically decreasing function in the second synchronous sampling sequence +.>In the above, the sampled signal value satisfying the following condition +.>(/>Is an arbitrary constant->) So that->The sample values in the second synchronous sample sequence meeting the conditions constitute a set of sample signal values>
(2) If it isThen->In this interval is a monotonically increasing function in the second synchronous sampling sequence +.>In the sampling signal values satisfying the following conditions(/>Is an arbitrary constant->) So that->The sample values in the second synchronous sample sequence meeting the conditions constitute a set of sample signal values>
(3) If it isOr->Then->Maximum value is taken, in the second synchronous sampling sequence +.>In the above, the sampled signal value satisfying the following condition +.>(/>Is an arbitrary constant value, and is used for the control of the power supply,) So that->The sample values in the second synchronous sample sequence meeting the conditions constitute a set of sample signal values>
If it isThen->Taking the minimum value, sampling in the second synchronous sampling sequenceIn the above, the sampled signal value satisfying the following condition +.>(/>Is an arbitrary constant value, and is used for the control of the power supply,) So that->The sample values in the second synchronous sample sequence meeting the conditions constitute a set of sample signal values>
In order to better illustrate the control method of the broadband synchronous signal source output phase of the invention, specific examples are introduced for illustration, specifically:
in step S301, the master clock signal source is set to output a 1pps second pulse signal.
Step S302, setting the signal amplitude of the broadband synchronous signal source as 10V, the signal frequency as 1000Hz, the signal phase as 270, and the broadband synchronous signal source as sine wave signal, the specific expression of the outputted standard broadband test signal is:
step S303, setting the sampling frequency to 200kHz, namely, sampling time interval 5, wherein the rising edge moment of the second pulse is 0 time reference, the sampling moment is negative before the time reference, and the sampling moment is positive after the time reference; the total sampling duration is 5ms, and the second pulse signal and the standard broadband test signal are synchronously sampled to respectively obtain a first synchronous sampling sequence and a second synchronous sampling sequence, wherein the length of the obtained sampling sequence is 1000 points. The partial sample sequence before and after the 0 time reference is illustrated herein with reference to fig. 5.
Step S304 due toSample signal value +.>The corresponding sampling moment is 0 moment, i.e. +.>
Step S305, since the standard broadband test signal is cosine function, andselect to satisfy->The sequence of sampled signal values that will satisfy the condition is:
,/>,/>,/>
comparing the difference value between the sampling time corresponding to the sampling signal value and the first time to obtain the time of the sampling signal valueThe difference is smallest and therefore the second moment +.>
Step S306, calculating a phase correction control amount
Step S307, if the number of the obtained phase correction control amounts is smaller than the preset threshold, repeating the steps S302-S306 until the number of the obtained phase correction control amounts is larger than the preset threshold.
When the second phase correction control quantity is obtained, the specific expression of the output standard broadband test signal is as follows:the first synchronous sampling sequence and the second synchronous sampling sequence are specifically shown in fig. 6, and the sampling signal value sequence meeting the condition in the second synchronous sampling sequence is as follows:,/>,/>,/>and thus get the second moment +.>The second phase correction control amount is +.>
Step S308, obtaining a final phase correction control amount according to the two phase correction control amounts, wherein the final phase correction control amount is as follows:and correcting the standard broadband test signal according to the final phase correction control quantity.
It should be understood that, although the steps in the flowcharts of fig. 1-3 are shown in order as indicated by the arrow, these steps are not necessarily performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps of fig. 1-3 may include multiple sub-steps or sub-stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of other steps or sub-steps or stages of other steps.
The embodiment of the invention describes the control method of the output phase of the broadband synchronous signal source in detail, and the method disclosed by the invention can be realized by adopting various types of equipment, so the invention also discloses a control device of the output phase of the broadband synchronous signal source corresponding to the method, and a specific embodiment is given below for detail with reference to fig. 7.
The first signal output module 401 is configured to output, for setting the master clock signal source to output a second pulse signal.
The second signal output module 402 is configured to set parameters of the wideband synchronization signal source and output a standard wideband test signal.
And the synchronous sampling module 403 is configured to obtain a first synchronous sampling sequence and a second synchronous sampling sequence according to the second pulse signal and the standard broadband test signal, respectively.
The first timing determining module 404 is configured to determine a sampling timing corresponding to any rising edge signal in the first synchronous sampling sequence as a first timing.
And a second time determining module 405, 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.
A phase correction calculation module 406 for calculating and outputting a phase correction control amount according to the first time and the second time.
The phase correction repetition calculation module 407 is configured to repeat the second signal output module, the synchronous sampling module, the first time determining module, the second time determining module, and the phase correction calculation module until the number of the acquired phase correction control amounts is greater than a preset threshold value if the number of the acquired phase correction control amounts is less than the preset threshold value.
The final phase correction determining module 408 is configured to obtain a final phase correction control amount according to a plurality of the phase correction control amounts if the number of the obtained phase correction control amounts is greater than a preset threshold, and obtain a corrected standard broadband test signal according to the final phase correction control amount.
The control device for the output phase of the wideband synchronization signal source may be all referred to above for limitation of the method, and will not be described herein. Each of the modules in the above-described apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of the processor of the terminal device, or may be stored in software in the memory of the terminal device, so that the processor invokes and executes the operations corresponding to the above modules.
In one embodiment, the present invention further provides a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the steps of the method for controlling the output phase of a broadband synchronization signal source.
The computer readable storage medium may 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 comprises a non-transitory computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium has storage space for program code to perform any of the method steps described above. These program code can be read from or written to one or more computer program products, which can be compressed in a suitable form.
In one embodiment, the present invention provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor executes the control method of the broadband synchronization signal source output phase when executing the computer program.
The computer device includes a memory, a processor, and one or more computer programs, wherein the one or more computer programs may be stored in the memory and configured to be executed by the one or more processors, and one or more application programs configured to perform the control method of the broadband synchronization signal source output phase described above.
The processor may include one or more processing cores. The processor uses various interfaces and lines to connect various portions of the overall computer device, perform various functions of the computer device, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in memory, and invoking data stored in memory. Alternatively, the processor may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), a report validator of buried point data (Graphics Processing Unit, GPU), and a modem. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor and may be implemented solely by a single communication chip.
The Memory may include random access Memory (Random Access Memory, RAM) or Read-Only Memory (rom). The memory may be used to store instructions, programs, code sets, or instruction sets. The memory may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like. The storage data area may also store data created by the terminal device in use, etc.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. The control method of the broadband synchronous signal source output phase is characterized by comprising the following steps:
step S101, a main clock signal source is set to output a second pulse signal;
step S102, setting parameters of a broadband synchronous signal source and outputting a standard broadband test signal;
step S103, respectively obtaining a first synchronous sampling sequence and a second synchronous sampling sequence according to the second pulse signal and the standard broadband test signal;
step S104, determining the sampling time corresponding to any rising edge signal in the first synchronous sampling sequence as a first time;
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;
in step S106 of the process of the present invention, calculating and outputting a phase correction control amount according to the first time and the second time;
step S107, if the number of acquired phase correction control amounts is smaller than the preset threshold, repeating the steps S102-S106 until the number of the acquired phase correction control amounts is greater than a preset threshold;
step S108, if the number of the obtained phase correction control amounts is larger than a preset threshold value, obtaining a final phase correction control amount according to a plurality of the phase correction control amounts, and obtaining a corrected standard broadband test signal according to the final phase correction control amount;
the determining the reference value of the standard broadband test signal, and determining the corresponding second time in the second synchronous sampling sequence according to the reference value and the first time, specifically includes:
selecting a standard broadband test signal value of the standard broadband test signal at the starting moment as a reference standard value;
determining each sampling signal value meeting the preset condition in the second synchronous sampling sequence according to the reference value;
and calculating the difference value between the sampling time corresponding to each sampling signal value and the first time, and selecting the sampling time with the minimum difference value as the second time.
2. The method of claim 1, wherein the pulse-per-second signal is a 1pps pulse-per-second signal.
3. The method for controlling output phase of wideband synchronization signal source as claimed in claim 2, wherein the setting parameters of wideband synchronization signal source outputs standard wideband test signal, specifically:
setting amplitude parameters, frequency parameters and phase parameters of a broadband synchronous signal source, and outputting a standard triangular wave signal as a standard broadband test signal;
the expression of the standard broadband test signal is as follows:
wherein,is a standard broadband test signal, ">Takes the value of the signal amplitudeIn the range of->,/>The value range is +.>,/>For signal phase, the value range is +.>,/>For time (I)>Is->The phase correction control amount.
4. The method for controlling the output phase of a wideband synchronization signal source according to claim 3, wherein the first synchronization sampling sequence and the second synchronization sampling sequence are respectively obtained according to the second pulse signal and the standard wideband signal, specifically:
setting the starting time, the ending time and the sampling frequency of the second pulse signal and the standard broadband signal to be the same;
and respectively sampling the second pulse signal and the standard broadband signal according to the starting time, the ending 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 wideband synchronization signal source according to claim 1, wherein the specific expression for calculating and outputting the phase correction control amount according to the first time and the second time is:
wherein,is->The control amount of the phase correction +.>For signal frequency, +.>For the first moment, +.>Is the second moment.
6. The method for controlling output phase of wideband synchronization signal source as claimed in claim 5, wherein said obtaining final phase correction control amount according to a plurality of said phase correction control amounts comprises:
wherein,for the final phase correction control quantity, +.>For a preset threshold value, ++>Is->The phase correction control amount.
7. A control device for the output phase of a broadband synchronous signal source, comprising:
the first signal output module is used for setting a main clock signal source to output a second pulse signal;
the second signal output module is used for setting parameters of the broadband synchronous signal source and outputting a standard broadband test signal;
the synchronous sampling module is used for respectively acquiring a first synchronous sampling sequence and a second synchronous sampling sequence according to the second pulse signal and the standard broadband test signal;
the first time determining module is used for determining the sampling time corresponding to any rising edge signal in the first synchronous sampling sequence as a first time;
the second moment determining module is used for 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;
the phase correction calculation module is used for calculating and outputting a phase correction control quantity according to the first moment and the second moment;
a phase correction repetition calculation module for calculating the number of phase correction control amounts if the number of phase correction control amounts obtained is smaller than a preset threshold, repeating the second signal output module, the synchronous sampling module, the first moment determining module, the second moment determining module and the phase correction calculating module until the number of the acquired phase correction control amounts is larger than a preset threshold value;
a final phase correction determining module, configured to, if the number of acquired phase correction control amounts is greater than a preset threshold, obtaining a final phase correction control quantity according to a plurality of phase correction control quantities, and obtaining a corrected standard broadband test signal according to the final phase correction control quantity;
the determining the reference value of the standard broadband test signal, and determining the corresponding second time in the second synchronous sampling sequence according to the reference value and the first time, specifically includes:
selecting a standard broadband test signal value of the standard broadband test signal at the starting moment as a reference standard value;
determining each sampling signal value meeting the preset condition in the second synchronous sampling sequence according to the reference value;
and calculating the difference value between the sampling time corresponding to each sampling signal value and the first time, and selecting the sampling time with the minimum difference value as the second time.
8. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor realizes the steps of the method for controlling the output phase of a broadband synchronization signal source according to any one of claims 1-6.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, performs the method of controlling the output phase of the broadband synchronization signal source according to any one of claims 1-6.
CN202311460419.0A 2023-11-06 2023-11-06 Control method and device for broadband synchronous signal source output phase and storage medium Active CN117200766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311460419.0A CN117200766B (en) 2023-11-06 2023-11-06 Control method and device for broadband synchronous signal source output phase and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311460419.0A CN117200766B (en) 2023-11-06 2023-11-06 Control method and device for broadband synchronous signal source output phase and storage medium

Publications (2)

Publication Number Publication Date
CN117200766A CN117200766A (en) 2023-12-08
CN117200766B true CN117200766B (en) 2024-02-23

Family

ID=88994577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311460419.0A Active CN117200766B (en) 2023-11-06 2023-11-06 Control method and device for broadband synchronous signal source output phase and storage medium

Country Status (1)

Country Link
CN (1) CN117200766B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012114716A (en) * 2010-11-25 2012-06-14 Renesas Electronics Corp Tdc device and method of calibrating tdc
CN106249016A (en) * 2015-06-11 2016-12-21 安立股份有限公司 Sample circuit, the method for sampling, sampling oscilloscope and method for displaying waveform
CN110581701A (en) * 2018-06-07 2019-12-17 爱思开海力士有限公司 asymmetric pulse width comparator circuit and clock phase correction circuit comprising same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012114716A (en) * 2010-11-25 2012-06-14 Renesas Electronics Corp Tdc device and method of calibrating tdc
CN106249016A (en) * 2015-06-11 2016-12-21 安立股份有限公司 Sample circuit, the method for sampling, sampling oscilloscope and method for displaying waveform
CN110581701A (en) * 2018-06-07 2019-12-17 爱思开海力士有限公司 asymmetric pulse width comparator circuit and clock phase correction circuit comprising same

Also Published As

Publication number Publication date
CN117200766A (en) 2023-12-08

Similar Documents

Publication Publication Date Title
JP7194868B1 (en) Methods and apparatus for detecting yaw anomalies with respect to wind, and devices and storage media thereof
CN106933734A (en) A kind of physical layer software automated testing method and device
CA2927999A1 (en) Performance analysis of power grid monitors
CN103441762A (en) ADC dynamic parameter testing method based on Blackman window three-spectrum-line interpolation
CN117200766B (en) Control method and device for broadband synchronous signal source output phase and storage medium
CN102928805B (en) Multi-epitope digitalized electrical energy meter tester
KR101423653B1 (en) Measuring apparatus and measuring method
CN105575414A (en) Generating method and device of lyric file
CN111130681B (en) Method and device for determining noise transfer characteristics
CN102103163B (en) Method for measuring arbitrary waveform estimated based on synchronous lock phase and half-wave
US9332450B2 (en) Unit testing and analysis of multiple UUTs
CN111580427A (en) FPGA-based waveform generation method, device, equipment and storage medium
CN104483546B (en) Spectrum analysis method of FPGA (Field Programmable Gate Array) digital logic signal
CN102749509A (en) Signal sampling test method
CN109117408B (en) Serial protocol signal generation method based on signal generator
CN109142866A (en) A kind of humorous phase angle analysis method based on linear correction algorithm
CN113156357A (en) Segmented current transformer correction method and device, electronic device and storage medium
CN111638905A (en) Version number generation method and device, electronic equipment and readable storage medium
CN110707744A (en) Method and device for monitoring power generation state of wind power plant cluster and storage medium
CN213986800U (en) Error magnitude traceability device of digital direct current electric energy meter
CN113007039B (en) Wind power plant inertia response testing method and device
CN114355039A (en) Detection method and device for compensating phase angle, electronic equipment and medium
Lim et al. Development of PRPS conversion algorithm and generator using PRPD pattern of underground power transmission cable
CN109841222B (en) Audio communication method, communication apparatus, and storage medium
CN117543559A (en) New energy station admittance aggregation method, device, storage medium and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant