CN113406376B - Waveform channel adjusting method, digital oscilloscope and readable storage medium - Google Patents

Waveform channel adjusting method, digital oscilloscope and readable storage medium Download PDF

Info

Publication number
CN113406376B
CN113406376B CN202110694916.1A CN202110694916A CN113406376B CN 113406376 B CN113406376 B CN 113406376B CN 202110694916 A CN202110694916 A CN 202110694916A CN 113406376 B CN113406376 B CN 113406376B
Authority
CN
China
Prior art keywords
limit value
value
amplitude
upper limit
lower limit
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
CN202110694916.1A
Other languages
Chinese (zh)
Other versions
CN113406376A (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.)
Chengdu Lujiu Juntong Technology Co ltd
Original Assignee
Chengdu Lujiu Juntong Technology Co ltd
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 Chengdu Lujiu Juntong Technology Co ltd filed Critical Chengdu Lujiu Juntong Technology Co ltd
Priority to CN202110694916.1A priority Critical patent/CN113406376B/en
Publication of CN113406376A publication Critical patent/CN113406376A/en
Application granted granted Critical
Publication of CN113406376B publication Critical patent/CN113406376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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/0218Circuits therefor
    • G01R13/0272Circuits therefor for sampling

Abstract

The application relates to a waveform channel adjusting method, a digital oscilloscope and a readable storage medium, wherein the adjusting method comprises the following steps: sampling the access signal according to a preset sampling frequency to obtain a first amplitude value of the access signal; if the first amplitude value exceeds the range of the upper limit value and the lower limit value of the current waveform channel, increasing the sampling frequency according to a first adjustment strategy; continuously acquiring second amplitude values of the preset number of the access signals based on the new sampling frequency, respectively comparing the second amplitude values with the upper limit value and the lower limit value of the current waveform channel, and if the proportion of the range of the second amplitude values exceeding the upper limit value and the lower limit value is greater than a preset threshold value, adjusting the gear of the current waveform channel according to a second adjustment strategy; and if the proportion of the range of the second amplitude value exceeding the upper limit value and the lower limit value is smaller than or equal to a preset threshold value, adjusting to a preset sampling frequency to sample the access signal. The method and the device for adjusting the gear of the current waveform channel increase the gear of the current waveform channel, so that the current waveform channel is matched with the access signal.

Description

Waveform channel adjusting method, digital oscilloscope and readable storage medium
Technical Field
The present disclosure relates to the field of power electronics, and in particular, to a method for adjusting a waveform channel, a digital oscilloscope, and a readable storage medium.
Background
Digital oscilloscopes typically operate in an optimal state matching an access signal by an automatic setting function. Specifically, the digital oscilloscope firstly detects the amplitude value and the frequency value of the access signal, then automatically adjusts the gear and the offset of the waveform channel according to the amplitude value, and adjusts the time base according to the frequency value.
In the process of automatically adjusting the gear of the waveform channel, as the digital oscilloscope is time domain measuring equipment, the waveform displayed by the digital oscilloscope is a waveform with a complete screen in general; a screen does not necessarily correspond to a waveform captured at a time, but rather is a waveform for a period of time, such as a frame waveform; the frame of waveform comprises waveform data far greater 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 inventors consider that repeatedly updating the shift position of its waveform channel is complicated.
Disclosure of Invention
In order to better adjust the gear of the waveform channel, the application provides a waveform channel adjusting method, 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, comprising the steps of:
sampling the access signal according to a preset sampling frequency to obtain 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 second amplitude values of the preset number of the access signals based on the new sampling frequency, respectively comparing the second amplitude values with the upper limit value and the lower limit value of the current waveform channel, and if the proportion of the second amplitude values which exceed the upper limit value and the lower limit value is larger than a preset threshold value, adjusting the gear of the current waveform channel according to a second adjustment strategy; the method comprises the steps of,
and if the proportion of the range of the second amplitude value exceeding the upper limit value and the lower limit value is smaller 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, when the first amplitude value exceeds the upper limit value and the lower limit value of the current waveform channel, the sampling frequency is increased, so that access signals are more densely sampled when the first amplitude value exceeds 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 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.
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 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 value, the gear of the current waveform channel is reduced according to a third adjustment strategy.
By adopting the technical scheme, when the first amplitude value is positioned in the range of the upper limit value and the lower limit value of the current waveform channel and the proportion of the 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 value, 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 obtaining the first amplitude value, the method further includes:
receiving sampling values of all sampling moments 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 comparing the first amplitude value with the limit value of the current waveform channel.
By adopting the technical scheme, the first amplitude value is updated in real time, so that the iterative process of the first amplitude value does not need transmission and processing of multi-point waveform data, and the gear adjusting speed of the current waveform channel is improved.
Optionally, before the step of receiving, in real time, the sampled values of each sampling instant of the access signal, 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 the sampling value of each sampling time of the access signal in real time based on the sampling instruction.
By adopting the technical scheme, the access signal is sampled after the access signal is stable, and the useless execution of comparison and adjustment caused by fluctuation in the process of just accessing can be reduced.
Optionally, the second adjustment strategy includes the following steps:
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 upshift gears;
and selecting a corresponding increasing 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 increasing gear.
By adopting the technical scheme, the first corresponding relation library is established, so that the gear of the current waveform channel can be better adjusted.
Optionally, the third adjustment strategy includes the following steps:
establishing a second corresponding relation library of the ratio of the peak value in the first amplitude value to the different small gears, wherein the ratio is occupied in the range of the upper limit value and the lower limit value;
and selecting a corresponding small-adjustment gear from the second corresponding relation library according to the proportion of the peak value in the first amplitude value within the range of the upper limit value and the lower limit value, and adjusting the current waveform channel according to the small-adjustment gear.
By adopting the technical scheme, the second corresponding relation library is established, so that the gear of the current waveform channel can be better adjusted.
In a second aspect, the present application provides a digital oscilloscope, which adopts the following technical scheme:
a digital oscilloscope, which 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 is 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 acquisition module and the amplitude processing module and is used for receiving the new sampling frequency and controlling the amplitude acquisition module to continuously acquire second amplitude values of the preset number of the access signals 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 range of the second amplitude values exceeding the upper limit value and the lower limit value is larger than a preset threshold value, the gear of the current waveform channel is adjusted 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 smaller 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 a first amplitude value according to a preset sampling frequency; the amplitude processing module increases the sampling frequency when the first amplitude value exceeds the upper limit value and the lower limit value of the current waveform channel, so that access signals are more densely sampled when the first amplitude value exceeds 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 ratio of the second amplitude value exceeding the range of the upper limit value and the lower limit value exceeds a preset threshold value, the first adjusting module adjusts the gear of the current waveform channel to enable the current waveform channel to be matched with the access signal, and therefore the gear of the waveform channel can be adjusted better.
Optionally, the device also comprises a second adjusting module,
the second adjusting module is connected with the amplitude obtaining module and is 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 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 value, the gear of the current waveform channel is adjusted to be smaller according to a third adjusting strategy.
By adopting the technical scheme, when the first amplitude value is positioned in the range of the upper limit value and the lower limit value of the current waveform channel and the proportion of the 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 value, the second adjusting module adjusts the gear of the current waveform channel to be smaller, 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 scheme:
a readable storage medium storing a computer program capable of being loaded by a processor and executing any one of the above-described methods of adjusting a waveform channel.
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 upper limit value and the lower limit value of the current waveform channel, so that access signals are more densely sampled when the first amplitude value exceeds 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 ratio of the second amplitude value to the range 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 in the range of the upper limit value and the lower limit value of the current waveform channel, and the proportion of the 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 value, 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 will be further described in detail with reference to fig. 1-2 and the embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only 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 adjustment method includes the steps of:
s1, sampling the access signal according to a preset sampling frequency to obtain a first amplitude value of the access signal.
In this application, the step of obtaining the first amplitude value further includes the following steps:
s11, receiving sampling values of all sampling moments of the access signal in real time.
Specifically, before 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; the step of receiving in real time the sampled values of the respective sampling instants of the access signal is performed based on the sampling instructions.
In practical application, there is a certain fluctuation at the beginning of signal access. Sampling the access signal after the access signal is stable can reduce the useless execution of comparison and adjustment caused by fluctuation just in access.
S12, 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.
It should be noted that, the preset calculation strategy may be to set up a database corresponding to the acquired value and the first amplitude value, and call the first amplitude value corresponding to the acquired value from the database according to the acquired sampling 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; the present invention is not particularly limited, and may be applied as the case may be.
And S13, storing the updated first amplitude value in a register so as to compare the first amplitude value with the limit value of the current waveform channel.
When comparing for the first time, the current waveform channel can be a preset channel, such as a default channel in equipment production or an initial channel set by an operator when using the equipment; or the channel can be a common channel in the history, namely the channel with the most use times in the history, or the channel used last time in the history; the present invention is not particularly limited, and may be applied as the case may be. The current waveform channel will be the last adjusted channel when the comparison is performed again.
In the method, the first amplitude value is updated in real time, so that transmission and processing of multi-point waveform data are not needed in the iterative process of the first amplitude value, and the gear adjusting speed of the current waveform channel is improved.
S2, 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.
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.
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 which exceed the upper limit value and the lower limit value is larger than a preset threshold value, adjusting the gear of the current waveform channel according to a second adjustment strategy.
It should be noted that, for example, the new sampling frequency is 20 times/min, the preset number is 20, that is, 20 second amplitude values need to be compared with the upper limit value and the lower limit value of the current waveform channel respectively.
In the present application, the second adjustment strategy includes the following steps:
s31, establishing a first corresponding relation library of the ratio of the range of the second amplitude value exceeding the upper limit value and the lower limit value and different upshift gears.
S32, selecting a corresponding increasing 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 increasing gear.
In the method, a first corresponding relation library is established, and the corresponding gear is called 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 gear of the current waveform channel can be better regulated. In other embodiments, other methods may be used to derive the upshift gear; the present invention is not particularly limited, and may be applied as the case may be.
And S4, if the proportion of the range of the second amplitude value exceeding the upper limit value and the lower limit value is smaller than or equal to a preset threshold value, adjusting to a preset sampling frequency to sample the access signal.
The current waveform channel limit value comprises an upper limit value, a lower limit value and a threshold value, wherein the upper limit value and the lower limit value are the upper limit value and the lower limit value which can be displayed by the current waveform channel; if the maximum and minimum values of the waveform displayed by the current waveform channel exceed the range of the upper and lower limit values, such as 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 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 value of the waveform displayed by 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 adjustment method further comprises the following steps: 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 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 value, 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 ratio of the peak value in the first amplitude value to the different small gears, wherein the ratio is in the range of the upper limit value and the lower limit value; and selecting a corresponding small gear from the second corresponding relation library according to the proportion of the peak value in the first amplitude value within the range of the upper limit value and the lower limit value, and adjusting the current waveform channel according to the small gear.
In the method, the second corresponding relation library is established, so that the gear of the current waveform channel can be better adjusted. When the first amplitude value is in the range of the upper limit value and the lower limit value of the current waveform channel, and the proportion of the 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 value, 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 adjusting 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 upper limit value and the lower limit value of the current waveform channel, so that access signals are more densely sampled when the first amplitude value exceeds 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 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.
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 is 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 acquisition module and the amplitude processing module and is used for receiving the new sampling frequency and controlling the amplitude acquisition module to continuously acquire second amplitude values of the preset number of the access signals 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 range of the second amplitude values exceeding the upper limit value and the lower limit value is larger than a preset threshold value, the gear of the current waveform channel is adjusted 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 smaller than or equal to a preset threshold value, adjusting to a 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 obtaining module and is 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 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 value, the gear of the current waveform channel is adjusted to be smaller according to a third adjusting strategy.
The second adjusting module comprises a second corresponding unit and a second adjusting unit, wherein the second corresponding unit is used for establishing a second corresponding relation library of the proportion of the peak value in the first amplitude value in the range of the upper limit value and the lower limit value and different small gears; the second adjusting unit is connected with the second corresponding unit and is 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 value in the first amplitude value within the range of the upper limit value and the lower limit value, and adjusting the current waveform channel according to the reduction gear. By establishing the second corresponding relation library, the gear of the current waveform channel can be better adjusted.
In the application, 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 value in the first amplitude value to the peak value in the range of the upper limit value and the lower limit value is smaller than the threshold value in the limit value, the second adjusting module adjusts the gear of the current waveform channel to be smaller, so that the current waveform channel is matched with the access signal, and the gear of the waveform channel can be better adjusted.
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 all sampling moments of the access signal in real time; the amplitude updating unit is connected with the sampling receiving unit and is 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 is used for receiving the first amplitude value, and the updated first amplitude value is stored in the register so as to be compared with the limit value of the current waveform channel.
In the method, the first amplitude value is updated in real time, so that transmission and processing of multi-point waveform data are not needed in the iterative process of the first amplitude value, and the gear adjusting 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, outputting a sampling instruction after the access signal is stable, and executing the step of receiving the sampling value of each sampling moment of the access signal in real time based on the sampling instruction. In the method, the access signal is sampled after the access signal is stable, so that multiple useless execution of comparison and adjustment caused by fluctuation in the process of just accessing 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 upshift gears; the first adjusting unit is connected with the first corresponding unit and is used for receiving the first corresponding relation library, selecting a corresponding increasing 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 increasing gear. By establishing the first corresponding relation library, the gear of the current waveform channel can be better adjusted.
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 upper limit value and the lower limit value of the current waveform channel, so that access signals are more densely sampled when the first amplitude value exceeds 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 ratio of the second amplitude value exceeding the range of the upper limit value and the lower limit value exceeds a preset threshold value, the first adjusting module adjusts the gear of the current waveform channel to enable the current waveform channel to be matched with the access signal, and therefore the gear of the waveform channel can be adjusted better.
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-mentioned waveform channel adjustment methods.
The foregoing description of the preferred embodiments of the present application is not intended to limit the scope of the application, in which any feature disclosed in this specification (including abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise. That is, each feature is one example only of a generic series of equivalent or similar features, unless expressly stated otherwise.

Claims (8)

1. A method for adjusting a waveform channel, comprising the steps of:
sampling the access signal according to a preset sampling frequency to obtain 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 second amplitude values of the preset number of the access signals based on the new sampling frequency, respectively comparing the second amplitude values with the upper limit value and the lower limit value of the current waveform channel, and if the proportion of the second amplitude values which exceed the upper limit value and the lower limit value is larger than a preset threshold value, adjusting the gear of the current waveform channel according to a second adjustment strategy; the method comprises the steps of,
if the proportion of the second amplitude value which exceeds the upper limit value and the lower limit value is smaller than or equal to a preset threshold value, adjusting to a preset sampling frequency to sample the access signal;
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 limit value and the lower limit value and different upshift gears;
and selecting a corresponding increasing 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 increasing gear.
2. The method for adjusting a waveform channel 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 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 value, the gear of the current waveform channel is reduced according to a third adjustment strategy.
3. The method for adjusting a waveform channel according to claim 1 or 2, wherein the step of obtaining the first amplitude value further comprises:
receiving sampling values of all sampling moments 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 comparing the first amplitude value with the limit value of the current waveform channel.
4. A method of adjusting a waveform channel as defined in claim 3, further comprising, prior to the step of receiving in real time samples of each sampling instant of the access signal:
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 the sampling value of each sampling time of the access signal in real time based on the sampling instruction.
5. The method of adjusting a waveform channel according to claim 2, wherein the third adjustment strategy comprises the steps of:
establishing a second corresponding relation library of the ratio of the peak value in the first amplitude value to the different small gears, wherein the ratio is occupied in the range of the upper limit value and the lower limit value;
and selecting a corresponding small-adjustment gear from the second corresponding relation library according to the proportion of the peak value in the first amplitude value within the range of the upper limit value and the lower limit value, and adjusting the current waveform channel according to the small-adjustment gear.
6. 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 is 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 acquisition module and the amplitude processing module and is used for receiving the new sampling frequency and controlling the amplitude acquisition module to continuously acquire second amplitude values of the preset number of the access signals 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 range of the second amplitude values exceeding the upper limit value and the lower limit value is larger than a preset threshold value, the gear of the current waveform channel is adjusted according to a second adjusting strategy; if the proportion of the second amplitude value which exceeds the upper limit value and the lower limit value is smaller than or equal to a preset threshold value, adjusting to a preset sampling frequency to sample the access signal;
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 ratio of the range of the second amplitude value exceeding the upper limit value and the lower limit value and different upshift gears; the first adjusting unit is connected with the first corresponding unit and is used for receiving the first corresponding relation library, selecting a corresponding increasing 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 increasing gear.
7. The digital oscilloscope of claim 6, further comprising a second adjustment module,
the second adjusting module is connected with the amplitude obtaining module and is 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 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 value, the gear of the current waveform channel is adjusted to be smaller according to a third adjusting strategy.
8. A readable storage medium, characterized by: a computer program is stored which can be loaded by a processor and which performs the adjustment method according to any one of claims 1 to 5.
CN202110694916.1A 2021-06-22 2021-06-22 Waveform channel adjusting method, digital oscilloscope and readable storage medium Active CN113406376B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110694916.1A CN113406376B (en) 2021-06-22 2021-06-22 Waveform channel adjusting method, digital oscilloscope and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110694916.1A CN113406376B (en) 2021-06-22 2021-06-22 Waveform channel adjusting method, digital oscilloscope and readable storage medium

Publications (2)

Publication Number Publication Date
CN113406376A CN113406376A (en) 2021-09-17
CN113406376B true CN113406376B (en) 2024-03-26

Family

ID=77682475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110694916.1A Active CN113406376B (en) 2021-06-22 2021-06-22 Waveform channel adjusting method, digital oscilloscope and readable storage medium

Country Status (1)

Country Link
CN (1) CN113406376B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0506223B1 (en) * 1991-02-06 1997-08-13 Hewlett-Packard Company Very fast autoscale topology for digitizing oscilloscopes
CN101666818A (en) * 2009-07-21 2010-03-10 秦轲 Method for detecting signal by oscilloscope
CN104407190A (en) * 2014-11-26 2015-03-11 电子科技大学 Fully-digital random sampling method
CN108918937A (en) * 2018-09-13 2018-11-30 北京数采精仪科技有限公司 A kind of general card oscillograph based on pci interface
CN109085403A (en) * 2017-06-14 2018-12-25 北京普源精电科技有限公司 A kind of method of adjustment and digital oscilloscope of undulating path
CN212060395U (en) * 2020-02-27 2020-12-01 武汉大学 Digital oscilloscope supporting real-time sampling and equivalent sampling
CN112129983A (en) * 2020-09-25 2020-12-25 中北大学 Waveform recovery data processing method based on equal time interval equivalent sampling

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0506223B1 (en) * 1991-02-06 1997-08-13 Hewlett-Packard Company Very fast autoscale topology for digitizing oscilloscopes
CN101666818A (en) * 2009-07-21 2010-03-10 秦轲 Method for detecting signal by oscilloscope
CN104407190A (en) * 2014-11-26 2015-03-11 电子科技大学 Fully-digital random sampling method
CN109085403A (en) * 2017-06-14 2018-12-25 北京普源精电科技有限公司 A kind of method of adjustment and digital oscilloscope of undulating path
CN108918937A (en) * 2018-09-13 2018-11-30 北京数采精仪科技有限公司 A kind of general card oscillograph based on pci interface
CN212060395U (en) * 2020-02-27 2020-12-01 武汉大学 Digital oscilloscope supporting real-time sampling and equivalent sampling
CN112129983A (en) * 2020-09-25 2020-12-25 中北大学 Waveform recovery data processing method based on equal time interval equivalent sampling

Also Published As

Publication number Publication date
CN113406376A (en) 2021-09-17

Similar Documents

Publication Publication Date Title
EP2418497B1 (en) Time-domain measurements in a test and measurement instrument
US20090196389A1 (en) Signal processing method and circuit to convert analog signal to digital signal
EP3133476A1 (en) Signal to noise ratio parameter optimization method and apparatus
CN116760433B (en) Baseband impulse response signal measurement method and device, electronic equipment and medium
CN113406376B (en) Waveform channel adjusting method, digital oscilloscope and readable storage medium
US20130285673A1 (en) System and method for low voltage differential signaling test
US7339985B2 (en) Zero crossing method of symbol rate and timing estimation
US20050275436A1 (en) Methods and devices for obtaining sampling clocks
CN111736648B (en) Output voltage control method and device and terminal equipment
US10476704B2 (en) Equalizer for limited intersymbol interference
EP3961615A1 (en) Image display device, image display system, image display method, and computer program
CN111261129A (en) Screen brightness control method and device, electronic equipment and storage medium
CN108021025B (en) Method and apparatus for controlling injection for frequency response measurement
CN108184009B (en) Power calibration method and device and computer readable storage device
CN113568558B (en) High-precision multichannel synchronous receiving processing system and method
CN111929481B (en) Display method of oscilloscope amplification area and oscilloscope
CN113488068B (en) Audio anomaly detection method, device and computer readable storage medium
CN109145728B (en) Afterglow blanking method and device and computer readable storage medium
US10288679B2 (en) System and method for providing temporal visualization of signal relationships in a coherent time-domain ATE test execution environment
US10075286B1 (en) Equalizer for limited intersymbol interference
CN106846433B (en) Signal change diagram drawing method and device and electronic equipment
GB2498938A (en) Automatic gain control in a data receiver
DE10242343A1 (en) Multi-interpolated data recovery with a relatively low sampling rate
EP3696763B1 (en) Method of creating and optimizing customized data sheets, customer portal and non-transitory computer-readable recording medium
CN109541310A (en) A kind of signal processing method and device

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