Oscilloscope inter-channel delay calibration method and apparatus, device, medium, and product
By using the oscilloscope's internal clock source to send a sine wave signal for automatic calibration, combined with sampling and DFT algorithms, the high cost and complexity of oscilloscope channel delay calibration are solved, achieving efficient and accurate channel delay calibration.
Patent Information
- Application Number
- PCT/CN2024/122109
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-28
- Filing Date
- 2024-09-29
- Publication Date
- 2026-01-02
AI Technical Summary
Current oscilloscope channel delay calibration requires manual operation, which increases labor and equipment costs, and is also highly complex and inefficient.
Automatic calibration is performed by sending a sine wave signal from the oscilloscope's internal clock source. The waveform data of the channel is sampled at a preset sampling frequency, and the first edge is used as a reference for delay calibration. Fine adjustment is then performed in conjunction with the DFT algorithm.
It enables automatic calibration of inter-channel delay in oscilloscopes, reducing costs and complexity while improving calibration efficiency and accuracy.
Smart Images

Figure CN2024122109_02012026_PF_FP_ABST
Abstract
Description
Oscilloscope inter-channel delay calibration method, device, equipment, medium and product
[0001] The present application claims priority to the Chinese patent application No. 202410869336.5 filed on June 28, 2024 to the Chinese Patent Office, the whole content of the above application is incorporated herein by reference. TECHNICAL FIELD
[0002] Embodiments of the present application relate to the field of computer technology, for example, to an oscilloscope inter-channel delay calibration method, device, equipment, medium and product. BACKGROUND
[0003] There is a delay between different channels of an oscilloscope. When using multiple channels to measure a group of signals, the synchronization of multiple channels needs to be ensured.
[0004] In the related art, before using the oscilloscope, an external fast edge source is manually controlled to send a signal for a one-time channel delay calibration, and then, after a period of time, the channel delay calibration is re-performed according to the use of the oscilloscope to ensure the synchronization between different channels.
[0005] In the related art, the calibration technology needs to manually control the external fast edge source to send a signal, which increases the labor cost. And with the increase of the bandwidth of the oscilloscope, the fast edge source also needs to be improved, which increases the equipment cost. In addition, before the channel delay calibration is performed by the external fast edge source, the external fast edge source also needs to be calibrated, which increases the complexity of the channel delay calibration and results in a low efficiency of the channel delay calibration.
[0006] SUMMARY
[0007] Embodiments of the present application provide an oscilloscope inter-channel delay calibration method, device, equipment, medium and product to realize automatic calibration of the oscilloscope inter-channel delay, reduce the cost and complexity of the oscilloscope inter-channel delay calibration, and improve the efficiency of the channel delay calibration.
[0008] According to an aspect of the present application, an oscilloscope inter-channel delay calibration method is provided, comprising:
[0009] sampling a sinusoidal signal in a plurality of channels according to a preset sampling frequency to obtain first waveform data corresponding to each channel, wherein the sinusoidal signal in the plurality of channels is a sinusoidal signal sent from when a clock source is turned on;
[0010] taking the first edge of the first waveform data corresponding to the plurality of channels as a reference, performing delay calibration on the plurality of channels.
[0011] According to another aspect of the present application, there is provided an oscilloscope inter-channel delay calibration apparatus, comprising:
[0012] a sampling module configured to sample the sinusoidal wave signals in the plurality of channels according to a preset sampling frequency to obtain first waveform data corresponding to each channel, wherein the sinusoidal wave signals in the plurality of channels are sinusoidal wave signals transmitted from when the clock source is turned on;
[0013] a first delay calibration module configured to perform delay calibration on the plurality of channels with the first edges of the first waveform data corresponding to the plurality of channels as a reference.
[0014] According to another aspect of the present application, there is provided an electronic device, comprising:
[0015] at least one processor; and
[0016] a memory in communication with the at least one processor; wherein
[0017] the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the oscilloscope inter-channel delay calibration method according to any one of the embodiments of the present application.
[0018] According to another aspect of the present application, there is provided a computer readable storage medium storing computer instructions for enabling a processor to perform the oscilloscope inter-channel delay calibration method according to any one of the embodiments of the present application when executed by the processor.
[0019] According to another aspect of the present application, there is provided a computer program product, the computer program being executed by a processor to implement the oscilloscope inter-channel delay calibration method according to any one of the embodiments of the present application. BRIEF DESCRIPTION OF DRAWINGS
[0020] The drawings needed to be used in the embodiments will be briefly introduced below, and it should be understood that the following drawings only show some of the embodiments of the present application, and therefore should not be considered as limiting the scope.
[0021] FIG. 1 is a flowchart of an oscilloscope inter-channel delay calibration method according to an embodiment of the present application;
[0022] FIG. 2 is a structural schematic diagram of an oscilloscope inter-channel delay calibration apparatus according to an embodiment of the present application;
[0023] FIG. 3 is a structural schematic diagram of an oscilloscope according to an embodiment of the present application;
[0024] FIG. 4 is a waveform diagram of two channels with time delay in the embodiment of the present application;
[0025] FIG. 5 is a waveform diagram of two channels corresponding to the channel delay calibration by a Discrete Fourier Transform (DFT) algorithm in the embodiment of the present application;
[0026] FIG. 6 is a flow chart of a delay calibration in the embodiment of the present application;
[0027] FIG. 7 is a first waveform data diagram corresponding to a plurality of channels before coarse adjustment in the embodiment of the present application;
[0028] FIG. 8 is a first waveform data diagram corresponding to a plurality of channels after coarse adjustment in the embodiment of the present application;
[0029] FIG. 9 is a structure diagram of another oscilloscope inter-channel delay calibration device in the embodiment of the present application;
[0030] FIG. 10 is a structure diagram of an electronic device in the embodiment of the present application. DETAILED DESCRIPTION
[0031] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. The described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should be within the scope of protection of the present application.
[0032] The terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units shown in the embodiments of the present application can also include other processes, methods, systems, products or devices that are not clearly listed or other steps or units inherent to these processes, methods, systems, products or devices.
[0033] It can be understood that before using the technical solutions disclosed in the embodiments of the present application, the type of personal information involved in the present disclosure, the scope of use, the use scenario, etc. should be informed to the user and the authorization of the user should be obtained in accordance with relevant laws and regulations.
[0034] Embodiment one
[0035] Figure 1 is a flow chart of an oscilloscope inter-channel delay calibration method provided by an embodiment of the present application. The embodiment can be applied to the case of oscilloscope inter-channel delay calibration. The method can be executed by an oscilloscope inter-channel delay calibration device in the embodiment of the present application. The device can be implemented in software and / or hardware and configured in an oscilloscope. The oscilloscope comprises a plurality of channels, a clock source and a calibration device. The clock source is connected to the plurality of channels and the calibration device respectively.
[0036] As shown in Figure 1, the method comprises the following steps:
[0037] S110, sampling the sinusoidal signals in the plurality of channels according to a preset sampling frequency to obtain first waveform data corresponding to each channel.
[0038] The sinusoidal signals in the plurality of channels are sinusoidal signals transmitted from when the clock source is turned on.
[0039] As shown in Figure 2, Figure 2 is a structural schematic diagram of an oscilloscope inter-channel delay calibration device. The signal source (fast edge source) outputs a signal. The signal passes through a data acquisition port and a hardware transmission link to a data processing module, and then to the calibration device for calibration calculation. The delay between channels is calibrated by comparing the rising edge positions of the fast edge signals. The difference between the rising edge positions of the fast edge signals in any two channels is configured to the data processing module to achieve the purpose of channel delay calibration. The calibration result needs to be saved internally. In the case of not recalibrating in the following period of time, only the original calibration data can be used. In the calibration process of Figure 2, the preparation, debugging, connection and the like of the signal source all need personnel to participate, which increases the labor cost, increases the complexity of calibration, and reduces the calibration efficiency. In order not to affect the calibration quality of the device, it is necessary to ensure the quality of the externally input fast edge signal, that is, the output error of each channel should be infinitely small. This is a very high requirement for the external signal source, which increases the cost of the device.
[0040] The embodiment of the present application adds a controllable clock source inside the oscilloscope, as shown in Figure 3, so that automatic calibration processing can be performed during each boot process of the oscilloscope.
[0041] The preset sampling frequency is a preset sampling frequency. The preset sampling frequency is greater than the frequency of the sinusoidal signals transmitted to the plurality of channels by the clock source.
[0042] Optionally, the manner of sampling the sine wave signals in the plurality of channels according to the preset sampling frequency to obtain the first waveform data corresponding to each channel can be as follows: when the oscilloscope is turned on, a calibration device in the oscilloscope sends an opening instruction to a clock source in the oscilloscope, the clock source is turned on after receiving the opening instruction, and the clock source starts to send sine wave signals to the plurality of channels from the time of being turned on; the calibration device samples the sine wave signals in the plurality of channels according to the preset sampling frequency to obtain the first waveform data corresponding to each channel.
[0043] In one example, as shown in FIG. 3, the calibration device includes a data processing module and a data display and calibration module, the data processing module includes a Field-Programmable Gate Array (FPGA), an Advanced Reduced Instruction Set Computer Machines (ARM), and an Analog to Digital (AD) acquisition chip; and the data display and calibration module includes a calibration unit. When the oscilloscope is turned on, the calibration unit sends an opening instruction (control signal) to a clock source in the oscilloscope, the clock source is turned on after receiving the opening instruction, and the clock source starts to send sine wave signals to channel 1, channel 2, channel 3, and channel 4 from the time of being turned on. The data processing module samples the sine wave signals in the plurality of channels according to the preset sampling frequency through a data acquisition port to obtain the first waveform data corresponding to channel 1, channel 2, channel 3, and channel 4, and sends the first waveform data corresponding to channel 1, channel 2, channel 3, and channel 4 to the calibration unit.
[0044] S120, taking the first edge of the first waveform data corresponding to each of the plurality of channels as a reference, performing delay calibration on the plurality of channels. As shown in FIG. 3, S120 can be performed by the calibration unit.
[0045] The first edge of the first waveform data can be a rising edge or a falling edge, and the embodiments of the present application do not limit this.
[0046] The embodiments of the present application sample the sine wave signals in the plurality of channels according to the preset sampling frequency to obtain the first waveform data corresponding to each channel, wherein the sine wave signals in the plurality of channels are sine wave signals sent from the time of the clock source being turned on; and take the first edge of the first waveform data corresponding to each of the plurality of channels as a reference to perform delay calibration on the plurality of channels, which can realize automatic calibration of the delay between the channels of the oscilloscope, reduce the cost and complexity of the delay calibration between the channels of the oscilloscope, and improve the efficiency of the channel delay calibration.
[0047] Optionally, the first edge of the first waveform data corresponding to each of the plurality of channels is taken as a reference, and the delay calibration of the plurality of channels can be performed in the following manner: determining a time difference corresponding to the first edges between channels according to the positions of the first edges of the first waveform data corresponding to each of the plurality of channels, and performing the delay calibration of the plurality of channels according to the time difference corresponding to the first edges between channels.
[0048] In the embodiment of the present application, a clock source is integrated into an oscilloscope. The clock source is accurate and controllable. After the oscilloscope is started, the clock source is controlled by software, and a calibration process is completed, so that the oscilloscope is not affected by time, operation errors and other factors, and the result does not need to be stored.
[0049] Optionally, the delay calibration of the plurality of channels includes the following steps:
[0050] determining a sampling number difference value corresponding to the first edges between channels according to the first waveform data corresponding to each of the plurality of channels;
[0051] determining a time difference corresponding to the first edges between channels according to the sampling number difference value corresponding to the first edges between channels and the preset sampling frequency;
[0052] performing the delay calibration of the plurality of channels according to the time difference corresponding to the first edges between channels.
[0053] Optionally, the sampling number difference value corresponding to the first edges between channels can be determined in the following manner: the sampling number difference value corresponding to the first edges between any two channels is determined according to the positions of the first edges of the first waveform data corresponding to each of the plurality of channels. For example, if there are channel 1 and channel 2, the position of the first edge of channel 1 is 10 sampling points different from the position of the first edge of channel 2, and then the sampling number difference value corresponding to the first edges between channel 1 and channel 2 is determined to be 10.
[0054] Optionally, the time difference corresponding to the first edges between channels can be determined in the following manner: the product of the sampling number difference value corresponding to the first edges between channels and the preset sampling frequency is determined as the time difference corresponding to the first edges between channels. For example, if the sampling number difference value corresponding to the first edges between channel 1 and channel 2 is 10, then the time difference corresponding to the first edges between channel 1 and channel 2 is determined to be the product of 10 and the preset sampling frequency.
[0055] Optionally, the delay calibration of the plurality of channels can be performed in the following manner: the time difference corresponding to the first edges between channels is configured to a data processing module of a calibration device to perform the first delay calibration of the plurality of channels.
[0056] Optionally, the sinusoidal signals in the multiple channels are sampled according to a preset sampling frequency to obtain first waveform data corresponding to each channel, including:
[0057] When the oscilloscope is in the single-shot trigger mode, the sinusoidal signals in the multiple channels are sampled according to a preset sampling frequency to obtain first waveform data corresponding to each channel.
[0058] The single-shot trigger mode refers to obtaining waveform data once when the trigger condition is met. After obtaining the waveform data once, no waveform data is obtained even if the trigger condition is met again.
[0059] When the oscilloscope is turned on, the initialization of the basic function module is performed first, and after the initialization is completed, the basic function module has a sampling function. After the basic function module has the sampling function, the preparation work before calibration is performed. The preparation work includes: the preparation work of the clock source (the preparation work of the clock source currently only ensures that the clock source is closed), the setting of the oscilloscope acquisition channel (the channel setting of the oscilloscope mainly includes the horizontal gear, the offset, the vertical gear, and the offset), and the trigger related setting (the trigger related setting includes: switching the mode of the oscilloscope to the single-shot trigger mode, setting the trigger channel, and setting the trigger level). After the preparation work is completed, the clock source is controlled to be turned on, and the clock source starts to send sinusoidal signals to the multiple channels from the time when the clock source is turned on. The calibration device samples the sinusoidal signals in the multiple channels according to a preset sampling frequency to obtain first waveform data corresponding to each channel.
[0060] When the oscilloscope is in the single-shot trigger mode, the sinusoidal signals in the multiple channels are sampled to obtain first waveform data corresponding to each channel, which contains the first edge of the sinusoidal signal starting from the amplitude zero. Since the current calibration method only needs to contain the waveform data of the first edge of the sinusoidal signal starting from the amplitude zero, too much waveform data is not needed, and too much waveform data will reduce the calibration efficiency. If the oscilloscope is in other modes, too much waveform data will be obtained by sampling, which reduces the calibration efficiency.
[0061] Optionally, before the sinusoidal signals in the multiple channels are sampled according to a preset sampling frequency to obtain first waveform data corresponding to each channel, the method further includes:
[0062] An opening instruction is sent to the clock source to control the clock source to be turned on, and the clock source starts to send sinusoidal signals of a first frequency to the multiple channels from the time when the clock source is turned on, wherein the opening instruction carries a calibration identifier, and the first frequency is determined according to the calibration identifier.
[0063] In the embodiment of the application, the frequency of the sinusoidal signals sent by the clock source can be adjusted according to the performance of the oscilloscope, for example, the frequency of the sinusoidal signals sent by the clock source can be determined through the calibration identifier carried by the opening instruction.
[0064] When the oscilloscope is turned on, a calibration device in the oscilloscope sends a start instruction to a clock source in the oscilloscope, where the start instruction carries a calibration identifier. After receiving the start instruction, the clock source determines a first frequency according to the calibration identifier, and the clock source is turned on. The clock source starts to send a sinusoidal signal of the first frequency to multiple channels from the time of turning on.
[0065] Optionally, after the time delay calibration of the multiple channels is performed based on the first edges of the first waveform data corresponding to the multiple channels respectively, the method further comprises:
[0066] When the oscilloscope is in a normal operation mode, the sinusoidal signals in the multiple channels are sampled according to a preset sampling frequency to obtain second waveform data corresponding to each channel;
[0067] Based on a DFT algorithm, the second waveform data corresponding to each channel is processed to obtain a phase difference between channels;
[0068] The multiple channels are calibrated in time delay based on the phase difference between channels.
[0069] When the oscilloscope is in the normal operation mode, waveform data is acquired each time a triggering condition is met. The more the waveform data is acquired, the higher the accuracy of the time delay calibration of the multiple channels based on the DFT algorithm is. When the oscilloscope is in other modes, the waveform data acquired is less than that acquired when the oscilloscope is in the normal operation mode. Therefore, when the oscilloscope is in the normal operation mode, the time delay calibration of the multiple channels based on the DFT algorithm can improve the calibration accuracy.
[0070] Optionally, the way of calibrating the multiple channels in time delay based on the phase difference between channels can be that the phase difference between channels is configured to a data processing module of the calibration device for a second time delay calibration of the multiple channels.
[0071] When two channels acquire the same calibration signal, the time delay of the two channels is large, exceeding one signal period. The DFT algorithm is used for the time delay calibration of the channels. After the calibration is completed, there is still time delay between the channels.
[0072] In one example, as shown in FIG. 4, if the first edges of two channels are different by one period +T1, FIG. 5 shows the result after the time delay calibration of the channels by the DFT algorithm. As shown in FIG. 5, after the time delay calibration of the channels by the DFT algorithm, there is still a time delay of one period between the two channels. That is, the position of the first edge of the first channel is different from the position of the first edge of the second channel by one period.
[0073] The embodiment of the application first takes the sine wave signal sent to the multiple channels from the start of the clock source as a calibration signal, takes the first edge of the first waveform data corresponding to the multiple channels as a reference, and performs first-stage delay calibration on the multiple channels. After the first-stage delay calibration, the delay between the channels is small, and second-stage channel delay calibration is performed through the DFT algorithm, which can ensure higher calibration accuracy.
[0074] The embodiment of the application uses a more accurate algorithm for stage-by-stage calibration calculation, which can ensure higher calibration accuracy.
[0075] In another example, as shown in FIG. 6, the delay calibration process is as follows:
[0076] 1. The oscilloscope is powered on, and the basic function module is initialized. After the initialization of the basic function module is completed, the basic function module has a sampling function.
[0077] 2. Preparation work before calibration. The preparation work includes: preparation work of the clock source (the preparation work of the clock source currently only ensures that the clock source is closed), setting of the oscilloscope acquisition channel (the channel setting of the oscilloscope mainly includes horizontal position, offset, vertical position, offset), trigger-related setting (the trigger-related setting includes: switching the mode of the oscilloscope to the single trigger mode, setting the trigger channel, and setting the trigger level).
[0078] 3. After the preparation work is completed, the clock source is controlled to be turned on from off, and a sine wave signal is sent. At this time, the sine wave signal starts from the first edge of the amplitude zero as a coarse adjustment reference. The data acquisition and processing module acquires waveform data of multiple channels at the same time according to the set trigger option, and sends the waveform data of the multiple channels to the coarse adjustment alignment data processing subunit of the calibration unit. The coarse adjustment alignment data processing subunit performs a first calculation according to the difference of the first waveform data corresponding to the multiple channels respectively, configures the calculation result to the data acquisition and processing module, and performs a first delay calibration. The first delay calibration can be accurately controlled within one sampling point interval range of the current sampling frequency.
[0079] 4. After the first-stage delay calibration is completed, the delay between the channels is accurate and has high accuracy. The calibration unit controls the oscilloscope to run normally, and acquires enough sine wave signals. At this time, the sine wave signal is used as a fine adjustment data source. The data acquisition and processing module acquires waveform data of multiple channels at the same time according to the set trigger option, and sends the waveform data of the multiple channels to the fine adjustment processing subunit of the calibration unit. The fine adjustment processing subunit calculates the phase of the waveform based on the DFT algorithm, calculates the phase difference of all channel waveform data with a certain channel as a reference, and then converts the current phase difference into a time difference and configures it to the data acquisition and processing module.
[0080] 5、Second stage calibration is completed, the whole calibration function is completed, and the oscilloscope exits the calibration process and starts normal operation.
[0081] In the embodiment of the application, the internal clock source of the oscilloscope is used for calibration, the sine wave signal sent by the clock source is input into the data acquisition ports of multiple channels in a one-to-multiple way, the synchronization of the sine wave signal itself is ensured, and each time the oscilloscope is started, the start self-calibration is completed through two-stage calibration algorithms, the problem of complicated external calibration steps is solved, and the calibration accuracy can be continuously improved in the case that the clock signal is higher and the data quantity is larger.
[0082] Optionally, the first frequency is greater than a frequency threshold.
[0083] The sine wave signal is a high-speed sine wave signal.
[0084] The high-speed sine wave signal has good waveform quality and a change speed of the edge that is fast enough. Therefore, the high-speed sine wave signal can ensure the reliability and accuracy of the inter-channel delay calibration.
[0085] Optionally, the first frequency is greater than or equal to a preset sampling frequency multiplied by a first preset multiple, the first preset multiple is greater than 0, and the first preset multiple is less than 1.
[0086] The first preset multiple can be 0.05 times.
[0087] Under the premise that the sampling frequency and the data quantity are sufficient, the calibration accuracy can be infinitely improved. The frequency of the sine wave signal used in the calibration process should be greater than or equal to 0.05 times the sampling rate used in calibration. For example, under the condition of a 40G / s sampling rate, the point interval is 25 ps, and a 200M sine wave calibration signal is used, the inter-channel delay can be controlled to 25 ps in accuracy after the first-stage adjustment, and the final inter-channel delay calibration accuracy can be improved through the second-stage inter-channel delay calibration by using the DFT algorithm.
[0088] The whole calibration process uses the sine wave signal set in advance, which can ensure the reliability and accuracy of the calibration and simplify the calibration process. The first edge of the first waveform data corresponding to multiple channels is used as a reference to calibrate the delay of the multiple channels, and the waveform quality of the signal itself should be good and the change speed of the edge should be fast enough. The sine wave signal has the advantages of being easier to generate a high-quality waveform and having a fast change speed of the edge.
[0089] FIG. 7 is a schematic view of the first waveform data corresponding to multiple channels before coarse adjustment. The first edge of the first waveform data corresponding to multiple channels is used as a reference for coarse adjustment.
[0090] Figure 8 is a schematic view of first waveform data corresponding to multiple channels after coarse adjustment. After coarse adjustment, the delay between channels is very small, and further adjustment cannot be made according to the current sampling rate. Further adjustment is made according to the DFT algorithm, and more accurate time adjustment is made according to known parameters such as phase relationship and signal frequency. When the amount of waveform data is sufficient and the sine wave signal is further improved, the multi-channel relationship can be adjusted to substantially coincide.
[0091] The technical solution of the embodiment uses the sine wave signal sent by the internal clock source of the oscilloscope to the multiple channels of the oscilloscope as a calibration signal, samples first waveform data corresponding to the multiple channels, and uses the first edge of the first waveform data corresponding to the multiple channels as a reference to calibrate the delay of the channels of the oscilloscope, thereby achieving automatic calibration of the delay between the channels of the oscilloscope. Using the sine wave signal sent by the internal clock source of the oscilloscope as a calibration signal can automatically control the clock source to send the sine wave signal, without manual operation, thereby reducing labor costs. If the bandwidth of the oscilloscope is improved, the internal clock source can be controlled to send a sine wave signal with a corresponding frequency, without replacing the clock source, thereby reducing equipment costs.
[0092] Embodiment Two
[0093] Figure 9 is a schematic view of the structure of an oscilloscope channel delay calibration device provided by the embodiment. The embodiment can be applied to the calibration of the delay between the channels of the oscilloscope. The device can be implemented in software and / or hardware, and can be integrated into any device that provides the function of calibrating the delay between the channels of the oscilloscope, for example, a calibration device of an oscilloscope. The oscilloscope includes multiple channels, a clock source, and a calibration device. The clock source is connected to the multiple channels and the calibration device. As shown in Figure 9, the oscilloscope channel delay calibration device includes a sampling module 910 and a first delay calibration module 920.
[0094] The sampling module 910 is configured to sample the sine wave signal in the multiple channels according to a preset sampling frequency to obtain first waveform data corresponding to each channel. The sine wave signal in the multiple channels is a sine wave signal sent from the start of the clock source.
[0095] The first delay calibration module 920 is configured to calibrate the delay of the multiple channels with the first edge of the first waveform data corresponding to the multiple channels as a reference.
[0096] Optionally, the first delay calibration module 920 is configured to: determine a sampling number difference of the first edge of the channels according to the first waveform data corresponding to the plurality of channels respectively; determine a time difference of the first edge of the channels according to the sampling number difference of the first edge of the channels and the preset sampling frequency; and calibrate the plurality of channels according to the time difference of the first edge of the channels.
[0097] Optionally, the sampling module 910 is configured to: when the oscilloscope is in the single-shot trigger mode, sample the sine wave signal in the plurality of channels according to the preset sampling frequency to obtain the first waveform data corresponding to each channel.
[0098] Optionally, the oscilloscope inter-channel delay calibration device further comprises an opening instruction sending module configured to send an opening instruction to the clock source to control the clock source to open and to control the clock source to send the sine wave signal of the first frequency to the plurality of channels from the opening time before sampling the sine wave signal in the plurality of channels according to the preset sampling frequency to obtain the first waveform data corresponding to each channel, wherein the opening instruction carries a calibration identifier, and the first frequency is a frequency determined according to the calibration identifier.
[0099] Optionally, the oscilloscope inter-channel delay calibration device further comprises: a second waveform data determination module configured to, after calibrating the plurality of channels according to the first waveform data corresponding to the plurality of channels respectively, sample the sine wave signal in the plurality of channels according to the preset sampling frequency to obtain the second waveform data corresponding to each channel when the oscilloscope is in the normal operation mode; a phase difference between channels determination module configured to process the second waveform data corresponding to the plurality of channels respectively based on the DFT algorithm to obtain the phase difference between the channels; and a second delay calibration module configured to calibrate the plurality of channels according to the phase difference between the channels.
[0100] Optionally, the first frequency is greater than a frequency threshold.
[0101] Optionally, the first frequency is greater than or equal to a preset sampling frequency of a first preset multiple, and the first preset multiple is greater than 0 and less than 1.
[0102] The product can execute the method provided by any embodiment of the application, has the corresponding function modules and effects of the method.
[0103] Embodiment Three
[0104] FIG. 10 shows a structural schematic diagram of an electronic device 10 that can be used to implement embodiments of the present application. The electronic device can be any form of digital computer, such as a laptop computer, a desktop computer, a workstation, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also be any form of mobile device, such as a personal digital assistant, a cellular phone, a smart phone, a wearable device (e.g., a helmet, glasses, a watch, etc.), and other similar computing devices. The components shown herein, their connections, and relationships, and their functions, are shown as examples only and are not meant to limit implementations of the present application described and / or claimed herein.
[0105] As shown in FIG. 10, the electronic device 10 includes at least one processor 11, and a memory, such as a Read-Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., connected to the at least one processor 11 in communication, where the memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer programs stored in the Read-Only Memory (ROM) 12 or loaded into the Random Access Memory (RAM) 13 from the storage unit 18. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An Input / Output (I / O) interface 15 is also connected to the bus 14.
[0106] Various components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as any type of display, a speaker, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network, such as the Internet, and / or any telecommunication network.
[0107] The processor 11 can be any general and / or special purpose processing component having processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphic processing unit (GPU), any special-purpose artificial intelligence (AI) computing chip, any processor running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the methods and processes described above, such as the oscilloscope inter-channel delay calibration method.
[0108] In some embodiments, the oscilloscope inter-channel delay calibration method can be implemented as a computer program tangibly embodied in a computer readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded onto the RAM 13 and executed by the processor 11, one or more steps of the oscilloscope inter-channel delay calibration method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the oscilloscope inter-channel delay calibration method by other any suitable means, such as by means of firmware.
[0109] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), a Complex Programmable Logic Device (CPLD), a System on Chip (SOC), a Programmable Logic Device (PLD), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0110] Computer programs implementing methods of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the computer program, when executed by the processor of the machine, implements the functions / acts specified in the flow diagrams and / or block diagrams. The computer program can be executed entirely on a machine, partially on a machine, partially on a machine as part of a standalone software package, partially on a machine and partially on a remote machine or entirely on a remote machine or server.
[0111] In the context of this application, a computer readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium can be a machine readable signal medium. A machine readable signal medium can include a based on one or more lines of electrical communication, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) or flash memory cards, fiber optics, compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0112] To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having a display device (e.g., a Cathode Ray Tube (CRT) or Liquid Crystal Display (LCD) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0113] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0114] The computing system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The relationship of client and server is one of many possible arrangements for the relationship between the computing devices configured to provide the cloud computing services. The server can be a cloud server, also known as cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business scalability in traditional physical host and virtual private server (VPS) services.
[0115] It should be understood that the steps shown in the above forms can be reordered, added, or deleted. For example, the steps described in the present application can be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions of the present application can be achieved, and the present application does not limit herein.
[0116] The embodiment of the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the oscilloscope inter-channel delay calibration method according to any embodiment of the present application.
[0117] The computer program product can be written in one or more programming languages or combinations of languages to implement the computer program code for performing the operations of the present application, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on a user computer, partially on a user computer, as a separate software package, partially on a user computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, through the Internet using an Internet service provider).
Claims
1. A method for calibrating inter-channel delay of an oscilloscope, applied to an oscilloscope, the oscilloscope comprising: The system comprises multiple channels, a clock source, and a calibration device, wherein the clock source is connected to the multiple channels and the calibration device respectively, and the method is executed by the calibration device. The method includes: The sinusoidal signals in the multiple channels are sampled according to a preset sampling frequency to obtain the first waveform data corresponding to each channel. The sinusoidal signals in the multiple channels are sinusoidal signals sent from the moment the clock source is turned on. The delay calibration is performed on the multiple channels based on the first edge of the first waveform data corresponding to each of the multiple channels.
2. The method according to claim 1, wherein, The step of performing delay calibration on the multiple channels, using the first edge of the first waveform data corresponding to each of the multiple channels as a reference, includes: The difference in the number of samples corresponding to the first edge between the channels is determined based on the first waveform data corresponding to each of the multiple channels. The time difference corresponding to the first edge between channels is determined based on the difference in the number of samples corresponding to the first edge between the channels and the preset sampling frequency; The delay calibration of the multiple channels is performed based on the time difference corresponding to the first edge between the channels.
3. The method according to claim 1, wherein, The step of sampling the sinusoidal signals in the multiple channels according to a preset sampling frequency to obtain the first waveform data corresponding to each channel includes: In response to the oscilloscope being in single-trigger mode, the sinusoidal signals in the multiple channels are sampled according to a preset sampling frequency to obtain the first waveform data corresponding to each channel.
4. The method according to claim 1, before sampling the sinusoidal signals in the plurality of channels according to a preset sampling frequency to obtain the first waveform data corresponding to each channel, further comprising: An enable command is sent to the clock source to control the clock source to turn on, and the clock source is controlled to send a sine wave signal of a first frequency to the multiple channels from the time of enable. The enable command carries a calibration identifier, and the first frequency is a frequency determined according to the calibration identifier.
5. The method according to claim 1, after performing delay calibration on the plurality of channels based on the first edge of the first waveform data corresponding to each of the plurality of channels, further comprising: In response to the oscilloscope being in normal operating mode, the sinusoidal signals in the multiple channels are sampled according to the preset sampling frequency to obtain the second waveform data corresponding to each channel; Based on the Discrete Fourier Transform (DFT) algorithm, the second waveform data corresponding to the multiple channels are processed to obtain the phase difference between the channels; The multiple channels are time-delayed and calibrated based on the phase difference between them.
6. The method according to claim 4, wherein, The first frequency is greater than the frequency threshold.
7. The method according to claim 6, wherein, The first frequency is a preset sampling frequency that is greater than or equal to a first preset multiple, wherein the first preset multiple is greater than 0 and less than 1.
8. An oscilloscope channel delay calibration device, configured in the calibration device of the oscilloscope, the oscilloscope comprising: Multiple channels, a clock source, and a calibration device, wherein the clock source is connected to the multiple channels and the calibration device respectively, and the oscilloscope inter-channel delay calibration device includes: The sampling module is configured to sample the sinusoidal signals in the multiple channels according to a preset sampling frequency to obtain the first waveform data corresponding to each channel, wherein the sinusoidal signals in the multiple channels are sinusoidal signals sent from the moment the clock source is turned on; The first delay calibration module is configured to perform delay calibration on the multiple channels based on the first edge of the first waveform data corresponding to each of the multiple channels.
9. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the oscilloscope inter-channel delay calibration method according to any one of claims 1-7.
10. A computer-readable storage medium, wherein, The computer-readable storage medium stores computer instructions that cause a processor to execute the oscilloscope channel delay calibration method according to any one of claims 1-7.
11. A computer program product, wherein, The computer program product includes a computer program that, when executed by a processor, implements the oscilloscope channel delay calibration method according to any one of claims 1-7.
Citation Information
Patent Citations
Sinusoidal signal four parameters testing method and virtual apparatus signal detection device
CN101251556A
Multi-channel digital oscilloscope and signal synchronization method thereof
CN102435809A
Digital oscilloscope and self-calibration method for digital oscilloscope
CN108254608A
Method for detecting synchronization of acquisition channel in digital integrated circuit test system
CN109633508A
Digital oscilloscope and automatic calibration method for delay difference between channels thereof
CN113252958A