CN106597048A - Digital oscilloscope quick and automatic setting method based on hardware centralized setting - Google Patents

Digital oscilloscope quick and automatic setting method based on hardware centralized setting Download PDF

Info

Publication number
CN106597048A
CN106597048A CN201611023731.3A CN201611023731A CN106597048A CN 106597048 A CN106597048 A CN 106597048A CN 201611023731 A CN201611023731 A CN 201611023731A CN 106597048 A CN106597048 A CN 106597048A
Authority
CN
China
Prior art keywords
amplitude
setting
channel
gear
searched
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.)
Granted
Application number
CN201611023731.3A
Other languages
Chinese (zh)
Other versions
CN106597048B (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.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201611023731.3A priority Critical patent/CN106597048B/en
Publication of CN106597048A publication Critical patent/CN106597048A/en
Application granted granted Critical
Publication of CN106597048B publication Critical patent/CN106597048B/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/029Software therefor

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The invention discloses a digital oscilloscope quick and automatic setting method based on hardware centralized setting. The minimum horizontal time base class is used as the horizontal time base class in the case of amplitude lookup, when amplitude lookup is carried out, a hardware centralized setting mode is adopted to set the amplitude class of a to-be-found channel, and amplitude lookup is carried out. The specific hardware centralized setting method comprises steps: related hardware parameters for all to-be-found channel amplitudes are set at the same time; after all parameters finish setting, the hardware responds to the set hardware parameters in a unified mode to enable the parameters to be valid; whether the current amplitude class is proper is judged, if yes, amplitude class setting is carried out, the improper channel adopts the hardware centralized setting mode to set the next amplitude class, and after amplitude lookup is completed, frequency lookup and optimum amplitude adjustment are then carried out. The hardware centralized setting mode is adopted to reduce the hardware parameter adjustment times, the digital oscilloscope automatic setting time is shortened, and quick and automatic setting of the digital oscilloscope is thus realized.

Description

Digital oscilloscope rapid automatic setting method based on hardware centralized setting
Technical Field
The invention belongs to the technical field of measuring instruments, and particularly relates to a rapid automatic setting method of a digital oscilloscope based on hardware centralized setting.
Background
Oscilloscopes, as a widely used general-purpose instrument, have experienced continuous development of analog oscilloscopes, digital storage oscilloscopes, and three-dimensional oscilloscopes. Whether the oscilloscope is an analog oscilloscope or a digital oscilloscope, the observation signal can be effectively observed only after being conditioned by an analog channel. Initially, conditioning the input signal to the best viewing range was achieved by manually setting the parameters (amplitude, coupling, position) of the channel. With the development of digital oscilloscopes, manual setting can be replaced by an automatic setting method gradually so as to observe signals quickly, but the automatic setting is time-consuming due to the complexity of the observed signals and the gradual popularization of multi-channel oscilloscopes.
According to the principle analysis of the digital oscilloscope, the reason for the slow automatic setting of the oscilloscope is as follows:
1. strategically speaking, one faces the dilemma of finding the amplitude first or measuring the signal frequency first: if the amplitude is found first, if the horizontal time base is not placed at a proper gear, a complete period of the signal can not be acquired, and the obtained amplitude is inaccurate; if the frequency of the signal is found first, it is not possible to measure the frequency of the signal without conditioning the signal to the proper amplitude.
2. The signal conditioning is completed by an analog channel, and a certain stabilization time is needed for the parameter setting of the analog channel from setting to effective measurement of the signal. It will take a lot of time if the parameters of the channel are iteratively adjusted to find a valid observed amplitude of the signal.
3. Due to the unknown of the detected signal, the amplitude parameter of the channel needs to be adjusted continuously until a proper gear is found, and particularly when the channel has no effective signal, multiple searches are needed, which takes a lot of time.
4. For a multi-channel oscilloscope, since the amplitude of the signal of each channel may be different, an amplitude lookup needs to be performed for each channel. As the number of channels increases, the lookup takes time to multiply the number of channels.
5. In order to observe the signals of each channel, the multichannel oscilloscope needs to place each channel at different positions on an observation screen and properly adjust the amplitude of each channel so as to observe the signals of the channels without influencing each other. For this reason, an additional amplitude search is again required in order to place the appropriate observation position, which takes additional time.
6. When looking for the signal frequency to determine the horizontal time base, since it is not known which channel has a valid signal, it is necessary to measure each channel in turn to obtain the valid signal frequency, which also takes additional time.
7. When the proper amplitude of each channel is searched, the process is to set each channel to a specified amplitude gear, wait for the stability of hardware, then acquire the waveform through the ADC, read the waveform data by software, and finally analyze the read waveform data. Reading the waveform data and analyzing the waveform data by software is time consuming as the number of channels increases and the storage depth increases.
In summary, due to the characteristics of the digital oscilloscope, if the automatic setting has no optimized method and technology, the result that the time is long and the user feels poor is caused.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a rapid automatic setting method of a digital oscilloscope based on hardware centralized setting, which shortens the automatic setting time of the digital oscilloscope by reducing the times of adjusting hardware parameters.
In order to realize the purpose, the invention relates to a digital oscilloscope rapid automatic setting method based on hardware centralized setting, which comprises the following steps:
s1: recording user-defined parameters except the automatic setting parameters according to the current setting condition of the digital oscilloscope by a user;
s2: initializing the digital oscilloscope, which mainly comprises the following steps: setting the baseline return-to-zero, the bias voltage return-to-zero and the coupling as direct current coupling, setting the trigger parameter as edge trigger, setting the trigger level as 0, setting the trigger coupling as alternating current, setting the sampling mode as peak value sampling, and setting the sampling time base as the baseline level when the minimum level is reached;
s3: setting all channels or opening channels to be searched according to actual needs, and setting a mark F to be searched of the channel to be searchedneedIf not, let Fneed=0;
S4: to-be-searched mark FneedThe method for searching the amplitude of the channel 1 comprises the following steps:
s4.1: for the flag F to be searchedneedSetting an amplitude gear setting completion flag K of the channel to be searched which is 1 to be 0;
s4.2: adopting hardware centralized setting mode to make all the marks F to be searchedneedThe amplitudes of the channels to be searched which are 1 are all set as the minimum vertical amplitude YScale_MinThe specific method for centralized setting of hardware comprises the following steps: setting all relevant hardware parameters of the channel amplitude to be searched, and after all the parameters are set, uniformly responding the set hardware parameters by each hardware to enable the hardware parameters to take effect;
reading waveform data collected by each channel, and calculating the maximum value y of the waveformmaxAnd the minimum value yminNumber of signal occupation cells DSignalUsedAnd a DC bias voltage Vbias(ii) a If the maximum value ymaxOr minimum value yminExceeding the screen display area of the digital oscilloscope and entering the step S4.3; if the maximum value ymaxAnd the minimum value yminNot surpassIf the digital oscilloscope goes out of the screen display area, the number D of the occupied grids of the signal is judgedSignalUsedIf the amplitude is smaller than the half-grid, the channel is considered to have no input signal, the channel is set to be a default amplitude gear, the setting completion flag K of the amplitude gear is made to be 1, and the flag F to be searched is updatedneedIf not, further judging whether the signal occupies the lattice number Representing the total grid number of the screen display area of the digital oscilloscope, if yes, setting the amplitude gear of the channel as the minimum vertical amplitude YScale_MinSetting the amplitude gear setting completion flag K to 1, and updating the flag F to be searchedneed0, and recording the signal occupation grid number DSignalUsedAnd a DC bias voltage VbiasOtherwise, no operation is performed;
s4.3: scanning other amplitude gears, wherein the specific method comprises the following steps: adopting hardware centralized setting mode to make all the marks F to be searchedneedSetting the amplitude gear of the channel as 1 as the amplitude gear which is not found, reading the waveform data collected by each channel, and calculating the maximum value y of the waveformmaxAnd the minimum value yminNumber of signal occupation cells DSignalUsed(ii) a If the maximum value ymaxAnd the minimum value yminIf the range exceeds the screen display area of the digital oscilloscope, resetting the range gear and continuing searching; if the maximum value ymaxAnd the minimum value yminIf the signal does not exceed the screen display area of the digital oscilloscope, judging whether the signal occupies the grid numberIf yes, the amplitude gear of the channel is set as the current amplitude gear, the setting completion flag K of the amplitude gear is made to be 1, and the flag F to be searched is updatedneed0, and recording the signal occupation grid number DSignalUsedAnd a DC bias voltage VbiasOtherwise it does notAny operation;
s5: setting a trigger source on one of the alternating current signal channels according to the result of amplitude search, setting the bias voltage of the channel, or setting the coupling mode as alternating current coupling, measuring the frequency F of the alternating current signal through a frequency meter, and then determining to obtain a level time base;
s6: according to the amplitude gear and the signal occupation lattice number D of each channelSignalUsedAnd a DC bias voltage VbiasAnd the number of vertical occupation lattices of each channel in a screen display area is optimally adjusted to obtain the optimal amplitude gear when each channel is displayed simultaneously;
s7: the user-defined parameters recorded in step S1 are restored.
The invention relates to a rapid automatic setting method of a digital oscilloscope based on hardware centralized setting, which takes a basic document at the minimum level as a horizontal time basic document during amplitude searching, and adopts a hardware centralized setting mode to set the amplitude gear of a channel to be searched during amplitude searching, so as to search the amplitude, wherein the hardware centralized setting specific method comprises the following steps: and simultaneously setting all relevant hardware parameters of the channel amplitude to be searched, uniformly responding the set hardware parameters by each hardware after the setting of all the parameters is finished, enabling the hardware parameters to take effect, then judging whether the current amplitude gear is proper, if so, setting the amplitude gear, if not, setting the next amplitude gear by adopting a hardware centralized setting mode for the unsuitable channel, and then, carrying out frequency searching and optimal amplitude adjustment after the amplitude searching is finished. The invention adopts a hardware centralized setting mode to reduce the times of adjusting hardware parameters and shorten the automatic setting time of the digital oscilloscope, thereby realizing the quick automatic setting of the digital oscilloscope.
Drawings
FIG. 1 is a flow chart of an embodiment of the digital oscilloscope automatic setting method based on hardware centralized setting according to the present invention;
FIG. 2 is a flow chart of amplitude lookup based on hardware intensive settings in the present invention;
FIG. 3 is a flow chart of an amplitude scanning method based on bisection;
fig. 4 is a flow chart of the optimum amplitude gear adjustment in the present invention.
Detailed Description
The following description of the embodiments of the present invention is provided in order to better understand the present invention for those skilled in the art with reference to the accompanying drawings. It is to be expressly noted that in the following description, a detailed description of known functions and designs will be omitted when it may obscure the subject matter of the present invention.
Examples
FIG. 1 is a flow chart of an embodiment of the digital oscilloscope automatic setting method based on hardware centralized setting according to the invention. As shown in fig. 1, the automatic setting method of the digital oscilloscope based on the hardware centralized setting of the invention comprises the following steps:
s101: recording user-defined parameters:
and recording user-defined parameters except the automatic setting parameters according to the current setting condition of the digital oscilloscope by the user so as to recover after the automatic setting is finished.
S102: initializing a digital oscilloscope:
the necessary initialization setting of the channel, trigger, acquisition, etc. of the digital oscilloscope is required, which mainly comprises: the method comprises the steps of enabling a base line to return to zero, enabling bias voltage to return to zero, setting coupling to be direct current coupling, setting triggering parameters to be edge triggering, setting triggering level to be 0, setting triggering coupling to be alternating current, setting a sampling mode to be peak value sampling, and setting sampling time base to be a base level when the sampling time base is at a minimum level. In the invention, by setting the sampling time base to the time base when the sampling time base is the minimum level, the effective amplitude of the signal can be ensured to be obtained by analyzing the data of the ADC, and the situation that the effective amplitude of the signal cannot be obtained due to the fact that the sampling frequency is too high and a complete period of the signal cannot be acquired is avoided.
S103: determining a channel to be searched:
setting all channels or opening the channels to be searched according to actual needs, and setting a mark F to be searched of the channel to be searchedneedIf not, let Fneed0. The step can be controlled by a digital oscilloscope designer or a user to designate an automatic setting strategy, generally speaking, only searching for an open channel can save the searching time, and therefore when the automatic setting of the digital oscilloscope needs to be completed more quickly, the step can be selected to be set to only searching for the open channel.
S104: and (3) amplitude searching based on hardware centralized setting:
in the amplitude searching process, the invention adopts a hardware centralized setting mode, thereby reducing the times of adjusting hardware parameters as much as possible and shortening the automatic setting time of the digital oscilloscope. The hardware centralized setting comprises two aspects, namely, the hardware parameters of the current channel to be searched are adjusted and set in a centralized manner, and the hardware parameters of each channel are set in a centralized manner, so that the stable waiting time is reduced. Based on the centralized setting of hardware, the invention redesigns the amplitude searching process.
Fig. 2 is a flow chart of amplitude lookup based on hardware intensive settings in the present invention. As shown in fig. 2, the amplitude search based on the hardware set in the present invention includes the following steps:
s201: initializing a channel mark:
for the flag F to be searchedneedAnd setting an amplitude gear setting completion flag K of the channel to be searched with the value of 1 to be 0.
S202: scanning a minimum amplitude gear:
adopting hardware centralized setting mode to make all the marks F to be searchedneedThe amplitudes of the channels to be searched which are 1 are all set as the minimum vertical amplitude, and the specific method of hardware centralized setting is as follows: and simultaneously setting all relevant hardware parameters of the channel amplitude to be searched, and after all the parameters are set, uniformly responding the set hardware parameters by each hardware to enable the hardware parameters to take effect. This is because different hardware in the digital oscilloscope needs to wait for different stabilization time when setting parameters, in the prior art, each hardware parameter is set in turn and waits for the stabilization of the hardware parameter, and the sum of the stabilization time of all the hardware parameters needs to be waited for. For example, for a single channel, there are 10 parameters to be changed, and the time for each parameter change to wait for stabilization is T1、T2、T3、T4、T5、T6、T7、T8、T9、T10The method using the centralized setting only needs to wait for the maximum one of the waiting time MAX (T)1,T2,T3,T4,T5,T6,T7,T8,T9,T10) Instead of SUM (T)1,T2,T3,T4,T5,T6,T7,T8,T9,T10) If there are 4 channels, the prior art needs 4 × SUM (T) for each hardware parameter setting of amplitude gear1,T2,T3,T4,T5,T6,T7,T8,T9,T10) The waiting time of the present invention only needs to wait for MAX (T)1,T2,T3,T4,T5,T6,T7,T8,T9,T10) Independent of the number of channels, thereby greatly saving the automatic setting time of the digital oscilloscope。
Reading waveform data collected by each channel, and calculating the maximum value y of the waveformmaxAnd the minimum value yminNumber of signal occupation cells DSignalUsedAnd a DC bias voltage Vbias(ii) a If the maximum value ymaxOr minimum value yminExceeding the screen display area of the digital oscilloscope, and entering step S203; if the maximum value ymaxAnd the minimum value yminIf the signal does not exceed the screen display area of the digital oscilloscope, the number D of the occupied grids of the signal is judgedSignalUsedIf the amplitude is smaller than the half-grid, the channel is considered to have no input signal, the channel is set to be a default amplitude gear, the setting completion flag K of the amplitude gear is made to be 1, and the flag F to be searched is updatedneedIf not, further judging whether the signal occupies the lattice number The total lattice number of the screen display area of the digital oscilloscope is represented, if yes, the amplitude gear of the channel is set to be the minimum vertical amplitude, the amplitude gear setting completion flag K is made to be 1, and the flag F to be searched is updatedneed0, and recording the signal occupation grid number DSignalUsedAnd a DC bias voltage VbiasOtherwise, no operation is performed.
It can be seen that, according to the scanning, it can be determined whether signals exist in the channels, and the proper amplitude level (minimum vertical amplitude) of a part of the channels is determined.
S203: scanning other amplitude gears:
adopting hardware centralized setting mode to make all the marks F to be searchedneedSetting the amplitude gear of the channel as 1 as the amplitude gear which is not found, reading the waveform data collected by each channel, and calculating the maximum value y of the waveformmaxAnd the minimum value yminNumber of signal occupation cells DSignalUsed(ii) a If the maximum value ymaxAnd the minimum value yminIf the range exceeds the screen display area of the digital oscilloscope, resetting the range gear and continuing searching; if the maximum value ymaxAnd the minimum value yminIf the signal does not exceed the screen display area of the digital oscilloscope, judging whether the signal occupies the grid numberIf yes, the amplitude gear of the channel is set as the current amplitude gear, the setting completion flag K of the amplitude gear is made to be 1, and the flag F to be searched is updatedneed0, and recording the signal occupation grid number DSignalUsedAnd a DC bias voltage VbiasOtherwise, no operation is performed.
In order to improve the efficiency of scanning other amplitude gears and save the scanning time, the present embodiment provides an amplitude scanning method based on the bisection method. FIG. 3 is a flow chart of an amplitude scanning method based on bisection. As shown in fig. 3, the amplitude scanning method based on the bisection method in this embodiment includes the specific steps of:
s301: determining an intermediate amplitude gear:
the vertical amplitude gears are sequenced from small to large according to the amplitude, and Y is usedScale_MinRepresenting the minimum vertical amplitude, the corresponding amplitude gear serial number is 1, and is represented by YScale_MaxRepresenting the maximum vertical amplitude, wherein the serial number of the corresponding amplitude gear is Q, Q represents the number of amplitude gears, and calculating the median value Y of the vertical amplitudeScale_Middle=(YScale_Min+YScale_Max) And 2, selecting the amplitude gear closest to the median of the vertical amplitudes as a Middle amplitude gear, and recording the Middle amplitude gear as a serial number.
S302: and setting the initial value i of the serial number of the upper half amplitude gear as Middle.
S303: scanning the ith amplitude gear:
adopting hardware centralized setting mode to make all the marks F to be searchedneedSetting the amplitude gear of the channel to be searched as 1 as the ith amplitude gear, reading the waveform data collected by each channel,calculating the maximum value y of the waveformmaxAnd the minimum value yminNumber of signal occupation cells DSignalUsed(ii) a If the maximum value ymaxOr minimum value yminExceeding the screen display area of the digital oscilloscope, and entering the step S304; if the maximum value ymaxAnd the minimum value yminIf the signal does not exceed the screen display area of the digital oscilloscope, judging whether the signal occupies the grid numberIf yes, the amplitude gear of the channel is set as the current amplitude gear, the setting completion flag K of the amplitude gear is made to be 1, and the flag F to be searched is updatedneed0, and recording the signal occupation grid number DSignalUsedAnd a DC bias voltage VbiasOtherwise, judging the number D of occupied grids of the signalSignalUsedIf the number of the channels is less than half, setting a pause search flag P as 1 for the channel, and updating a to-be-searched flag F of the channelneedAnd 0, otherwise, no operation is performed.
Because the amplitude gears are gradually increased when the upper half amplitude gear is searched, when the acquired amplitude data is small, the amplitude gear suitable for the channel signal is between the lower half amplitude gears, and therefore the upper half search cycle is skipped in advance by setting the pause search mark P, so that the process is optimized, and the time is saved.
S304: judging whether the upper half part searching end condition is reached, namely whether the mark F to be searched is reachedneedThe number of channels to be searched is 0 or the serial number of amplitude gears i is Q, that is, the current amplitude gear is the maximum vertical amplitude YScale_MaxIf so, the process proceeds to step S306, otherwise, the process proceeds to step S305.
S305: the amplitude gear sequence number increases:
according to the setting of the amplitude gear of the digital oscilloscope, the serial number i of the amplitude gear is i + Δ, and Δ represents the change step length of the amplitude gear, generally, one to two amplitude gears are added at a time, that is, Δ is equal to 1 or 2, and the accuracy is reduced due to the fact that the increasing speed is too fast. And then returns to step S303.
S306: resetting the to-be-searched flag:
searching the channel with pause searching flag P being 1, resetting the flag F to be searchedneed=1。
S307: and setting the initial value j of the amplitude gear of the lower half part as Middle-1.
S308: scanning the jth amplitude step:
adopting hardware centralized setting mode to make all the marks F to be searchedneedSetting the amplitude gear of the channel to be searched as the jth amplitude gear of 1, reading waveform data collected by each channel, and calculating the maximum value y of the waveformmaxAnd the minimum value yminNumber of signal occupation cells DSignalUsed(ii) a If the maximum value ymaxOr minimum value yminExceeding the screen display area of the digital oscilloscope, and entering the step S309; if the maximum value ymaxAnd the minimum value yminIf the signal does not exceed the screen display area of the digital oscilloscope, judging whether the signal occupies the grid numberIf yes, the amplitude gear of the channel is set as the current amplitude gear, the setting completion flag K of the amplitude gear is made to be 1, and the flag F to be searched is updatedneed0, and recording the signal occupation grid number DSignalUsedAnd a DC bias voltage VbiasOtherwise, no operation is performed.
S309: judging whether the lower half part searching end condition is reached, namely whether a mark F to be searched is reachedneedThe number of channels to be searched is 1 or the serial number j of amplitude gear is 2, that is, the current amplitude gear is the minimum vertical amplitude YScale_MinAnd if so, ending the search, otherwise, entering the step S310.
S310: the amplitude gear sequence number is reduced:
according to the setting of the amplitude gear of the digital oscilloscope, the serial number j of the amplitude gear is made to be j-delta, and similarly, one to two amplitude gears are generally reduced at one time. And then returns to step S308.
S105: frequency searching:
the frequency searching method in the invention adopts a frequency searching method in a conventional automatic setting method, namely: according to the result of the amplitude search, the trigger source is set to an alternating current signal channel in the channel with the amplitude gear setting completion flag K being 1, the bias voltage of the channel is set, or the coupling mode is set to alternating current coupling, the frequency F of the alternating current signal is measured by a frequency meter, then the horizontal time base is determined, and the horizontal time base is generally determined according to a preset time base table and the frequency F.
S106: adjusting the optimal amplitude gear:
according to the amplitude gear and the signal occupation lattice number D of each channelSignalUsedAnd a DC bias voltage VbiasAnd the vertical display points d in the screen display area for each channel planningschemeAnd optimally adjusting the amplitude gear of each channel. Fig. 4 is a flow chart of the optimum amplitude gear adjustment in the present invention. As shown in fig. 4, the specific method for adjusting the optimal amplitude gear in the present invention is as follows:
s401: calculating the signal amplitude:
if the current digital oscilloscope does not perform bias adjustment during display, calculating the signal amplitude V of the current channel according to the following formula:
wherein,amplitude gear sequence number q representing current setting of channel*The amplitude value corresponding to each corresponding lattice;
if the current digital oscilloscope needs bias adjustment when displaying, calculating the signal amplitude V of the current channel according to the following formula:
s402: setting the amplitude gear sequence number q to 1;
s403: calculating the number of occupied signal points d under the current amplitude gearq
Wherein, YqRepresenting an amplitude value corresponding to each grid corresponding to an amplitude gear currently set by a channel, wherein sigma represents the number of points corresponding to each grid in the vertical direction of a screen display area, and the vertical direction of the screen display area is divided into 8 grids by a commonly used digital oscilloscope at present, wherein each grid corresponds to 25 pixel points;
s404: if d isq≤dschemeThe process proceeds to step S405, otherwise, the process proceeds to step S406.
S405: and taking the current amplitude gear as the amplitude gear adopted by the channel display, and finishing the optimal adjustment of the channel.
S406: and judging whether Q is less than Q, if so, entering step S407, otherwise, keeping the currently set amplitude gear of the channel unchanged, and finishing the optimal adjustment of the channel.
S407: let q be q +1, return to step S403. S107: and (4) restoring user-defined parameters:
and recovering the user-defined parameters recorded in the step S101. To illustrate the technical effect of the present invention, a specific implementation is used for reasoning verification. Setting the waiting time of a channel to be T after the amplitude parameter of a certain oscilloscope is changedCH_Wait200ms, get signal frequency degreeThe required time is TfrqAnd (3) ignoring other processing time as 100ms, wherein the minimum vertical amplitude is 5mV, the maximum vertical amplitude is 10V, the base level is 10ms at the minimum level, the amplitude level adopts a 125 stepping mode, the middle two-step amplitude level is 200mV, and 8-bit ADC samples are obtained. Table 1 shows the automatic setting of time for the digital oscilloscope in each case using the present invention.
TABLE 1
Wherein "OFF" in table 1 indicates that the channel is closed, and in this embodiment, it is not necessary to search for a closed channel; "none" means there is no such channel, which is the same nature as "OFF" for a lookup; "0V" indicates that the channel is open, but there is no input signal.
It can be seen from the data in table 1 that, with the method of the present invention, the time required for automatic setting is not multiplied by the number of channels, and the time required is in a certain relationship with the degree of difference in signal amplitude of each channel to be searched. Therefore, the invention can reduce the time for waiting hardware to be stable and greatly reduce the times for adjusting hardware parameters by adopting hardware centralized setting, thereby shortening the automatic setting time of the digital oscilloscope and improving the user experience.
Although illustrative embodiments of the present invention have been described above to facilitate the understanding of the present invention by those skilled in the art, it should be understood that the present invention is not limited to the scope of the embodiments, and various changes may be made apparent to those skilled in the art as long as they are within the spirit and scope of the present invention as defined and defined by the appended claims, and all matters of the invention which utilize the inventive concepts are protected.

Claims (3)

1. A digital oscilloscope rapid automatic setting method based on hardware centralized setting is characterized by comprising the following steps:
s1: recording user-defined parameters except the automatic setting parameters according to the current setting condition of the digital oscilloscope by a user;
s2: initializing the digital oscilloscope, which mainly comprises the following steps: setting the baseline return-to-zero, the bias voltage return-to-zero and the coupling as direct current coupling, setting the trigger parameter as edge trigger, setting the trigger level as 0, setting the trigger coupling as alternating current, setting the sampling mode as peak value sampling, and setting the sampling time base as the baseline level when the minimum level is reached;
s3: setting all channels or opening channels to be searched according to actual needs, and setting a mark F to be searched of the channel to be searchedneedIf not, let Fneed=0;
S4: to-be-searched mark FneedThe method for searching the amplitude of the channel 1 comprises the following steps:
s4.1: for the flag F to be searchedneedSetting an amplitude gear setting completion flag K of the channel to be searched which is 1 to be 0;
s4.2: adopting hardware centralized setting mode to make all the marks F to be searchedneedThe amplitudes of the channels to be searched which are 1 are all set as the minimum vertical amplitude YScale_MinThe specific method for centralized setting of hardware comprises the following steps: setting all relevant hardware parameters of the channel amplitude to be searched, and after all the parameters are set, uniformly responding the set hardware parameters by each hardware to enable the hardware parameters to take effect;
reading waveform data collected by each channel, and calculating the maximum value y of the waveformmaxAnd the minimum value yminNumber of signal occupation cells DSignalUsedAnd a DC bias voltage Vbias(ii) a If the maximum value ymaxOr minimum value yminExceeding the screen display area of the digital oscilloscope and entering the step S4.3; if the maximum value ymaxAnd the minimum value yminIf the signal does not exceed the screen display area of the digital oscilloscope, the number D of the occupied grids of the signal is judgedSignalUsedIf the amplitude is smaller than the half-grid, the channel is considered to have no input signal, the channel is set to be a default amplitude gear, the setting completion flag K of the amplitude gear is made to be 1, and the flag F to be searched is updatedneedIf not, further judging whether the signal occupies the lattice number Representing the total grid number of the screen display area of the digital oscilloscope, if yes, the amplitude gear of the channelThe bit is set to the minimum vertical amplitude YScale_MinSetting the amplitude gear setting completion flag K to 1, and updating the flag F to be searchedneed0, and recording the signal occupation grid number DSignalUsedAnd a DC bias voltage VbiasOtherwise, no operation is performed;
s4.3: scanning other amplitude gears, wherein the specific method comprises the following steps: adopting hardware centralized setting mode to make all the marks F to be searchedneedSetting the amplitude gear of the channel as 1 as the amplitude gear which is not found, reading the waveform data collected by each channel, and calculating the maximum value y of the waveformmaxAnd the minimum value yminNumber of signal occupation cells DSignalUsed(ii) a If the maximum value ymaxAnd the minimum value yminIf the range exceeds the screen display area of the digital oscilloscope, resetting the range gear and continuing searching; if the maximum value ymaxAnd the minimum value yminIf the signal does not exceed the screen display area of the digital oscilloscope, judging whether the signal occupies the grid numberIf yes, the amplitude gear of the channel is set as the current amplitude gear, the setting completion flag K of the amplitude gear is made to be 1, and the flag F to be searched is updatedneed0, and recording the signal occupation grid number DSignalUsedAnd a DC bias voltage VbiasOtherwise, no operation is performed;
s5: setting a trigger source on one of the alternating current signal channels according to the result of amplitude search, setting the bias voltage of the channel, or setting the coupling mode as alternating current coupling, measuring the frequency F of the alternating current signal through a frequency meter, and then determining to obtain a level time base;
s6: according to the amplitude gear and the signal occupation lattice number D of each channelSignalUsedAnd a DC bias voltage VbiasAnd the vertical display points d in the screen display area for each channel planningschemeCarrying out optimal adjustment on the amplitude gear of each channel to obtain the optimal amplitude gear when each channel is displayed simultaneously;
s7: the user-defined parameters recorded in step S1 are restored.
2. The automatic setting method of the digital oscilloscope according to claim 1, wherein in step S4.3, other amplitude gears are scanned by an amplitude scanning method based on dichotomy, and the specific steps are as follows:
s4.3.1: the vertical amplitude gears are sequenced from small to large according to the amplitude, and Y is usedScale_MinRepresenting the minimum vertical amplitude, the corresponding amplitude gear serial number is 1, and is represented by YScale_MaxRepresenting the maximum vertical amplitude, wherein the serial number of the corresponding amplitude gear is Q, Q represents the number of amplitude gears, and calculating the median value Y of the vertical amplitudeScale_Middle=(YScale_Min+YScale_Max) Selecting an amplitude gear closest to the vertical amplitude median as a Middle amplitude gear, and recording the serial number of the Middle amplitude gear as Middle;
s4.3.2: setting the initial value i of the serial number of the upper half amplitude gear as Middle;
s4.3.3: adopting hardware centralized setting mode to make all the marks F to be searchedneedSetting the amplitude gear of the channel to be searched as the ith amplitude gear of 1, reading waveform data collected by each channel, and calculating the maximum value y of the waveformmaxAnd the minimum value yminNumber of signal occupation cells DSignalUsed(ii) a If the maximum value ymaxOr minimum value yminBeyond the screen display area of the digital oscilloscope, go to step S4.3.4; if the maximum value ymaxAnd the minimum value yminIf the signal does not exceed the screen display area of the digital oscilloscope, judging whether the signal occupies the grid numberIf yes, the amplitude gear of the channel is set as the current amplitude gear, the setting completion flag K of the amplitude gear is made to be 1, and the flag F to be searched is updatedneedIf not, judging the number D of the occupied signal gridsSignalUsedWhether it is smaller than half-grid or not, and recording the number D of occupied signal gridsSignalUsedAnd a DC bias voltage VbiasIf, ifIf yes, setting a pause search flag P as 1 for the channel, and updating the flag F to be searchedneedOtherwise, no operation is performed;
s4.3.4: judging whether a mark F is to be searchedneedIf yes, go to step S4.3.6, otherwise go to step S4.3.5;
s4.3.5: setting an amplitude gear sequence number i to be i + delta according to the amplitude gear setting of the digital oscilloscope, wherein delta represents the amplitude gear change step length, and returning to the step 4.3.3;
s4.3.6: searching the channel with pause searching flag P being 1, resetting the flag F to be searchedneed=1;
S4.3.7: setting the initial value j of the amplitude gear sequence number of the lower half part as Middle-1;
s4.3.8: adopting hardware centralized setting mode to make all the marks F to be searchedneedSetting the amplitude gear of the channel to be searched as 1 as an amplitude gear Y, reading waveform data collected by each channel, and calculating the maximum value Y of the waveformmaxAnd the minimum value yminNumber of signal occupation cells DSignalUsed(ii) a If the maximum value ymaxOr minimum value yminBeyond the screen display area of the digital oscilloscope, go to step S4.3.9; if the maximum value ymaxAnd the minimum value yminIf the signal does not exceed the screen display area of the digital oscilloscope, judging whether the signal occupies the grid numberIf yes, the amplitude gear of the channel is set as the current amplitude gear, the setting completion flag K of the amplitude gear is made to be 1, and the flag F to be searched is updatedneed0, and recording the signal occupation grid number DSignalUsedAnd a DC bias voltage VbiasOtherwise, no operation is performed;
s4.3.9: judging whether a mark F is to be searchedneedIf the number of channels to be searched is 1 or the amplitude gear serial number j is 2, the search is finished, otherwise, the step S4.3.10 is entered;
s4.3.10: and according to the amplitude gear setting of the digital oscilloscope, making the amplitude gear serial number j equal to j-delta, and returning to the step S4.3.8.
3. The automatic setting method of the digital oscilloscope according to claim 1, wherein in step S6, the specific method for adjusting the optimal amplitude gear when each channel is displayed simultaneously is:
s6.1: if the current digital oscilloscope does not perform bias adjustment during display, calculating the signal amplitude V of the current channel according to the following formula:
V = D S i g n a l U s e d × Y q * ;
wherein,amplitude gear sequence number q representing current setting of channel*The amplitude value corresponding to each corresponding lattice;
if the current digital oscilloscope needs bias adjustment when displaying, calculating the signal amplitude V of the current channel according to the following formula:
V = D S i g n a l U s e d × Y q * - V b i a s ;
s6.2: setting the amplitude gear sequence number q to 1;
s6.3: calculating the number of occupied signal points d under the current amplitude gearq
d q = V + Y q / σ - 1 Y q / σ ;
Wherein, YiRepresenting the amplitude value corresponding to each grid under the amplitude gear currently set by the channel, wherein sigma represents the point number corresponding to each grid in the vertical direction of the screen display area;
s6.4: if d isq≤dschemeStep S6.5 is entered, otherwise step S6.6 is entered;
s6.5: taking the current amplitude gear as the amplitude gear adopted by the channel display, and finishing the optimal adjustment of the channel;
s6.6: judging whether Q is less than Q, if so, entering step S6.7, otherwise, keeping the currently set amplitude gear of the channel unchanged, and finishing the optimal adjustment of the channel;
s6.7: let q be q +1, return to step S6.3.
CN201611023731.3A 2016-11-14 2016-11-14 A kind of fast automatic setting method of digital oscilloscope based on hardware concentrated setting Active CN106597048B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611023731.3A CN106597048B (en) 2016-11-14 2016-11-14 A kind of fast automatic setting method of digital oscilloscope based on hardware concentrated setting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611023731.3A CN106597048B (en) 2016-11-14 2016-11-14 A kind of fast automatic setting method of digital oscilloscope based on hardware concentrated setting

Publications (2)

Publication Number Publication Date
CN106597048A true CN106597048A (en) 2017-04-26
CN106597048B CN106597048B (en) 2019-04-05

Family

ID=58591719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611023731.3A Active CN106597048B (en) 2016-11-14 2016-11-14 A kind of fast automatic setting method of digital oscilloscope based on hardware concentrated setting

Country Status (1)

Country Link
CN (1) CN106597048B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107727906A (en) * 2017-09-25 2018-02-23 优利德科技(中国)有限公司 The method and its equipment that a kind of oscillograph is set automatically
CN108037339A (en) * 2018-01-18 2018-05-15 电子科技大学 The control method that a kind of digital oscilloscope is set automatically
CN108132373A (en) * 2017-12-20 2018-06-08 福建利利普光电科技有限公司 Oscillograph knob-operated moves the processing method of effect
CN108802459A (en) * 2018-06-04 2018-11-13 北京交通大学 A kind of oscillograph Auto-Test System and method
CN109085403A (en) * 2017-06-14 2018-12-25 北京普源精电科技有限公司 A kind of method of adjustment and digital oscilloscope of undulating path
CN111521853A (en) * 2020-06-19 2020-08-11 深圳市鼎阳科技股份有限公司 Oscilloscope signal display processing method and oscilloscope
CN113219363A (en) * 2021-03-25 2021-08-06 合肥联宝信息技术有限公司 Power supply noise test method and device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1273365A (en) * 1999-04-20 2000-11-15 特克特朗尼克公司 Continuous response and forcasting automatic installation function of digital oscilloscope
CN101609106A (en) * 2009-05-27 2009-12-23 东南大学 The automatic method to set up of digital oscilloscope
CN103901244A (en) * 2014-03-26 2014-07-02 深圳麦科信仪器有限公司 Method and device for arrangement and operation of signal channels of touch oscilloscope
CN105510664A (en) * 2015-10-08 2016-04-20 电子科技大学 Automatic setting method of digital oscilloscope

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1273365A (en) * 1999-04-20 2000-11-15 特克特朗尼克公司 Continuous response and forcasting automatic installation function of digital oscilloscope
CN101609106A (en) * 2009-05-27 2009-12-23 东南大学 The automatic method to set up of digital oscilloscope
CN103901244A (en) * 2014-03-26 2014-07-02 深圳麦科信仪器有限公司 Method and device for arrangement and operation of signal channels of touch oscilloscope
CN105510664A (en) * 2015-10-08 2016-04-20 电子科技大学 Automatic setting method of digital oscilloscope

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109085403A (en) * 2017-06-14 2018-12-25 北京普源精电科技有限公司 A kind of method of adjustment and digital oscilloscope of undulating path
CN109085403B (en) * 2017-06-14 2021-07-30 北京普源精电科技有限公司 Waveform channel adjusting method and digital oscilloscope
CN107727906A (en) * 2017-09-25 2018-02-23 优利德科技(中国)有限公司 The method and its equipment that a kind of oscillograph is set automatically
CN107727906B (en) * 2017-09-25 2020-07-07 优利德科技(中国)股份有限公司 Method and equipment for automatically setting oscilloscope
CN108132373A (en) * 2017-12-20 2018-06-08 福建利利普光电科技有限公司 Oscillograph knob-operated moves the processing method of effect
CN108132373B (en) * 2017-12-20 2020-04-28 福建利利普光电科技有限公司 Processing method for oscilloscope knob operation moving effect
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
CN111521853A (en) * 2020-06-19 2020-08-11 深圳市鼎阳科技股份有限公司 Oscilloscope signal display processing method and oscilloscope
CN113219363A (en) * 2021-03-25 2021-08-06 合肥联宝信息技术有限公司 Power supply noise test method and device and storage medium
CN113219363B (en) * 2021-03-25 2022-06-10 合肥联宝信息技术有限公司 Power supply noise test method and device and storage medium

Also Published As

Publication number Publication date
CN106597048B (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN106597048B (en) A kind of fast automatic setting method of digital oscilloscope based on hardware concentrated setting
CN103855045B (en) The method for repairing and regulating of chip parameter on wafer
CN102914756A (en) Automatic calibrating and compensating method of diode-type microwave power probe
CN105548917B (en) Calibration method of magnetic sensor array in non-shielding environment
CN101726451A (en) Method for measuring viscosity index of internal combustion engine oil
CN103697928A (en) Instrument calibration method and device
CN105021637A (en) Method for determining crystal reciprocity primitive cell basis vector based on EBSD pattern
CN105976411A (en) Prepositioned measuring module for electrical impedance tomography imaging data acquisition system and alignment and calibration method
CN210773959U (en) Flexible detection tool for metal part hand repair amount
CN106706820B (en) A kind of bearing calibration of general extensive metabolism group data
CN106646314A (en) Zero offset calibration method for digital oscilloscope based on stepping optimization
CN114707540B (en) Method for determining spectrogram base line
CN105759098B (en) Optimize the oscillograph and its method of tiny signal measurement
EP2333565B1 (en) Three-dimensional base setting method for image data
EP1804186A1 (en) Parameter extraction method, method for inspecting circuit operation, and storage medium having program to perform the parameter extraction method
Cramer et al. Improved peak selection strategy for automatically determining minute compositional changes in fuels by gas chromatography–mass spectrometry
CN110208588B (en) Digital oscilloscope, method for measuring baud chart and readable storage medium
CN107328719B (en) Spectrometer line shape function acquisition methods and device
CN110554350B (en) Calibration method of measuring device
CN115656904B (en) Magnetic resonance gradient delay automatic correction method, device, equipment and storage medium
EP2097834B1 (en) Correlation between sets of data
CN103543194A (en) Optimized spectral line data analysis method for determining metal ion concentration
CN113945592B (en) Single crystal XRD (X-ray diffraction) finishing method and platform thereof
CN114581507B (en) Seed size calibration method, system and device based on image seed test and storage medium
CN116299124A (en) Quick temperature compensation method for amplitude calibration of oscilloscope

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