A measurement method and apparatus, and an electronic device and a storage medium
Patent Information
- Application Number
- CN202611398867.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-10
- Publication Date
- 2026-10-13
AI Technical Summary
[0003]然而,被测系统中通常存在与交流参考信号同频的交流分量以及系统固有的直流偏移,这些成分会混入积分结果
[0016]本申请提供的测量方法,通过获取与被测系统同步的交流参考信号并检测其特征相位,依据特征相位建立多个同步积分窗口,使各次积分窗口分别对应交流参考信号中的预定相位位置,并在多个同步积分窗口内分别对被测信号进行积分,再依据多个积分结果之间的预定对应关系进行组合运算,从而使直流偏移及交流残余等公共误差项得到抵消、抑制或补偿。具体而言,由于交流参考信号与被测系统同步,其特征相位能够准确反映交流周期中的相位位置,并随频率变化自适应调整,因此依据特征相位建立的同步积分窗口与交流周期保持同步,即使交流频率发生漂移,积分窗口也能随之调整,避免了固定积分窗口与交流周期失步导致的测量误差。由于多个同步积分窗口分别对应交流参考信号中的多个预定相位位置,且在不同测量周期内具有一致的相位基准,各次积分中交流分量所处的相位位置跨测量周期保持一致,积分残余具有一致性,从而在非整周期积分条件下抑制了测量结果的跳动,提高了测量重复性。在此基础上,由于多个积分结果之间具有预定对应关系,各积分结果所包含的直流偏移和交流残余等公共误差项具有确定的相位对应关系,通过组合运算即可使上述公共误差相互抵消、抑制或补偿,从而获得准确的目标测量结果,无需通过延长积分时间来消除交流残余,测量响应速度得以提升。由此可见,本申请提供的测量方法,实现了积分窗口与交流周期的同步,使得直流偏移及交流残余等公共误差可通过组合运算消除,解决了非整周期积分条件下测量结果跳动的问题,显著提高了测量结果的稳定性与精度。本申请还公开了一种测量装置及一种电子设备和一种计算机可读存储介质,同样能实现上述技术效果。
Smart Images

Figure CN122901564A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of signal measurement technology, and more specifically, to a measurement method, apparatus, electronic device, and storage medium. Background Technology
[0002] In the field of AC / DC signal measurement, integration measurement is a common method for obtaining measurement results of physical quantities such as current and voltage. In related technologies, the measuring device integrates the measured signal over a predetermined time period and uses the integration result as the measured value.
[0003] However, the system under test typically contains an AC component with the same frequency as the AC reference signal, as well as an inherent DC offset, which can contaminate the integration results. In related techniques, the start and end times of the integration window for integration measurement are determined by a fixed sampling start time, independent of the period position of the AC signal. When the integration window covers a non-integer number of AC cycles, the integration residue of the AC component within the window is not zero, and the phase position of the AC component differs in each integration, causing random variations in the integration residue and resulting in fluctuations in the measurement results. When the AC signal frequency drifts, the loss of synchronization between the fixed integration window and the AC cycle is further aggravated, increasing the measurement error. Extending the integration time to eliminate the AC residue leads to a decrease in the measurement response speed. Therefore, the stability and accuracy of the measurement results are difficult to guarantee.
[0004] Therefore, how to improve the stability and accuracy of measurement results under non-integer period integration conditions is a technical problem that needs to be solved by those skilled in the art. Summary of the Invention
[0005] The purpose of this application is to provide a measurement method, device, electronic device, and computer-readable storage medium that achieves synchronization between the integration window and the AC cycle, enabling common errors such as DC offset and AC residual to be eliminated through combined operations, thereby significantly improving the stability and accuracy of the measurement results.
[0006] To achieve the above objectives, this application provides a measurement method, comprising: Acquire an AC reference signal synchronized with the system under test; The characteristic phase of the AC reference signal is detected, and multiple synchronous integration windows are established based on the characteristic phase; wherein the multiple synchronous integration windows correspond to multiple predetermined phase positions in the AC reference signal. The measured signal is integrated within the multiple synchronous integration windows to obtain multiple corresponding integration results; The target measurement result is obtained by combining and calculating the multiple integration results according to the predetermined correspondence between them. The multiple synchronous integration windows have a consistent phase reference in different measurement periods, so that common error terms in the multiple integration results can be canceled, suppressed or compensated through the combined operation.
[0007] Optionally, establishing multiple synchronous integration windows based on the characteristic phase includes: The start and end phases of each synchronous integration window are determined based on the characteristic phase, so that each synchronous integration window has the same time length and phase position.
[0008] Optionally, the plurality of synchronous integration windows include a first synchronous integration window and a second synchronous integration window, wherein the first characteristic phase corresponding to the first synchronous integration window and the second characteristic phase corresponding to the second synchronous integration window have a predetermined phase relationship. Accordingly, the measured signal is integrated within the multiple synchronous integration windows to obtain multiple corresponding integration results, including: The measured signal is integrated within the first synchronous integration window to obtain the first integration result; The measured signal is integrated within the second synchronous integration window to obtain a second integration result; Accordingly, the step of performing a combination operation based on the predetermined correspondence between the multiple integration results to obtain the target measurement result includes: The target measurement result is obtained by combining the first integral result and the second integral result.
[0009] Optionally, the predetermined phase relationship is a phase difference of 180 degrees; correspondingly, the step of combining the first integration result and the second integration result to obtain the target measurement result includes: The DC offset of the tested system is obtained by summing the first integration result and the second integration result and taking the average value.
[0010] Optionally, the predetermined phase relationship ensures that the phases remain consistent; correspondingly, The measured signal is integrated within the second synchronous integration window to obtain a second integration result, including: The measured signal after polarity reversal is integrated within the second synchronous integration window to obtain the second integration result; Accordingly, the step of combining the first integration result and the second integration result to obtain the target measurement result includes: The DC measurement value of the measured signal is obtained by performing a difference operation on the first integration result and the second integration result and taking the average value.
[0011] Optionally, the measured signal is an AC signal, and the method further includes: The measured signal is squared to obtain a squared signal containing a DC component and a second harmonic AC component; A synchronous integration window is established based on the characteristic phase of the squared signal. The squared signal is integrated in the synchronous integration window corresponding to the two characteristic phases with a phase difference of 180 degrees to obtain the third integration result and the fourth integration result. The effective value of the measured signal is obtained by summing or averaging the third and fourth integral results and taking the square root of the result.
[0012] Optionally, the method further includes: When the amplitude of the AC reference signal is lower than a preset threshold, or the detection reliability of the characteristic phase is lower than a preset condition, the update of the characteristic phase is paused, and a synchronous integration window is established using the most recent valid characteristic phase, or the measurement is switched to any one of the following modes: fixed integration window measurement, low-pass filter measurement, or predictive phase measurement. When the AC reference signal recovers to the level that meets the detection conditions, a synchronous integration window is established based on the characteristic phase.
[0013] To achieve the above objectives, this application provides a measuring device, comprising: The acquisition module is used to acquire the AC reference signal synchronized with the system under test; The detection module is used to detect the characteristic phase of the AC reference signal and establish multiple synchronous integration windows based on the characteristic phase; wherein the multiple synchronous integration windows correspond to multiple predetermined phase positions in the AC reference signal. The first integration module is used to integrate the measured signal in the multiple synchronous integration windows respectively to obtain multiple corresponding integration results; The measurement module is used to perform combined calculations based on a predetermined correspondence between the multiple integration results to obtain the target measurement result; The multiple synchronous integration windows have a consistent phase reference in different measurement periods, so that common error terms in the multiple integration results can be canceled, suppressed or compensated through the combined operation.
[0014] To achieve the above objectives, this application provides an electronic device, comprising: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the measurement method described above.
[0015] To achieve the above objectives, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the measurement method described above.
[0016] The measurement method provided in this application acquires an AC reference signal synchronized with the system under test and detects its characteristic phase. Multiple synchronous integration windows are established based on the characteristic phase, with each integration window corresponding to a predetermined phase position in the AC reference signal. The measured signal is integrated within each of these synchronous integration windows, and then combined according to a predetermined correspondence between the integration results. This allows common error terms such as DC offset and AC residual to be canceled, suppressed, or compensated. Specifically, because the AC reference signal is synchronized with the system under test, its characteristic phase accurately reflects the phase position in the AC cycle and adaptively adjusts with frequency changes. Therefore, the synchronous integration windows established based on the characteristic phase remain synchronized with the AC cycle. Even if the AC frequency drifts, the integration windows can adjust accordingly, avoiding measurement errors caused by the fixed integration window losing synchronization with the AC cycle. Since the multiple synchronous integration windows correspond to multiple predetermined phase positions in the AC reference signal and have a consistent phase reference in different measurement cycles, the phase position of the AC component in each integration remains consistent across measurement cycles, resulting in consistent integration residuals. This suppresses fluctuations in measurement results under non-integer cycle integration conditions and improves measurement repeatability. Based on this, since there is a predetermined correspondence between multiple integration results, the common error terms such as DC offset and AC residual contained in each integration result have a definite phase correspondence. Through combined operations, these common errors can be mutually canceled, suppressed, or compensated, thereby obtaining accurate target measurement results. There is no need to extend the integration time to eliminate AC residuals, thus improving the measurement response speed. Therefore, the measurement method provided in this application achieves synchronization between the integration window and the AC cycle, allowing common errors such as DC offset and AC residuals to be eliminated through combined operations. This solves the problem of measurement result fluctuations under non-integer cycle integration conditions, significantly improving the stability and accuracy of the measurement results. This application also discloses a measurement device, an electronic device, and a computer-readable storage medium, which can achieve the same technical effects.
[0017] It should be understood that the above general description and the following detailed description are merely exemplary and do not limit this application. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. The drawings are used to provide a further understanding of this disclosure and constitute a part of the specification. They are used together with the following detailed description to explain this disclosure, but do not constitute a limitation of this disclosure. In the drawings: Figure 1 This is a flowchart illustrating a measurement method according to an exemplary embodiment; Figure 2 A flowchart illustrating another measurement method according to an exemplary embodiment; Figure 3 This is a structural diagram of a measuring device according to an exemplary embodiment; Figure 4 This is a structural diagram of an electronic device according to an exemplary embodiment. Detailed Implementation
[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0020] It should be noted that, in the description of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "first," "second," etc., in this application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0021] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0022] This application discloses a measurement method that synchronizes the integration window with the AC cycle, enabling common errors such as DC offset and AC residual to be eliminated through combined operations, thereby significantly improving the stability and accuracy of the measurement results.
[0023] See Figure 1A flowchart illustrating a measurement method according to an exemplary embodiment, such as... Figure 1 As shown, it includes: S101: Acquire an AC reference signal synchronized with the system under test; The AC reference signal refers to an AC signal that is in phase and frequency with the system under test (SUT), used to provide a time reference reflecting changes in the AC cycle. The SUT refers to the circuit system that includes the object under test and related analog signal acquisition and processing.
[0024] In this step, the AC reference signal can be obtained through power frequency voltage acquisition, the synchronization signal from the excitation source drive end, the phase-locked loop output, a digital synchronization interface, or other reference signals that can reflect changes in the AC cycle. For example, in a power frequency AC parameter measurement scenario, the power frequency voltage can be directly used as the AC reference signal; in a sensor-excited measurement scenario, the synchronization signal from the excitation source can be used as the AC reference signal; when the system under test has a phase-locked loop, the output of the phase-locked loop can be used as the AC reference signal; when using a digital synchronization interface, the received digital synchronization reference can be used as the AC reference signal. The AC reference signal needs to be synchronized with the AC cycle of the system under test.
[0025] As can be seen, this step provides a reliable time reference for the subsequent extraction of characteristic phases by acquiring an AC reference signal synchronized with the system under test, thereby ensuring that the integration window can adaptively adjust to follow the changes in the AC cycle.
[0026] S102: Detect the characteristic phase of the AC reference signal and establish multiple synchronous integration windows based on the characteristic phase; wherein, the multiple synchronous integration windows correspond to multiple predetermined phase positions in the AC reference signal; In this context, the characteristic phase refers to a phase point in the AC reference signal that stably characterizes the position of the AC cycle, such as a zero-crossing point, peak point, or valley point. The synchronous integration window is a time interval established based on the characteristic phase; the integration process is performed within this time interval, and the start and end times of the window are determined by the characteristic phase. The predetermined phase position refers to a pre-determined phase position used to establish the integration window. Multiple synchronous integration windows are established based on their respective characteristic phases, thus corresponding to multiple predetermined phase positions in the AC reference signal.
[0027] In this step, the AC reference signal is first acquired and its characteristic phase is extracted. Then, the characteristic phase is used as the synchronization reference to establish a synchronization integration window, resulting in multiple synchronization integration windows corresponding to multiple predetermined phase positions, so that the integration window is synchronized with the AC cycle.
[0028] To illustrate the relationship between the window duration and the AC integral residual, let the duration of the integration window be denoted as . The window starts at For an integral window, the output average can be expressed as: The input signal x(t) is decomposed into the DC component to be measured. With the quantity of communication The sum is: Substituting into the above equation and expanding, we get: Define the residual of the AC integral. for: Then the integral output can be written as: When the integration window duration Equal to the communication cycle Integer multiples of, i.e. equal to n and The product of n, when n is a positive integer. If the integral equals 0, there is no AC residual in the integral output; otherwise... The value is not equal to 0, and the integral output contains residual AC components. This is the basic principle behind establishing a synchronous integration window based on the characteristic phase, which enables the window to be synchronized with the AC cycle and suppresses residual AC components.
[0029] As can be seen, this step ensures the stability and predictability of the AC integral residue by binding the start and end times of the integration window to the characteristic phase of the AC reference signal, so that each integration window has a consistent time length and phase position.
[0030] As a feasible implementation method, the characteristic phase includes at least one of the following: zero-crossing point, peak point, valley point, phase-locked loop locked phase, digital phase tracking output, reference phase obtained by Fourier analysis, and instantaneous phase obtained by Hilbert transform.
[0031] In practical implementation, a suitable characteristic phase extraction method can be selected based on the frequency stability, noise level, and hardware implementation conditions of the measured signal. For example, zero-crossing detection circuits are simple and have strong resistance to amplitude fluctuations, making them suitable for stable power frequency or low-frequency signals; peak and valley point detection is insensitive to amplitude changes, making it suitable for scenarios with large amplitude fluctuations; phase-locked loops (PLLs) can track frequency drift and are suitable for operating conditions with rapid frequency changes; digital phase tracking output can be implemented in digital signal processors or field-programmable gate arrays (FPGAs); reference phases obtained through Fourier analysis are suitable for complex signals containing multiple harmonic components; and instantaneous phases obtained through Hilbert transforms provide continuous phase information, making them suitable for scenarios with instantaneous frequency changes. The methods for obtaining characteristic phases are not limited to those listed above and can be used individually or in combination as needed.
[0032] As can be seen, this embodiment provides multiple optional implementation methods for characteristic phases, enabling the solution of this application to adapt to different measurement scenarios and hardware conditions.
[0033] As a feasible implementation method, establishing multiple synchronous integration windows based on the characteristic phase includes: determining the start phase and end phase of each synchronous integration window based on the characteristic phase, so that each synchronous integration window has the same time length and phase position.
[0034] In specific implementations, both the starting phase and the ending phase are determined by the corresponding time of the characteristic phase, for example, both falling on the corresponding time of the characteristic phase (such as a zero crossing), thus ensuring that the duration of each synchronization integration window is the same and that their phase positions within the AC cycle are the same. For instance, the integration window can be set to start from the corresponding time of one characteristic phase and end at the corresponding time of the next similar characteristic phase, thereby ensuring that the window duration is equal to the AC cycle. The duration of the synchronous integration window is an integer multiple of the given value, and the duration of each window is consistent. The duration of the synchronous integration window can be flexibly selected according to the requirements of measurement accuracy and response speed.
[0035] As can be seen, this implementation binds the start and end phases of the window to the characteristic phase, so that each integration window has a consistent time length and phase position, thereby laying the foundation for subsequent combination operations to cancel common errors.
[0036] S103: Integrate the measured signal within the multiple synchronous integration windows to obtain multiple corresponding integration results; Among them, multiple integration results refer to the values obtained by integrating the measured signal in the multiple synchronous integration windows respectively, which correspond one-to-one with the multiple synchronous integration windows, that is, they correspond to multiple predetermined phase positions respectively.
[0037] In this step, the measured signal is integrated within multiple synchronous integration windows to obtain multiple integration results corresponding to each synchronous integration window. Since each synchronous integration window is established based on the characteristic phase and has a consistent phase reference in different measurement periods, the DC offset and AC integration residual contained in each integration result have a definite phase correspondence, providing a basis for canceling common error terms in subsequent combined calculations.
[0038] As can be seen, this step integrates the measured signal in synchronous integration windows corresponding to multiple predetermined phase positions to obtain multiple integration results, providing multiple raw data for subsequent combined operations based on predetermined correspondences.
[0039] S104: Perform a combination operation based on the predetermined correspondence between the multiple integration results to obtain the target measurement result; The predetermined correspondence refers to the pre-determined operational relationship between multiple integration results, including summation, difference, averaging, weighting, or other combined calculation relationships. The target measurement result refers to the final measurement value obtained based on the combined operations, such as DC measurement value, DC offset, and AC RMS value. The common error term refers to the error components commonly included in all integration results, such as system DC offset and AC integral residual.
[0040] In this step, a combination operation is performed based on the predetermined correspondence between the multiple integration results. Since the multiple integration results correspond to multiple predetermined phase positions in the AC reference signal, the DC offset and AC integral residual contained in each integration result have a definite phase correspondence. Through combination operations, the aforementioned common error terms can be mutually canceled, suppressed, or compensated, thereby obtaining an accurate target measurement result. The specific form of the combination operation can be selected according to the measurement target; for example, differential operations can be used to obtain the DC measurement value, summation operations can be used to obtain the system DC offset, and digital filtering can be used to further suppress residual errors.
[0041] As can be seen, this step combines multiple integral results with a predetermined correspondence to cancel, suppress, or compensate for common error terms in each measurement, thereby obtaining the target measurement result. High precision and fast response can be achieved without extending the integration time to eliminate AC integration residues.
[0042] It should be noted that the multiple synchronous integration windows have a consistent phase reference in different measurement periods, so that common error terms in the multiple integration results can be canceled, suppressed or compensated through the combined operation.
[0043] Among them, a consistent phase reference means that the starting phase and ending phase of each synchronous integration window relative to the AC reference signal period remain consistent in different measurement cycles, that is, the phase position of the integration window in each measurement in the AC cycle remains fixed.
[0044] In practical implementation, since each synchronous integration window is established based on the characteristic phase of the AC reference signal, and the phase position of the characteristic phase in the AC cycle is fixed, the start and end times of the integration window are always aligned to the same characteristic phase, regardless of which cycle the measurement is in, ensuring a consistent phase reference for the integration windows across different measurement cycles. Under this condition, the phase position of the AC integral residue in each integration result remains consistent across measurement cycles, and the common error term is consistent and predictable, allowing it to be canceled, suppressed, or compensated through combination operations. If the phase reference of the integration windows is inconsistent across different measurement cycles, the phase position of the AC residue in each integration will change randomly, and the common error term cannot be effectively eliminated through combination operations, resulting in fluctuations in the measurement results. By ensuring that multiple synchronous integration windows have a consistent phase reference across different measurement cycles, the common error term becomes deterministic and predictable, ensuring that combination operations can effectively cancel, suppress, or compensate for the common error term, thereby improving the stability and repeatability of the measurement results.
[0045] The measurement method provided in this application acquires an AC reference signal synchronized with the system under test and detects its characteristic phase. Multiple synchronous integration windows are established based on the characteristic phase, with each integration window corresponding to a predetermined phase position in the AC reference signal. The measured signal is integrated within each of these multiple synchronous integration windows, and then combined according to a predetermined correspondence between the integration results. This allows common error terms such as DC offset and AC residuals to be canceled, suppressed, or compensated. Specifically, since the AC reference signal is synchronized with the system under test, its characteristic phase accurately reflects the phase position in the AC cycle and adaptively adjusts with frequency changes. Therefore, the synchronous integration windows established based on the characteristic phase remain synchronized with the AC cycle. Even if the AC frequency drifts, the integration windows can adjust accordingly, avoiding measurement errors caused by the fixed integration window losing synchronization with the AC cycle. Because the multiple synchronous integration windows correspond to multiple predetermined phase positions in the AC reference signal and have a consistent phase reference in different measurement cycles, the phase position of the AC component in each integration remains consistent across measurement cycles, resulting in consistent integration residuals. This suppresses measurement result fluctuations under non-integer cycle integration conditions and improves measurement repeatability. Based on this, since there is a predetermined correspondence between multiple integration results, the common error terms such as DC offset and AC residual contained in each integration result have a definite phase correspondence. Through combination operations, the above-mentioned common errors can be mutually canceled, suppressed, or compensated, thereby obtaining accurate target measurement results. There is no need to extend the integration time to eliminate AC residuals, thus improving the measurement response speed. It can be seen that the measurement method provided by the embodiments of this application realizes the synchronization of the integration window and the AC cycle, so that common errors such as DC offset and AC residuals can be eliminated through combination operations, solving the problem of measurement result fluctuation under non-integer cycle integration conditions, and significantly improving the stability and accuracy of the measurement results.
[0046] This application discloses a measurement method, which, compared to the previous embodiment, further explains and optimizes the technical solution. Specifically: See Figure 2 A flowchart illustrating another measurement method according to an exemplary embodiment, such as Figure 2 As shown, it includes: S201: Acquire an AC reference signal synchronized with the system under test; S202: Detect the characteristic phase of the AC reference signal, and establish a first synchronous integration window and a second synchronous integration window based on the characteristic phase; wherein, the first characteristic phase corresponding to the first synchronous integration window and the second characteristic phase corresponding to the second synchronous integration window have a predetermined phase relationship; Here, the first characteristic phase refers to the characteristic phase used to establish the integration window during the first integration. The first synchronous integration window refers to the integration time interval established based on the first characteristic phase. The second characteristic phase refers to the characteristic phase used to establish the integration window during the second integration, and has a predetermined phase relationship with the first characteristic phase. The second synchronous integration window refers to the integration time interval established based on the second characteristic phase. The predetermined phase relationship refers to the phase correspondence between the first characteristic phase and the second characteristic phase, which can be maintaining the same phase, a fixed phase difference, or other predetermined phase relationships.
[0047] In this step, the characteristic phase of the AC reference signal is first detected to determine the first characteristic phase, and the second characteristic phase is determined according to the predetermined phase relationship. Then, a first synchronous integration window and a second synchronous integration window are established based on the first characteristic phase and the second characteristic phase, respectively. Since both integration windows are established based on the characteristic phase, they are both synchronized with the AC cycle and have the same time length and phase position. The phase offset of the second synchronous integration window relative to the first synchronous integration window is determined by the predetermined phase relationship.
[0048] As can be seen, this step establishes a first synchronous integration window and a second synchronous integration window with a predetermined phase relationship, so that the AC integral residues in the two windows have a definite phase correspondence, creating conditions for subsequent cancellation of common error terms through combination operations.
[0049] S203: Integrate the measured signal within the first synchronous integration window to obtain the first integration result; The first integral result refers to the value obtained by integrating the measured signal within the first synchronous integration window.
[0050] In this step, a first synchronous integration window is established based on the first characteristic phase. The measured signal is integrated within this window to obtain a first integration result. According to the aforementioned integration output expression, the first integration result... It can be represented as: ,in The DC component in the measured signal. This represents the AC integral residue corresponding to the first integration window. The integration length of the first synchronous integration window can be selected as a fixed time length, a fixed phase span, or other predetermined integration interval, depending on actual needs.
[0051] As can be seen, this step obtains the first integration result by integrating the measured signal within the synchronous integration window determined by the first characteristic phase, thus providing the first source of raw data for subsequent combination operations.
[0052] S204: Integrate the measured signal within the second synchronous integration window to obtain a second integration result; The second integration result refers to the value obtained by integrating the measured signal within the second synchronous integration window.
[0053] In this step, a second synchronous integration window is established based on the second characteristic phase. The measured signal is integrated within this window to obtain a second integration result. Depending on actual needs, the measurement integration process can be extended to multiple iterations, i.e., integration is performed at multiple sets of characteristic phases with predetermined phase relationships to obtain multiple integration results for subsequent combined calculations.
[0054] As can be seen, this step obtains a second integral result by integrating at a second characteristic phase that has a predetermined phase relationship with the first characteristic phase, thus providing a second source of raw data for subsequent combination operations to offset common errors.
[0055] S205: Perform a combined calculation based on the first integration result and the second integration result to obtain the target measurement result.
[0056] Combinatorial operations refer to mathematical processing of multiple integration results to extract useful information, including difference operations, summation operations, averaging operations, weighted operations, digital compensation, digital filtering, or other combined calculations. The target measurement result refers to the final measurement value obtained based on the combined operations, such as DC measurement values or AC effective values. Common error refers to the error components shared by all integration results, such as system DC offset and AC integral residuals.
[0057] In this step, a combined operation is performed based on the first integration result and the second integration result. Since the first and second integration results correspond to characteristic phases with predetermined phase relationships, the DC offset and AC integral residual contained within them have a definite phase correspondence. Through combined operation, the common errors can be mutually canceled, suppressed, or compensated, thereby obtaining the target measurement result. The specific form of the combined operation can be selected according to the measurement target; for example, differential operation can be used to obtain the DC measurement value, summation operation can be used to obtain the system DC offset, and digital filtering can be used to further suppress residual errors.
[0058] As can be seen, this step combines the integral results with a predetermined phase relationship to cancel, suppress or compensate the common errors in each measurement, thereby obtaining the target measurement result. High precision and fast response can be achieved without extending the integration time to eliminate AC integration residues.
[0059] As a feasible implementation, the predetermined phase relationship is a phase difference of 180 degrees; correspondingly, the step of combining the first integration result and the second integration result to obtain the target measurement result includes: summing the first integration result and the second integration result and taking the average value to obtain the DC offset of the measured system.
[0060] Here, a phase difference of 180 degrees means that the second characteristic phase is half an AC cycle apart from the first characteristic phase.
[0061] In practice, when the AC reference phase of the second measurement integration stage moves 180 degrees relative to the first measurement integration stage, the polarity of the AC component is reversed, causing the sign of the AC integral residue in the second integration result to be opposite to that in the first integration result. Thus, the AC integral residue can be canceled out by summation.
[0062] Let the measured DC signal be S, the system DC offset be O, and the AC integral residual be E. Define the first measurement integral. Integration with the second measurement They are respectively: , The AC reference of the second measurement integral is synchronously moved 180 degrees, causing the polarity of the AC integral residual to reverse, and the polarity of the measured DC signal to be reversed in the two integrations. and Summing and averaging yields the DC offset: Because E is in and With opposite signs, the residual AC integral after summation completely cancels out, thus yielding an accurate system DC offset O. Simultaneously, the effective measurement value can be obtained: Since this implementation focuses on summing and averaging to offset the residual AC integral, the residual AC integral is still retained in the differential result. This implementation can be applied to scenarios such as online calibration of system DC offset, amplifier zero drift compensation, and zero-point calibration of analog-to-digital converters (ADCs).
[0063] As can be seen, this embodiment moves the AC reference phase by 180 degrees relative to the first measurement integration during the second measurement integration stage, so that the AC integration residue is automatically canceled in the summation operation, thereby obtaining an accurate system DC offset, which can be applied to various system calibration and compensation scenarios.
[0064] As another feasible implementation, the predetermined phase relationship is to keep the phases consistent; accordingly, integrating the measured signal within the second synchronous integration window to obtain a second integration result includes: integrating the measured signal after polarity reversal within the second synchronous integration window to obtain the second integration result; accordingly, performing a combined operation based on the first integration result and the second integration result to obtain the target measurement result includes: performing a difference operation on the first integration result and the second integration result and taking the average value to obtain the DC measurement value of the measured signal.
[0065] In practice, when the AC reference phase of the second measurement integration stage is consistent with that of the first measurement integration stage, the polarity of the AC integration residue does not flip. Instead, the polarity of the measured signal is flipped before integration, thus obtaining two sets of integration results.
[0066] Let the measured DC signal be S, the system DC offset be O, and the AC integral residual be E. Define the first measurement integral. Integration with the second measurement They are respectively: , During the second measurement integration, the polarity of the measured signal reverses, while the AC reference phase remains the same as that of the first measurement integration. Therefore, the sign and value of the AC integral residual E remain consistent throughout both integrations. and Differential analysis and averaging yield the DC measurement value: Since the system's DC offset O and AC integral residual E are automatically eliminated during the differential operation, an accurate DC measurement value S can be obtained. Furthermore, for... and Summing and averaging yields the common baseline: B represents the common baseline of the DC offset and the AC integral residual, rather than the system DC offset alone.
[0067] As can be seen, this implementation method maintains the AC reference phase consistency and only flips the polarity of the measured signal, thereby automatically eliminating the DC offset and AC integral residue in the differential operation, thus obtaining the DC measurement value with the highest measurement accuracy.
[0068] The measurement method provided in this application acquires an AC reference signal synchronized with the system under test and detects its characteristic phase. Based on the characteristic phase, a first synchronous integration window and a second synchronous integration window with a predetermined phase relationship are established. The measured signal is integrated within the first and second synchronous integration windows respectively. Then, a combination operation is performed based on the predetermined correspondence between the first and second integration results, thereby canceling, suppressing, or compensating common error terms such as DC offset and AC residual. Specifically, since there is a predetermined phase relationship between the first and second characteristic phases, the DC offset and AC residual contained in the first and second integration results have a definite phase correspondence. Through combination operations, the aforementioned common error terms can be canceled, suppressed, or compensated, thereby obtaining an accurate target measurement result. Therefore, the measurement method provided in this application, through dual-window integration with a predetermined phase relationship and combination operations, eliminates common error terms such as DC offset and AC residual, significantly improving the stability and accuracy of measurement results in DC offset calibration and DC measurement scenarios.
[0069] Based on the above embodiments, as a feasible implementation method, the measured signal is an AC signal, and the method further includes: performing a squaring operation on the measured signal to obtain a squared signal containing a DC component and a second harmonic AC component; establishing a synchronous integration window based on the characteristic phase of the squared signal, and integrating the squared signal within the synchronous integration window corresponding to two characteristic phases with a phase difference of 180 degrees to obtain a third integration result and a fourth integration result; performing a summation or averaging operation on the third integration result and the fourth integration result, and performing a square root operation on the operation result to obtain the effective value of the measured signal.
[0070] The effective value refers to the root mean square value of the AC signal in the sense of equivalent thermal effect, and is a commonly used indicator for measuring the amplitude of AC signals. The squared signal is the signal obtained by squaring the instantaneous value of the measured AC signal, which includes a DC component and a second harmonic AC component. The third and fourth integration results are the two values obtained by integrating the squared signal within two synchronous integration windows with a 180-degree phase difference.
[0071] In practice, the measured AC signal is squared to obtain a squared signal, which contains a DC component (i.e., the square of the effective value of the measured AC signal) and a second harmonic AC component. An integration window is established using the characteristic phase of the squared signal as a synchronization reference. Synchronous integration is performed at two characteristic phases with a phase difference of 180 degrees to obtain a third and fourth integration result. Summing or averaging the third and fourth integration results cancels out the residual second harmonic AC integration, resulting in a stable squared average value. Further square root operations on the results yield the effective value of the measured AC signal.
[0072] When the AC signal before squaring is used as a synchronization reference, the characteristic phase of the signal before squaring can be converted into the corresponding characteristic phase of the signal after squaring based on the phase correspondence after squaring, so as to establish a synchronization integration window.
[0073] Therefore, this embodiment can stably cancel the residual of the second harmonic AC integration by squaring and then performing synchronous integration and summing or averaging in two windows with a phase difference of 180 degrees, and then taking the square root to obtain the effective value. This is suitable for high-precision measurement of AC effective values.
[0074] Based on the above embodiments, as a preferred implementation, the method further includes: when the amplitude of the AC reference signal is lower than a preset threshold, or the detection confidence of the characteristic phase is lower than a preset condition, pausing the updating of the characteristic phase, establishing a synchronous integration window using the most recent valid characteristic phase, or switching to any one of fixed integration window measurement, low-pass filter measurement, or predictive phase measurement; when the AC reference signal recovers to meet the detection conditions, resuming the establishment of a synchronous integration window based on the characteristic phase.
[0075] The preset threshold refers to the threshold for determining whether the characteristic phase can still be reliably detected based on the amplitude of the AC reference signal. The preset conditions refer to the criteria for determining the reliability of characteristic phase detection, such as the deviation between the time intervals of characteristic phases across multiple consecutive cycles and the theoretical value. The degraded mode refers to the backup measurement mode used in cases of abnormal AC reference signal conditions, including fixed integration window measurement, low-pass filtering measurement, and predicted phase measurement.
[0076] In practical implementation, when the amplitude of the AC reference signal is too low or the detection reliability of the characteristic phase is insufficient, the detection result of the characteristic phase may no longer be reliable. In this case, updating the characteristic phase can be paused, and the most recently valid characteristic phase can be used to continue establishing a synchronous integration window to maintain the continuity of the measurement process. When the most recently valid characteristic phase is also no longer applicable, it can be switched to any of the following degraded measurement modes: 1) Fixed integration window measurement mode, which uses a preset fixed-duration integration window for measurement; 2) Low-pass filtering measurement mode, which suppresses AC components by low-pass filtering the measured signal before integration measurement; 3) Predictive phase measurement mode, which predicts the current characteristic phase based on the statistical regularity of historical characteristic phases and establishes an integration window. When the AC reference signal recovers to meet the detection conditions, the synchronous integration method based on the AC characteristic phase is restored.
[0077] Therefore, this embodiment can maintain the continuity and reliability of measurement under complex working conditions by automatically switching to the degraded measurement mode when the AC reference signal is abnormal and automatically switching back to the synchronous integration mode when the signal is restored.
[0078] The following describes a measuring device provided in an embodiment of this application. The measuring device described below and the measuring method described above can be referred to each other.
[0079] See Figure 3 A structural diagram of a measuring device according to an exemplary embodiment is shown, such as... Figure 3 As shown, it includes: The acquisition module 100 is used to acquire the AC reference signal synchronized with the system under test; The detection module 200 is used to detect the characteristic phase of the AC reference signal and establish multiple synchronous integration windows based on the characteristic phase; wherein the multiple synchronous integration windows correspond to multiple predetermined phase positions in the AC reference signal. The first integration module 300 is used to integrate the measured signal in the multiple synchronous integration windows respectively to obtain multiple corresponding integration results; Measurement module 400 is used to perform combination calculations based on a predetermined correspondence between the multiple integration results to obtain the target measurement result; The multiple synchronous integration windows have a consistent phase reference in different measurement periods, so that common error terms in the multiple integration results can be canceled, suppressed or compensated through the combined operation.
[0080] The measurement device provided in this application acquires an AC reference signal synchronized with the system under test and detects its characteristic phase. Multiple synchronous integration windows are established based on the characteristic phase, with each integration window corresponding to a predetermined phase position in the AC reference signal. The measured signal is integrated within each of these multiple synchronous integration windows, and then combined according to a predetermined correspondence between the integration results. This allows common error terms such as DC offset and AC residual to be canceled, suppressed, or compensated. Specifically, since the AC reference signal is synchronized with the system under test, its characteristic phase accurately reflects the phase position in the AC cycle and adaptively adjusts with frequency changes. Therefore, the synchronous integration windows established based on the characteristic phase remain synchronized with the AC cycle. Even if the AC frequency drifts, the integration windows can adjust accordingly, avoiding measurement errors caused by the fixed integration window losing synchronization with the AC cycle. Because the multiple synchronous integration windows correspond to multiple predetermined phase positions in the AC reference signal and have a consistent phase reference in different measurement cycles, the phase position of the AC component in each integration remains consistent across measurement cycles, resulting in consistent integration residuals. This suppresses fluctuations in measurement results under non-integer cycle integration conditions and improves measurement repeatability. Based on this, since there is a predetermined correspondence between multiple integration results, the common error terms such as DC offset and AC residual contained in each integration result have a definite phase correspondence. Through combination operations, the above-mentioned common errors can be mutually canceled, suppressed, or compensated, thereby obtaining accurate target measurement results. There is no need to extend the integration time to eliminate AC residuals, thus improving the measurement response speed. Therefore, the measurement device provided in this application embodiment realizes the synchronization of the integration window and the AC cycle, so that common errors such as DC offset and AC residuals can be eliminated through combination operations. This solves the problem of measurement result fluctuations under non-integer cycle integration conditions and significantly improves the stability and accuracy of the measurement results.
[0081] Based on the above embodiments, as a preferred implementation, the detection module 200 is specifically used to: determine the start phase and end phase of each synchronous integration window according to the characteristic phase, so that each synchronous integration window has the same time length and phase position.
[0082] Based on the above embodiments, as a preferred embodiment, the plurality of synchronous integration windows include a first synchronous integration window and a second synchronous integration window, and there is a predetermined phase relationship between the first characteristic phase corresponding to the first synchronous integration window and the second characteristic phase corresponding to the second synchronous integration window. Accordingly, the first integration module 300 includes: The first integration unit is used to integrate the measured signal within the first synchronous integration window to obtain the first integration result; The second integration unit is used to integrate the measured signal within the second synchronous integration window to obtain a second integration result; Accordingly, the measurement module 400 is specifically used to: perform a combined calculation based on the first integration result and the second integration result to obtain the target measurement result.
[0083] Based on the above embodiments, as a preferred implementation, the predetermined phase relationship is a phase difference of 180 degrees; correspondingly, the measurement module 400 is specifically used to: sum the first integration result and the second integration result and take the average value to obtain the DC offset of the measured system.
[0084] Based on the above embodiments, as a preferred embodiment, the predetermined phase relationship is that the phase remains consistent; accordingly, the second integration unit is specifically used to: integrate the measured signal after polarity reversal within the second synchronous integration window to obtain the second integration result; Accordingly, the measurement module 400 is specifically used to: perform a difference operation on the first integration result and the second integration result and take the average value to obtain the DC measurement value of the measured signal.
[0085] Based on the above embodiments, as a preferred embodiment, the measured signal is an AC signal, and the device further includes: The first calculation module is used to perform a squaring operation on the measured signal to obtain a squared signal containing a DC component and a second harmonic AC component. The second integration module is used to establish a synchronous integration window based on the characteristic phase of the square signal, and to integrate the square signal in the synchronous integration window corresponding to the two characteristic phases with a phase difference of 180 degrees respectively, to obtain the third integration result and the fourth integration result. The second calculation module is used to sum or average the third integration result and the fourth integration result, and to perform a square root operation on the calculation result to obtain the effective value of the measured signal.
[0086] Based on the above embodiments, as a preferred embodiment, the device further includes: The pause module is used to pause updating the characteristic phase when the amplitude of the AC reference signal is lower than a preset threshold or the detection reliability of the characteristic phase is lower than a preset condition. It can then use the most recent valid characteristic phase to establish a synchronous integration window, or switch to any one of the following modes: fixed integration window measurement, low-pass filter measurement, or predictive phase measurement. The recovery module is used to restore the synchronous integration window established based on the characteristic phase when the AC reference signal is restored to meet the detection conditions.
[0087] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0088] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiments of this application, the embodiments of this application also provide an electronic device. Figure 4 This is a structural diagram of an electronic device according to an exemplary embodiment, such as... Figure 4 As shown, the electronic device includes: Communication interface 1 enables information exchange with other devices, such as network devices; Processor 2 is connected to communication interface 1 to enable information exchange with other devices and to execute the measurement methods provided by one or more of the above-mentioned technical solutions when running computer programs. The computer program is stored in memory 3.
[0089] Of course, in practical applications, the various components in an electronic device are coupled together through bus system 4. It can be understood that bus system 4 is used to achieve communication and connection between these components. In addition to the data bus, bus system 4 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 4 The general will label all buses as Bus System 4.
[0090] The memory 3 in this embodiment is used to store various types of data to support the operation of the electronic device. Examples of such data include any computer program used to operate on the electronic device.
[0091] It is understood that memory 3 can be volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), ferromagnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memory 3 described in the embodiments of this application is intended to include, but is not limited to, these and any other suitable types of memory.
[0092] The methods disclosed in the embodiments of this application can be applied to processor 2, or implemented by processor 2. Processor 2 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 2 or by instructions in the form of software. The processor 2 may be a general-purpose processor, DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 2 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in memory 3. Processor 2 reads the program in memory 3 and completes the steps of the aforementioned method in combination with its hardware.
[0093] When processor 2 executes the program, it implements the corresponding processes in the various methods of the embodiments of this application. For the sake of brevity, these will not be described in detail here.
[0094] In an exemplary embodiment, this application also provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, such as a memory 3 that stores a computer program, which can be executed by a processor 2 to complete the steps described in the aforementioned method. The computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM.
[0095] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.
[0096] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a personal computer, server, network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.
[0097] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A measurement method, characterized in that, include: Acquire an AC reference signal synchronized with the system under test; The characteristic phase of the AC reference signal is detected, and multiple synchronous integration windows are established based on the characteristic phase; wherein the multiple synchronous integration windows correspond to multiple predetermined phase positions in the AC reference signal. The measured signal is integrated within the multiple synchronous integration windows to obtain multiple corresponding integration results; The target measurement result is obtained by combining and calculating the multiple integration results according to the predetermined correspondence between them. The multiple synchronous integration windows have a consistent phase reference in different measurement periods, so that common error terms in the multiple integration results can be canceled, suppressed or compensated through the combined operation.
2. The measurement method according to claim 1, characterized in that, Multiple synchronous integration windows are established based on the characteristic phase, including: The start and end phases of each synchronous integration window are determined based on the characteristic phase, so that each synchronous integration window has the same time length and phase position.
3. The measurement method according to claim 1, characterized in that, The plurality of synchronous integration windows include a first synchronous integration window and a second synchronous integration window, wherein the first characteristic phase corresponding to the first synchronous integration window and the second characteristic phase corresponding to the second synchronous integration window have a predetermined phase relationship. Accordingly, the measured signal is integrated within the multiple synchronous integration windows to obtain multiple corresponding integration results, including: The measured signal is integrated within the first synchronous integration window to obtain the first integration result; The measured signal is integrated within the second synchronous integration window to obtain a second integration result; Accordingly, the target measurement result is obtained by combining the results according to the predetermined correspondence between the multiple integration results, including: The target measurement result is obtained by combining the first integral result and the second integral result.
4. The measurement method according to claim 3, characterized in that, The predetermined phase relationship is a phase difference of 180 degrees; correspondingly, the target measurement result is obtained by combining the first integration result and the second integration result, including: The DC offset of the tested system is obtained by summing the first integral result and the second integral result and taking the average value.
5. The measurement method according to claim 3, characterized in that, The predetermined phase relationship ensures that the phases remain consistent; correspondingly, the measured signal is integrated within the second synchronous integration window to obtain a second integration result, including: The measured signal after polarity reversal is integrated within the second synchronous integration window to obtain the second integration result; Accordingly, the target measurement result is obtained by combining the first integration result and the second integration result, including: The DC measurement value of the measured signal is obtained by performing a difference operation on the first integration result and the second integration result and taking the average value.
6. The measurement method according to claim 1, characterized in that, The measured signal is an AC signal, and the method further includes: The measured signal is squared to obtain a squared signal containing a DC component and a second harmonic AC component; A synchronous integration window is established based on the characteristic phase of the squared signal. The squared signal is integrated in the synchronous integration window corresponding to the two characteristic phases with a phase difference of 180 degrees to obtain the third integration result and the fourth integration result. The effective value of the measured signal is obtained by summing or averaging the third and fourth integral results and taking the square root of the result.
7. The measurement method according to claim 1, characterized in that, The method further includes: When the amplitude of the AC reference signal is lower than a preset threshold, or the detection reliability of the characteristic phase is lower than a preset condition, the update of the characteristic phase is paused, and a synchronous integration window is established using the most recent valid characteristic phase, or the measurement is switched to any one of the following modes: fixed integration window measurement, low-pass filter measurement, or predictive phase measurement. When the AC reference signal recovers to the level that meets the detection conditions, a synchronous integration window is established based on the characteristic phase.
8. A measuring device, characterized in that, include: The acquisition module is used to acquire the AC reference signal synchronized with the system under test; The detection module is used to detect the characteristic phase of the AC reference signal and establish multiple synchronous integration windows based on the characteristic phase; wherein the multiple synchronous integration windows correspond to multiple predetermined phase positions in the AC reference signal. The first integration module is used to integrate the measured signal in the multiple synchronous integration windows respectively to obtain multiple corresponding integration results; The measurement module is used to perform combined calculations based on a predetermined correspondence between the multiple integration results to obtain the target measurement result; The multiple synchronous integration windows have a consistent phase reference in different measurement periods, so that common error terms in the multiple integration results can be canceled, suppressed or compensated through the combined operation.
9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the measurement method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the measurement method as described in any one of claims 1 to 7.