A voltage sinusoidal waveform differential sub-sampling method and device based on a PJVS, a terminal device, and a storage medium

By combining superposition and difference data analysis with subtraction and phase relationship fitting, the problem of inaccurate sampling time in high-frequency signal measurement of PJVS was solved, and high-precision high-frequency sinusoidal voltage signal measurement and calibration were achieved.

CN120233138BActive Publication Date: 2026-11-10MEASUREMENT CENT OF GUANGDONG POWER GRID CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510320525.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-18
Publication Date
2026-11-10
Estimated Expiration
2045-03-18

Smart Images

  • Figure CN120233138B_ABST
    Figure CN120233138B_ABST
Patent Text Reader

Abstract

The application discloses a voltage sinusoidal waveform differential sub-sampling method and device based on PJVS, a terminal equipment and a storage medium, and relates to the technical field of voltage waveform calibration. The method comprises the following steps: obtaining a to-be-tested sinusoidal voltage signal and a sinusoidal step wave quantum voltage signal; the sinusoidal step wave quantum voltage signal is generated based on the PJVS; adjacent sampling data of a sampling data array obtained by superimposing the to-be-tested sinusoidal voltage signal and the sinusoidal step wave quantum voltage signal are subtracted to obtain a difference value data array; the first switching time of a quantum voltage step and the starting quantum voltage step number of the sinusoidal step wave quantum voltage signal are judged according to the difference value data array; target sinusoidal voltage waveform data obtained by performing a subtraction operation on a design level value corresponding to the sinusoidal step wave quantum voltage signal according to the first switching time of the quantum voltage step and the starting quantum voltage step number is fitted to obtain a finally calibrated sinusoidal voltage signal. Through implementation of the application, the accuracy of voltage waveform calibration is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of high-frequency signal processing and sampling technology, and in particular to a voltage sinusoidal waveform differential sampling method, device, terminal equipment and storage medium based on PJVS. Background Technology

[0002] The Programmable Josephson Voltage Standard (PJVS) can be programmed to output a sufficiently accurate quantized step-wave AC voltage signal waveform, which can be a sinusoidal voltage signal or other periodic AC voltage signals. However, due to the transient process and Gibbs effect, the step-wave quantum voltage signal output by PJVS exhibits fluctuations at the beginning and end of each quantum voltage step, thus lacking quantum precision. Therefore, PJVS is only suitable for measuring and calibrating low-frequency AC voltage signals. Currently, to measure and calibrate high-frequency AC voltage signals using PJVS, the high-frequency sinusoidal voltage signal to be measured is superimposed with the low-frequency step-wave quantum voltage standard signal output by PJVS, and the superimposed signal is sampled at a specified time. In practice, this method requires precise knowledge of the acquisition time for sampling the superimposed voltage signal using a digital-to-analog converter. Existing technology relies on an ideal trigger time, but the lack of precise quantization methods for the sampling time in engineering implementation limits the accuracy of high-frequency calibration. Summary of the Invention

[0003] This invention provides a voltage sinusoidal waveform differential sampling method, device, terminal equipment, and storage medium based on PJVS, which can effectively solve the problem that existing technologies require known acquisition time of superimposed voltage signals and cannot automatically achieve voltage signal measurement and calibration.

[0004] An embodiment of the present invention provides a voltage sinusoidal waveform difference sampling method based on PJVS, comprising:

[0005] Acquire the sinusoidal voltage signal to be measured and the sinusoidal stepped-wave quantum voltage signal; wherein, the sinusoidal stepped-wave quantum voltage signal is generated based on PJVS;

[0006] The sinusoidal voltage signal to be measured and the sinusoidal step wave quantum voltage signal are superimposed to obtain a sampling data array;

[0007] The difference data array is obtained by subtracting the pairs of adjacent sampled data in the sampled data array;

[0008] The first switching time of the quantum voltage step of the sinusoidal stepped wave quantum voltage signal and the number of the starting quantum voltage step are determined based on the difference data array.

[0009] Based on the first switching time of the quantum voltage step and the number of the initial quantum voltage step, the design level value corresponding to the sinusoidal stepped quantum voltage signal is subtracted to obtain the target sinusoidal voltage waveform data after preliminary calibration.

[0010] Based on the phase relationship of the target sinusoidal voltage waveform data, the target sinusoidal voltage waveform data is fitted to obtain the final calibrated sinusoidal voltage signal.

[0011] Furthermore, the ratio of the frequency of the sinusoidal voltage signal to be measured to the frequency of the sinusoidal stepped quantum voltage signal is a positive integer; the amplitude of the sinusoidal voltage signal to be measured is the same as the amplitude of the sinusoidal stepped quantum voltage signal.

[0012] Further, the sinusoidal voltage signal to be measured and the sinusoidal stepped quantum voltage signal are superimposed to obtain a sampling data array, including:

[0013] The sinusoidal voltage signal to be measured and the sinusoidal step wave quantum voltage signal are superimposed to obtain a superimposed signal;

[0014] The superimposed signal is collected according to the preset sampling frequency and the preset total number of samples to obtain a sampled data array.

[0015] Further, determining the first switching moment of the quantum voltage step of the sinusoidal stepped wave quantum voltage signal based on the difference data array includes:

[0016] The standard deviation is calculated based on the difference data in the difference data array;

[0017] The judgment threshold is set based on the standard deviation.

[0018] Traverse the difference data array, take the difference data in the difference data array that is greater than the judgment threshold as the target difference, and form a first array based on the target difference;

[0019] Based on each target difference in the first array and the preset total number of quantum voltage step samples, a modulo operation is performed to obtain several remainders, and a second array is formed based on these remainders.

[0020] The average value is calculated based on the remainders in the second array, and the average value is used as the sampling data number corresponding to the first switching moment of the quantum voltage step.

[0021] The first switching time of the quantum voltage step is calculated based on the sampling data number and the preset sampling frequency.

[0022] Further, determining the starting quantum voltage step number of the sinusoidal stepped wave quantum voltage signal based on the difference data array includes:

[0023] Based on the difference data array and the amplitude of the sinusoidal voltage signal to be measured, an approximate value of the quantum voltage step level is calculated.

[0024] The design level values ​​of all quantum voltage steps within the fundamental period corresponding to the sinusoidal stepped quantum voltage signal are used as the third array;

[0025] The starting quantum voltage step number is determined by comparing the approximate value of the quantum voltage step level with the design level value in the third array.

[0026] Further, based on the first switching time of the quantum voltage step and the number of the initial quantum voltage step, the design level value corresponding to the sinusoidal stepped quantum voltage signal is subtracted to obtain the target sinusoidal voltage waveform data after preliminary calibration, including:

[0027] Based on the first switching time of the quantum voltage step and the starting quantum voltage step number, determine the amplitude of the level change when switching between adjacent quantum voltage steps;

[0028] Based on the amplitude of the level change, the sampled data in the sampled data array is filtered to obtain the sampled data of the steady region on the corresponding quantum voltage step;

[0029] Subtract the design level value corresponding to the sinusoidal stepped wave quantum voltage signal from the sampled data of the stable region on the corresponding quantum voltage step to obtain the target sinusoidal voltage waveform data after preliminary calibration.

[0030] Further, based on the phase relationship of the target sinusoidal voltage waveform data, the target sinusoidal voltage waveform data is fitted to obtain the final calibrated sinusoidal voltage signal, including:

[0031] Based on the phase relationship of the target sinusoidal voltage waveform data, the target sinusoidal voltage waveform data is spliced ​​together to obtain the spliced ​​sinusoidal voltage signal;

[0032] The spliced ​​sinusoidal voltage signal is fitted to obtain the final calibrated sinusoidal voltage signal.

[0033] As an improvement to the above solution, another embodiment of the present invention provides a voltage sinusoidal waveform difference sampling device based on PJVS, comprising:

[0034] The signal acquisition module is used to acquire the sinusoidal voltage signal to be measured and the sinusoidal stepped quantum voltage signal; wherein, the sinusoidal stepped quantum voltage signal is generated based on PJVS;

[0035] The signal superposition module is used to superimpose the sinusoidal voltage signal to be measured and the sinusoidal stepped quantum voltage signal to obtain a sampling data array;

[0036] The difference data determination module is used to obtain the difference data array by subtracting the pairs of adjacent sampled data in the sampled data array;

[0037] The quantum voltage step determination module is used to determine the first switching time of the quantum voltage step of the sinusoidal stepped wave quantum voltage signal and the starting quantum voltage step number based on the difference data array.

[0038] The preliminary calibration module is used to subtract the design level value corresponding to the sinusoidal stepped quantum voltage signal based on the first switching time of the quantum voltage step and the number of the initial quantum voltage step, so as to obtain the target sinusoidal voltage waveform data after preliminary calibration.

[0039] The fitting and calibration module is used to fit the target sinusoidal voltage waveform data according to the phase relationship of the target sinusoidal voltage waveform data to obtain the final calibrated sinusoidal voltage signal.

[0040] Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a voltage sinusoidal waveform differential sampling method based on PJVS as described in the above embodiments.

[0041] Another embodiment of the present invention provides a computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform a voltage sinusoidal waveform differential sampling method based on PJVS as described in the above embodiment.

[0042] By implementing this invention, at least the following beneficial effects are achieved:

[0043] This invention provides a method, apparatus, terminal device, and storage medium for differential sampling of sinusoidal voltage waveforms based on PJVS. The method superimposes the sinusoidal voltage signal to be measured with a sinusoidal stepped quantum voltage signal generated based on PJVS. Subsequent analysis of the difference data array accurately determines the first switching time and initial quantum voltage step number of the quantum voltage step. Based on this, subtracting the design level value corresponding to the sinusoidal stepped quantum voltage signal effectively eliminates systematic errors such as fixed deviations and noise interference that may exist in the measurement. Phase-based fitting better captures signal characteristics and reduces measurement errors caused by signal distortion, noise, and other factors, thereby achieving high-precision measurement and calibration. Without needing to know the precise sampling trigger time of the analog-to-digital converter (ADC), the method automatically and accurately determines the number of the initial quantum voltage step and the first switching time of the quantum voltage step, thus effectively completing and realizing the measurement and calibration of high-frequency sinusoidal voltage signals. Sampling of sinusoidal voltage signals is achieved while improving high-frequency calibration accuracy. Attached Figure Description

[0044] Figure 1 This is a schematic flowchart of a voltage sinusoidal waveform differential sampling method based on PJVS provided in an embodiment of the present invention;

[0045] Figure 2 This is a flowchart of adaptive differential numerator sampling of high-frequency sinusoidal voltage waveform provided in an embodiment of the present invention;

[0046] Figure 3 This is a schematic diagram of superimposed signals provided in an embodiment of the present invention;

[0047] Figure 4 This is a waveform diagram of the difference between adjacent sample numbers in a sampled data array provided in an embodiment of the present invention;

[0048] Figure 5 This is a schematic diagram of the final calibrated high-frequency sinusoidal voltage waveform provided in an embodiment of the present invention;

[0049] Figure 6 This is a schematic diagram of a voltage sinusoidal waveform differential sampling device based on PJVS provided in an embodiment of the present invention. Detailed Implementation

[0050] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0051] See Figure 1 This is a flowchart illustrating a voltage sinusoidal waveform difference numerator sampling method based on PJVS according to an embodiment of the present invention, including:

[0052] S1. Acquire the sinusoidal voltage signal to be measured and the sinusoidal stepped-wave quantum voltage signal; wherein, the sinusoidal stepped-wave quantum voltage signal is generated based on PJVS;

[0053] Specifically, the ratio of the frequency of the sinusoidal voltage signal to be measured to the frequency of the sinusoidal stepped quantum voltage signal is a positive integer; the amplitude of the sinusoidal voltage signal to be measured is the same as the amplitude of the sinusoidal stepped quantum voltage signal.

[0054] In a preferred embodiment of the present invention, the sinusoidal voltage signal to be measured is a high-frequency sinusoidal voltage signal with an amplitude of V. p The frequency is f sine The amplitude of the sinusoidal stepped-wave quantum voltage signal output by PJVS is V. p The frequency is f PJVS Frequency f sine With frequency f PJVS The ratio should be a positive integer. Essentially, the frequencies of the two signals are multiples of each other, so that the high-frequency sinusoidal voltage signal can be repeated continuously within one PJVS cycle.

[0055] S2. Superimpose the sinusoidal voltage signal to be measured and the sinusoidal stepped quantum voltage signal to obtain a sampling data array;

[0056] Specifically, the sinusoidal voltage signal to be measured and the sinusoidal stepped-wave quantum voltage signal are superimposed to obtain a sampling data array, including:

[0057] The sinusoidal voltage signal to be measured and the sinusoidal step wave quantum voltage signal are superimposed to obtain a superimposed signal;

[0058] The superimposed signal is collected according to the preset sampling frequency and the preset total number of samples to obtain a sampled data array.

[0059] In a preferred embodiment of the present invention, the amplitude of the PJVS output is V. p The frequency is f sine The high-frequency sinusoidal voltage signal (the sinusoidal voltage signal to be measured) and the amplitude of V p The frequency is f PJVS The sinusoidal stepped-wave quantum voltage signals are superimposed to obtain a superimposed signal; the sampling frequency f of the analog-to-digital converter is set. s Using a preset sampling frequency and a preset total number of samples N, the above superimposed signal is sampled to obtain a sampled data array U.

[0060] S3. Subtract the pairs of adjacent sampled data in the sampled data array to obtain the difference data array;

[0061] In a preferred embodiment of the present invention, based on the sampled data array U of the superimposed signal, the difference between each pair of adjacent sampled data in the array U is obtained to obtain the corresponding difference data array D.

[0062] S4. Determine the first switching time of the quantum voltage step of the sinusoidal stepped wave quantum voltage signal and the starting quantum voltage step number based on the difference data array.

[0063] Specifically, determining the first switching moment of the quantum voltage step of the sinusoidal stepped wave quantum voltage signal based on the difference data array includes:

[0064] The standard deviation is calculated based on the difference data in the difference data array;

[0065] The judgment threshold is set based on the standard deviation.

[0066] Traverse the difference data array, take the difference data in the difference data array that is greater than the judgment threshold as the target difference, and form a first array based on the target difference;

[0067] Based on each target difference in the first array and the preset total number of quantum voltage step samples, a modulo operation is performed to obtain several remainders, and a second array is formed based on these remainders.

[0068] The average value is calculated based on the remainders in the second array, and the average value is used as the sampling data number corresponding to the first switching moment of the quantum voltage step.

[0069] The first switching time of the quantum voltage step is calculated based on the sampling data number and the preset sampling frequency.

[0070] In a preferred embodiment of the present invention, the first array represents an array consisting of difference data greater than a judgment threshold in the difference data array; the second array represents an array consisting of the remainder between the target difference and the total number of quantum voltage step samples in the first array. The preset total number of quantum voltage step samples N... step This refers to the total number of sampled data points on a quantum voltage step, and its calculation formula is: Among them, T PJVS This refers to the fundamental period of the sinusoidal stepped quantum voltage signal output by the PJVS; M is the number of quantum voltage steps within one period of the sinusoidal stepped quantum voltage signal output by the PJVS. The first switching time t of the quantum voltage steps... jThis refers to the first switching moment of the quantum voltage step in the sinusoidal stepped wave quantum voltage signal after the start of data acquisition of the superimposed signal. The sampling data array U of the superimposed signal is divided pairwise by subtraction to obtain a difference data array D (array length N-1). The standard deviation is calculated based on the difference data in the difference data array, and then a judgment threshold D is set based on the standard deviation. up The difference data array D is traversed, and the difference data in the difference data array that are greater than the judgment threshold are taken as target differences. A first array is then formed based on the target differences, that is, the difference sample data exceeding the judgment threshold are selected as target differences to form the first array D. over Then, based on the first array D... over The difference between each target and the total number of samples N of the preset quantum voltage step are included. step Perform a modulo operation to obtain several remainders, and form a second array X based on these remainders, i.e., the second array X: X(i) = mod(D). over (i),N step The meaning of this formula is: D over Divide each element by N step Take the remainder and assign it to X(i). Calculate the average value X based on the remainders in the second array X. j and the average value X j X is the sampling data number corresponding to the first switching moment of the quantum voltage step. j The first switching time t with the quantum voltage step j The mathematical relationship between them is: That is, based on the sampled data number and the preset sampling frequency f s The first switching time t of the quantum voltage step was calculated. j .

[0071] Preferably, determining the starting quantum voltage step number of the sinusoidal stepped wave quantum voltage signal based on the difference data array includes:

[0072] Based on the difference data array and the amplitude of the sinusoidal voltage signal to be measured, an approximate value of the quantum voltage step level is calculated.

[0073] The design level values ​​of all quantum voltage steps within the fundamental period corresponding to the sinusoidal stepped quantum voltage signal are used as the third array;

[0074] The starting quantum voltage step number is determined by comparing the approximate value of the quantum voltage step level with the design level value in the third array.

[0075] In a preferred embodiment of the present invention, the third array represents the set of designed level values ​​of all quantum voltage steps within the fundamental period corresponding to the sinusoidal stepped quantum voltage signal. The starting quantum voltage step number refers to the number j of the starting quantum voltage step corresponding to the moment when the analog-to-digital converter is triggered to perform sampling. First, based on the difference data array and the amplitude of the sinusoidal voltage signal to be measured, the approximate level value V1 of the (j+1)th quantum voltage step and the approximate level value V2 of the (j+2)th quantum voltage step are calculated, i.e. Where max(U) represents taking the maximum value of array U; V p The amplitude of the high-frequency sinusoidal voltage signal (the sinusoidal voltage signal to be measured) is then used. Next, the designed level values ​​of all quantum voltage steps within one fundamental cycle of the PJVS output sinusoidal stepped quantum voltage signal are used to form the third array V. Then, by comparing V1 and V2 with the elements of the third array V containing the set quantum voltage step level values, as shown in the following formula, the starting quantum voltage step number j can finally be locked:

[0076] S5. Based on the first switching time of the quantum voltage step and the number of the initial quantum voltage step, subtract the design level value corresponding to the sinusoidal stepped quantum voltage signal to obtain the target sinusoidal voltage waveform data after preliminary calibration.

[0077] Specifically, based on the first switching time of the quantum voltage step and the number of the initial quantum voltage step, the design level value corresponding to the sinusoidal stepped quantum voltage signal is subtracted to obtain the target sinusoidal voltage waveform data after preliminary calibration, including:

[0078] Based on the first switching time of the quantum voltage step and the starting quantum voltage step number, determine the amplitude of the level change when switching between adjacent quantum voltage steps;

[0079] Based on the amplitude of the level change, the sampled data in the sampled data array is filtered to obtain the sampled data of the steady region on the corresponding quantum voltage step;

[0080] Subtract the design level value corresponding to the sinusoidal stepped wave quantum voltage signal from the sampled data of the stable region on the corresponding quantum voltage step to obtain the target sinusoidal voltage waveform data after preliminary calibration.

[0081] In a preferred embodiment of the present invention, the level change amplitude ΔV(m) characterizes the magnitude of the level change during the transition from the m-th quantum voltage step to the (m+1)-th quantum voltage step. The level change amplitude is used as the voltage limit V. limit Filter the sampled data in the sampled data array, V limit (m)=ΔV(m)

[0082] Among them, V limit (m) represents the limit range corresponding to the m-th quantum voltage step. The sampling data of the stable region on the quantum voltage step refers to the sampling data remaining after removing the sampling data affected by the transient process and Gibbs effect on each quantum voltage step. The sampling data of the stable region on the corresponding quantum voltage step is subtracted from the design level value of the corresponding quantum voltage step in the sinusoidal stepped quantum voltage signal to obtain the target sinusoidal voltage waveform data after preliminary calibration, that is, the high-frequency sinusoidal voltage waveform data with PJVS calibration traces.

[0083] S6. Fit the target sinusoidal voltage waveform data according to the phase relationship of the target sinusoidal voltage waveform data to obtain the final calibrated sinusoidal voltage signal.

[0084] Preferably, the target sinusoidal voltage waveform data is fitted according to the phase relationship of the target sinusoidal voltage waveform data to obtain the final calibrated sinusoidal voltage signal, including:

[0085] Based on the phase relationship of the target sinusoidal voltage waveform data, the target sinusoidal voltage waveform data is spliced ​​together to obtain the spliced ​​sinusoidal voltage signal;

[0086] The spliced ​​sinusoidal voltage signal is fitted to obtain the final calibrated sinusoidal voltage signal.

[0087] In a preferred embodiment of the present invention, by splicing according to phase relationships, different parts of the sinusoidal voltage waveform data can be accurately connected, avoiding waveform interruptions or discontinuities, thereby improving the integrity and continuity of the signal and making the spliced ​​sinusoidal voltage signal closer to the real sine wave. Fitting the spliced ​​signal can further optimize the signal shape and reduce errors and fluctuations caused by data acquisition, transmission, or other factors. The fitting process can find the ideal sine curve that best represents these data according to certain algorithms and criteria, thereby improving the accuracy and stability of the signal. After splicing and fitting processing, the final calibrated sinusoidal voltage signal is smoother and more regular, and has stronger anti-interference ability compared to the original data, which may contain noise or interference.

[0088] In another preferred embodiment of the invention, such as Figure 2 As shown, the measured high-frequency sinusoidal voltage signal with an amplitude of 0.849107V and a frequency of 100kHz is first superimposed with the sinusoidal stepped-wave quantum voltage signal with an amplitude of 0.849107V and a frequency of 1kHz output by the PJVS to synthesize a superimposed signal. Then, the sampling frequency of the digital-to-analog converter is set to 4MHz. Z40,000 sample data points were collected, and the sampling point number corresponding to the trigger moment was defined as 156. Based on the collected sample data U (length 4000), the first switching moment of the quantum voltage step was determined to be 11.5 μs, and the starting quantum step number was determined to be 2. Then, the array U was filtered to obtain the sample data of the stable region on the corresponding quantum voltage step, resulting in the array U. f, Next, the design level value of the corresponding quantum voltage step is subtracted to obtain high-frequency sinusoidal voltage waveform data with PJVS calibration traces. This data is then stitched together according to phase relationships to complete the measurement calibration of the measured signal. The superimposed signal of the measured high-frequency sinusoidal voltage signal with an amplitude of 0.849107V and a frequency of 100kHz and the sinusoidal stepped quantum voltage signal output by PJVS with an amplitude of 0.849107V and a frequency of 1kHz is shown below. Figure 3 As shown in (a), the detailed image of the superimposed signal is as follows: Figure 3 As shown in (b), the black line represents the sinusoidal stepped quantum voltage signal output by the PJVS, the red line represents the high-frequency sine wave, and the green line represents the composite waveform, i.e., the superimposed signal waveform. When the sampling data number is set to 156, the waveform plotted by subtracting adjacent samples from each other in the superimposed voltage signal sampling data array obtained under triggered acquisition conditions is shown below. Figure 4 As shown in (a), the detailed image is as follows: Figure 4 As shown in (b) Figure 4 The first spike in (a) corresponds to the first switching of the quantum voltage step. Figure 5 (a) is a high-frequency sinusoidal voltage waveform with PJVS calibration traces obtained by splicing and fitting according to the phase relationship of the measured high-frequency sinusoidal voltage. Figure 5 (b) shows the waveform of the corresponding fitting residual.

[0089] By implementing this embodiment, the sinusoidal voltage signal to be measured is superimposed with a sinusoidal stepped quantum voltage signal generated based on PJVS. Subsequent analysis of the difference data array allows for precise determination of the first switching moment and the initial quantum voltage step number. Based on this, subtracting the design level value corresponding to the sinusoidal stepped quantum voltage signal effectively eliminates systematic errors such as fixed deviations and noise interference that may exist in the measurement. Phase-based fitting better captures signal characteristics and reduces measurement errors caused by signal distortion, noise, and other factors, thereby achieving high-precision measurement and calibration. Without needing to know the precise sampling trigger time of the analog-to-digital converter (ADC), the number of the initial quantum voltage step and the first switching moment of the quantum voltage step are automatically and accurately determined. This effectively completes the measurement and calibration of high-frequency sinusoidal voltage signals, achieving improved high-frequency calibration accuracy while simultaneously sampling the sinusoidal voltage signal. The sinusoidal stepped voltage signal output by PJVS is superimposed on the measured high-frequency sinusoidal voltage signal. The resulting superimposed signal is then sampled at equal intervals at any given time. Based on the sampled data, the first switching time of the quantum voltage step and the number of the initial quantum voltage step are determined. Next, the voltage limit and the sampling data of the stable region on the quantum voltage step are determined, completing the precise selection of valid data in the superimposed signal sampling data array. Then, the sampling data corresponding to the stable region on each quantum voltage step that meets the voltage limit are subtracted from the design level value of the corresponding quantum voltage step to reconstruct the waveform data of the high-frequency sinusoidal signal. These data are then spliced ​​and fitted according to the phase relationship of the high-frequency sinusoidal voltage waveform, thus realizing the measurement and calibration of the high-frequency sinusoidal voltage signal based on PJVS. Simulation and physical experiment results show that this embodiment can automatically and accurately determine the number of the initial quantum voltage step and the first switching time of the quantum voltage step without needing to know the precise sampling trigger time of the analog-to-digital converter (ADC), thereby effectively completing and realizing the measurement and calibration of the high-frequency sinusoidal voltage signal.

[0090] See Figure 6 This is a schematic diagram of a voltage sinusoidal waveform difference sampling device based on PJVS according to an embodiment of the present invention, comprising:

[0091] The signal acquisition module is used to acquire the sinusoidal voltage signal to be measured and the sinusoidal stepped quantum voltage signal; wherein, the sinusoidal stepped quantum voltage signal is generated based on PJVS;

[0092] The signal superposition module is used to superimpose the sinusoidal voltage signal to be measured and the sinusoidal stepped quantum voltage signal to obtain a sampling data array;

[0093] The difference data determination module is used to obtain the difference data array by subtracting the pairs of adjacent sampled data in the sampled data array;

[0094] The quantum voltage step determination module is used to determine the first switching time of the quantum voltage step of the sinusoidal stepped wave quantum voltage signal and the starting quantum voltage step number based on the difference data array.

[0095] The preliminary calibration module is used to subtract the design level value corresponding to the sinusoidal stepped quantum voltage signal based on the first switching time of the quantum voltage step and the number of the initial quantum voltage step, so as to obtain the target sinusoidal voltage waveform data after preliminary calibration.

[0096] The fitting and calibration module is used to fit the target sinusoidal voltage waveform data according to the phase relationship of the target sinusoidal voltage waveform data to obtain the final calibrated sinusoidal voltage signal.

[0097] This invention provides a voltage sinusoidal waveform differential sampling device based on PJVS. The device acquires a sinusoidal voltage signal to be measured and a sinusoidal stepped quantum voltage signal using a signal acquisition module. The sinusoidal stepped quantum voltage signal is generated based on PJVS. A signal superposition module superimposes the sinusoidal voltage signal to be measured and the sinusoidal stepped quantum voltage signal to obtain a sampling data array. A difference data determination module calculates the difference between adjacent sampling data in the sampling data array to obtain a difference data array. A quantum voltage step determination module determines the first switching time and the starting quantum voltage step number of the quantum voltage step of the sinusoidal stepped quantum voltage signal based on the difference data array. Then, in a preliminary calibration module, the design level value corresponding to the sinusoidal stepped quantum voltage signal is subtracted based on the first switching time and the starting quantum voltage step number to obtain the target sinusoidal voltage waveform data after preliminary calibration. Finally, in a fitting calibration module, the target sinusoidal voltage waveform data is fitted based on its phase relationship to obtain the final calibrated sinusoidal voltage signal. By superimposing the sinusoidal voltage signal to be measured with a sinusoidal stepped quantum voltage signal generated based on PJVS, and subsequently analyzing the difference data array, the first switching time and the initial quantum voltage step number can be accurately determined. Based on this, subtracting the design level value corresponding to the sinusoidal stepped quantum voltage signal effectively eliminates systematic errors such as fixed deviations and noise interference that may exist in the measurement. Phase-based fitting better captures the signal characteristics and reduces measurement errors caused by signal distortion, noise, and other factors, thus achieving high-precision measurement and calibration. Without needing to know the precise sampling trigger time of the analog-to-digital converter (ADC), the number of the initial quantum voltage step and the first switching time of the quantum voltage step can be automatically and accurately determined, thereby effectively completing and realizing the measurement and calibration of high-frequency sinusoidal voltage signals. Sampling of sinusoidal voltage signals is achieved while improving high-frequency calibration accuracy.

[0098] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.

[0099] Those skilled in the art will understand that, for convenience and brevity, the specific working process of the device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0100] Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a voltage sinusoidal waveform differential sampling method based on PJVS as described in the above embodiments. The terminal device can be a desktop computer, laptop, handheld computer, cloud server, or other computing device. The terminal device may include, but is not limited to, a processor and a memory.

[0101] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting all parts of the terminal device via various interfaces and lines.

[0102] The memory can be used to store the computer program. The processor implements various functions of the terminal device by running or executing the computer program stored in the memory and calling data stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function, etc.; the data storage area may store data created based on the use of the mobile phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, RAM, plug-in hard disk, smart memory card (SMC), secure digital card (SD) card, flash memory card, at least one disk storage device, flash memory device or other volatile solid-state storage device.

[0103] Another embodiment of the present invention provides a computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform a voltage sinusoidal waveform differential sampling method based on PJVS as described in the above embodiment.

[0104] The storage medium is a computer-readable storage medium, and the computer program is stored in the computer-readable storage medium. When executed by a processor, the computer program can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.

[0105] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A voltage sinusoidal waveform difference sampling method based on PJVS, characterized in that, include: Acquire the sinusoidal voltage signal to be measured and the sinusoidal stepped quantum voltage signal; wherein, the sinusoidal stepped quantum voltage signal is generated based on PJVS; The sinusoidal voltage signal to be measured and the sinusoidal step wave quantum voltage signal are superimposed to obtain a sampling data array; The difference data array is obtained by subtracting the pairs of adjacent sampled data in the sampled data array; The first switching time of the quantum voltage step of the sinusoidal stepped wave quantum voltage signal and the number of the starting quantum voltage step are determined based on the difference data array. Based on the first switching time of the quantum voltage step and the starting quantum voltage step number, the sampling data of the steady region on the corresponding quantum voltage step is obtained. The design level value corresponding to the sinusoidal stepped quantum voltage signal is subtracted from the sampling data of the steady region on the corresponding quantum voltage step to obtain the target sinusoidal voltage waveform data after preliminary calibration. Based on the phase relationship of the target sinusoidal voltage waveform data, the target sinusoidal voltage waveform data is fitted to obtain the final calibrated sinusoidal voltage signal.

2. The voltage sinusoidal waveform difference sampling method based on PJVS as described in claim 1, characterized in that, The ratio of the frequency of the sinusoidal voltage signal to be measured to the frequency of the sinusoidal stepped quantum voltage signal is a positive integer; the amplitude of the sinusoidal voltage signal to be measured is the same as the amplitude of the sinusoidal stepped quantum voltage signal.

3. The voltage sinusoidal waveform difference sampling method based on PJVS as described in claim 2, characterized in that, The sinusoidal voltage signal to be measured and the sinusoidal step wave quantum voltage signal are superimposed to obtain a sampled data array, including: The sinusoidal voltage signal to be measured and the sinusoidal step wave quantum voltage signal are superimposed to obtain a superimposed signal; The superimposed signal is collected according to the preset sampling frequency and the preset total number of samples to obtain a sampled data array.

4. The voltage sinusoidal waveform difference sampling method based on PJVS as described in claim 3, characterized in that, Determining the first switching moment of the quantum voltage step of the sinusoidal stepped wave quantum voltage signal based on the difference data array includes: The standard deviation is calculated based on the difference data in the difference data array; The judgment threshold is set based on the standard deviation. Traverse the difference data array, take the difference data in the difference data array that is greater than the judgment threshold as the target difference, and form a first array based on the target difference; Based on each target difference in the first array and the preset total number of quantum voltage step samples, a modulo operation is performed to obtain several remainders, and a second array is formed based on these remainders. The average value is calculated based on the remainders in the second array, and the average value is used as the sampling data number corresponding to the first switching moment of the quantum voltage step. The first switching time of the quantum voltage step is calculated based on the sampling data number and the preset sampling frequency.

5. The voltage sinusoidal waveform difference sampling method based on PJVS as described in claim 4, characterized in that, The starting quantum voltage step number of the sinusoidal stepped wave quantum voltage signal is determined based on the difference data array, including: Based on the difference data array and the amplitude of the sinusoidal voltage signal to be measured, an approximate value of the quantum voltage step level is calculated. The design level values ​​of all quantum voltage steps within the fundamental period corresponding to the sinusoidal stepped quantum voltage signal are used as the third array; The starting quantum voltage step number is determined by comparing the approximate value of the quantum voltage step level with the design level value in the third array.

6. The voltage sinusoidal waveform difference sampling method based on PJVS as described in claim 5, characterized in that, Based on the first switching time of the quantum voltage step and the initial quantum voltage step number, sampling data of the stable region on the corresponding quantum voltage step is obtained. The design level value corresponding to the sinusoidal stepped quantum voltage signal is subtracted from the sampling data of the stable region on the corresponding quantum voltage step to obtain the preliminarily calibrated target sinusoidal voltage waveform data, including: Based on the first switching time of the quantum voltage step and the starting quantum voltage step number, determine the amplitude of the level change when switching between adjacent quantum voltage steps; Based on the amplitude of the level change, the sampled data in the sampled data array is filtered to obtain the sampled data of the steady region on the corresponding quantum voltage step; Subtract the design level value corresponding to the sinusoidal stepped wave quantum voltage signal from the sampled data of the stable region on the corresponding quantum voltage step to obtain the target sinusoidal voltage waveform data after preliminary calibration.

7. The voltage sinusoidal waveform difference sampling method based on PJVS as described in claim 6, characterized in that, Based on the phase relationship of the target sinusoidal voltage waveform data, the target sinusoidal voltage waveform data is fitted to obtain the final calibrated sinusoidal voltage signal, including: Based on the phase relationship of the target sinusoidal voltage waveform data, the target sinusoidal voltage waveform data is spliced ​​together to obtain the spliced ​​sinusoidal voltage signal; The spliced ​​sinusoidal voltage signal is fitted to obtain the final calibrated sinusoidal voltage signal.

8. A voltage sinusoidal waveform differential sampling device based on PJVS, characterized in that, include: The signal acquisition module is used to acquire the sinusoidal voltage signal to be measured and the sinusoidal stepped quantum voltage signal; wherein, the sinusoidal stepped quantum voltage signal is generated based on PJVS; The signal superposition module is used to superimpose the sinusoidal voltage signal to be measured and the sinusoidal stepped quantum voltage signal to obtain a sampling data array; The difference data determination module is used to obtain the difference data array by subtracting the pairs of adjacent sampled data in the sampled data array; The quantum voltage step determination module is used to determine the first switching time of the quantum voltage step of the sinusoidal stepped wave quantum voltage signal and the starting quantum voltage step number based on the difference data array. The preliminary calibration module is used to obtain the sampling data of the stable region on the corresponding quantum voltage step according to the first switching time of the quantum voltage step and the number of the starting quantum voltage step, and to subtract the design level value corresponding to the sinusoidal stepped quantum voltage signal from the sampling data of the stable region on the corresponding quantum voltage step to obtain the target sinusoidal voltage waveform data after preliminary calibration. The fitting and calibration module is used to fit the target sinusoidal voltage waveform data according to the phase relationship of the target sinusoidal voltage waveform data to obtain the final calibrated sinusoidal voltage signal.

9. A terminal device, characterized in that, The device includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor, when executing the computer program, implements a voltage sinusoidal waveform differential sampling method based on any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform a voltage sinusoidal waveform differential sampling method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and system for accurately measuring non-sinusoidal voltage signals

    CN104142424A

  • Method and system for measuring sinusoidal voltage signals

    CN104251932A