Waveform channel adjusting method, digital oscilloscope and readable storage medium

文档序号:6378 发布日期:2021-09-17 浏览:49次 中文

1. A method for adjusting a waveform channel is characterized by comprising the following steps:

sampling the access signal according to a preset sampling frequency to acquire a first amplitude value of the access signal;

comparing the first amplitude value with the upper limit value and the lower limit value of the current waveform channel, and if the first amplitude value exceeds the range of the upper limit value and the lower limit value, increasing the sampling frequency according to a first adjustment strategy;

continuously acquiring a preset number of second amplitude values of an access signal based on a new sampling frequency, comparing the second amplitude values with the upper limit value and the lower limit value of the current waveform channel respectively, and if the proportion of the second amplitude values exceeding the upper limit value and the lower limit value is greater than a preset threshold value, increasing the gear of the current waveform channel according to a second adjustment strategy; and the number of the first and second groups,

and if the proportion of the range of the second amplitude value exceeding the upper limit value and the lower limit value is less than or equal to a preset threshold value, adjusting to a preset sampling frequency to sample the access signal.

2. The method for adjusting waveform channels according to claim 1, further comprising the steps of:

and if the first amplitude value does not exceed the range of the upper limit value and the lower limit value, and the proportion of the peak-to-peak value in the first amplitude value in the range of the upper limit value and the lower limit value is smaller than the threshold value in the limit values, reducing the current gear of the waveform channel according to a third adjustment strategy.

3. The method according to claim 1 or 2, wherein the step of obtaining the first amplitude value further comprises:

receiving sampling values of each sampling moment of the access signal in real time;

obtaining a first amplitude value according to the sampling value and a preset calculation strategy, and updating the first amplitude value of the access signal in real time;

and storing the updated first amplitude value in a register for comparison between the first amplitude value and the limit value of the current waveform channel.

4. The method for adjusting waveform channels according to claim 3, wherein the step of receiving the sampled values of the access signal at the sampling time points in real time further comprises:

judging whether the access signal is stable or not, and outputting a sampling instruction after the access signal is stable;

and executing the step of receiving sampling values of each sampling moment of the access signal in real time based on the sampling instruction.

5. The method according to claim 1, wherein the second adjustment strategy comprises the following steps:

establishing a first corresponding relation library of the proportion of the range of the second amplitude value exceeding the upper and lower limit values and different upshifts;

and selecting a corresponding upshifting gear from the first corresponding relation library according to the proportion of the range of the second amplitude value exceeding the upper limit value and the lower limit value, and adjusting the current waveform channel according to the upshifting gear.

6. The method according to claim 2, wherein the third adjustment strategy comprises the following steps:

establishing a second corresponding relation library of the proportion of the peak-to-peak value in the first amplitude value in the range of the upper limit value and the lower limit value and different reduction gears;

and selecting a corresponding reduction gear from the second corresponding relation library according to the proportion of the peak-to-peak value in the first amplitude value in the range of the upper limit value and the lower limit value, and adjusting the current waveform channel according to the reduction gear.

7. A digital oscilloscope is characterized by comprising an amplitude acquisition module, an amplitude processing module and a first adjusting module,

the amplitude acquisition module is used for sampling the access signal according to a preset sampling frequency so as to acquire a first amplitude value of the access signal;

the amplitude processing module is connected with the amplitude acquisition module and used for receiving the first amplitude value, comparing the first amplitude value with the upper limit value and the lower limit value of the current waveform channel, and if the first amplitude value exceeds the range of the upper limit value and the lower limit value, increasing the sampling frequency according to a first adjustment strategy;

the first adjusting module is respectively connected with the amplitude acquiring module and the amplitude processing module, and is used for receiving the new sampling frequency and controlling the amplitude acquiring module to continuously acquire a preset number of second amplitude values of the access signal according to the new sampling frequency; the first adjusting module compares the plurality of second amplitude values with the upper limit value and the lower limit value of the current waveform channel respectively, and if the proportion of the second amplitude values exceeding the upper limit value and the lower limit value is larger than a preset threshold value, the current gear of the waveform channel is increased according to a second adjusting strategy; and if the proportion of the range of the second amplitude value exceeding the upper limit value and the lower limit value is less than or equal to a preset threshold value, adjusting to a preset sampling frequency to sample the access signal.

8. The digital oscilloscope of claim 7, further comprising a second adjustment module,

and the second adjusting module is connected with the amplitude acquiring module and used for receiving the first amplitude value, and if the first amplitude value does not exceed the range of the upper limit value and the lower limit value and the proportion of the peak-to-peak value in the first amplitude value in the range of the upper limit value and the lower limit value is smaller than the threshold value in the limit values, the current gear of the waveform channel is adjusted to be smaller according to a third adjusting strategy.

9. A readable storage medium, characterized by: a computer program which can be loaded by a processor and which performs the method according to any one of claims 1 to 7.

Background

Digital oscilloscopes typically operate in an optimum state to match the incoming signal by automatically setting up functions. Specifically, the digital oscilloscope firstly detects an amplitude value and a frequency value of an access signal, then automatically adjusts the gear and the offset of a waveform channel of the digital oscilloscope according to the amplitude value, and adjusts the time base of the digital oscilloscope according to the frequency value.

In the process of automatically adjusting the gear of the waveform channel, because the digital oscilloscope is a time domain measuring device, the displayed waveform is a complete waveform of a screen under general conditions; a screen corresponds to a waveform that is not necessarily a captured waveform, but a waveform within a period of time, such as a frame waveform; one frame of waveform comprises waveform data which is far larger than two points, so that a sampling unit of the digital oscilloscope is required to transmit multi-point waveform data to a software processing unit every time; after the amplitude values of the data are calculated by the software processing unit, corresponding gear adjustment is carried out on the waveform channel. The inventor considers that repeatedly updating the gear of the waveform channel is complicated.

Disclosure of Invention

In order to better adjust the gear of the waveform channel, the application provides an adjusting method of the waveform channel, a digital oscilloscope and a readable storage medium.

In a first aspect, the present application provides a method for adjusting a waveform channel, which adopts the following technical scheme:

a method for adjusting a waveform channel comprises the following steps:

sampling the access signal according to a preset sampling frequency to acquire a first amplitude value of the access signal;

comparing the first amplitude value with the upper limit value and the lower limit value of the current waveform channel, and if the first amplitude value exceeds the range of the upper limit value and the lower limit value, increasing the sampling frequency according to a first adjustment strategy;

continuously acquiring a preset number of second amplitude values of an access signal based on a new sampling frequency, comparing the second amplitude values with the upper limit value and the lower limit value of the current waveform channel respectively, and if the proportion of the second amplitude values exceeding the upper limit value and the lower limit value is greater than a preset threshold value, increasing the gear of the current waveform channel according to a second adjustment strategy; and the number of the first and second groups,

and if the proportion of the range of the second amplitude value exceeding the upper limit value and the lower limit value is less than or equal to a preset threshold value, adjusting to a preset sampling frequency to sample the access signal.

By adopting the technical scheme, the first amplitude value is acquired according to the preset sampling frequency, and when the first amplitude value exceeds the range of the upper limit value and the lower limit value of the current waveform channel, the sampling frequency is increased, so that the access signal can be more densely sampled when the first amplitude value exceeds the range of the upper limit value and the lower limit value, and the second amplitude values in the preset number are acquired after the abnormal first amplitude value; and when the proportion of the range of the second amplitude value exceeding the upper and lower limit values exceeds a preset threshold value, the gear of the current waveform channel is increased, so that the current waveform channel is matched with the access signal, and the gear of the waveform channel can be better adjusted.

Optionally, the adjusting method further includes the following steps:

and if the first amplitude value does not exceed the range of the upper limit value and the lower limit value, and the proportion of the peak-to-peak value in the first amplitude value in the range of the upper limit value and the lower limit value is smaller than the threshold value in the limit values, reducing the current gear of the waveform channel according to a third adjustment strategy.

By adopting the technical scheme, when the first amplitude value is located in the range of the upper limit value and the lower limit value of the current waveform channel and the proportion of the peak-to-peak value in the first amplitude value in the range of the upper limit value and the lower limit value is smaller than the threshold value in the limit values, the gear of the current waveform channel is reduced, so that the current waveform channel is matched with the access signal, and the gear of the waveform channel can be better adjusted.

Optionally, in the step of acquiring the first amplitude value, the method further includes:

receiving sampling values of each sampling moment of the access signal in real time;

obtaining a first amplitude value according to the sampling value and a preset calculation strategy, and updating the first amplitude value of the access signal in real time;

and storing the updated first amplitude value in a register for comparison between the first amplitude value and the limit value of the current waveform channel.

By adopting the technical scheme, the first amplitude value is obtained by updating in real time, so that the transmission and processing of multi-point waveform data are not needed in the iterative process of the first amplitude value, and the gear adjustment speed of the current waveform channel is improved.

Optionally, before the step of receiving the sampling value of each sampling time of the access signal in real time, the method further includes:

judging whether the access signal is stable or not, and outputting a sampling instruction after the access signal is stable;

and executing the step of receiving sampling values of each sampling moment of the access signal in real time based on the sampling instruction.

By adopting the technical scheme, the access signal is sampled after being stabilized, and the useless multiple execution of comparison and adjustment caused by fluctuation during the just access can be reduced.

Optionally, the second adjustment policy includes the following steps:

establishing a first corresponding relation library of the proportion of the range of the second amplitude value exceeding the upper and lower limit values and different upshifts;

and selecting a corresponding upshifting gear from the first corresponding relation library according to the proportion of the range of the second amplitude value exceeding the upper limit value and the lower limit value, and adjusting the current waveform channel according to the upshifting gear.

By adopting the technical scheme, the first corresponding relation library is established, and the gear of the current waveform channel can be better enlarged.

Optionally, the third adjustment policy includes the following steps:

establishing a second corresponding relation library of the proportion of the peak-to-peak value in the first amplitude value in the range of the upper limit value and the lower limit value and different reduction gears;

and selecting a corresponding reduction gear from the second corresponding relation library according to the proportion of the peak-to-peak value in the first amplitude value in the range of the upper limit value and the lower limit value, and adjusting the current waveform channel according to the reduction gear.

By adopting the technical scheme, the second corresponding relation library is established, which is beneficial to better reducing the gear of the current waveform channel.

In a second aspect, the present application provides a digital oscilloscope, which adopts the following technical scheme:

a digital oscilloscope comprises an amplitude acquisition module, an amplitude processing module and a first adjusting module,

the amplitude acquisition module is used for sampling the access signal according to a preset sampling frequency so as to acquire a first amplitude value of the access signal;

the amplitude processing module is connected with the amplitude acquisition module and used for receiving the first amplitude value, comparing the first amplitude value with the upper limit value and the lower limit value of the current waveform channel, and if the first amplitude value exceeds the range of the upper limit value and the lower limit value, increasing the sampling frequency according to a first adjustment strategy;

the first adjusting module is respectively connected with the amplitude acquiring module and the amplitude processing module, and is used for receiving the new sampling frequency and controlling the amplitude acquiring module to continuously acquire a preset number of second amplitude values of the access signal according to the new sampling frequency; the first adjusting module compares the plurality of second amplitude values with the upper limit value and the lower limit value of the current waveform channel respectively, and if the proportion of the second amplitude values exceeding the upper limit value and the lower limit value is larger than a preset threshold value, the current gear of the waveform channel is increased according to a second adjusting strategy; and if the proportion of the range of the second amplitude value exceeding the upper limit value and the lower limit value is less than or equal to a preset threshold value, adjusting to a preset sampling frequency to sample the access signal.

By adopting the technical scheme, the amplitude acquisition module acquires the first amplitude value according to the preset sampling frequency; the amplitude processing module increases the sampling frequency when the first amplitude value exceeds the range of the upper limit value and the lower limit value of the current waveform channel, so that access signals can be more densely sampled when the first amplitude value exceeds the range of the upper limit value and the lower limit value, and a preset number of second amplitude values are acquired after the abnormal first amplitude value; when the proportion of the range of the second amplitude value exceeding the upper limit value and the lower limit value exceeds a preset threshold value, the first adjusting module enlarges the gear of the current waveform channel, so that the current waveform channel is matched with the access signal, and the gear of the waveform channel can be better adjusted.

Optionally, the system further comprises a second adjusting module,

and the second adjusting module is connected with the amplitude acquiring module and used for receiving the first amplitude value, and if the first amplitude value does not exceed the range of the upper limit value and the lower limit value and the proportion of the peak-to-peak value in the first amplitude value in the range of the upper limit value and the lower limit value is smaller than the threshold value in the limit values, the current gear of the waveform channel is adjusted to be smaller according to a third adjusting strategy.

By adopting the technical scheme, when the first amplitude value is within the range of the upper limit value and the lower limit value of the current waveform channel and the proportion of the peak-to-peak value in the first amplitude value within the range of the upper limit value and the lower limit value is smaller than the threshold value in the limit values, the gear of the current waveform channel is reduced, so that the current waveform channel is matched with the access signal, and the gear of the waveform channel can be better adjusted.

In a third aspect, the present application provides a readable storage medium, which adopts the following technical solutions:

a readable storage medium storing a computer program that can be loaded by a processor and that executes any one of the above-described waveform channel adjustment methods.

In summary, the present application includes at least one of the following beneficial technical effects:

1. acquiring a first amplitude value according to a preset sampling frequency, and increasing the sampling frequency when the first amplitude value exceeds the range of the upper limit value and the lower limit value of the current waveform channel, so that access signals can be more densely sampled when the first amplitude value exceeds the range of the upper limit value and the lower limit value, and a preset number of second amplitude values are acquired after the abnormal first amplitude value; when the proportion of the range of the second amplitude value exceeding the upper limit value and the lower limit value exceeds a preset threshold value, the gear of the current waveform channel is increased, so that the current waveform channel is matched with the access signal, and the gear of the waveform channel can be better adjusted;

2. when the first amplitude value is located in the range of the upper limit value and the lower limit value of the current waveform channel and the proportion of the peak-to-peak value in the first amplitude value in the range of the upper limit value and the lower limit value is smaller than the threshold value in the limit values, the gear of the current waveform channel is reduced, so that the current waveform channel is matched with the access signal, and the gear of the waveform channel can be better adjusted.

Drawings

FIG. 1 is a flow chart of a method of one embodiment of the present application;

FIG. 2 is a system block diagram of one embodiment of the present application.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below with reference to fig. 1-2 and the embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

The embodiment of the application discloses a method for adjusting a waveform channel. Referring to fig. 1, the adjusting method includes the steps of:

and S1, sampling the access signal according to a preset sampling frequency to acquire a first amplitude value of the access signal.

In this application, the step of obtaining the first amplitude value further includes the following steps:

and S11, receiving the sampling values of the access signal at each sampling moment in real time.

Specifically, before the step S11, the method further includes: judging whether the access signal is stable or not, and outputting a sampling instruction after the access signal is stable; and based on the sampling instruction, executing the step of receiving sampling values of each sampling moment of the access signal in real time.

In practical applications, a certain fluctuation exists at the beginning of signal access. Sampling the access signal after the access signal is stabilized can reduce the number of times of useless execution of comparison and adjustment caused by fluctuation during the just-in-time access.

And S12, obtaining the first amplitude value according to the sampling value and a preset calculation strategy, and updating the first amplitude value of the access signal in real time.

It should be noted that the preset calculation strategy may adopt a database in which the acquired value and the first amplitude value are established, and the first amplitude value corresponding to the sampled value is retrieved from the database according to the acquired sampled value. In other embodiments, the preset calculation strategy may be a calculation formula, and the first amplitude value is calculated according to the obtained sampling value; it is not particularly limited and may be determined according to the specific circumstances.

And S13, storing the updated first amplitude value in a register for comparison between the first amplitude value and the limit value of the current waveform channel.

When the comparison is performed for the first time, the current waveform channel may be a preset channel, such as a default channel during the production of the device or an initial channel set by an operator when the device is used; or the channel can be a history common channel, namely the channel with the most use times in the history record, or the channel used last time in the history record; it is not particularly limited and may be determined according to the specific circumstances. When the comparison is subsequently performed, the current waveform channel will be the channel obtained from the previous adjustment.

In the application, the first amplitude value is obtained by updating in real time, so that the transmission and processing of multi-point waveform data are not needed in the iteration process of the first amplitude value, and the gear adjustment speed of the current waveform channel is improved.

And S2, comparing the first amplitude value with the upper and lower limit values of the current waveform channel, and if the first amplitude value exceeds the range of the upper and lower limit values, increasing the sampling frequency according to a first adjustment strategy.

It should be noted that, for example, the preset sampling frequency is 5 times/min, and after the sampling frequency is increased by the first adjustment strategy, the new sampling frequency is 20 times/min.

And S3, continuously acquiring a preset number of second amplitude values of the access signal based on the new sampling frequency, comparing the second amplitude values with the upper limit value and the lower limit value of the current waveform channel respectively, and if the proportion of the second amplitude values exceeding the upper limit value and the lower limit value is larger than a preset threshold value, increasing the gear of the current waveform channel according to a second adjustment strategy.

It should be noted that, for example, if the new sampling frequency is 20 times/min, the preset number is 20, that is, 20 second amplitude values need to be respectively compared with the upper and lower limit values of the current waveform channel.

In this application, the second adjustment strategy includes the following steps:

and S31, establishing a first corresponding relation library of the proportion of the range of the second amplitude value exceeding the upper limit value and the lower limit value and different upshifts.

And S32, selecting a corresponding upshifting gear from the first corresponding relation library according to the proportion of the range of the second amplitude value exceeding the upper limit value and the lower limit value, and adjusting the current waveform channel according to the upshifting gear.

In the application, the first corresponding relation library is established, and the corresponding upshifting gear is taken from the first corresponding relation library according to the proportion of the range of the second amplitude value exceeding the upper limit value and the lower limit value, so that the upshifting of the gear of the current waveform channel is facilitated. In other embodiments, other methods can be adopted to obtain the gear to be increased; it is not particularly limited and may be determined according to the specific circumstances.

And S4, if the proportion of the range of the second amplitude value exceeding the upper and lower limit values is less than or equal to the preset threshold value, adjusting to a preset sampling frequency to sample the access signal.

It should be noted that the limit values of the current waveform channel include an upper limit value and a lower limit value, where the upper limit value and the lower limit value are the upper limit value and the lower limit value that can be displayed by the current waveform channel; if the maximum value and the minimum value of the waveform displayed by the current waveform channel exceed the range of the upper limit value and the lower limit value, for example, the maximum value is greater than the upper limit value, or the minimum value is less than the lower limit value, the current waveform channel cannot completely display the waveform, and a certain peak and/or a trough of the waveform can be missed.

The threshold value is the lower limit of the proportion of the difference between the maximum value and the minimum value of the waveform which can be displayed by the current waveform channel in the range of the upper limit value and the lower limit value; if the proportion of the peak-to-peak value of the waveform displayed in the current waveform channel within the range of the upper limit value and the lower limit value is smaller than the threshold value, the actual display height of the waveform in the current waveform channel is lower, and the display effect is affected.

The adjusting method further comprises the following steps: and if the first amplitude value does not exceed the range of the upper limit value and the lower limit value, and the proportion of the peak-to-peak value in the first amplitude value in the range of the upper limit value and the lower limit value is smaller than the threshold value in the limit values, the gear of the current waveform channel is reduced according to a third adjustment strategy.

It should be noted that the third adjustment strategy includes the following steps: establishing a second corresponding relation library of the proportion of the peak-to-peak value in the first amplitude value in the range of the upper limit value and the lower limit value and different reduction gears; and selecting a corresponding reduction gear from the second corresponding relation library according to the proportion of the peak-to-peak value in the first amplitude value in the range of the upper limit value and the lower limit value, and adjusting the current waveform channel according to the reduction gear.

In the application, the second corresponding relation library is established, so that the gear of the current waveform channel can be better adjusted to be smaller. When the first amplitude value is located in the range of the upper limit value and the lower limit value of the current waveform channel and the proportion of the peak-to-peak value in the first amplitude value in the range of the upper limit value and the lower limit value is smaller than the threshold value in the limit values, the gear of the current waveform channel is reduced, so that the current waveform channel is matched with the access signal, and the gear of the waveform channel can be better adjusted.

The implementation principle of the adjustment method of the waveform channel in the embodiment of the application is as follows: acquiring a first amplitude value according to a preset sampling frequency, and increasing the sampling frequency when the first amplitude value exceeds the range of the upper limit value and the lower limit value of the current waveform channel, so that access signals can be more densely sampled when the first amplitude value exceeds the range of the upper limit value and the lower limit value, and a preset number of second amplitude values are acquired after the abnormal first amplitude value; and when the proportion of the range of the second amplitude value exceeding the upper and lower limit values exceeds a preset threshold value, the gear of the current waveform channel is increased, so that the current waveform channel is matched with the access signal, and the gear of the waveform channel can be better adjusted.

The embodiment of the application also discloses a digital oscilloscope. Referring to fig. 2, the digital oscilloscope includes an amplitude acquisition module, an amplitude processing module and a first adjustment module, where the amplitude acquisition module is configured to sample an access signal according to a preset sampling frequency to acquire a first amplitude value of the access signal; the amplitude processing module is connected with the amplitude acquisition module and used for receiving the first amplitude value, comparing the first amplitude value with the upper limit value and the lower limit value of the current waveform channel, and if the first amplitude value exceeds the range of the upper limit value and the lower limit value, increasing the sampling frequency according to a first adjustment strategy.

The first adjusting module is respectively connected with the amplitude acquiring module and the amplitude processing module and is used for receiving a new sampling frequency and controlling the amplitude acquiring module to continuously acquire a preset number of second amplitude values of the access signal according to the new sampling frequency; the first adjusting module compares the plurality of second amplitude values with the upper limit value and the lower limit value of the current waveform channel respectively, and if the proportion of the second amplitude values exceeding the range of the upper limit value and the lower limit value is larger than a preset threshold value, the gear of the current waveform channel is increased according to a second adjusting strategy; and if the proportion of the range of the second amplitude value exceeding the upper limit value and the lower limit value is less than or equal to the preset threshold value, adjusting to the preset sampling frequency to sample the access signal.

The digital oscilloscope further comprises a second adjusting module, wherein the second adjusting module is connected with the amplitude acquisition module and used for receiving the first amplitude value, and if the first amplitude value does not exceed the range of the upper limit value and the lower limit value and the proportion of the peak-to-peak value in the first amplitude value in the range of the upper limit value and the lower limit value is smaller than the threshold value in the limit values, the current gear of the waveform channel is adjusted to be smaller according to a third adjusting strategy.

The second adjustment module comprises a second corresponding unit and a second adjustment unit, wherein the second corresponding unit is used for establishing a second corresponding relation library of the proportion of the peak-to-peak value in the first amplitude value in the range of the upper limit value and the lower limit value and different reduction gears; the second adjusting unit is connected with the second corresponding unit and used for receiving the second corresponding relation library, selecting a corresponding reduction gear from the second corresponding relation library according to the proportion of the peak-to-peak value in the first amplitude value in the range of the upper limit value and the lower limit value, and adjusting the current waveform channel according to the reduction gear. The second corresponding relation library is established, so that the gear of the current waveform channel can be well adjusted to be small.

In this application, the second adjustment module is located the upper and lower limit value range of current waveform channel at first amplitude value, and when the shared proportion of peak-to-peak value in the first amplitude value in the range of upper and lower limit value is less than the threshold value in the limit value, transfers down the gear of current waveform channel, makes current waveform channel and access signal phase-match, the gear of adjustment waveform channel that like this can be better.

The amplitude acquisition module comprises a sampling receiving unit, an amplitude updating unit and an amplitude storage unit, wherein the sampling receiving unit is used for receiving sampling values of each sampling moment of the access signal in real time; the amplitude updating unit is connected with the sampling receiving unit and used for receiving the sampling value, obtaining a first amplitude value according to the sampling value and a preset calculation strategy, and updating the first amplitude value of the access signal in real time; the amplitude storage unit is connected with the amplitude updating unit and used for receiving the first amplitude value and storing the updated first amplitude value in the register so as to compare the first amplitude value with the limit value of the current waveform channel.

In the application, the first amplitude value is obtained by updating in real time, so that the transmission and processing of multi-point waveform data are not needed in the iteration process of the first amplitude value, and the gear adjustment speed of the current waveform channel is improved.

The amplitude acquisition module further comprises an instruction output unit, wherein the instruction output unit is used for judging whether the access signal is stable or not, outputting a sampling instruction after the access signal is stable, and executing the step of receiving sampling values of the access signal at each sampling moment in real time based on the sampling instruction. According to the method and the device, the access signal is sampled after being stabilized, and multiple useless execution of comparison and adjustment caused by fluctuation during access can be reduced.

The first adjusting module comprises a first corresponding unit and a first adjusting unit, wherein the first corresponding unit is used for establishing a first corresponding relation library of the proportion of the range of the second amplitude value exceeding the upper limit value and the lower limit value and different increasing gears; the first adjusting unit is connected with the first corresponding unit and used for receiving the first corresponding relation library, selecting a corresponding upshifting gear from the first corresponding relation library according to the proportion of the range of the second amplitude value exceeding the upper limit value and the lower limit value, and adjusting the current waveform channel according to the upshifting gear. By establishing the first corresponding relation library, the gear of the current waveform channel can be enlarged better.

The implementation principle of the digital oscilloscope in the embodiment of the application is as follows: the amplitude processing module increases the sampling frequency when the first amplitude value exceeds the range of the upper limit value and the lower limit value of the current waveform channel, so that access signals can be more densely sampled when the first amplitude value exceeds the range of the upper limit value and the lower limit value, and a preset number of second amplitude values are acquired after the abnormal first amplitude value; when the proportion of the range of the second amplitude value exceeding the upper limit value and the lower limit value exceeds a preset threshold value, the first adjusting module enlarges the gear of the current waveform channel, so that the current waveform channel is matched with the access signal, and the gear of the waveform channel can be better adjusted.

The embodiment of the application also discloses a readable storage medium, which stores a computer program capable of being loaded by a processor and executing any one of the above adjusting methods of the waveform channel.

The foregoing is a preferred embodiment of the present application and is not intended to limit the scope of the application in any way, and any features disclosed in this specification (including the abstract and drawings) may be replaced by alternative features serving equivalent or similar purposes, unless expressly stated otherwise. That is, unless expressly stated otherwise, each feature is only an example of a generic series of equivalent or similar features.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:一种基于瞬时无功功率的i-p-i-q谐波电流检测方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!