+

CN110780100B - Oscilloscope automatic setting method based on frequency rapid measurement algorithm - Google Patents

Oscilloscope automatic setting method based on frequency rapid measurement algorithm Download PDF

Info

Publication number
CN110780100B
CN110780100B CN201910903494.7A CN201910903494A CN110780100B CN 110780100 B CN110780100 B CN 110780100B CN 201910903494 A CN201910903494 A CN 201910903494A CN 110780100 B CN110780100 B CN 110780100B
Authority
CN
China
Prior art keywords
array
minimum
frequency
signal
peak
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910903494.7A
Other languages
Chinese (zh)
Other versions
CN110780100A (en
Inventor
郑德智
颜培荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beihang University
Original Assignee
Beihang University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beihang University filed Critical Beihang University
Priority to CN201910903494.7A priority Critical patent/CN110780100B/en
Publication of CN110780100A publication Critical patent/CN110780100A/en
Application granted granted Critical
Publication of CN110780100B publication Critical patent/CN110780100B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R13/00Arrangements for displaying electric variables or waveforms
    • G01R13/02Arrangements for displaying electric variables or waveforms for displaying measured electric variables in digital form
    • G01R13/0209Arrangements for displaying electric variables or waveforms for displaying measured electric variables in digital form in numerical form
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/14Fourier, Walsh or analogous domain transformations, e.g. Laplace, Hilbert, Karhunen-Loeve, transforms

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Algebra (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)

Abstract

本发明公开了一种基于时间域软件测量幅度、频率快速测量算法的示波器自动设置方法,包括:将需要处理的数据抽取出多个时间间隔不同的特征数组;并对这多个特征数组进行峰峰值以及最小整周期数的判断,找到能代表信号峰峰值和频率特征的数组;再根据该数组对水平时基档和垂直幅度挡位进行设置。本发明具有低成本、速度快、适用范围广等特点。

Figure 201910903494

The invention discloses an automatic setting method of an oscilloscope based on a time domain software measuring amplitude and frequency fast measurement algorithm, which comprises: extracting a plurality of characteristic arrays with different time intervals from the data to be processed; Determine the peak value and the minimum number of integer cycles, and find an array that can represent the peak-to-peak value and frequency characteristics of the signal; then set the horizontal time base and vertical amplitude gears according to the array. The invention has the characteristics of low cost, high speed, wide application range and the like.

Figure 201910903494

Description

一种基于频率快速测量算法的示波器自动设置方法An automatic setting method of oscilloscope based on fast frequency measurement algorithm

技术领域technical field

本发明属于电子测量仪器领域,特别涉及一种时间域软件测量幅度及频率的快速测量算法,以及基于此算法的数字示波器快速自动设置方法。The invention belongs to the field of electronic measuring instruments, in particular to a fast measurement algorithm for measuring amplitude and frequency by time domain software, and a fast automatic setting method for a digital oscilloscope based on the algorithm.

背景技术Background technique

示波器作为电子信息领域最常用的测量仪器,在各大高校、实验室、公司等都发挥着着巨大的作用,但在其使用时常需要手动调节水平时基及垂直幅度以使得波形的显示效果良好,而自动设置功能可以自动对水平时基及垂直幅度进行设置,以满足使用者的要求。As the most commonly used measuring instrument in the field of electronic information, the oscilloscope plays a huge role in major universities, laboratories, companies, etc., but it is often necessary to manually adjust the horizontal time base and vertical amplitude to make the waveform display well. , and the automatic setting function can automatically set the horizontal time base and vertical amplitude to meet the user's requirements.

自动设置功能实际上是对信号的幅度和频率进行测量,以此确定应选择的水平时基和垂直幅度,大概方法都是先初始化一个幅度挡位,然后通过特定方法得到其幅度或频率,如果幅度挡位不合适就需要调整幅度挡位重新测量。The automatic setting function actually measures the amplitude and frequency of the signal to determine the horizontal time base and vertical amplitude that should be selected. The general method is to initialize an amplitude gear first, and then obtain its amplitude or frequency through a specific method. If If the amplitude gear is not suitable, it is necessary to adjust the amplitude gear and measure again.

在现有的方法里,对于信号幅度的测量可以分为软件和硬件两类。其中硬件一般通过峰值检测电路实现;而软件一般是通过对采样数据进行一次遍历得到其最大最小值,两者做差即可得到信号的幅度。而对于未知信号的频率测量也大致可以分为硬件和软件两类。其中,硬件主要是通过对输入信号进行整型后通过比较电路输出为与输入信号频率相关的方波,再利用测频电路测量其频率,常用方法包括:直接测频法、多周期测频法等;软件测频又可以分为时间域测频和频率域测频两类,时间域测频一般是对采样数据进行两次遍历,通过计算每个信号周期内的采样点数进而计算信号频率,频率域测频一般采用的是对采样数据进行快速傅里叶变换将其转换成频率域后找出信号中除直流分量外频率分量最大值的频率,即可视为信号频率。In the existing methods, the measurement of signal amplitude can be divided into two categories: software and hardware. The hardware is generally implemented by a peak detection circuit; while the software generally obtains the maximum and minimum values by traversing the sampled data once, and the amplitude of the signal can be obtained by making the difference between the two. The frequency measurement of unknown signals can also be roughly divided into two categories: hardware and software. Among them, the hardware is mainly to output a square wave related to the frequency of the input signal through the comparison circuit after shaping the input signal, and then use the frequency measurement circuit to measure its frequency. Common methods include: direct frequency measurement method, multi-cycle frequency measurement method etc.; software frequency measurement can be divided into time domain frequency measurement and frequency domain frequency measurement. Time domain frequency measurement generally traverses the sampled data twice, and calculates the signal frequency by calculating the number of sampling points in each signal cycle. Frequency domain frequency measurement generally adopts the fast Fourier transform of the sampled data to convert it into frequency domain and finds the frequency of the maximum frequency component in the signal except the DC component, which can be regarded as the signal frequency.

然而,上述方法在使用中都存在一定问题。例如,中国专利CN101609106A公开的“数字示波器的自动设置方法”以及中国专利CN103809002A公开的“数字荧光示波器自动设置的控制方法”都是使用硬件电路测量频率、软件方法测幅度,再通过二分法对幅度挡位进行调整后再次进行重复测量的方式。在实际使用中测频电路要求幅度挡位设置合适、输入信号幅度足够大且比较电平设置合理,而时间域软件测幅度又要求时基挡位设置合理,并对至少一周期的数据进行遍历,采样率越高,花费时间就越多,同时由于测频和测幅度的互相约束,导致自动设置常需要多次重复测量,消耗大量时间且准确率较低。However, the above methods all have certain problems in use. For example, the "automatic setting method of digital oscilloscope" disclosed in Chinese patent CN101609106A and the "automatic setting control method of digital phosphor oscilloscope" disclosed in Chinese patent CN103809002A both use hardware circuits to measure frequency, software methods to measure amplitude, and then use the dichotomy method to measure the amplitude. A method of repeating the measurement again after the gear has been adjusted. In actual use, the frequency measurement circuit requires that the amplitude gear is set properly, the input signal amplitude is large enough and the comparison level is set reasonably, while the time domain software measurement of the amplitude requires the time base gear to be set reasonably and traverse at least one cycle of data. , the higher the sampling rate, the more time it takes. At the same time, due to the mutual constraints of frequency measurement and amplitude measurement, the automatic setting often requires repeated measurements, which consumes a lot of time and has low accuracy.

中国专利CN105510664A公开的“一种数字示波器的自动设置方法”以及中国专利CN106597048A公开的“一种基于硬件集中式的数字示波器快速自动设置方法”都是使用硬件电路测量频率,硬件峰值检测测幅度的方式。其频率测量方面仍会面临上述问题,而其采用的峰值检测模式虽然避免了时间域软件测频运算量大、花费时间多的缺点,但其允许的信号频率低,对于高频信号很难适用。The "automatic setting method of a digital oscilloscope" disclosed by Chinese patent CN105510664A and the "fast automatic setting method of a digital oscilloscope based on hardware centralized type" disclosed by Chinese patent CN106597048A both use hardware circuits to measure frequency, and hardware peak detection to measure amplitude. Way. Its frequency measurement still faces the above problems, and although the peak detection mode it adopts avoids the shortcomings of time-domain software frequency measurement, which requires a large amount of computation and time-consuming, its allowable signal frequency is low, which is difficult to apply to high-frequency signals. .

中国专利CN108037339A公开的“一种数字示波器自动设置的控制方法”使用的是软件测幅度,频率域软件测频的方式。其将软件测幅度与采样同步进行,使得避免了上述专利在幅度测量的缺点,但是其不适用于采样率高的示波器,当数据采集速度高于FPGA的处理速度,幅度测量与采样就无法保持同步,导致消耗时间的增加。其对频率的测量需要对数据进行快速傅里叶变换,而随着采样率的增大,需要计算的数据量也会变大,消耗时间也会显著增多。此外,由于其需要对采样数据并行处理及快速傅里叶变换,就要求使用FPGA这样的硬件处理器,且随着示波器采样率的提高,对资源的占用就越大,成本较高。Chinese patent CN108037339A discloses "a control method for automatic setting of digital oscilloscope" using software to measure amplitude and frequency domain software to measure frequency. It synchronizes software amplitude measurement and sampling, which avoids the shortcomings of the above-mentioned patents in amplitude measurement, but it is not suitable for oscilloscopes with high sampling rate. When the data acquisition speed is higher than the processing speed of FPGA, the amplitude measurement and sampling cannot be maintained. synchronization, resulting in an increase in the consumption time. The measurement of the frequency requires fast Fourier transform of the data, and as the sampling rate increases, the amount of data to be calculated will also increase, and the time consumption will also increase significantly. In addition, since it requires parallel processing of sampled data and fast Fourier transform, a hardware processor such as FPGA is required, and as the sampling rate of the oscilloscope increases, the resource occupation is larger and the cost is higher.

综上所述,目前大部分的示波器自动设置方法在速度、准确率、适用频率范围、成本等方面都各有不足。To sum up, most of the current oscilloscope automatic setting methods have their own shortcomings in terms of speed, accuracy, applicable frequency range, and cost.

发明内容SUMMARY OF THE INVENTION

为解决示波器在实现自动设置功能上如何达到自动设置速度快、适用频率范围广、成本低的问题,本发明提出一种基于时间域软件测量幅度、频率快速算法的示波器自动设置方法,通过对抽取出的不同时间间隔的特征数组间的峰峰值及最小整周期数进行比较,实现对信号幅度和频率的快速测量,进而达到自动设置的目的。In order to solve the problems of fast automatic setting speed, wide applicable frequency range and low cost of oscilloscope in realizing automatic setting function, the present invention proposes an oscilloscope automatic setting method based on time domain software measuring amplitude and frequency fast algorithm. The peak-to-peak value and the minimum number of integer cycles are compared between the characteristic arrays of different time intervals, so as to realize the rapid measurement of the signal amplitude and frequency, and then achieve the purpose of automatic setting.

本发明提供了一种基于时间域软件测量幅度、频率快速算法的示波器自动设置方法,包括如下步骤:The present invention provides an oscilloscope automatic setting method based on time domain software measuring amplitude and frequency fast algorithm, comprising the following steps:

S1:自动设置开始时先对幅度挡位进行初步调整,具体过程如下:S1: Initially adjust the amplitude gear at the beginning of automatic setting. The specific process is as follows:

S11:在开始时,将幅度挡位的量程Sv设置为最大量程;S11: At the beginning, set the range S v of the amplitude gear to the maximum range;

S12:将时基挡位设置为最小,根据自动设置的最小识别频率fmin以及最小时基挡位对应的最大采样率fmax,确定采样的点数N进行采样:S12: Set the time base gear to the minimum, and determine the number of sampling points N for sampling according to the automatically set minimum recognition frequency f min and the maximum sampling rate f max corresponding to the minimum time base gear:

Figure BDA0002212567160000031
Figure BDA0002212567160000031

S13:从采样数据中抽取M个时间间隔不同的特征数组Array1至ArrayMS13: Extract M feature arrays Array 1 to Array M with different time intervals from the sampled data;

S14:对M个特征数组中的每个特征数组进行一次遍历,获取所述特征数组的最大值MAXi和最小值MINi,i=1,2,…,M,两者做差求得所述特征数组的峰峰值Vppi=MAXi-MINi,两者加和平均求得所述特征数组的中值

Figure BDA0002212567160000032
再将所有特征数组的峰峰值比较,得到最大峰峰值Vppmax;S14: Perform a traversal of each feature array in the M feature arrays, and obtain the maximum value MAX i and the minimum value MIN i of the feature array, i=1, 2, ..., M, and the difference between the two is obtained. The peak-to-peak value of the characteristic array Vpp i =MAX i -MIN i , the sum of the two is averaged to obtain the median value of the characteristic array
Figure BDA0002212567160000032
Then compare the peak-to-peak values of all feature arrays to obtain the maximum peak-to-peak value Vpp max ;

S15:判断最大峰峰值Vppmax是否大于Sv×ε,ε为阈值常数,若大于则进入步骤S2,否则将幅度挡位的量程Sv调整为大于Vppmax的最小量程,并返回步骤S12重新采样;S15: Determine whether the maximum peak-to-peak Vpp max is greater than S v ×ε, where ε is the threshold constant, if it is greater than it, go to step S2, otherwise, adjust the range S v of the amplitude gear to the minimum range greater than Vpp max , and return to step S12 to re- sampling;

S2:根据峰峰值准则和最小整周期准则,找到能够代表信号幅度和频率特征的判断数组,具体过程如下:S2: According to the peak-to-peak criterion and the minimum whole period criterion, find a judgment array that can represent the signal amplitude and frequency characteristics. The specific process is as follows:

S21:初始化i=1;S21: initialize i=1;

S22:判断特征数组Arrayi的峰峰值Vppi是否小于α×Vppmax,α为常数,若小于,则令i=i+1,返回步骤S22继续判断,否则进入步骤S23;S22: Determine whether the peak-to-peak value Vpp i of the feature array Array i is less than α×Vpp max , where α is a constant, if it is less than, set i=i+1, and return to step S22 to continue the judgment, otherwise, go to step S23;

S23:令j=i;S23: let j=i;

S24:根据最小整周期算法,计算特征数组Arrayj的最小整周期数Num并判断所述最小整周期数Num是否为零,若所述最小整周期数Num为零,则令i=j+1,若i>M,则将特征数组Arrayj作为判断数组,进入步骤S3,否则返回步骤S22继续判断;若所述最小整周期数Num不为零,则将特征数组Arrayj作为判断数组,继续步骤S3;S24: Calculate the minimum integer period Num of the feature array Array j according to the minimum integer period algorithm, and determine whether the minimum integer period Num is zero. If the minimum integer period Num is zero, set i=j+1 , if i>M, then use the characteristic array Array j as the judgment array, and go to step S3, otherwise return to step S22 to continue the judgment; if the minimum integer cycle number Num is not zero, then use the characteristic array Array j as the judgment array, and continue step S3;

S3:根据判断数组Arrayj的最大值MAXj和最小值MINj,确定幅度挡位,再计算出信号的频率并根据频率确定时基挡位,具体过程如下:S3: Determine the amplitude gear according to the maximum value MAX j and the minimum value MIN j of the judgment array Array j , and then calculate the frequency of the signal and determine the time base gear according to the frequency. The specific process is as follows:

S31:根据步骤S14的算法计算得到判断数组Arrayj的峰峰值Vppj和中值

Figure BDA0002212567160000041
其中,根据峰峰值Vppj确定幅度挡位的量程为Sv,使其满足0.4×Sv≤Vppj≤0.8×Sv,并把中值
Figure BDA0002212567160000042
作为相应通道的直流偏置;S31: Calculate the peak-to-peak value Vpp j and the median value of the judgment array Array j according to the algorithm of step S14
Figure BDA0002212567160000041
Among them, according to the peak-to-peak Vpp j , the range of the amplitude gear is determined as S v , so that it satisfies 0.4×S v ≤Vpp j ≤0.8×S v , and the median value is
Figure BDA0002212567160000042
as the DC bias of the corresponding channel;

S32:计算出信号的频率f,进而确定时基挡位。S32: Calculate the frequency f of the signal, and then determine the time base gear.

进一步,M个特征数组中每个特征数组的大小为K,每个特征数组对应的时间间隔DT以倍数A依次递增,时间间隔DT从低到高依次为1/fmax、A/fmax、……、A^(M-1)/fmax,其中,特征数组数M计算如下:Further, the size of each feature array in the M feature arrays is K, the time interval DT corresponding to each feature array is sequentially increased by a multiple of A, and the time interval DT from low to high is 1/f max , A/f max , ..., A^(M-1)/f max , where the number M of feature arrays is calculated as follows:

Figure BDA0002212567160000043
Figure BDA0002212567160000043

其中,A、M、N、K需要满足下式:Among them, A, M, N, K need to satisfy the following formula:

A^(M-1)×K=N。A^(M-1)*K=N.

进一步,步骤S24中,所述最小整周期算法具体如下:Further, in step S24, the minimum integer cycle algorithm is specifically as follows:

首先进行比较阈值的判断,如下:First, the comparison threshold is judged as follows:

Figure BDA0002212567160000051
Figure BDA0002212567160000051

Figure BDA0002212567160000052
Figure BDA0002212567160000052

Figure BDA0002212567160000053
Figure BDA0002212567160000053

其中,β为阈值常数;Δj为比较窗口的宽度;

Figure BDA0002212567160000054
为特征数组Arrayj的高比较阈值;
Figure BDA0002212567160000055
为特征数组Arrayj的低比较阈值,Among them, β is the threshold constant; Δ j is the width of the comparison window;
Figure BDA0002212567160000054
is the high comparison threshold of the feature array Array j ;
Figure BDA0002212567160000055
is the low comparison threshold of the feature array Array j ,

然后对特征数组Arrayj进行一次遍历,找出数组中大于高比较阈值

Figure BDA0002212567160000056
的部分数量Num_h和小于低比较阈值
Figure BDA0002212567160000057
的部分数量Num_L,最后得到的是最小整周期数Num为Num_h和Num_L中较小的值减1。Then perform a traversal of the feature array Array j to find out if the value of the array is greater than the high comparison threshold
Figure BDA0002212567160000056
The number of parts Num_h and less than the low comparison threshold
Figure BDA0002212567160000057
The number of parts of Num_L, the final result is the minimum integer cycle number Num is the smaller value of Num_h and Num_L minus 1.

在一种可能的实施方式中,在步骤S24中,在对特征数组进行最小整周期数Num计算时,同时判断首先出现的是信号的顶部还是信号的底部,当是顶部的话就将首次到达底部的数组下标记为Cs,将最后到达底部的数组下标记为Ce;反之,则将首次到达顶部的数组下标记为Cs,将最后到达顶部的数组下标记为CeIn a possible implementation, in step S24, when calculating the minimum number of integer cycles Num for the feature array, it is determined whether the top of the signal or the bottom of the signal appears first, and if it is the top, it will reach the bottom for the first time C s , the last array that reaches the bottom is marked as C e ; otherwise, the array that reaches the top for the first time is marked as C s , and the last array that reaches the top is marked as C e .

进一步,根据判断数组Arrayj的Cs、Ce、对应的时间间隔DTj以及最小整周期数Num,可计算出信号的频率f,进而确定时基挡位Further, according to the C s , C e of the judgment array Array j , the corresponding time interval DT j and the minimum number of integer cycles Num, the frequency f of the signal can be calculated, and then the time base gear can be determined.

Figure BDA0002212567160000058
Figure BDA0002212567160000058

特别地,当Num=0时,说明信号在最大时间间隔的特征数组里最小整周期数Num小于2,那么就可以确定信号频率f的范围:In particular, when Num=0, it means that the minimum number of integer cycles Num in the characteristic array of the maximum time interval of the signal is less than 2, then the range of the signal frequency f can be determined:

fmin≤f<2fminf min ≤f<2f min .

在一种可能的实施方式中,步骤S32具体过程可以如下:In a possible implementation manner, the specific process of step S32 may be as follows:

基于判断数组Arrayj的最小整周期数Num、对应的时间间隔DTj和数组大小K,按照下式计算信号的频率范围,进而确定时基挡位Based on the minimum integer cycle number Num of the judgment array Array j , the corresponding time interval DT j and the array size K, the frequency range of the signal is calculated according to the following formula, and then the time base gear is determined

Figure BDA0002212567160000061
Figure BDA0002212567160000061

特别地,同样当Num=0时,说明信号在最大时间间隔的特征数组里周期数小于2,那么就可以确定信号频率f的范围In particular, also when Num=0, it means that the number of cycles of the signal in the characteristic array of the maximum time interval is less than 2, then the range of the signal frequency f can be determined

fmin≤f<2fminf min ≤f<2f min .

因此,本发明在实现自动设置的方法上,提出了一种快速测量幅度和频率的算法,通过对庞大的采样数据抽取多个时间间隔不同的特征数组使得需要处理的数据量显著减少,同时通过峰峰值准则和最小整周期准则确定能近似表征信号幅度和频率特性的特征数组,进而设置时基挡位和幅度挡位。该算法使得对幅度和频率进行计算的时间复杂度由O(n)变为O(log(n)),运行时间极大的减少。在幅度挡位的调整上,本发明采用粗调的方式,通过对抽出数组的最大峰峰值与阈值比较,判断其小于阈值才进行挡位调整,使得自动设置中幅度调整的次数减少,重新采样的次数也就减少,因此自动设置完成的更快。Therefore, in the method of realizing automatic setting, the present invention proposes an algorithm for quickly measuring amplitude and frequency. By extracting a plurality of feature arrays with different time intervals from the huge sampling data, the amount of data to be processed is significantly reduced. The peak-to-peak criterion and the minimum full period criterion determine the characteristic array that can approximately characterize the amplitude and frequency characteristics of the signal, and then set the time base gear and amplitude gear. This algorithm makes the time complexity of the calculation of amplitude and frequency change from O(n) to O(log(n)), and the running time is greatly reduced. In the adjustment of the amplitude gear, the present invention adopts the method of coarse adjustment. By comparing the maximum peak-to-peak value of the extracted array with the threshold value, it is judged that it is smaller than the threshold value before the gear adjustment is performed, so that the number of amplitude adjustments in the automatic setting is reduced, and the sampling is performed again. The number of times is reduced, so the automatic setup completes faster.

本发明的有益效果:Beneficial effects of the present invention:

1)本发明提出了数据抽取方法,通过对原始数据进行多等间隔数据抽取,在减少数据量的同时保留了信号的部分特征;提出了最小整周期数的计算方法,可以在信号幅度接近实际幅度的情况下,计算出数据中至少包含信号的整周期数,例如其值为1时,那么该数据中就至少包含一个整周期的信号,但整周期不会大于2;提出了基于多等间隔数据抽取的软件测量信号幅度、频率的快速算法,通过峰峰值准则和最小整周期准则对多个抽取后的等间隔数组进行判断,找到能够代表信号幅度和频率信息的数组,进而确定信号的幅度和频率;提出了示波器自动设置时幅度挡位粗调的方法,既保证了信号具有一定的幅度,又减少了在自动设置过程中调整幅度挡位的次数,减少了自动设置消耗的时间。1) The present invention proposes a data extraction method, through which the original data is extracted at multiple equal intervals, while reducing the amount of data while retaining part of the characteristics of the signal; a calculation method for the minimum number of integer cycles is proposed, which can be used when the signal amplitude is close to the actual value. In the case of amplitude, the data contains at least the number of integer periods of the signal. For example, when the value is 1, then the data contains at least one full period of the signal, but the full period will not be greater than 2; The software of interval data extraction is a fast algorithm for measuring signal amplitude and frequency. It judges multiple extracted equal-spaced arrays through the peak-to-peak criterion and the minimum whole period criterion, finds the array that can represent the signal amplitude and frequency information, and then determines the signal's amplitude and frequency. Amplitude and frequency; a method for coarse adjustment of the amplitude gear during the automatic setting of the oscilloscope is proposed, which not only ensures that the signal has a certain amplitude, but also reduces the number of times of adjusting the amplitude gear during the automatic setting process, and reduces the time consumed by the automatic setting.

2)本发明在自动设置的实现上由于对幅度和频率的测量采用的都是软件算法,无需额外的硬件电路,并且对于处理单元无特殊要求,甚至可以将程序嵌入到示波器的主控制器中,近似达到零成本。2) In the realization of the automatic setting, the present invention adopts software algorithms for the measurement of amplitude and frequency, no additional hardware circuit is required, and there is no special requirement for the processing unit, and the program can even be embedded in the main controller of the oscilloscope. , approximately to zero cost.

3)本发明的算法需要处理的运算量小,因此速度很快,即使在采样率增加的情况下,算法运算量增加也很少,因此对于采样率高的示波器一样适用,且优势更大。3) The algorithm of the present invention needs to process a small amount of computation, so the speed is very fast. Even when the sampling rate increases, the computational amount of the algorithm increases very little, so it is also applicable to oscilloscopes with high sampling rate, and has greater advantages.

附图说明Description of drawings

图1为本发明的基于频率快速算法的示波器自动设置方法流程图;Fig. 1 is the flow chart of the oscilloscope automatic setting method based on the frequency fast algorithm of the present invention;

图2为本发明的最小整周期算法流程图;Fig. 2 is the minimum whole cycle algorithm flow chart of the present invention;

图3为本发明的实施例的最小整周期数算法的结果图。FIG. 3 is a result diagram of a minimum integer number of cycles algorithm according to an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图和实施例进一步描述本发明,应该理解,以下所述实施例旨在便于对本发明的理解,而对其不起任何限定作用。The present invention will be further described below with reference to the accompanying drawings and embodiments, and it should be understood that the following embodiments are intended to facilitate the understanding of the present invention, but do not have any limiting effect on it.

本发明在示波器自动设置的方法上采用软件测幅度、时间域软件测频的方式,与传统的软件测频和测幅度不同的是,本发明将需要处理的数据提取出多个时间间隔不同的特征数组(其中每个数组的时间间隔固定,不同特征数组的时间间隔不同);并对这多个特征数组进行峰峰值以及最小整周期数的判断,找到能代表信号峰峰值和频率特征的数组;再根据该数组对水平时基档和垂直幅度挡位进行设置。具体地,本发明的基于时间域软件测量幅度、频率快速测量算法的示波器自动设置方法,如图1所示,包括如下步骤:In the method of automatic setting of the oscilloscope, the present invention adopts the methods of software amplitude measurement and time domain software frequency measurement. Different from the traditional software frequency measurement and amplitude measurement, the present invention extracts a plurality of different time intervals from the data to be processed. Characteristic array (the time interval of each array is fixed, and the time interval of different characteristic arrays is different); judge the peak-to-peak value and the minimum number of integer cycles for these multiple characteristic arrays, and find an array that can represent the peak-to-peak value and frequency characteristics of the signal ; Then set the horizontal time base gear and vertical amplitude gear according to the array. Specifically, the oscilloscope automatic setting method based on the time domain software measuring amplitude and frequency fast measuring algorithm of the present invention, as shown in FIG. 1 , includes the following steps:

S1:幅度挡位的初步调整S1: Preliminary adjustment of the amplitude gear

在示波器自动设置开始时,先对幅度挡位进行初步(粗略)调整,使得测得信号的幅度满足之后对幅度、频率的测量即可。具体过程如下:When the automatic setting of the oscilloscope starts, the amplitude gear is initially (roughly) adjusted so that the amplitude of the measured signal is satisfied, and then the amplitude and frequency can be measured. The specific process is as follows:

S11:在开始时,将幅度挡位的量程Sv设置为最大量程;S11: At the beginning, set the range S v of the amplitude gear to the maximum range;

S12:将时基挡位设置为最小,根据自动设置的最小识别频率fmin以及示波器最小时基挡位对应的最大采样率fmax,确定采样的点数N进行采样:S12: Set the time base gear to the minimum, and determine the number of sampling points N for sampling according to the automatically set minimum recognition frequency f min and the maximum sampling rate f max corresponding to the minimum time base gear of the oscilloscope:

Figure BDA0002212567160000081
Figure BDA0002212567160000081

S13:从采样数据中抽取M个时间间隔不同的特征数组Array1至ArrayM,其中,每个数组的大小为K,K可根据示波器的要求进行设定,对应的时间间隔DT以倍数A依次递增,从低到高依次为1/fmax、A/fmax、……、A^(M-1)/fmax,其中,M计算如下:S13: Extract M feature arrays Array 1 to Array M with different time intervals from the sampled data, wherein the size of each array is K, and K can be set according to the requirements of the oscilloscope, and the corresponding time interval DT is in order of multiples A Incrementally, from low to high, it is 1/f max , A/f max , ..., A^(M-1)/f max , where M is calculated as follows:

Figure BDA0002212567160000082
Figure BDA0002212567160000082

其中,A、M、N、K需要满足下式:Among them, A, M, N, K need to satisfy the following formula:

A^(M-1)×K=N。A^(M-1)*K=N.

S14:对每个特征数组进行一次遍历获取其最大值MAXi和最小值MINi(i=1,2,…,M),两者做差求得特征数组的峰峰值Vppi,再将所有特征数组的峰峰值比较,得出其最大峰峰值VppmaxS14: Perform a traversal of each feature array to obtain its maximum value MAX i and minimum value MIN i (i=1, 2, ..., M), and the difference between the two is used to obtain the peak-to-peak value Vpp i of the feature array, and then all Compare the peak-to-peak value of the characteristic array to obtain its maximum peak-to-peak value Vpp max ;

S15:判断最大峰峰值Vppmax是否大于Sv×ε,ε为阈值常数,其大小可以根据ADC(模数转换器)的分辨率以及仪器噪声进行调整,若大于则进入步骤S2,否则将幅度挡位调整为其量程Sv大于Vppmax的最小幅度档,并返回步骤S12重新采样。S15: Determine whether the maximum peak-to-peak Vpp max is greater than S v ×ε, and ε is the threshold constant, and its size can be adjusted according to the resolution of the ADC (analog-to-digital converter) and the instrument noise. If it is greater than it, go to step S2, otherwise the amplitude The gear is adjusted to the minimum amplitude gear whose range S v is greater than Vpp max , and returns to step S12 for re-sampling.

S2:根据峰峰值准则和最小整周期准则,找到能够代表信号幅度和频率特征的判断数组。所述峰峰值准则是指:对多个时间间隔不同的特征数组,可以认为其最大峰峰值Vppmax为实际信号的峰峰值,如果其中某个特征数组的峰峰值不接近Vppmax,就说明该特征数组一定没能获取到信号的整周期。所述最小整周期准则是指:对于峰峰值接近实际信号的特征数组,当其最小整周期数为0时,说明该特征数组可能不包含信号的一个周期,因此应判断该特征数组为时间间隔稍大的特征数组;而当其最小整周期数大于0时,且时间间隔稍小的特征数组要么峰峰值不接近实际信号,要么最小整周期数为0时,即可认为该特征数组能够近似表征信号的幅度和频率特性。S2: According to the peak-to-peak criterion and the minimum integer period criterion, find a judgment array that can represent the signal amplitude and frequency characteristics. The peak-to-peak criterion refers to: for multiple feature arrays with different time intervals, the maximum peak-to-peak value Vpp max can be considered to be the peak-to-peak value of the actual signal. If the peak-to-peak value of a feature array is not close to Vpp max , it means that the The signature array must not capture the full period of the signal. The minimum integer period criterion refers to: for a characteristic array whose peak-to-peak value is close to the actual signal, when the minimum integer period number is 0, it means that the characteristic array may not contain one period of the signal, so it should be judged that the characteristic array is a time interval A slightly larger eigenarray; and when the minimum number of integer cycles is greater than 0, and the eigenarray with a slightly smaller time interval, either the peak-to-peak value is not close to the actual signal, or the minimum number of integer cycles is 0, it can be considered that the eigenarray can approximate Characterize the amplitude and frequency characteristics of a signal.

该步骤具体过程如下:The specific process of this step is as follows:

S21:初始化i=1;S21: initialize i=1;

S22:判断特征数组Arrayi的峰峰值Vppi是否小于α×Vppmax(α为一常数),若小于,则说明该特征数组肯定没能获取到信号的整周期,令i=i+1,返回步骤S22继续判断,否则认为该特征数组的峰峰值接近实际信号的幅度,继续;S22: Determine whether the peak-to-peak value Vpp i of the characteristic array Array i is less than α×Vpp max (α is a constant), if it is smaller, it means that the characteristic array must fail to obtain the entire period of the signal, let i=i+1, Return to step S22 to continue to judge, otherwise the peak-to-peak value of the feature array is considered to be close to the amplitude of the actual signal, and continue;

S23:令j=i;S23: let j=i;

S24:根据最小整周期算法,对特征数组Arrayj进行计算,得出其最小整周期数Num并判断其最小整周期数Num是否为零。若是,则说明该特征数组可能没有获取到信号的整周期,令i=j+1,若i>M(说明Arrayj已经是最大的时间间隔了),则将特征数组Arrayj作为判断数组,进入步骤S3,否则返回步骤S22继续判断;若其最小整周期数Num不为零,则说明该特征数组既包含了信号的幅度特性,又至少包含信号的一个整周期,则将该特征数组Arrayj作为判断数组,继续步骤S3。S24: Calculate the characteristic array Array j according to the minimum integer period algorithm to obtain the minimum integer period Num and determine whether the minimum integer period Num is zero. If so, it means that the characteristic array may not obtain the entire period of the signal, let i=j+1, if i>M (indicating that Array j is already the largest time interval), then the characteristic array Array j is used as the judgment array, Enter step S3, otherwise return to step S22 to continue judgment; if the minimum integer cycle number Num is not zero, it means that the feature array contains both the amplitude characteristics of the signal and at least one integer cycle of the signal, then the feature array Array j as the judgment array, go to step S3.

其中,最小整周期算法具体如下:Among them, the minimum whole cycle algorithm is as follows:

首先进行比较阈值的判断,如下:First, the comparison threshold is judged as follows:

Vpp=MAX-MINVpp=MAX-MIN

Figure BDA0002212567160000091
Figure BDA0002212567160000091

Figure BDA0002212567160000101
Figure BDA0002212567160000101

Vh=VoffV h =V off

VL=VoffV L =V off

其中,MAX为特征数组的最大值;MIN为特征数组的最小值;Voff为特征数组的中值;β为阈值常数;Δ为比较窗口的宽度;Vh为高比较阈值;VL为低比较阈值。Among them, MAX is the maximum value of the feature array; MIN is the minimum value of the feature array; V off is the median value of the feature array; β is the threshold constant; Δ is the width of the comparison window; V h is the high comparison threshold; VL is the low Compare thresholds.

然后对特征数组进行一次遍历,找出数组中大于高比较阈值Vh的部分数量Num_h和小于低比较阈值VL的部分数量Num_L,最后得到的是最小整周期数Num为Num_h和Num_L中较小的值减1,即,Num=min(Num_L,Num_h)-1,具体算法流程图如图2所示。Then traverse the feature array once to find out the number of parts Num_h greater than the high comparison threshold V h and the number of parts Num_L less than the low comparison threshold VL in the array, and finally the minimum integer cycle number Num is the smaller of Num_h and Num_L The value of is minus 1, that is, Num=min(Num_L,Num_h)-1, and the specific algorithm flowchart is shown in Figure 2.

该算法可以计算出特征数组中包含信号的最小整周期数,这里的最小表示测得的整周期数可能比实际包含的整周期数少,但最多少1个,如图3所示,其Num_h值为4,而Num_L值为3,那么最后计算出的Num值就为2,而实际包含信号的整周期数为3。This algorithm can calculate the minimum number of integer cycles of the signal contained in the feature array, where the minimum indicates that the number of integer cycles measured may be less than the actual number of integer cycles contained, but at most 1, as shown in Figure 3, its Num_h The value is 4, and the Num_L value is 3, then the final calculated Num value is 2, and the number of integer cycles that actually contains the signal is 3.

S3:根据判断数组Arrayj进行时基挡位和幅度挡位的确定S3: Determine the time base gear and the amplitude gear according to the judgment array Array j

根据判断数组Arrayj的最大值MAXj和最小值MINj,即可确定幅度挡位,在一些可能的实施方式中,可以根据判断数组的最小整周期数Num以及这些整周期内包含的点数(下文中将提到的Ce-Cs即为Num个整周期包含的数据点的个数)计算出其频率,再根据频率确定时基挡位。具体过程如下:The amplitude range can be determined according to the maximum value MAX j and the minimum value MIN j of the judgment array Array j . In some possible implementations, the minimum integer period Num of the judgment array and the number of points ( The Ce-Cs mentioned below is the number of data points contained in Num whole cycles) to calculate its frequency, and then determine the time base gear according to the frequency. The specific process is as follows:

S31:在上述步骤中已经计算出判断数组Arrayj的峰峰值Vppj和中值

Figure BDA0002212567160000102
其中,根据峰峰值Vppj确定幅度挡位,该幅度挡位的量程为Sv,使其满足0.4×Sv≤Vppj≤0.8×Sv即可,并把中值
Figure BDA0002212567160000103
作为该通道的直流偏置;S31: The peak-to-peak value Vpp j and the median value of the judgment array Array j have been calculated in the above steps
Figure BDA0002212567160000102
Among them, the amplitude gear is determined according to the peak-to-peak value Vpp j , and the range of the amplitude gear is S v , so that it satisfies 0.4×S v ≤Vpp j ≤0.8×S v , and the median value is
Figure BDA0002212567160000103
as the DC bias for this channel;

S32:在对特征数组进行最小整周期数计算时,同时判断首先出现的是信号的顶部还是信号的底部,当是顶部的话就将首次到达底部的数组下标记为Cs,将最后到达底部的数组下标记为Ce;反之,则将首次到达顶部的数组下标记为Cs,将最后到达顶部的数组下标记为Ce。在最小整周期算法中,高低比较阈值的设计是为了消除信号噪声的影响,可以定义在高比较阈值Vh~最高点Max的部分为信号的顶部,低比较阈值VL~高比较阈值Vh的部分为中间部分,最低点Min~低比较阈值VL的部分为底部。而这里提到的“到达”的概念不是简单的判断每个点的值是否大于Vh或者小于VL,而是从其他部分达到该部分的第一个点。如图3所示,Cs点即为第一次到达信号的底部的点,而在这个点之后的同一个底部的点都不是到达(例如最低点Min线上对应的点),而Ce是第三次到达信号底部的点,这两个点之间包含着信号的两个整周期。S32: When calculating the minimum number of integer cycles for the characteristic array, at the same time judge whether the top of the signal or the bottom of the signal appears first. If it is the top, the array that first reaches the bottom is marked as C s , and the last one that reaches the bottom is marked as C s . The lower array is marked as C e ; otherwise, the lower array that reaches the top for the first time is marked as C s , and the lower array that reaches the top last is marked as C e . In the minimum whole cycle algorithm, the high and low comparison thresholds are designed to eliminate the influence of signal noise. The part from the high comparison threshold V h to the highest point Max can be defined as the top of the signal, and the low comparison threshold VL to the high comparison threshold V h The part is the middle part, and the part from the lowest point Min to the low comparison threshold VL is the bottom part. The concept of "reaching" mentioned here is not simply to judge whether the value of each point is greater than V h or less than VL , but to reach the first point of the part from other parts. As shown in Figure 3, the Cs point is the point that reaches the bottom of the signal for the first time, and the same bottom point after this point is not reached (for example, the corresponding point on the line of the lowest point Min), and Ce is the first point. Three times the point at which the bottom of the signal is reached, between these two points contains two full periods of the signal.

根据判断数组Arrayj的Cs、Ce、对应的时间间隔DTj以及最小整周期数Num即可计算出信号的频率f,进而确定时基挡位The frequency f of the signal can be calculated according to the C s , C e of the judgment array Array j , the corresponding time interval DT j and the minimum number of integer cycles Num, and then the time base gear is determined.

Figure BDA0002212567160000111
Figure BDA0002212567160000111

在一种可能的实施方式中,在对时基挡位的确定时,还可以简单的根据判断数组Arrayj的最小整周期数Num以及对应的时间间隔DTj和数组大小K,按照下式简单计算信号的频率范围,进而确定时基挡位。In a possible implementation, when determining the time base gear, it is also possible to simply judge the minimum integer cycle number Num of the array Array j , the corresponding time interval DT j and the array size K, according to the following formula: Calculate the frequency range of the signal, and then determine the time base gear.

Figure BDA0002212567160000112
Figure BDA0002212567160000112

特别地,当Num=0时,说明信号在最大时间间隔的特征数组里周期数小于2,那么就可以确定信号频率f的范围:In particular, when Num=0, it means that the number of cycles of the signal in the characteristic array of the maximum time interval is less than 2, then the range of the signal frequency f can be determined:

fmin≤f<2fminf min ≤f<2f min .

特别地,本发明中提出的软件快速测量幅度和频率的方法不仅可以用在示波器的自动设置上,还可以适用于频率范围未知的信号或者频率范围广的信号进行频率计算。并且该算法可以根据需求来设置频率计算的精度,当其如S32步骤计算出其低精度频率后,就可以根据精度要求选择恰当时间间隔、恰当数量的采样数据重新进行频率计算。例如要想保证计算频率的特征数组应满足一周期至少有1000个采样点数(即精度要求1/1000),而经过算法测出来的信号频率为800Hz(该结果频率的精度较低),那么就可以抽取出时间间隔为1μs,采样点数为5000的特征数组对其频率重新计算,这就实现了在保证频率测量的精度的同时又减少了算法的消耗时间。In particular, the method for rapidly measuring amplitude and frequency by software proposed in the present invention can not only be used in automatic setting of oscilloscope, but also can be applied to frequency calculation for signals with unknown frequency range or signals with wide frequency range. And the algorithm can set the accuracy of frequency calculation according to the requirements. After calculating its low-precision frequency as in step S32, it can select an appropriate time interval and an appropriate amount of sampling data to re-calculate the frequency according to the accuracy requirements. For example, if you want to ensure that the feature array of the calculated frequency should satisfy at least 1000 sampling points per cycle (that is, the accuracy requirement is 1/1000), and the signal frequency measured by the algorithm is 800Hz (the accuracy of the result frequency is low), then A feature array with a time interval of 1 μs and a sampling point of 5000 can be extracted to recalculate its frequency, which ensures the accuracy of frequency measurement and reduces the time consumption of the algorithm.

此外,对于多通道示波器来说,本发明仍然适用,因为多通道的数据采集是同时进行的,而除了采样时间外,算法的运算量很少,运行时间极短,因此基本不会增加自动设置的时间。In addition, for multi-channel oscilloscopes, the present invention is still applicable, because the multi-channel data acquisition is carried out at the same time, and except for the sampling time, the calculation amount of the algorithm is very small, and the running time is extremely short, so the automatic setting is basically not increased. time.

对于本领域的普通技术人员来说,在不脱离本发明创造构思的前提下,还可以对本发明的实施例做出若干变型和改进,这些都属于本发明的保护范围。For those of ordinary skill in the art, without departing from the inventive concept of the present invention, several modifications and improvements can also be made to the embodiments of the present invention, which all belong to the protection scope of the present invention.

Claims (5)

1. An oscilloscope automatic setting method based on a frequency rapid measurement algorithm is characterized by comprising the following steps:
s1: the automatic setting carries out preliminary adjustment to the range gear earlier when beginning, and specific process is as follows:
s11: at the beginning, the range S of the range gear is adjustedvSet as the maximum measuring range;
S12: setting the time-base gear to minimum, according to the automatically set minimum recognition frequency fminAnd the maximum sampling rate f corresponding to the minimum time base gearmaxAnd determining the number N of the sampling points for sampling:
Figure FDA0002620978950000011
s13: extracting M characteristic Array with different time intervals from sampling data1To ArrayMThe size of each feature array in the M feature arrays is K, the time interval DT corresponding to each feature array is sequentially increased by multiple A, and the time interval DT is 1/f from low to highmax、A/fmax、……、A^(M-1)/fmaxWherein, the number M of the feature array is calculated as follows:
Figure FDA0002620978950000012
wherein A, M, N, K satisfies the following equation:
A^(M-1)×K=N;
s14: traversing each feature array in the M feature arrays once to obtain the maximum value MAX of the feature arraysiAnd minimum MINiAnd i is 1,2, … and M, and the difference is made to obtain the peak-to-peak value Vpp of the characteristic arrayi=MAXi-MINiAnd the two are added and averaged to obtain the median value of the characteristic array
Figure FDA0002620978950000013
Then comparing the peak value of all the characteristic arrays to obtain the maximum peak value Vppmax
S15: judging the maximum peak value VppmaxWhether or not greater than Sv×, is a threshold constant, if it is larger than the threshold constant, the step S2 is proceeded, otherwise the range S of the range is shiftedvAdjusted to be greater than VppmaxAnd returning to step S12 for resampling;
s2: according to the peak-to-peak value criterion and the minimum whole period criterion, finding a judgment array capable of representing the signal amplitude and frequency characteristics, which comprises the following specific processes:
s21: initializing i to 1;
s22: judging feature ArrayiPeak to peak value Vpp ofiWhether less than α× Vppmaxα is a constant, if the value is less than the value, i is made to be i +1, the step is returned to the step S22 to continue the judgment, otherwise, the step is entered into the step S23;
s23: let j equal i;
s24: calculating a feature Array according to a minimum whole period algorithmjJudging whether the minimum integral cycle number Num is zero, if the minimum integral cycle number Num is zero, making i equal to j +1, if i is greater than M, then setting the characteristic ArrayjStep S3 is entered as the judgment array, otherwise, the step S22 is returned to continue the judgment; if the minimum integral period number Num is not zero, then the characteristic Array is usedjAs a judgment array, continuing to step S3;
s3: according to the judgment ArrayjMAX of (3)jAnd minimum MINjDetermining an amplitude gear, calculating the frequency of the signal, and determining a time-base gear according to the frequency, wherein the specific process is as follows:
s31: calculating according to the algorithm of the step S14 to obtain a judgment ArrayjPeak to peak value Vpp ofjAnd median value
Figure FDA0002620978950000021
Wherein, the peak-to-peak value Vpp is used as the basisjDetermining the range of the range as SvSo that it satisfies 0.4 × Sv≤Vppj≤0.8×SvAnd the median value is calculated
Figure FDA0002620978950000022
As a dc bias for the respective channel;
s32: and calculating the frequency f of the signal to further determine the time base gear.
2. The method according to claim 1, wherein in step S24, the minimum whole period algorithm is specifically as follows:
first, a threshold comparison is determined as follows:
Figure FDA0002620978950000023
Figure FDA0002620978950000024
Figure FDA0002620978950000025
wherein β is a threshold constant, ΔjIs the width of the comparison window;
Figure FDA0002620978950000026
array for feature ArrayjA high comparison threshold of;
Figure FDA0002620978950000027
array for feature ArrayjThe low comparison threshold of (a) is,
then the feature Array is alignedjPerforming one-time traversal to find out the threshold value which is larger than the high comparison threshold value in the array
Figure FDA0002620978950000033
And is less than the low comparison threshold value
Figure FDA0002620978950000034
The resulting minimum number of integer cycles Num is the smaller of Num _ h and Num _ L minus 1.
3. The method of claim 2, wherein in step S24, when calculating the minimum number of integer cycles Num of the feature array, it is determined whether the top of the signal or the bottom of the signal appears first, and if the top is reached, the bottom is reached firstThe label is CsThe array that reaches the bottom last is labeled Ce(ii) a Otherwise, the array which reaches the top for the first time is marked as CsThe array that reaches the top last is labeled CeThe top of the signal is greater than the high comparison threshold
Figure FDA0002620978950000035
The bottom of the signal means less than a low comparison threshold
Figure FDA0002620978950000036
The part (a) of (b) of (a),
in step S32, Array is determinedjC of (A)s、CeCorresponding time interval DTjAnd the minimum integer number Num, calculating the frequency f of the signal:
Figure FDA0002620978950000031
4. the method according to claim 1, wherein step S32 is implemented as follows:
array based on judgmentjThe minimum number Num of integer cycles, the corresponding time interval DTjAnd array size K, calculating the frequency range of the signal:
Figure FDA0002620978950000032
5. the method according to claim 3 or 4, wherein when the minimum number of integer periods Num is 0, the signal frequency f ranges as follows:
fmin≤f<2fmin
CN201910903494.7A 2019-09-24 2019-09-24 Oscilloscope automatic setting method based on frequency rapid measurement algorithm Active CN110780100B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910903494.7A CN110780100B (en) 2019-09-24 2019-09-24 Oscilloscope automatic setting method based on frequency rapid measurement algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910903494.7A CN110780100B (en) 2019-09-24 2019-09-24 Oscilloscope automatic setting method based on frequency rapid measurement algorithm

Publications (2)

Publication Number Publication Date
CN110780100A CN110780100A (en) 2020-02-11
CN110780100B true CN110780100B (en) 2020-09-22

Family

ID=69384295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910903494.7A Active CN110780100B (en) 2019-09-24 2019-09-24 Oscilloscope automatic setting method based on frequency rapid measurement algorithm

Country Status (1)

Country Link
CN (1) CN110780100B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1273366A (en) * 1999-04-20 2000-11-15 特克特朗尼克公司 Continuous response and forcasting automatic installation function of digital oscilloscope
CN101413967A (en) * 2007-10-15 2009-04-22 英业达股份有限公司 Method for controlling automatic measurement of oscilloscope
CN101609106A (en) * 2009-05-27 2009-12-23 东南大学 The Automatic Setting Method of Digital Oscilloscope
CN103116053A (en) * 2013-01-31 2013-05-22 福建利利普光电科技有限公司 Automatic measuring range system and measuring method used for measuring digital storage oscilloscope
CN105510664A (en) * 2015-10-08 2016-04-20 电子科技大学 Automatic setting method of digital oscilloscope
CN107727906A (en) * 2017-09-25 2018-02-23 优利德科技(中国)有限公司 Method and device for automatic setting of oscilloscope
CN108037339A (en) * 2018-01-18 2018-05-15 电子科技大学 The control method that a kind of digital oscilloscope is set automatically
CN108802459A (en) * 2018-06-04 2018-11-13 北京交通大学 A kind of oscillograph Auto-Test System and method
CN109633266A (en) * 2019-02-26 2019-04-16 重庆新世杰电气股份有限公司 A kind of frequency measurement method, system, device and computer readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101313279A (en) * 2005-10-14 2008-11-26 塞门铁克操作公司 Technique for timeline compression in data storage
CN201804035U (en) * 2010-08-31 2011-04-20 河南友利华系统工程有限公司 Dynamic monitoring storage oscilloscope
CN103294713B (en) * 2012-02-29 2016-08-03 鸿富锦精密工业(深圳)有限公司 Monitoring data storage system and method
CN104252503B (en) * 2013-06-29 2017-08-04 北京新媒传信科技有限公司 A kind of method and apparatus for the index for storing dynamic message

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1273366A (en) * 1999-04-20 2000-11-15 特克特朗尼克公司 Continuous response and forcasting automatic installation function of digital oscilloscope
KR100720014B1 (en) * 1999-04-20 2007-05-18 텍트로닉스 인코포레이티드 Continuous response and predictive auto setup for digital oscilloscopes
CN101413967A (en) * 2007-10-15 2009-04-22 英业达股份有限公司 Method for controlling automatic measurement of oscilloscope
CN101609106A (en) * 2009-05-27 2009-12-23 东南大学 The Automatic Setting Method of Digital Oscilloscope
CN103116053A (en) * 2013-01-31 2013-05-22 福建利利普光电科技有限公司 Automatic measuring range system and measuring method used for measuring digital storage oscilloscope
CN105510664A (en) * 2015-10-08 2016-04-20 电子科技大学 Automatic setting method of digital oscilloscope
CN107727906A (en) * 2017-09-25 2018-02-23 优利德科技(中国)有限公司 Method and device for automatic setting of oscilloscope
CN108037339A (en) * 2018-01-18 2018-05-15 电子科技大学 The control method that a kind of digital oscilloscope is set automatically
CN108802459A (en) * 2018-06-04 2018-11-13 北京交通大学 A kind of oscillograph Auto-Test System and method
CN109633266A (en) * 2019-02-26 2019-04-16 重庆新世杰电气股份有限公司 A kind of frequency measurement method, system, device and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种数字示波器快速自动设置方法研究;顾博瑞 等;《电子质量》;20190120(第1期);第18-22页 *
数字存储示波器自动设置及校正技术的研究与实现;关莹;《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》;20111231;第15-16页 *

Also Published As

Publication number Publication date
CN110780100A (en) 2020-02-11

Similar Documents

Publication Publication Date Title
JP2002107392A (en) Jitter-measuring device and method therefor, and testing device
CN110208589B (en) Time domain signal waveform measuring method and device and digital oscilloscope
CN108494402A (en) A kind of TIADC systematic error estimations and compensation method based on Sine-Fitting
CN105486934B (en) A kind of method and system of the impulse waveform leading edge detection based on straight line fitting
WO2016004687A1 (en) Method for distinguishing initial time point of ultra-high-frequency partial discharge signal
CN106645939A (en) Method and device for power grid frequency detection based on frequency spectrum extreme point
CN111555995A (en) A Phase-Frequency Response Measurement and Compensation Method of a Broadband Acquisition System
CN109948223B (en) Pulse amplitude acquisition method based on Lagrange interpolation
CN108776264A (en) The fft analysis device of digital oscilloscope
CN108923860A (en) It was based on the modified blind pulse signal TOA estimation method of thresholding
TWI405979B (en) Probability density function separating apparatus, probability density function separating method, noise separating apparatus, noise separating method, testing apparatus, testing method, calculating apparatus, calculating method, program, and recording m
CN115267302A (en) AC Voltage RMS Measurement Device
CN103901243B (en) A kind of oscillograph with high triggering precision
CN102495280B (en) Anti-noise broadband frequency measurement method and phase-locked frequency meter
CN107678333A (en) A kind of step-length time-correcting method and device based on equivalent time sequential sampling
CN110780100B (en) Oscilloscope automatic setting method based on frequency rapid measurement algorithm
CN107727906B (en) A method for automatic setting of an oscilloscope and its device
US20080100483A1 (en) Method of compensating for deterministic jitter due to interleave error
CN109100928A (en) A kind of high-precision pulse time interval measurement method and circuit
US10823762B2 (en) Method and apparatus for automatically adjusting the hold-off time of a DSO
JP5376395B2 (en) Waveform measuring device
CN109495187A (en) A kind of TOA essence estimation method based on Hilbert transform
CN116908541A (en) Analysis bandwidth processing method in frequency spectrum analysis based on fast Fourier transform
CN110346625B (en) Trigger signal generation method of adjustable frequency divider
CN116299110A (en) A Time-Domain Calibration Method for Electromagnetic Pulse Measurement in Double Exponential Wave Form

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载