CN112014611A - Digital oscilloscope and data detection method thereof - Google Patents

Digital oscilloscope and data detection method thereof Download PDF

Info

Publication number
CN112014611A
CN112014611A CN202011106512.8A CN202011106512A CN112014611A CN 112014611 A CN112014611 A CN 112014611A CN 202011106512 A CN202011106512 A CN 202011106512A CN 112014611 A CN112014611 A CN 112014611A
Authority
CN
China
Prior art keywords
data frame
data
memory
currently stored
peak value
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
CN202011106512.8A
Other languages
Chinese (zh)
Other versions
CN112014611B (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.)
Shenzhen Siglent Technologies Co Ltd
Original Assignee
Shenzhen Siglent Technologies 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 Shenzhen Siglent Technologies Co Ltd filed Critical Shenzhen Siglent Technologies Co Ltd
Priority to CN202011106512.8A priority Critical patent/CN112014611B/en
Publication of CN112014611A publication Critical patent/CN112014611A/en
Application granted granted Critical
Publication of CN112014611B publication Critical patent/CN112014611B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R13/00Arrangements for displaying electric variables or waveforms
    • G01R13/02Arrangements for displaying electric variables or waveforms for displaying measured electric variables in digital form
    • G01R13/0209Arrangements for displaying electric variables or waveforms for displaying measured electric variables in digital form in numerical form

Abstract

The invention discloses a digital oscilloscope and a data detection method thereof, wherein the digital oscilloscope comprises a data acquisition module, a memory, a detection module and a waveform drawing module, and the detection module indicates that the currently stored data frame belongs to normal waveform data when detecting that the peak value of the currently stored data frame in the memory does not exceed a detection template, so that a user does not need to look up the data frame in a playback mode at the later stage, and the currently stored data frame is deleted from the memory to save the storage space in the memory; when the condition that the peak value of the data frame currently stored in the memory exceeds the detection template is detected, the data frame currently stored is shown to be abnormal waveform data, a user can replay and check the data frame later, the data frame is reserved in the memory, and the detection template is updated so as to screen out the really abnormal waveform data, so that the digital oscilloscope can always store the possible abnormal waveform data frame in the memory under the condition of collecting data for a long time, and the user can conveniently replay the abnormal waveform data frame.

Description

Digital oscilloscope and data detection method thereof
Technical Field
The invention relates to the technical field of oscilloscopes, in particular to a digital oscilloscope and a data detection method thereof.
Background
On the basis of the most basic functions of waveform acquisition and waveform display of the digital oscilloscope, most digital oscilloscopes also have a waveform recording function, and the digital oscilloscopes can allow a user to play back waveform data of all historical frames acquired by the oscilloscopes under the current configuration.
The waveform recording function is realized by utilizing a data memory of the digital oscilloscope, under the condition that the current configuration of the digital oscilloscope is determined, mainly time base gear and sampling rate, the data volume required by displaying a frame of waveform image on a display interface can be calculated, and then the memory is divided into uniform memory address sections, wherein each section of memory address is used for storing the data required by the frame of waveform image, namely a data frame. However, the storage space of the memory in the digital oscilloscope is limited, in other words, the number of frames of data which can be stored in the memory is limited, and after long-time data acquisition, a large number of acquired data frames can exceed the maximum storage frame number allowed by the memory.
Referring to fig. 1, fig. 1 is a schematic diagram of a memory in a conventional digital oscilloscope, which generally adopts a loopback storage manner, where fig. 1(a) shows that data frames in the memory are sequentially stored from a low address section to a high address section according to the sequence of storage address sections of the data frames until the currently stored data frames are just stored to the highest address section in the memory, and fig. 1(b) shows that when the currently stored data frames just exceed the maximum storage frame number allowed by the memory, the data frames stored first in the memory will be covered by newly acquired data frames according to a first-in first-out principle, that is, the currently stored data frames are stored in the lowest address section of the memory, and the data stored in the lowest address section is covered.
Therefore, the memory of the digital oscilloscope can only record a part of recently acquired waveform data, if a user needs to capture some occasional non-periodic abnormal signals, the memory space is limited to be too small, and under the condition of acquiring data for a long time, even if the oscilloscope captures the abnormal signals once, the data corresponding to the captured abnormal signals is always extruded out of the memory by a large amount of subsequent newly acquired data, so that the user cannot play back the abnormal signals.
Disclosure of Invention
The invention aims to provide a digital oscilloscope and a data detection method thereof, which solve the problem that a user cannot play back abnormal signals due to limited memory space of the digital oscilloscope under the condition of long-time data acquisition.
According to a first aspect, there is provided in an embodiment a digital oscilloscope, comprising:
the data acquisition module is used for acquiring the signal data of each channel and writing the acquired data into the memory frame by frame;
the memorizer, is used for storing the data that its write-in end writes into, and output its data frame stored at present;
the detection module is used for detecting the peak value of the data frame currently stored in the memory, and deleting the data frame from the memory when the detection module detects that the peak value of the data frame does not exceed the detection template; when the condition that the peak value of the data frame exceeds the detection template is detected, updating the detection template according to the peak value corresponding to the exceeding part of the data frame;
and the waveform drawing module is used for acquiring the currently stored data frame from the memory and processing the data frame into waveform image data for displaying in a display interface.
According to a second aspect, an embodiment provides a data detection method in a digital oscilloscope, comprising:
acquiring signal data of each channel, and writing the acquired data into a memory frame by frame; the memory is used for storing data written by a writing end of the memory and outputting a currently stored data frame of the memory;
detecting the peak value of the data frame currently stored in the memory, and deleting the data frame from the memory when the peak value of the data frame is detected not to exceed the detection template; when the condition that the peak value of the data frame exceeds the detection template is detected, updating the detection template according to the peak value corresponding to the exceeding part of the data frame;
and acquiring the currently stored data frame from the memory, and processing the data frame into waveform image data for displaying in a display interface.
According to the digital oscilloscope and the data detection method thereof of the above embodiment, since the detection module, when detecting that the peak value of the currently stored data frame in the memory does not exceed the detection template, indicates that the currently stored data frame belongs to normal waveform data, and the user does not need to look back later, the data frame is deleted from the memory to save the storage space in the memory, on the contrary, when detecting that the peak value of the currently stored data frame in the memory exceeds the detection template, it indicates that the currently stored data frame may be abnormal waveform data, and the user may look back and look back later, so the data frame is retained in the memory, and the detection template is updated according to the peak value of the data frame, so as to screen out truly abnormal waveform data more accurately, so that the digital oscilloscope, in case of collecting data for a long time, possible abnormal waveform data frames can be stored in the memory all the time, and the user can play back the abnormal waveform data frames conveniently.
Drawings
FIG. 1(a) is a schematic diagram of data frame storage in an embodiment of a conventional digital oscilloscope memory;
FIG. 1(b) is a schematic diagram of data frame storage in another embodiment of a conventional digital oscilloscope memory;
FIG. 2 is a schematic diagram of a digital oscilloscope according to an embodiment;
FIG. 3(a) is a schematic diagram of a peak value of a currently stored data frame;
FIG. 3(b) is a schematic diagram of a detection template;
FIG. 3(c) is a schematic diagram of a comparison between the peak value of the currently stored data frame and the detection template;
FIG. 3(d) is a schematic diagram of an updated detection template;
FIG. 4 is a schematic diagram of a digital oscilloscope according to another embodiment;
FIG. 5 is a flow chart of a data detection method of a digital oscilloscope according to an embodiment;
FIG. 6 is a flow chart of a data detection method of a digital oscilloscope according to another embodiment.
Detailed Description
The present invention will be described in further detail with reference to the following detailed description and accompanying drawings. Wherein like elements in different embodiments are numbered with like associated elements. In the following description, numerous details are set forth in order to provide a better understanding of the present application. However, those skilled in the art will readily recognize that some of the features may be omitted or replaced with other elements, materials, methods in different instances. In some instances, certain operations related to the present application have not been shown or described in detail in order to avoid obscuring the core of the present application from excessive description, and it is not necessary for those skilled in the art to describe these operations in detail, so that they may be fully understood from the description in the specification and the general knowledge in the art.
Furthermore, the features, operations, or characteristics described in the specification may be combined in any suitable manner to form various embodiments. Also, the various steps or actions in the method descriptions may be transposed or transposed in order, as will be apparent to one of ordinary skill in the art. Thus, the various sequences in the specification and drawings are for the purpose of describing certain embodiments only and are not intended to imply a required sequence unless otherwise indicated where such sequence must be followed.
The numbering of the components as such, e.g., "first", "second", etc., is used herein only to distinguish the objects as described, and does not have any sequential or technical meaning. The term "connected" and "coupled" when used in this application, unless otherwise indicated, includes both direct and indirect connections (couplings).
Referring to fig. 2, fig. 2 is a schematic structural diagram of a digital oscilloscope according to an embodiment, which includes a data acquisition module 101, a memory 102, a detection module 103, and a waveform drawing module 104.
The data acquisition module 101 is configured to acquire signal data of each channel and write the acquired signal data into a memory frame by frame.
In this embodiment, the data acquisition module 101 determines the length of a data frame according to the current configuration of the digital oscilloscope, for example, the current time base parameter, so as to obtain the data amount required by a data frame, and when the data amount acquired by the data acquisition module 101 reaches the data amount required by a data frame, the data frame is written into the memory.
The memory 102 is used for storing the data written by the writing end and outputting the currently stored data frame. The currently stored data frame is the data frame that was last written into the memory by the data acquisition module 101.
In this embodiment, the memory 102 is divided into a plurality of memory address segments, each memory address segment is used for storing a data frame, and the currently stored data frame is stored into the memory address segment corresponding to the segment number according to the segment number of the memory address segment corresponding to the currently stored data frame in the memory. The data frame currently stored in this embodiment refers to the data frame that was most recently written to the memory.
In this embodiment, segment numbers corresponding to the storage address segments in the memory are counted by the counter, and when no data frame is stored in all the storage address segments in the memory, the current count value of the counter is 0; when the data acquisition module 101 writes the acquired first data frame into the memory 102, the first data frame is written into the storage address segment with the segment number of 0, that is, the lowest address segment, according to the current count value of the counter 0, the current count value of the counter is increased by 1, that is, the current count value of the counter is 1, when the data acquisition module 102 writes the acquired second data frame into the memory 102, the first data frame is written into the storage address segment with the segment number of 1 according to the current count value of the counter 1, and so on, the data acquisition module 101 writes the data into the corresponding storage address segments frame by frame according to the sequence of the acquired data frames from small to large in the sequence of the segment numbers.
The detection module 103 is configured to detect a peak value of a data frame currently stored in the memory, and delete the data frame from the memory when the peak value of the data frame is detected not to exceed the detection template; when the situation that the peak value of the data frame exceeds the detection template is detected, namely at least part of the peak value of the data frame exceeds the detection template, the detection template is updated according to the corresponding peak value of the exceeding part of the data frame.
For a digital oscilloscope, waveforms played back by a user by using a function of recording waveforms of the oscilloscope are all abnormal waveforms generally, namely, waveforms with more prominent peaks exist, so that when the peak value of a currently stored data frame is detected not to exceed a detection template, the currently stored data frame is indicated not to belong to abnormal data, and the peak value is within the range of the detection template, so that the data frame is deleted from a corresponding storage address section in a memory, and the storage space in the memory can be saved; when the situation that the peak value of the data frame exceeds the detection template is detected, the currently stored data frame is indicated to possibly belong to abnormal data, so that the data frame in the memory is reserved, and the detection template is updated according to the peak value corresponding to the exceeding part in the data frame. In this embodiment, all the peaks of the data frame may exceed the detection template, or the peaks at partial positions in the data frame may exceed the detection template, where the partial positions in the data frame may be 1 or more than two.
In one embodiment, deleting the data frame from the memory when it is detected that the peak value of the data frame does not exceed the detection template comprises:
when the peak value of the data frame is detected not to exceed the detection template, and when the memory stores the next data frame written by the writing end of the memory, the currently stored data frame is replaced by the next data frame in the storage address section corresponding to the currently stored data frame, namely, the next data frame is overlaid on the currently stored data frame in the corresponding storage address section.
In one embodiment, updating the detection template according to the peak value corresponding to the excess portion of the data frame includes:
replacing the peak value corresponding to the exceeding part of the currently stored data frame with the detection template at the corresponding position of the exceeding part; the initial value of the detection template is the peak value of the first data frame acquired by the data acquisition module. In other words, a part of the detection template where the peak value of the currently stored data frame exceeds the detection template is found, and the part corresponding to the detection template is updated to the peak value corresponding to the part of the currently stored data frame.
In this embodiment, the initial value of the detection template is the peak value of the first data frame acquired by the data acquisition module 101, and the first data frame is stored in the lowest address field of the memory without being judged by the detection module 103 and is not deleted. After the data acquisition module 101 acquires the second data frame, the second data frame is written into the next storage address field of the lowest address field of the memory 102, the detection module 103 reads the second data frame from the memory 102 and detects the peak value of the second data frame, when the peak value of the second data frame is detected to exceed the detection template (the peak value of the first data frame), the second data frame in the memory is reserved at the moment, and the peak value exceeding part of the second data frame in the detection template is replaced by the peak value of the corresponding part of the second data frame to update the detection template; when it is detected that the peak value of the second data frame does not exceed the detection template (the peak value of the first data frame), the detection template is not updated, the detection template is also the peak value of the first data frame, and then when the data acquisition module 101 writes the third data frame acquired by the data acquisition module into the memory, the third data frame is written into the memory address field stored in the second data frame to cover the second data frame, in other words, the second data frame is deleted from the memory address field stored in the data acquisition module, and then the third data frame is written into the memory address field stored before the second data frame, that is, the third data frame is written into the next memory address field of the lowest address field of the memory 102. And in analogy, the detection template is continuously updated along with the acquired data frames, so that the data frames stored in the memory are the data frames corresponding to the abnormal waveforms, and when a user needs to use the waveform recording function of the digital oscilloscope for playback, the data frames stored in the corresponding address sections in the memory are called for waveform drawing and displaying.
In one embodiment, the detecting module 103 detects the peak of the data frame including:
detecting the maximum value and the minimum value of each line of data in a waveform for display corresponding to a currently stored data frame; the preset threshold is the maximum value and the minimum value of each line of data in the set waveform for display. Thus, the peak value of the data frame is the maximum value and the minimum value of the pixel point of each row of waveforms mapped in the display interface, namely the envelope curve of the corresponding waveform of the data frame. In this embodiment, the detection template is also the maximum value and the minimum value of each row of waveform pixel points in the display interface, and thus the detection template is also the envelope of the waveform.
Referring to fig. 3, fig. 3(a) is a schematic diagram of a peak value of a currently stored data frame, and fig. 3(b) is a schematic diagram of a detection template. When detecting whether the peak value of the currently stored data frame exceeds the detection template, it is necessary to traverse the relationship between the maximum value and the minimum value of each row of waveform pixel points and the maximum value and the minimum value of each row of pixel points in the detection template, please refer to fig. 3(c), where fig. 3(c) is a schematic diagram of the detection process of the currently stored data frame, and the schematic diagram includes:
if the absolute value of the minimum value of the current column in the currently stored data frame is smaller than the absolute value of the minimum value of the current column in the detection template, and the maximum value of the current column in the data frame is smaller than the maximum value of the current column in the detection template, it indicates that the peak value of the data frame of the current column does not exceed the detection template of the current column.
If the absolute value of the minimum value of the current column in the currently stored data frame is smaller than the absolute value of the minimum value of the current column in the detection template, or the maximum value of the current column in the data frame is smaller than the maximum value of the current column in the detection template, it indicates that the peak value of the data frame of the current column exceeds the detection template of the current column, and the corresponding current column in the detection template needs to be updated to the minimum value or the maximum value of the current column in the data frame (only the exceeded part is updated), please refer to fig. 3(d), and fig. 3(d) is a schematic diagram of the updated detection template.
The above-described judgment and processing are performed for each column in the data frame as the current column.
The waveform drawing module 105 is configured to obtain a currently stored data frame from the memory, and process the data frame into waveform image data for displaying on the display interface.
In this embodiment, a template memory is further included for storing the detection template.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a digital oscilloscope according to another embodiment, which includes an analog-to-digital conversion module (ADC) 201, a preprocessing module 202, a data acquisition module 203, a trigger module 204, a memory 205, a data processing module 206, a detection module 207, a template memory 208, a parameter configuration module 209, a waveform mapping module 210, an intensity value to RGB module 211, an image merging module 212, a Central Processing Unit (CPU) 213, and a display screen 214.
The ADC201 is configured to convert analog channel data into digital channel data.
The pre-processing module 202 is used for pre-processing the digital channel data.
The parameter configuration module 209 is used to configure the current configuration of the digital oscilloscope.
The triggering module 204 is configured to generate a triggering event meeting the triggering condition according to the current configuration output by the parameter configuration module 209, and output the triggering event to the data acquisition module 203.
The data acquisition module 203 is configured to pack data of a period of time before and after a trigger event as a data frame, and write the data frame into the memory 205. The time length of the previous period and the next period in this embodiment is determined by the current time base setting of the digital oscilloscope, and assuming that the current time base is 10 us/grid and the waveform area on the screen has 10 grids in the horizontal direction, the time length corresponding to the waveform of the waveform area on the screen is 10 us/grid × 10 grid =100us, that is, the continuous signal data of 10us in total, which is 5us before and 5us after the trigger event, is 1 frame of data, and needs to be written into the memory.
The memory 205 is used for storing the data written by its write end and outputting its currently stored data frame.
The data processing module 206 is configured to obtain a currently stored data frame output by the memory, and perform data processing on the data frame.
The detection module 207 is used for detecting the peak value of the data frame after data processing, and deleting the data frame from the memory when the peak value of the data frame is detected not to exceed the detection template; when the peak value of the data frame is detected to exceed the detection template, the data frame in the memory is reserved, and the detection template is updated according to the peak value of the data frame.
The template memory 208 is used to store the detection template.
The waveform mapping module 210 is configured to map the processed data frame into waveform data. Because the size of the pixel area for displaying the waveform on the screen of the digital oscilloscope is fixed, the waveform mapping needs to determine how many waveform data points need to be drawn in each column in the horizontal direction according to the proportional relation between the data amount of the data frame and the size of the waveform area used by the screen. In this embodiment, a time base is set to be 10 us/grid as an example, after the time base is determined, the time length corresponding to the waveform displayed on the oscilloscope screen is determined, but the total data collection amount of the waveform is determined according to the storage length of the oscilloscope, under the time base of 10 us/grid, the time length of the screen waveform is 100us, when the storage length is configured to be 1kSa, the data amount of a frame collection frame is 1k sampling points, the 100us waveform is composed of 1000 sampling points, and the time length corresponding to each sampling point is: 100us ÷ 1000=100 ns; the corresponding sampling rate is 10 MSa/s. Assuming that the size of the pixel area for displaying the waveform on the oscilloscope screen is 1000 × 480, that is, 1000 columns of pixels in the horizontal direction are used for displaying the waveform, the 1kSa storage length is 1000 sampling points drawn on 1000 columns of pixels, that is, 1 sampling point is drawn on each column. Assuming that the time base is also 10 us/cell, the storage length is changed to 100 kSa. Then the length of time for each sample point corresponds to: 100 us/100,000 =1ns, corresponding to a sampling rate of 1 GSa/s. When the waveform is drawn, 100k sampling points are drawn on 1000 columns, and 100 sampling points are drawn on each column of pixels.
The intensity value to RGB module 211 is configured to convert the mapped waveform data into corresponding RGB values according to intensity values.
The image merging module 212 is configured to merge the grid data generated by the CPU213 through software with the waveform data to obtain waveform image data.
The display screen 214 is used to display waveform image data.
Referring to fig. 5, fig. 5 is a flowchart of a data detection method of a digital oscilloscope according to an embodiment, where the method includes steps S101 to S103, which are described in detail below.
Step S101, collecting signal data of each channel, and writing the collected data into a memory frame by frame; the memory is used for storing the data written by the writing end and outputting the currently stored data frame.
Step S102, detecting the peak value of the data frame currently stored in the memory, and deleting the data frame from the memory when the peak value of the data frame is detected not to exceed the detection template; when the situation that the peak value of the data frame exceeds the detection template is detected, namely at least part of the peak value of the data frame exceeds the detection template, the detection template is updated according to the peak value corresponding to the exceeding part of the data frame.
Step S103, obtaining the currently stored data frame from the memory, and processing the data frame into waveform image data for displaying in the display interface.
In this embodiment, step S102 and step S103 may perform corresponding processing on the currently stored data frame output by the memory in parallel.
In this embodiment, the length of one data frame may be determined according to the current configuration of the digital oscilloscope, for example, the current time base parameter, so as to obtain the data amount required by one data frame, and when the data amount acquired by the digital oscilloscope reaches the data amount required by one data frame, the data frame is written into the memory.
In this embodiment, the memory is divided into a plurality of memory address segments, each memory address segment is used for storing a data frame, and the currently stored data frame is stored into the memory address segment corresponding to the segment number according to the segment number of the memory address segment corresponding to the currently stored data frame in the memory. The data frame currently stored in this embodiment refers to the data frame that was most recently written to the memory.
In this embodiment, segment numbers corresponding to the storage address segments in the memory are counted by the counter, and when no data frame is stored in all the storage address segments in the memory, the current count value of the counter is 0; when the data acquisition module writes the acquired first data frame into the memory, the first data frame is written into the storage address field with the segment number of 0, namely the lowest address field, according to the current count value of the counter 0, the current count value of the counter is increased by 1 at the moment, namely the current count value of the counter is 1, when the data acquisition module 102 writes the acquired second data frame into the memory 102, the first data frame is written into the storage address field with the segment number of 1 according to the current count value of the counter 1, and so on, the data acquisition module 101 writes the data into the corresponding storage address fields frame by frame according to the sequence of the acquired data frames from large to small in the sequence of the segment numbers.
For a digital oscilloscope, waveforms played back by a user by using a function of recording waveforms of the oscilloscope are all abnormal waveforms, namely waveforms with more prominent peak values, so that when the peak value of the currently stored data frame is detected not to exceed the detection template, the currently stored data frame is indicated not to belong to abnormal data, and the peak value is within the range of the detection template, so that the data frame is deleted from a corresponding storage address section in a memory, and the storage space in the memory can be saved; when the peak value of the data frame is detected to exceed the detection template, the data frame currently stored on the surface may belong to abnormal data, so that the data frame in the memory is reserved, and the detection template is updated according to the peak value of the data frame.
In one embodiment, deleting the data frame from the memory when it is detected that the peak value of the data frame does not exceed the detection template comprises:
when the peak value of the data frame is detected not to exceed the detection template and when the memory stores the next data frame written by the writing end of the memory, the currently stored data frame is replaced by the next data frame in the storage address section corresponding to the currently stored data frame, namely, the next data frame is covered on the currently stored data frame in the corresponding storage address section.
In one embodiment, updating the detection template according to the peak value corresponding to the excess portion of the data frame includes:
replacing the peak value corresponding to the exceeding part of the currently stored data frame with the detection template at the corresponding position of the exceeding part; the initial value of the detection template is the peak value of the first data frame acquired by the data acquisition module. In other words, a part of the detection template where the peak value of the currently stored data frame exceeds the detection template is found, and the part corresponding to the detection template is updated to the peak value corresponding to the part of the currently stored data frame.
In one embodiment, detecting a peak of a data frame comprises:
detecting the maximum value and the minimum value of each line of data in a waveform for display corresponding to a currently stored data frame; the preset threshold is the maximum value and the minimum value of each line of data in the set waveform for display. Thus, the peak value of the data frame is the maximum value and the minimum value of the pixel point of each row of waveforms mapped in the display interface, namely the envelope curve of the corresponding waveform of the data frame. In this embodiment, the detection template is also the maximum value and the minimum value of each row of waveform pixel points in the display interface, and thus the detection template is also the envelope of the waveform.
Referring to fig. 6, fig. 6 is a flowchart of a data detection method of a digital oscilloscope according to another embodiment, including the following steps:
step S201, configuring parameters of the digital oscilloscope.
Step S202, collecting the signal data of each channel, and writing the currently collected data frame into a memory.
Step S203, acquiring a data frame currently stored in a memory, processing the data frame into waveform image data and displaying the waveform image data; meanwhile, a peak value of the currently stored data frame is detected.
Step S204, judging the size relationship between the peak value of the currently stored data frame and the detection template, and executing step S205 and updating the detection template when the peak value exceeds the detection template; otherwise, returning to step S202 to collect the next data frame, and storing the next data frame into the storage address field stored in the currently stored data frame to cover the currently stored data frame.
And step S205, increasing the offset address of the memory, wherein the offset address of the memory is used for inquiring a storage address field to be written in the acquired next data frame, returning to the step S202 to acquire the next data frame, and storing the next data frame into the storage address field with the offset address increased.
In the embodiment of the invention, newly acquired data of each frame is compared with a detection template which is continuously updated iteratively, and only the data frames with peaks exceeding the detection template are stored in the memory, in other words, only the data frames which cause the update of the detection template are stored in the memory for the user to call, play back and analyze the abnormal waveform. The embodiment of the invention can filter a large amount of data repeatedly acquired in the detection template, the filtered data has little value to the problems of capturing abnormity and positioning of a user, and valuable abnormal captured data can be extruded out of a memory of the digital oscilloscope if the data is stored.
The present invention has been described in terms of specific examples, which are provided to aid understanding of the invention and are not intended to be limiting. For a person skilled in the art to which the invention pertains, several simple deductions, modifications or substitutions may be made according to the idea of the invention.

Claims (10)

1. A digital oscilloscope, comprising:
the data acquisition module is used for acquiring the signal data of each channel and writing the acquired data into the memory frame by frame;
the memorizer, is used for storing the data that its write-in end writes into, and output its data frame stored at present;
the detection module is used for detecting the peak value of the data frame currently stored in the memory, and deleting the data frame from the memory when the detection module detects that the peak value of the data frame does not exceed the detection template; when the condition that the peak value of the data frame exceeds the detection template is detected, updating the detection template according to the peak value corresponding to the exceeding part of the data frame;
and the waveform drawing module is used for acquiring the currently stored data frame from the memory and processing the data frame into waveform image data for displaying in a display interface.
2. The digital oscilloscope of claim 1, wherein said memory for storing data written by a write terminal thereof, comprises:
and storing the currently stored data frame into the storage address field corresponding to the segment number according to the segment number of the storage address field corresponding to the currently stored data frame in the storage.
3. The digital oscilloscope of claim 2, wherein said deleting a data frame from memory when a peak value of said data frame is detected not to exceed a detection template comprises:
and when the peak value of the data frame is detected not to exceed the detection template and the memory stores the next data frame written by the writing end of the memory, replacing the currently stored data frame with the next data frame in the storage address section corresponding to the currently stored data frame.
4. The digital oscilloscope of claim 1, wherein updating the detection template according to the peak value corresponding to the excess portion of the data frame comprises:
replacing the peak value corresponding to the exceeding part of the currently stored data frame with the detection template at the corresponding position of the exceeding part;
the initial value of the detection template is the peak value of the first data frame acquired by the data acquisition module.
5. The digital oscilloscope of any of claims 1 to 4, wherein said detecting a peak value of said data frame comprises:
detecting the maximum value and the minimum value of each line of data in the waveform for display corresponding to the currently stored data frame;
the detection template is the maximum value and the minimum value of each line of data in the set waveform for display.
6. A method for data detection in a digital oscilloscope, comprising:
acquiring signal data of each channel, and writing the acquired data into a memory frame by frame; the memory is used for storing data written by a writing end of the memory and outputting a currently stored data frame of the memory;
detecting the peak value of the data frame currently stored in the memory, and deleting the data frame from the memory when the peak value of the data frame is detected not to exceed the detection template; when the condition that the peak value of the data frame exceeds the detection template is detected, updating the detection template according to the peak value corresponding to the exceeding part of the data frame;
and acquiring the currently stored data frame from the memory, and processing the data frame into waveform image data for displaying in a display interface.
7. The method of claim 6, wherein the memory is used to store data written by its write side, comprising:
and storing the currently stored data frame into the storage address field corresponding to the segment number according to the segment number of the storage address field corresponding to the currently stored data frame in the storage.
8. The method of claim 7, wherein said removing the data frame from memory upon detecting that the peaks of the data frame do not exceed the detection template comprises:
and when the peak value of the data frame is detected not to exceed the detection template and the memory stores the next data frame written by the writing end of the memory, replacing the currently stored data frame with the next data frame in the storage address section corresponding to the currently stored data frame.
9. The method of claim 6, wherein updating the detection template based on peaks corresponding to the excess portion of the data frame comprises:
replacing the peak value corresponding to the exceeding part of the currently stored data frame with the detection template at the corresponding position of the exceeding part;
the initial value of the detection template is the peak value of the first data frame acquired by the data acquisition module.
10. The method of any of claims 6 to 9, wherein the detecting the peak of the data frame comprises:
detecting the maximum value and the minimum value of each line of data in the waveform for display corresponding to the currently stored data frame;
the detection template is the maximum value and the minimum value of each line of data in the set waveform for display.
CN202011106512.8A 2020-10-16 2020-10-16 Digital oscilloscope and data detection method thereof Active CN112014611B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011106512.8A CN112014611B (en) 2020-10-16 2020-10-16 Digital oscilloscope and data detection method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011106512.8A CN112014611B (en) 2020-10-16 2020-10-16 Digital oscilloscope and data detection method thereof

Publications (2)

Publication Number Publication Date
CN112014611A true CN112014611A (en) 2020-12-01
CN112014611B CN112014611B (en) 2021-01-15

Family

ID=73527304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011106512.8A Active CN112014611B (en) 2020-10-16 2020-10-16 Digital oscilloscope and data detection method thereof

Country Status (1)

Country Link
CN (1) CN112014611B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3575019B2 (en) * 1999-04-02 2004-10-06 横河電機株式会社 Digital oscilloscope and waveform display method
CN102048534A (en) * 2010-12-17 2011-05-11 深圳市理邦精密仪器股份有限公司 Monitoring method and monitoring device capable of playing back fetal heart Doppler audio signals
CN202353658U (en) * 2011-12-15 2012-07-25 张兴杰 Oscillograph video triggering device
CN103207294A (en) * 2012-01-16 2013-07-17 北京普源精电科技有限公司 Improved method for displaying abnormal waveform
CN103592485A (en) * 2012-08-17 2014-02-19 北京普源精电科技有限公司 Oscilloscope with input resistor protection function
CN106469027A (en) * 2016-09-13 2017-03-01 深圳市鼎阳科技有限公司 A kind of method and device of limited storage space memory storage historical trend data
CN108572271A (en) * 2018-01-26 2018-09-25 深圳市鼎阳科技有限公司 A kind of cache information sweep-out method and digital oscilloscope for oscillograph
CN111521853A (en) * 2020-06-19 2020-08-11 深圳市鼎阳科技股份有限公司 Oscilloscope signal display processing method and oscilloscope

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3575019B2 (en) * 1999-04-02 2004-10-06 横河電機株式会社 Digital oscilloscope and waveform display method
CN102048534A (en) * 2010-12-17 2011-05-11 深圳市理邦精密仪器股份有限公司 Monitoring method and monitoring device capable of playing back fetal heart Doppler audio signals
CN202353658U (en) * 2011-12-15 2012-07-25 张兴杰 Oscillograph video triggering device
CN103207294A (en) * 2012-01-16 2013-07-17 北京普源精电科技有限公司 Improved method for displaying abnormal waveform
CN103592485A (en) * 2012-08-17 2014-02-19 北京普源精电科技有限公司 Oscilloscope with input resistor protection function
CN106469027A (en) * 2016-09-13 2017-03-01 深圳市鼎阳科技有限公司 A kind of method and device of limited storage space memory storage historical trend data
CN108572271A (en) * 2018-01-26 2018-09-25 深圳市鼎阳科技有限公司 A kind of cache information sweep-out method and digital oscilloscope for oscillograph
CN111521853A (en) * 2020-06-19 2020-08-11 深圳市鼎阳科技股份有限公司 Oscilloscope signal display processing method and oscilloscope

Also Published As

Publication number Publication date
CN112014611B (en) 2021-01-15

Similar Documents

Publication Publication Date Title
US8046183B2 (en) Pre-trigger and post-trigger acquisition for no dead time acquisition system
JP6083922B2 (en) Waveform display apparatus and method
CN100504401C (en) Three-dimensional waveform real-time display method and system
JP5817041B2 (en) Test measurement equipment and waveform display method
JP5817042B2 (en) Test and measurement equipment
CN102998501B (en) Method for achieving data compression of digital oscilloscope based on field programmable gata array
US20170285072A1 (en) Method and device for accessing data acquired by digital oscilloscope, and digital oscilloscope
EP2228660A2 (en) Frequency domain bitmap triggering using color, density and correlation based triggering
JP2009531666A (en) No dead time data acquisition
JPH09236621A (en) Method and device for sampling
CN100529772C (en) Power network overvoltage signal frequency conversion sampling method
CN107102186B (en) Digital oscilloscope fluorescent image parallel high-speed processing system and method
CN108804044B (en) Deep storage based data acquisition method and deep storage data acquisition system
CN110940841A (en) Digital three-dimensional oscilloscope rapid acquisition system based on FPGA
CN112014611B (en) Digital oscilloscope and data detection method thereof
CN101261300B (en) Method for measuring digital storage oscillographs storage depth
EP1412764A1 (en) System and method for waveform processing
US7610516B2 (en) Recording analog characteristics of data from a data line in a protocol analyzer
EP0266086A2 (en) Processing circuit for capturing event in digital camera system
CN1459636A (en) Double time base device for oscillograph
CN108732398B (en) Analog transition storage
CN111527412B (en) High-refresh-rate waveform mapping method and digital oscilloscope
CN111929481B (en) Display method of oscilloscope amplification area and oscilloscope
JP5365288B2 (en) Recording device
CN102572327B (en) Image sensor with sampling control function and sampling method

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