CN115856385B - Oscilloscope, waveform display method and storage medium - Google Patents

Oscilloscope, waveform display method and storage medium Download PDF

Info

Publication number
CN115856385B
CN115856385B CN202310063444.9A CN202310063444A CN115856385B CN 115856385 B CN115856385 B CN 115856385B CN 202310063444 A CN202310063444 A CN 202310063444A CN 115856385 B CN115856385 B CN 115856385B
Authority
CN
China
Prior art keywords
display state
waveform
display
waveform data
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310063444.9A
Other languages
Chinese (zh)
Other versions
CN115856385A (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 CN202310063444.9A priority Critical patent/CN115856385B/en
Publication of CN115856385A publication Critical patent/CN115856385A/en
Application granted granted Critical
Publication of CN115856385B publication Critical patent/CN115856385B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

An oscilloscope, comprising: an analog-to-digital conversion unit that converts the analog waveform signal into a digital waveform signal; a display unit including a display area; a detection unit configured to detect a display state of a display area; the preprocessing unit is used for compressing the digital waveform signals in response to the horizontal display state and then preprocessing the compressed digital waveform signals to obtain first waveform data; preprocessing the digital waveform signal to obtain second waveform data in response to the vertical display state; a waveform processing unit that selects waveform data satisfying a preset condition from the first waveform data; selecting waveform data meeting preset conditions from the second waveform data; mapping waveform data meeting preset conditions with a display state and storing the mapped waveform data; the controller controls the display unit to display waveforms in the display area. Since there are more pixels in the vertical direction for displaying waveforms in the vertical display state, more information of waveforms in the vertical direction can be displayed. The invention also provides a waveform display method and a medium.

Description

Oscilloscope, waveform display method and storage medium
Technical Field
The invention relates to the technical field of oscilloscopes, in particular to an oscilloscopes, a waveform display method and a storage medium.
Background
An oscilloscope is an instrument for measuring waveforms of electronic signals, which is commonly used for detecting, researching characteristics curves of electronic signals and electronic components, and displaying the waveforms of signals through a display screen thereof.
However, in order to match the viewing angle of the human eye, the display screen is usually a horizontal screen, i.e. the width of the display screen is larger than the height, so that the horizontal pixels of the display screen are also larger than the vertical pixels of the display screen, for example, the display screen with 1920×1080 or 1280×720 resolution. The more pixels, the more information it can display, so the horizontal pixels of the display screen can display more information than the vertical pixels thereof, thus the information in the vertical direction of the display screen can not meet the requirement of the user when the display screen displays the signal waveform.
The number of bits of the analog-digital converter is gradually increased along with the improvement of the performance of the oscilloscope, so that the information of the signal waveform in the vertical direction is more abundant, when the 8-bit analog-digital converter is used, the information of the display screen in the vertical direction is only 256, and the number of pixels of the display screen in the vertical direction is more than 256, so that the display screen can be displayed without distortion, but when the 12-bit analog-digital converter is used, the information of the display screen in the vertical direction is 4096, and if the pixels of the display screen in the vertical direction are less than 4096, the information of the display screen in the vertical direction can only be compressed, so that the waveform distortion is caused. Therefore, for the oscilloscope, when the high-resolution analog-to-digital converter is used, how to solve the problem of insufficient pixels of the display screen in the vertical direction is needed, and a new technical scheme is also needed to be proposed.
Disclosure of Invention
The invention mainly solves the technical problem of how to display more information of waveforms in the vertical direction.
According to a first aspect, in one embodiment there is provided an oscilloscope comprising:
the input end of the analog-to-digital conversion unit is used for inputting an analog waveform signal, converting the analog waveform signal into a digital waveform signal and then outputting the digital waveform signal;
a display unit including a display area for displaying waveforms;
the detection unit is used for detecting the display state of the display area, and when the pixels in the horizontal direction in the display area are larger than the pixels in the vertical direction, the display state is a horizontal display state, and otherwise, the display state is a vertical display state;
a preprocessing unit for: responding to the horizontal display state, compressing the digital waveform signals, and preprocessing to obtain first waveform data, wherein the first waveform data is matched with pixels in the vertical direction in the horizontal display state; responding to the vertical display state, preprocessing the digital waveform signals to obtain second waveform data, wherein the second waveform data is matched with pixels in the vertical direction in the vertical display state;
a waveform processing unit for: selecting waveform data satisfying a preset condition from the first waveform data in response to the horizontal display state; selecting waveform data satisfying a preset condition from the second waveform data in response to the vertical display state; mapping the waveform data meeting the preset conditions with the display state and storing the mapped waveform data;
and the controller is used for controlling the display unit to display waveforms in the display area according to the waveform data stored by the waveform processing unit.
In some embodiments, the preprocessing unit includes:
the first decoding module is used for responding to the horizontal display state and decoding first preset high-order data in the digital waveform signal to obtain the first waveform data;
and the second decoding module is used for responding to the vertical display state and decoding second preset high-order data in the digital waveform signal to obtain the second waveform data, wherein the second preset high-order data is more than the first preset high-order data.
In some embodiments, the first decoding module includes cascaded X-stage decoders, where the X-stage decoders are configured to sequentially decode first preset high-order data in the digital waveform signal; the second decoding module comprises cascaded Y-level decoders, and the Y-level decoders are used for sequentially decoding second preset high-order data in the digital waveform signals;
wherein X and Y are integers of 1 or more.
In some embodiments, at least one stage of decoder is shared between the first and second coding modules.
In some embodiments, the Y is greater than the X, and the first and second coding modules share the X-stage decoder.
In some embodiments, the detection unit includes a detection sensor, where the detection sensor is configured to obtain a placement state of the display unit, and detect a display state of the display area according to the placement state;
when the placement state of the display unit is horizontally placed, the display state is a horizontal display state, and when the placement state of the display unit is vertically placed, the display state is a vertical display state;
or alternatively, the process may be performed,
when the placement state of the display unit is vertical, the display state is a horizontal display state, and when the placement state of the display unit is horizontal, the display state is a vertical display state.
In some embodiments, the waveform processing unit includes:
the triggering module is used for generating a triggering instruction according to the preset condition;
the pre-triggering module is used for responding to the triggering instruction and the horizontal display state and selecting waveform data meeting the preset condition from the first waveform data; and the waveform data meeting the preset condition is selected from the second waveform data in response to the trigger instruction and the vertical display state.
In some embodiments, the waveform processing unit further comprises:
the first waveform storage module is used for responding to the horizontal display state, mapping and storing the waveform data meeting preset conditions with a display area of the horizontal display state, wherein the storage structure of the waveform data is respectively matched with pixels in the vertical direction and pixels in the horizontal direction in the horizontal display state;
and the second waveform storage module is used for responding to the vertical display state, mapping the waveform data meeting the preset condition with the display area of the vertical display state and then storing the mapped waveform data.
According to a second aspect, in one embodiment, there is provided a waveform display method including:
obtaining an analog waveform signal, and converting the analog waveform signal into a digital waveform signal;
acquiring a display state of a display area, wherein when pixels in the horizontal direction in the display area are larger than pixels in the vertical direction, the display state is a horizontal display state, and otherwise, the display state is a vertical display state;
if the display state is the horizontal display state, compressing the digital waveform signals, preprocessing the compressed digital waveform signals to obtain first waveform data, matching the first waveform data with pixels in the vertical direction in the horizontal display state, and selecting waveform data meeting preset conditions from the first waveform data;
if the display state is the vertical display state, preprocessing the digital waveform signal to obtain second waveform data, wherein the second waveform data is matched with pixels in the vertical direction in the vertical display state, and waveform data meeting preset conditions is selected from the second waveform data;
and mapping the waveform data meeting the preset conditions with the display state, storing the mapped waveform data, and displaying waveforms in the display area according to the stored waveform data.
According to a third aspect, an embodiment provides a computer readable storage medium having stored thereon a program executable by a processor to implement the method according to the second aspect.
According to the oscilloscope of the embodiment, when the display area is in the horizontal display state, the preprocessing unit compresses the digital waveform signals and then performs preprocessing to obtain first waveform data matched with pixels in the vertical direction in the horizontal display state, and when the display area is in the vertical display state, performs preprocessing on the digital waveform signals to obtain second waveform data matched with pixels in the vertical direction in the vertical display state. Since more pixels are arranged in the vertical display state in the vertical direction and the data volume of the second waveform data is larger than that of the first waveform data, when more pixels are used for displaying the information of the waveform in the vertical direction, the data volume of the waveform data is increased, so that the pixels in the vertical direction are matched with the data volume of the waveform data, and the information of the waveform in the vertical direction can be displayed more in the vertical display state of the display area, so that the problem of insufficient vertical pixels of the oscilloscope is solved.
Drawings
FIG. 1 is a schematic diagram of an oscilloscope in one embodiment;
FIG. 2 is a schematic diagram of an oscilloscope according to another embodiment;
FIG. 3 is a schematic diagram of an oscilloscope in accordance with another embodiment;
FIG. 4 is a schematic diagram of a memory structure of a first waveform memory module according to an embodiment;
FIG. 5 is a schematic diagram of a memory structure of a second waveform memory module according to an embodiment;
fig. 6 is a flowchart of a waveform display method according to an embodiment.
Detailed Description
The invention will be described in further detail below with reference to the drawings by means of specific embodiments. Wherein like elements in different embodiments are numbered alike in association. In the following embodiments, numerous specific details are set forth in order to provide a better understanding of the present application. However, one skilled in the art will readily recognize that some of the features may be omitted, or replaced by other elements, materials, or methods in different situations. In some instances, some operations associated with the present application have not been shown or described in the specification to avoid obscuring the core portions of the present application, and may not be necessary for a person skilled in the art to describe in detail the relevant operations based on the description herein and the general knowledge of one skilled in the art.
Furthermore, the described features, operations, or characteristics of the description may be combined in any suitable manner in various embodiments. Also, various steps or acts in the method descriptions may be interchanged or modified in a manner apparent to those of ordinary skill in the art. Thus, the various orders in the description and drawings are for clarity of description of only certain embodiments, and are not meant to be required orders unless otherwise indicated.
The numbering of the components itself, e.g. "first", "second", etc., is used herein merely to distinguish between the described objects and does not have any sequential or technical meaning. The terms "coupled" and "connected," as used herein, are intended to encompass both direct and indirect coupling (coupling), unless otherwise indicated.
In the prior art, a display screen of an oscilloscope is rotated to enable pixels in the original horizontal direction to display information of signal waveforms in the vertical direction, for example, waveform data are stored in the X-Y direction when the oscilloscope is placed horizontally, and waveform data are stored in the Y-X direction when the oscilloscope is placed vertically. Finally, a display waveform is generated according to the stored waveform data, but before the waveform data is stored in different directions, the waveform data is greatly distorted when the waveform data is stored in different directions because the data amount of the waveform data is not changed, so that no more information of the waveform in the vertical direction is displayed, and only more pixels are visually used for displaying the information of the waveform in the vertical direction.
In the embodiment of the invention, the data volume of the waveform data is adjusted according to the display state of the display area, so that when the display area is in the horizontal display state, the digital waveform signal is compressed and then preprocessed to obtain the first waveform data matched with the pixels in the vertical direction in the horizontal display state, and when the display area is in the vertical display state, the digital waveform signal is preprocessed to obtain the second waveform data matched with the pixels in the vertical direction in the vertical display state. And when fewer pixels are used to display information of the waveform in the vertical direction, the data amount of the waveform data is reduced, so that the waveform signal is not distorted.
In some embodiments, an oscilloscope is provided for acquiring and displaying a signal waveform. Referring to fig. 1, the oscilloscope includes an analog-to-digital conversion unit 10, a display unit 20, a detection unit 30, a preprocessing unit 40, a waveform processing unit 50, and a controller 60, which are respectively described in detail below.
The analog-to-digital conversion unit 10 is configured to perform analog-to-digital conversion on an input analog signal and output a digital signal. The input end of the analog-to-digital conversion unit 10 is used for inputting an analog waveform signal, the analog waveform signal can be obtained by collecting a waveform to be displayed, and then the analog-to-digital conversion unit 10 samples and quantizes the analog waveform signal to obtain a digital waveform signal. In this embodiment, the higher the number of bits of the analog-to-digital conversion unit 10, the higher the resolution thereof, and the more abundant the information is presented. For example, for an 8-bit analog-to-digital converter, the resolution is 256, while for a 12-bit analog-to-digital converter, the resolution is 4096.
The display unit 20 is used to display waveforms through its display area. Wherein the display unit 20 may be a display or a display screen, which typically has a fixed display area for display, and the display area of the display unit 20 for displaying waveforms may be all or part of the fixed display area.
The detection unit 30 is used to detect a display state of a display area in which waveforms are displayed. When the pixels in the horizontal direction are larger than the pixels in the vertical direction in the display area, the display state is a horizontal display state, that is, the display area of the display unit 20 is a horizontal screen display, and at this time, the pixels in the horizontal direction in the display area can display more information. When the pixels in the horizontal direction are smaller than the pixels in the vertical direction in the display area, the display state is the vertical display state, that is, the display area of the display unit 20 is the vertical screen display, and at this time, the pixels in the vertical direction in the display area can display more information.
In some embodiments, the detection unit 30 includes a detection sensor for acquiring a placement state of the display unit 20 and detecting a display state of the display area according to the placement state. In some embodiments, the detection sensor includes a gyroscope or other sensor capable of detecting motion, which is disposed on the housing of the oscilloscope together with the display unit 20, when the housing of the oscilloscope rotates as a whole, for example, ninety degrees, the display unit 20 rotates, for example, when the housing of the oscilloscope rotates from a horizontal position to a vertical position, the display unit 20 also rotates from a horizontal position to a vertical position. And the gyroscope can detect the placement state of the display unit 20 by detecting the placement state of the housing of the oscilloscope. In some embodiments, when the placement state of the display unit 20 is horizontally placed, the display state of the display area is default to a horizontal display state, that is, the pixels in the horizontal direction in the display area are larger than the pixels in the vertical direction, so when the placement state of the display unit 20 is vertically placed, the display state of the display area is a vertical display state, that is, the pixels in the horizontal direction are smaller than the pixels in the vertical direction after the display area is rotated. In some embodiments, when the placement state of the display unit 20 is placed horizontally, the display state of the display area is default to a vertical display state, that is, the pixels in the horizontal direction in the display area are smaller than the pixels in the vertical direction, so when the placement state of the display unit 20 is placed vertically, the display state of the display area is a horizontal display state, that is, the pixels in the horizontal direction are larger than the pixels in the vertical direction after the display area is rotated.
The preprocessing unit 40 is configured to respond to the horizontal display state of the display area, compress the digital waveform signal, and perform preprocessing to obtain first waveform data, where the first waveform data matches with pixels in the vertical direction in the display area in the horizontal display state. Alternatively, the preprocessing unit 40 is configured to respond to the vertical display state of the display area, and preprocess the digital waveform signal to obtain second waveform data, where the second waveform data matches with pixels in the vertical direction in the display area in the vertical display state. In this embodiment, when the display area is in the vertical display state, the number of pixels in the vertical direction is large, so that the digital waveform signal can be directly preprocessed to obtain the second waveform data, so that the display area in the vertical display state can display more information in the vertical direction, and when the display area is in the horizontal display state, the number of pixels in the vertical direction is small, so that the digital waveform signal needs to be compressed and preprocessed to obtain the first waveform data, and the display area in the horizontal display state is not affected to normally display information in the vertical direction.
Referring to fig. 2, in some embodiments, the preprocessing unit 40 includes a first decoding module 42 and a second decoding module 44, and after the preprocessing unit 40 responds to the display status, the first decoding module 42 or the second decoding module 44 can be selected for decoding by a switching device. The first decoding module 42 is configured to decode first preset high-order data in the digital waveform signal in response to the horizontal display state, so as to obtain first waveform data. The second decoding module 44 is configured to decode the second preset high-order data in the digital waveform signal to obtain second waveform data in response to the vertical display state, where the second preset high-order data is greater than the first preset high-order data. In this embodiment, the digital waveform signal after being decoded may be used to display the waveform, and the number of bits of the digital waveform signal matches the number of bits of the analog-to-digital conversion unit 10, for example, for an 8-bit analog-to-digital conversion unit 10, the digital waveform signal converted by the digital waveform signal is also 8-bit data, and for a 12-bit analog-to-digital converter, the digital waveform signal converted by the digital waveform signal is also 12-bit data. In this embodiment, the resolution of the analog-to-digital conversion unit 10 may be matched with or larger than the pixels in the vertical direction in the display area in the vertical display state, for example, 4096 pixels in the vertical direction in the display area in the vertical display state, and the analog-to-digital converter matched with the same is 12 bits. In this embodiment, the second preset high-order data in the digital waveform signal may be all data or part of the data, so that the second waveform data may be obtained by preprocessing after compressing the digital waveform signal, and only the second waveform data is needed to match with the pixels in the vertical direction in the vertical display state, for example, when the digital waveform signal is 12-bit data, the first preset high-order data is the high-order 11-bit data, the matched pixels in the vertical direction are 2048, the second preset high-order data is all data, the matched pixels in the vertical direction are 4096, and when the digital waveform signal is 13-bit data, the second preset high-order data is the high-order 12-bit data. In this embodiment, for the maximum pixel of the display unit 20 in the vertical direction, it is determined by the pixel in the vertical direction in the display area in the vertical display state, so the pixel is greatly improved compared with the pixel in the vertical direction in the display area in the horizontal display state, so that the display unit 20 can be used for more information of the display waveform in the vertical direction, and therefore the display unit 20 can be matched with the analog-to-digital conversion unit 10 with higher resolution, so as to embody the advantage of the analog-to-digital conversion unit 10 with higher resolution. And meanwhile, the second preset high-order data in the digital waveform signal of the second decoding module 44 is used for decoding, so that the data volume of the waveform data is increased, more information of the displayed waveform in the vertical direction is realized, and the problem of insufficient vertical pixels of the oscilloscope can be solved.
In some embodiments, the first decoding module 42 includes cascaded X-stage decoders for sequentially decoding the first preset high-order data in the digital waveform signal. The second decoding module 44 includes cascaded Y-level decoders for sequentially decoding the second preset high-order data in the digital waveform signal. Wherein X and Y are integers greater than or equal to 1, for example, when the digital waveform signal is 12-bit data, the first preset high-order data is 11-bit data, and the second preset high-order data is all data, if X and Y are equal to 2, the first decoding module 42 includes cascaded two-stage decoders for decoding 11-bit data, wherein the first-stage decoders need to decode the high-order X in 11-bit data 1 The data of the bits are decoded, and the second stage decoder needs to decode the X of the lower bits of the 11-bit data 2 The data of bits being decoded and X 1 +X 2 For example, the first-stage decoder decodes the upper 3 bits of data, the second-stage decoder decodes the lower 8 bits of data, and the two-stage decoders are cascaded to sequentially decode the 11 bits of data in the digital waveform signal. At this time, the first stage decoder includes a 3-8 decoder whose decoding input terminal inputs the upper 3 bits of the 11 bits of data, and whose output terminal outputs the parallel 8 bits of data, and whose enable terminal remains enabled. The second stage decoder comprises 8-256 decoders, the decoding input end of which inputs the lower 8 bits of 11 bits of data, the output end outputs 256 bits of data in parallel, and the enabling end of the 8-256 decodersThe serial input to the output of the first stage decoder outputs one bit of the parallel 8-bit data, and the cascade connection of the decoders belongs to technical means well known to those skilled in the art, and will not be described herein. The second decoder block 44, like the first decoder block 42, also includes a cascade of two stages of decoders that are required to decode 12 bits of data, wherein the first stage of decoders is required to decode the higher order Y of the 12 bits of data 1 The data of the bit is decoded, and the second level decoder needs to decode Y of the lower bits of the 12-bit data 2 The data of bits being decoded, and Y 1 +Y 2 And 12. It is understood that X and Y may be other integers, and each of the decoders may be cascaded to decode different bit data in the digital waveform signal. In this embodiment, the decoder may be implemented by a hardware chip or by programming an FPGA, for example, the oscilloscope generally includes an FPGA, so that the function of the decoder may be implemented by using the FPGA, while the commonly used decoder includes a 3-8 decoder or a 4-16 decoder, and when a plurality of small decoders are cascaded to form a large decoder, the implementation is simpler and more convenient.
In some embodiments, a first level decoder may be shared between the first decoding module 42 and the second decoding module 44. For example, when X and Y are equal to 3, at least one of the first stage decoder, the second stage decoder, or the third stage decoder may be shared between the first decoding module 42 and the second decoding module 44, and the shared stage decoder may be connected to the other stage decoders of the first decoding module 42 and the second decoding module 44 through a switch array, for example, when the first stage decoder is shared between the first decoding module 42 and the second decoding module 44, an input terminal of the switch array is connected to an output terminal of the first stage decoder, a first output terminal of the switch array is connected to an input terminal of the second stage decoder of the first decoding module 42, and a second output terminal of the switch array is connected to an input terminal of the second stage decoder of the second decoding module 44, and the switch array enables the input terminal and the first output terminal to be connected in response to a horizontal display state, so that the first decoding module 42 decodes the first preset high data in the digital waveform signal, and the switch array enables the input terminal and the second output terminal to be connected to the second preset high data in the digital waveform signal in response to a vertical display state. In some embodiments, when Y is greater than X, for example when x=3, y=4, the first decoding module 42 and the second decoding module 44 may share a three-level decoder of the first decoding module 42. In this embodiment, at least one stage of decoder can be shared between the first decoding module 42 and the second decoding module 44, so as to reduce implementation cost of the first decoding module 42 and the second decoding module 44.
The waveform processing unit 50 is configured to select waveform data satisfying a preset condition from the first waveform data in response to the horizontal display state, and then map the waveform data satisfying the preset condition with the display state and store the mapped waveform data. Or the waveform processing unit 50 is configured to select waveform data satisfying a preset condition from the second waveform data in response to the vertical display state, and then map the waveform data satisfying the preset condition with the display state and store the mapped waveform data.
Referring to fig. 3, in some embodiments, the waveform processing unit 50 includes a trigger module 52, a pre-trigger module 54, a first waveform storage module 56, and a second waveform storage module 58. The triggering module 52 is configured to generate a triggering command according to a preset condition, for example, the preset condition is a preset level or a preset pulse width set by a user, and the triggering module 52 generates a corresponding triggering command according to the preset level or the preset pulse width. The pre-trigger module 54 is configured to store all waveform data output by the pre-processing unit 40, and select waveform data satisfying a preset level or a preset pulse width from the first waveform data in response to a trigger command and a horizontal display state, and select waveform data satisfying a preset level or a preset pulse width from the second waveform data in response to a trigger command and a vertical display state. The first waveform storage module 56 is configured to respond to the horizontal display state, and map waveform data satisfying a preset condition in the first waveform data with a display area of the horizontal display state, and store the mapped waveform data. The second waveform storage module 58 is configured to respond to the vertical display state, and map waveform data satisfying a preset condition in the second waveform data with a display area in the vertical display state, and store the mapped waveform data. In this embodiment, the waveform data storage structure of the first waveform storage module 56 is respectively matched with the pixels in the vertical direction and the pixels in the horizontal direction in the horizontal display state, and the waveform data storage structure of the second waveform storage module 58 is respectively matched with the pixels in the vertical direction and the pixels in the horizontal direction in the vertical display state, please refer to fig. 4 and 5, for example, if there are I columns and J rows of pixels in the horizontal display state, there are J columns and I rows of pixels in the vertical display state, at this time, the waveform data storage structure of the first waveform storage module 56 includes I J bits of data, the waveform data storage structure of the second waveform storage module 58 includes J I bits of data, and since I is larger than J, finer waveform amplitude information can be displayed in the vertical display state.
The controller 60 is configured to control the display unit 20 to display a corresponding waveform in the display area according to the waveform data stored in the first waveform storage module 56 or the second waveform storage module 58.
As can be seen from the above embodiments, when the oscilloscopes are in different placing states, the detecting unit 30 may detect the displaying state of the displaying area of the displaying unit 20, the preprocessing unit 40 may select the first decoding module 42 or the second decoding module 44 according to the displaying state to decode the digital waveform signal, so as to obtain the first waveform data matched with the pixels in the vertical direction in the horizontal displaying state, or obtain the second waveform data matched with the pixels in the vertical direction in the vertical displaying state, then the waveform processing unit 50 may map the waveform data meeting the preset condition by selecting the first waveform storing module 56 matched with the first waveform data, or map the waveform data meeting the preset condition by selecting the second waveform storing module 58 matched with the second waveform data, and finally the controller 60 may control the displaying unit 20 to display the waveform in the displaying area according to the waveform data stored by the waveform processing unit 50.
The following will explain by way of a specific example.
For example, the analog-to-digital converter of the oscilloscope is 12 bits, the display adopts a display screen with 4K resolution, and then the pixels in the display area of the horizontal display state of the display screen are 4000 columns by 2000 rows, and the pixels in the display area of the vertical display state are 2000 columns by 4000 rows.
Since 4000 2000-bit waveform data are required for the display area in the horizontal display state, and 2+11=2048, we only need to convert the high eleven-bit data of the analog-to-digital converter into parallel data qn. For example, the first decoding module 42 may employ three-stage decoders, wherein the first-stage decoder is 1 4-16 decoders, the second-stage decoder array is composed of 16 4-16 decoders, and the three-stage decoder array is composed of 256 3-8 decoders, so that the three-stage decoder may output 2048Q (n). When the data of 1999 or more is considered to exceed the display area, i.e. Q (n) max, the data can be normalized to 1999, and then 2000 different Q (n) can be corresponding to a certain pixel of a certain column, so that the display area of the horizontal display state can display 11 bits of waveform amplitude information of the analog-to-digital converter. Referring back to fig. 4, at this time i=4000 and j=2000, the waveform data storage structure of the first waveform storage module 56 includes 4000 2000 bits of data.
Since the display area in the vertical display state requires 2000 4000 bits of waveform data and 2≡12=4096, we need to convert all twelve bits of the analog-to-digital converter into parallel data Q n. For example, the second decoding module 44 may also employ three-level decoders, wherein the first-level decoder is 1 4-16 decoders, the second-level decoder array is composed of 16 4-16 decoders, and the three-level decoder array is composed of 256 4-16 decoders, so that the three-level decoder can output 4096Q (n). When the data greater than or equal to 3999 is considered to exceed the display area, the data can be normalized to 3999, namely Q (n) max, and 4000 different Q (n) can be corresponding to a certain pixel of a certain column, so that the display area in the vertical display state can display 12-bit waveform amplitude information of the analog-to-digital converter. Where Q [ n ] is an array, which is a set of numbers, and Q (n) is a certain number in the array Q [ n ]. Referring back to fig. 5, at this time i=2000, j=4000, and the waveform data storage structure of the second waveform storage module 58 includes 2000 4000 bits of data.
Referring to fig. 6, a waveform display method is provided in some embodiments, and is described in detail below.
Step 100: an analog waveform signal is obtained and converted into a digital waveform signal.
Step 200: and acquiring a display state of a display area, wherein when pixels in the horizontal direction in the display area are larger than pixels in the vertical direction, the display state is a horizontal display state, and otherwise, the display state is a vertical display state.
Step 300: and if the display state is the horizontal display state, compressing the digital waveform signals, preprocessing the compressed digital waveform signals to obtain first waveform data, matching the first waveform data with pixels in the vertical direction in the horizontal display state, and selecting waveform data meeting preset conditions from the first waveform data.
Step 400: and if the display state is the vertical display state, preprocessing the digital waveform signal to obtain second waveform data, wherein the second waveform data is matched with pixels in the vertical direction in the vertical display state, and waveform data meeting preset conditions is selected from the second waveform data.
Step 500: and mapping the waveform data meeting the preset conditions with the display state, storing the mapped waveform data, and displaying waveforms in the display area according to the stored waveform data.
In some embodiments, when acquiring the display state of the display area, the display device is configured to acquire a placement state of the display unit 20, and detect the display state of the display area according to the placement state; when the placement state of the display unit 20 is horizontally placed, the display state is a horizontal display state, and when the placement state of the display unit 20 is vertically placed, the display state is a vertical display state; alternatively, when the placement state of the display unit 20 is vertically placed, the display state is a horizontal display state, and when the placement state of the display unit 20 is horizontally placed, the display state is a vertical display state.
In some embodiments, if the display state is the horizontal display state, compressing the digital waveform signal and then preprocessing to obtain first waveform data, which specifically includes: decoding first preset high-order data in the digital waveform signal to obtain the first waveform data.
In some embodiments, if the display state is the vertical display state, preprocessing the digital waveform signal to obtain second waveform data, which specifically includes: and decoding second preset high-order data in the digital waveform signal to obtain the second waveform data.
In some embodiments, a computer readable storage medium has a program stored thereon, the program being executable by a processor to implement the waveform display method described above.
Those skilled in the art will appreciate that all or part of the functions of the various methods in the above embodiments may be implemented by hardware, or may be implemented by a computer program. When all or part of the functions in the above embodiments are implemented by means of a computer program, the program may be stored in a computer readable storage medium, and the storage medium may include: read-only memory, random access memory, magnetic disk, optical disk, hard disk, etc., and the program is executed by a computer to realize the above-mentioned functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the functions described above can be realized. In addition, when all or part of the functions in the above embodiments are implemented by means of a computer program, the program may be stored in a storage medium such as a server, another computer, a magnetic disk, an optical disk, a flash disk, or a removable hard disk, and the program in the above embodiments may be implemented by downloading or copying the program into a memory of a local device or updating a version of a system of the local device, and when the program in the memory is executed by a processor.
The foregoing description of the invention has been presented for purposes of illustration and description, and is not intended to be limiting. Several simple deductions, modifications or substitutions may also be made by a person skilled in the art to which the invention pertains, based on the idea of the invention.

Claims (10)

1. An oscilloscope, comprising:
the input end of the analog-to-digital conversion unit is used for inputting an analog waveform signal, converting the analog waveform signal into a digital waveform signal and then outputting the digital waveform signal;
a display unit including a display area for displaying waveforms;
the display device comprises a detection unit, a display unit and a display unit, wherein the detection unit is used for detecting the display state of the display area, when the pixels in the horizontal direction in the display area are larger than the pixels in the vertical direction, the display state is the horizontal display state, and when the display area rotates, the pixels in the horizontal direction are smaller than the pixels in the vertical direction, and the display state is the vertical display state;
a preprocessing unit for: responding to the horizontal display state, compressing the digital waveform signals, and preprocessing to obtain first waveform data, wherein the first waveform data is matched with pixels in the vertical direction in the horizontal display state; responding to the vertical display state, preprocessing the digital waveform signals to obtain second waveform data, wherein the second waveform data is matched with pixels in the vertical direction in the vertical display state;
a waveform processing unit for: selecting waveform data satisfying a preset condition from the first waveform data in response to the horizontal display state; selecting waveform data satisfying a preset condition from the second waveform data in response to the vertical display state; mapping the waveform data meeting the preset conditions with the display state and storing the mapped waveform data;
and the controller is used for controlling the display unit to display waveforms in the display area according to the waveform data stored by the waveform processing unit.
2. The oscilloscope of claim 1, wherein the preprocessing unit comprises:
the first decoding module is used for responding to the horizontal display state and decoding first preset high-order data in the digital waveform signal to obtain the first waveform data;
and the second decoding module is used for responding to the vertical display state and decoding second preset high-order data in the digital waveform signal to obtain the second waveform data, wherein the second preset high-order data is more than the first preset high-order data.
3. The oscilloscope of claim 2 wherein said first decoding module comprises a cascaded X-stage decoder for sequentially decoding first predetermined high-order data in said digital waveform signal; the second decoding module comprises cascaded Y-level decoders, and the Y-level decoders are used for sequentially decoding second preset high-order data in the digital waveform signals;
wherein X and Y are integers of 1 or more.
4. The oscilloscope of claim 3 wherein at least one stage of decoder is shared between said first decoding module and said second decoding module.
5. The oscilloscope of claim 3 wherein Y is greater than X, said first and second decoding modules sharing said X-stage decoder.
6. The oscilloscope of claim 1, wherein the detection unit includes a detection sensor for acquiring a placement state of a display unit and detecting a display state of the display area according to the placement state;
when the placement state of the display unit is horizontally placed, the display state is a horizontal display state, and when the placement state of the display unit is vertically placed, the display state is a vertical display state;
or alternatively, the process may be performed,
when the placement state of the display unit is vertical, the display state is a horizontal display state, and when the placement state of the display unit is horizontal, the display state is a vertical display state.
7. The oscilloscope of claim 1, wherein the waveform processing unit comprises:
the triggering module is used for generating a triggering instruction according to the preset condition;
the pre-triggering module is used for responding to the triggering instruction and the horizontal display state and selecting waveform data meeting the preset condition from the first waveform data; and the waveform data meeting the preset condition is selected from the second waveform data in response to the trigger instruction and the vertical display state.
8. The oscilloscope of any one of claims 1-7, wherein the waveform processing unit further comprises:
the first waveform storage module is used for responding to the horizontal display state, mapping and storing the waveform data meeting preset conditions with a display area of the horizontal display state, wherein the storage structure of the waveform data is respectively matched with pixels in the vertical direction and pixels in the horizontal direction in the horizontal display state;
and the second waveform storage module is used for responding to the vertical display state, mapping the waveform data meeting the preset condition with the display area of the vertical display state and then storing the mapped waveform data.
9. A waveform display method, comprising:
obtaining an analog waveform signal, and converting the analog waveform signal into a digital waveform signal;
acquiring a display state of a display area, wherein the display state is a horizontal display state when a pixel in the horizontal direction in the display area is larger than a pixel in the vertical direction, and the display state is a vertical display state when the pixel in the horizontal direction is smaller than the pixel in the vertical direction after the display area rotates;
if the display state is the horizontal display state, compressing the digital waveform signals, preprocessing the compressed digital waveform signals to obtain first waveform data, matching the first waveform data with pixels in the vertical direction in the horizontal display state, and selecting waveform data meeting preset conditions from the first waveform data;
if the display state is the vertical display state, preprocessing the digital waveform signal to obtain second waveform data, wherein the second waveform data is matched with pixels in the vertical direction in the vertical display state, and waveform data meeting preset conditions is selected from the second waveform data;
and mapping the waveform data meeting the preset conditions with the display state, storing the mapped waveform data, and displaying waveforms in the display area according to the stored waveform data.
10. A computer readable storage medium having stored thereon a program executable by a processor to implement the method of claim 9.
CN202310063444.9A 2023-02-06 2023-02-06 Oscilloscope, waveform display method and storage medium Active CN115856385B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310063444.9A CN115856385B (en) 2023-02-06 2023-02-06 Oscilloscope, waveform display method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310063444.9A CN115856385B (en) 2023-02-06 2023-02-06 Oscilloscope, waveform display method and storage medium

Publications (2)

Publication Number Publication Date
CN115856385A CN115856385A (en) 2023-03-28
CN115856385B true CN115856385B (en) 2023-07-04

Family

ID=85657612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310063444.9A Active CN115856385B (en) 2023-02-06 2023-02-06 Oscilloscope, waveform display method and storage medium

Country Status (1)

Country Link
CN (1) CN115856385B (en)

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3795834A (en) * 1972-07-05 1974-03-05 Tektronix Inc Oscilloscope having external trigger display mode
JPS61105467A (en) * 1984-10-29 1986-05-23 Shin Kobe Electric Mach Co Ltd Waveform observing device
JPH0271290A (en) * 1988-09-06 1990-03-09 Nec Corp High definition display system for display device
JPH0817484B2 (en) * 1988-10-22 1996-02-21 日本テレビ放送網株式会社 Television signal broadcasting device and same signal receiving device
US5027058A (en) * 1990-02-26 1991-06-25 Tektronix, Inc. Multi-standard video option for oscilloscope
JPH07121108B2 (en) * 1990-03-24 1995-12-20 日本テレビ放送網株式会社 Television system
EP0514819B1 (en) * 1991-05-23 1996-05-01 Hitachi, Ltd. Wide-screen television receiver with aspect ratio conversion function and method of displaying a magnified range
US5517105A (en) * 1994-10-25 1996-05-14 Tektronix, Inc. Dual linked zoom boxes for instrument display
US8981760B2 (en) * 2009-11-13 2015-03-17 Teledyne Lecroy, Inc. Rotatable display for test and measurement apparatus
CN104142415B (en) * 2013-05-08 2016-12-28 固纬电子实业股份有限公司 The oscillograph of displaying picture
US20160365868A1 (en) * 2015-06-12 2016-12-15 Tektronix, Inc. Circulating Resampling Digitizer
CN111290725B (en) * 2020-03-13 2023-07-14 深圳市腾讯信息技术有限公司 Screen projection method, device and storage medium
CN111414204B (en) * 2020-03-19 2024-05-10 京东方科技集团股份有限公司 Startup display method and device and electronic equipment
CN111880869A (en) * 2020-06-17 2020-11-03 西安万像电子科技有限公司 Picture adjusting method, device and system
CN112051427A (en) * 2020-08-13 2020-12-08 中电科仪器仪表有限公司 High-resolution oscilloscope vertical scaling circuit and method
WO2022193475A1 (en) * 2021-03-19 2022-09-22 青岛海信传媒网络技术有限公司 Display device, method for receiving screen projection content, and screen projection method
CN112946337B (en) * 2021-05-13 2021-08-03 深圳市鼎阳科技股份有限公司 High-precision signal measuring method and digital oscilloscope
CN215493781U (en) * 2021-06-25 2022-01-11 深圳市鼎阳科技股份有限公司 Digital oscilloscope supporting extended analog front end

Also Published As

Publication number Publication date
CN115856385A (en) 2023-03-28

Similar Documents

Publication Publication Date Title
EP0860795B1 (en) Method and circuit for extracting histogram and cumulative distribution function for image enhancement apparatus
US4417276A (en) Video to digital converter
JPS5875068A (en) Wave-form storage display device
US6335760B1 (en) Image signal reproduction device
US4755960A (en) Waveform data compressing circuit
CN1302662C (en) Display equipment and image processing method thereof
CN115856385B (en) Oscilloscope, waveform display method and storage medium
US6141122A (en) Data compressing method, image data memory, and method and device for expanding compressed data
US20030063216A1 (en) Information signal processing device, information signal processing method, image signal processing device, image display comprising the same, coefficient type data creating device and method used for the same, and information providing medium
US6934646B2 (en) Waveform complexity detector
US5168359A (en) Video scan rate conversion method and apparatus for achieving same
US5703628A (en) Image data store device
EP1783505B1 (en) Compressed logic sample storage
CN213879938U (en) Directing equipment
US6473700B1 (en) Apparatus for use in a logic analyzer for compressing digital data for waveform viewing
WO2002052836A2 (en) Graphic image coding
CN1321527C (en) Method and device for displaying character on screen
JP2005189065A (en) Waveform determination device
JP2839578B2 (en) Image data input processing device
JP2993289B2 (en) Electric signal measuring instrument
JP2673393B2 (en) Waveform analyzer
SU1169010A1 (en) Graphic information output device
JPH11239304A (en) Internet terminal for tv
JPH11288257A (en) Method and device for compression display
JPS63289470A (en) User interface for logical analyzer

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