CN110320394B - Decoding processing method and decoding processing device, the digital oscilloscope of Wave data - Google Patents

Decoding processing method and decoding processing device, the digital oscilloscope of Wave data Download PDF

Info

Publication number
CN110320394B
CN110320394B CN201910811513.3A CN201910811513A CN110320394B CN 110320394 B CN110320394 B CN 110320394B CN 201910811513 A CN201910811513 A CN 201910811513A CN 110320394 B CN110320394 B CN 110320394B
Authority
CN
China
Prior art keywords
data
level
group
decoding
wave
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
CN201910811513.3A
Other languages
Chinese (zh)
Other versions
CN110320394A (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 CN201910811513.3A priority Critical patent/CN110320394B/en
Publication of CN110320394A publication Critical patent/CN110320394A/en
Application granted granted Critical
Publication of CN110320394B publication Critical patent/CN110320394B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

Decoding processing method and decoding processing device, the digital oscilloscope of Wave data, the decoding processing method include: the Wave data for obtaining signal;Digitized processing is carried out to Wave data according to one or more threshold levels, obtains several groups level data;Each group of level data is pre-processed according to preset data compression rule, obtains compressed data;Data compression rule is the level state and level width that each group of level data is indicated with a binary array;Processing is decoded to compressed data according to data compression rule corresponding decoding protocol, obtains decoding data.Since digitized processing can be carried out to Wave data according to multiple threshold levels, and plurality of level state is indicated using a high position for binary array, make it possible multi-threshold level Protocol compression and decoding, avoids the limitation being only capable of in the prior art to single threshold level protocol-decoding.

Description

Decoding processing method and decoding processing device, the digital oscilloscope of Wave data
Technical field
The present invention relates to signal measurement technique fields, and in particular to the processing method and decoding processing device of decoding data, Digital oscilloscope.
Background technique
As the sample rate of oscillograph is higher and higher, storage depth is increasing, and decoded data volume is also just increasing, Collected data point usually by numeral pretreatment and then is passed through decoder decoding process by current oscillograph, is solved Code data result simultaneously shows decoding result.In the process, sampled data usually moves CPU operation memory to from FPGA In, sampled data completes pretreatment, decoding and display work in CPU operation memory.Oscillography biggish for storage depth Device, sampled data points often compare more, acquire data and are all transported in CPU from FPGA and will consume the long period, and allow CPU It completes data prediction cpu load is then caused to increase, inefficiency, it is unacceptable to also lead to entire decoding time, in addition, Biggish CPU running memory space is needed, the product cost of oscillograph is increased.
Referring to FIG. 1, patent document (CN201611233784.8) discloses a kind of decoding data processing method, device and shows Wave device, wherein decoding data processing mode includes: acquisition Wave data, carries out digitized processing to collected Wave data, Data after digitized processing are subjected to edge compression, compressed data is decoded processing according to corresponding agreement, it is most laggard Row display.Wherein most importantly, data compression is carried out after Wave data digitized processing, to avoid needs when decoding A large amount of initial data is decoded, to improve decoding efficiency, other processes are all that oscillograph decodes basic and general mistake Journey.In addition, the detailed protocol of edge compressed data is: being digitized collected Wave data according to current threshold threshold value It handles to carry out edge compression, the data flow organizational form of compressed data is original state+N number of interval pulsewidth, wherein first For the initial state value " 0 " or one state of compressed data, other are between an edge placement on current edge positional distance Every pulsewidth, each edge occurs indicating opposite with the state at a upper edge.Although this technical solution realizes solution yardage According to processing function, but there is also some problems: (1) Wave data of multi-threshold level decoded cannot be supported to compress, such as Data compression demand under 1553B dual threshold level decoded agreement;(2) compressed data stream is lossless maximum compression, but FPGA is real It is now complex with decoder parsing data.
Summary of the invention
The present invention solves the technical problem of how to improve big storage depth oscillograph to the solution of fully sampled data point Code efficiency.In order to solve the above technical problems, the application provide a kind of Wave data decoding processing method and decoding processing device, Digital oscilloscope.
According in a first aspect, providing a kind of decoding processing method of Wave data in a kind of embodiment, comprising the following steps: Obtain the Wave data of signal;Digitized processing is carried out to the Wave data according to one or more threshold levels, if obtaining Dry group level data;Each group of level data is pre-processed according to preset data compression rule, obtains compressed data;Institute Stating data compression rule is the level state and level width that each group of level data is indicated with a binary array;According to institute It states data compression rule corresponding decoding protocol and processing is decoded to the compressed data, obtain decoding data.
It is described that digitized processing is carried out to the Wave data according to one or more threshold levels, obtain several groups level Data, comprising: for a threshold level, the Wave data is compared with the threshold level, it should using being continuously greater than Threshold level continuously forms one group of level data less than the Wave data of the threshold level;It, will for multiple threshold levels The Wave data is compared respectively with those threshold levels, and using being continuously greater than, maximum threshold value in those threshold levels is electric It is flat, be continuously less than in those threshold levels the smallest threshold level or continuously wave in the range of two adjacent thresholds level Graphic data forms one group of level data.
It is described that each group of level data is pre-processed according to preset data compression rule, compressed data is obtained, is wrapped It includes: for each group of level data, the level state of this group of level data is indicated with high M in the binary array, use The level width of this group of level data of low N expressions in the binary array;It is formed using the binary array described Compressed data;Wherein, the level state of this group of level data is high level, low level or intermediate level, this group of level data Level width is the number of data point in this group of level data, and the value of M+N is equal to the total bit of the binary array.
If the value of the corresponding Wave data of any one group of level data is greater than maximum threshold level, this group of level is set The level state of data is high level;If the value of the corresponding Wave data of any one group of level data is less than the smallest threshold value electricity Flat, then the level state that this group of level data is arranged is low level;If the value of the corresponding Wave data of any one group of level data In the range of two adjacent thresholds level, then the level state that this group of level data is arranged is intermediate level.
The total bit of the binary array is 32, and M, N are respectively 3,29;The first value constituted with high M indicates low electricity Flat, the second value constituted with high M indicates intermediate level, and the third value constituted with high M indicates high level;Indicate N low with 0 In value bit in addition to the corresponding Binary Conversion result of level width.
It is described that processing is decoded to the compressed data according to the corresponding decoding protocol of the data compression rule, it obtains Decoding data, comprising: high M in the corresponding binary array of the compressed data and N low are obtained, according to M high, low N Position determines level state, the level width of the compressed data respectively;It is wide using the level state and level of the compressed data Degree forms decoding data.
After obtaining the decoding data, further includes: be formatted to the decoding data and filtration treatment, to disappear Data in addition to screen indication range or the repeated data for filtering the Overlapping display on same pixel point;To formatting and mistake Data after filter processing are shown.
According to second aspect, a kind of decoding processing device of Wave data is provided in a kind of embodiment, comprising: is obtained single Member, for obtaining the Wave data of signal;First processing units are used for according to one or more threshold levels to the waveform number According to digitized processing is carried out, several groups level data is obtained;The second processing unit, for right according to preset data compression rule Each group of level data is pre-processed, and compressed data is obtained;The data compression rule is to be indicated with a binary array The level state and level width of each group of level data;Third processing unit, for corresponding according to the data compression rule Decoding protocol processing is decoded to the compressed data, obtain decoding data.
According to the third aspect, a kind of digital oscilloscope is provided in a kind of embodiment, comprising: sampling apparatus, for believing one Number carry out continuous sampling, to form the Wave data of the signal;The decoding processing device as described in second aspect, it is described to obtain Unit is taken to connect with the sampling apparatus, the acquiring unit is used to obtain the Wave data from the sampling apparatus.
According to fourth aspect, a kind of computer readable storage medium, including program, described program are provided in a kind of embodiment It can be executed by processor to realize the decoding processing method as described in above-mentioned first aspect.
The beneficial effect of the application is:
The decoding processing method and decoding processing device, digital oscilloscope of a kind of Wave data according to above-described embodiment, The decoding processing method includes: the Wave data for obtaining signal;Wave data is counted according to one or more threshold levels Wordization processing, obtains several groups level data;Each group of level data is pre-processed according to preset data compression rule, Obtain compressed data;Data compression rule is the level state and level that each group of level data is indicated with a binary array Width;Processing is decoded to compressed data according to data compression rule corresponding decoding protocol, obtains decoding data.First Aspect respectively indicates each group of level with low level with the high position in binary array due to using new data compression rule The level state and level width of data have so obtained the effective information of Wave data, have also reduced depositing for Wave data Store up space;Second aspect since system can carry out digitized processing to Wave data according to multiple threshold levels, and utilizes two A high position for system array indicates plurality of level state, makes it possible multi-threshold level Protocol compression and decoding, avoids It is only capable of the limitation to single threshold level protocol-decoding in the prior art;The third aspect, due to the data compression rule newly used Middle high-order and low level reasonable disposition, only system has not reserved the extending space of subsequent level state, additionally provides sampled point Several expansion width, it might even be possible to more than 512M;Fourth aspect, the realization rate of data compression rule is more in the technical program Simply, the pretreatment time of each group of level data efficiently, can be shortened and shorten the decoding process time of compressed data, from And provide the decoding efficiency of Wave data;5th aspect can realize level data by FPGA in decoding processing device Preprocessing process, by CPU realize compressed data decoding process, using this mutually matched operating mode can gram Take the very low problem of big storage depth oscillograph decoding efficiency, additionally it is possible to reduce the demand to CPU running memory, and reduce dress The application cost set.
Detailed description of the invention
Fig. 1 is the flow chart of the decoding processing method of Wave data in the application;
Fig. 2 is the flow chart to form compressed data and form decoding data;
Fig. 3 is to format the flow chart shown with filtration treatment and data;
Fig. 4 is the structural schematic diagram of the decoding processing device of Wave data in the application;
Fig. 5 is the structural schematic diagram of digital oscilloscope in a kind of embodiment of the application;
Fig. 6 is the structural schematic diagram of digital oscilloscope in the application another kind embodiment;
Fig. 7 is the schematic illustration for carrying out digitized processing to Wave data according to a threshold level;
Two threshold levels carry out the schematic illustration of digitized processing to Wave data according to Fig. 8.
Specific embodiment
Below by specific embodiment combination attached drawing, invention is further described in detail.Wherein different embodiments Middle similar component uses associated similar element numbers.In the following embodiments, many datail descriptions be in order to The application is better understood.However, those skilled in the art can recognize without lifting an eyebrow, part of feature It is dispensed, or can be substituted by other elements, material, method in varied situations.In some cases, this Shen Please it is relevant it is some operation there is no in the description show or describe, this is the core in order to avoid the application by mistake More descriptions are flooded, and to those skilled in the art, these relevant operations, which are described in detail, not to be necessary, they Relevant operation can be completely understood according to the general technology knowledge of description and this field in specification.
It is formed respectively in addition, feature described in this description, operation or feature can combine in any suitable way Kind embodiment.Meanwhile each step in method description or movement can also can be aobvious and easy according to those skilled in the art institute The mode carry out sequence exchange or adjustment seen.Therefore, the various sequences in the description and the appended drawings are intended merely to clearly describe a certain A embodiment is not meant to be necessary sequence, and wherein some sequentially must comply with unless otherwise indicated.
It is herein component institute serialization number itself, such as " first ", " second " etc., is only used for distinguishing described object, Without any sequence or art-recognized meanings.And " connection ", " connection " described in the application, unless otherwise instructed, include directly and It is indirectly connected with (connection).
Embodiment one,
Referring to FIG. 1, the application discloses a kind of decoding processing method of Wave data, it mainly include step S100-S400, Illustrate separately below.
Step S100 obtains the Wave data of signal.
It should be noted that Wave data here refers to analog signal by ADC sampler part (i.e. analog-to-digital conversion Device) when the data that sample, show as the discrete signal continuously fluctuated in the time domain;Under normal conditions, ADC sampler part has There is higher sample frequency, the number of samples per second extracted from continuous signal and form discrete signal is also very big, can use number Font formula relatively accurately indicates the fluctuation situation in the time domain of continuous signal.
Step S200 carries out digitized processing to Wave data according to one or more threshold levels, obtains several groups electricity Flat data.
According to a threshold level to Wave data carry out digitized processing when, i.e., for a threshold level when, will Wave data is compared with the threshold level, utilizes the wave for being continuously less than the threshold level greater than the threshold level or continuously Graphic data forms one group of level data.Such as Fig. 7, the threshold level of a digital circuit is V1, then can use sampled point 100 form first group of level data to the Wave data between sampled point 200, and the value of each data point can in this group of level data It to be uniformly identified, is such as identified with digital " 0 ", the value for representing the corresponding Wave data of this group of level data is respectively less than V1;It is every in this group of level data using sampled point 200 to Wave data second group of level data of formation between sampled point 300 The value of a data point can be uniformly identified, and be such as identified with digital " 1 ", represented the corresponding waveform of this group of level data The value of data is all larger than V1.
According to multiple threshold levels to Wave data carry out digitized processing when, i.e., for multiple threshold levels when, will Wave data is compared respectively with those threshold levels, using continuously be greater than those threshold levels in maximum threshold level, Continuously waveform in the range of two adjacent thresholds level less than the smallest threshold level in those threshold levels or continuously Data form one group of level data.Such as Fig. 8, the threshold level of a digital circuit are V1, V2, and V1 > V2, then can benefit First group of level data, each data in this group of level data are formed with the Wave data between sampled point 100 to sampled point 250 The value of point can be uniformly identified, and such as digital " 1 " is identified, and the value for representing the corresponding Wave data of this group of level data is equal Greater than V1,;Second group of level data, this group of level data are formed using sampled point 250 to the Wave data between sampled point 300 In the value of each data point can uniformly be identified, such as digital " -1 " is identified, and represents the corresponding wave of this group of level data The value of graphic data is respectively less than V1 and is greater than V2;Third group electricity is formed using the Wave data between sampled point 300 to sampled point 450 Flat data, the value of each data point can be uniformly identified in this group of level data, and if digital " 0 " is identified, representing should The value of the corresponding Wave data of group level data is respectively less than V2.
In the present embodiment, threshold level refers to the level for enabling to circuit to be unwilling to do rotary movement in digital circuit. If the value of the corresponding Wave data of any one group of level data is greater than maximum threshold level, the electricity of this group of level data is set Level state is the level shape of the level data formed in high level, such as Fig. 8 according to the Wave data between sampled point 100-250 State is exactly high level;If the value of the corresponding Wave data of any one group of level data is less than the smallest threshold level, setting should The level state of group level data is the electricity formed in low level, such as Fig. 8 according to the Wave data between sampled point 300-450 The level state of flat data is exactly low level;If the value of the corresponding Wave data of any one group of level data is in two adjacent thresholds In the range of level, then the level state that this group of level data is arranged is in intermediate level, such as Fig. 8 according to sampled point 250- The level state for the level data that Wave data between 300 is formed is exactly high level.
Step S300 pre-processes each group of level data according to preset data compression rule, obtains compression number According to.Data compression rule is the level state and electricity that each group of level data is indicated with a binary array in the present embodiment Flat width.In one embodiment, see Fig. 2, step S300 may include step S310-S320, be respectively described below.
Step S310 indicates the electricity of this group of level data with high M in binary array for each group of level data Level state indicates the level width of this group of level data with low N in binary array.Wherein, the electricity of this group of level data Level state is high level, low level or intermediate level, and the level width of this group of level data is data point in this group of level data Number, the value of M+N is equal to the total bit of the binary array.
Step S320 forms compressed data using binary array.Specifically, M+N binary arrays can be turned Octal system, the decimal system or hexadecimal data are turned to, so as to form the compressed data of corresponding system, can so save pressure The memory space of contracting data, conducive to the storage depth for improving Wave data.
In the present embodiment, the total bit that binary array can be set is 32, and M, N are respectively 3,29;It is constituted with high M The first value indicate low level, with high M constitute second value indicate intermediate level, with high M composition third value indicate height Level;With 0 indicate N low in value bit in addition to the corresponding Binary Conversion result of level width.
Such as Fig. 8, for the one group of level data formed according to the Wave data between sampled point 100-250, Ke Yiyong 32 binary arrays are indicated.Setting binary array is made of " 29 3 high+low ", with the first of high 3 compositions Being worth (such as 0b000 or [000], " 0b " are binary meanings) indicates low level, the second value (such as 0b101) constituted with high 3 Intermediate level is constituted, the third value (such as 0b011) constituted with high 3 indicates high level.It is possible to set 0b000, 100 } level data that the Wave data in Fig. 8 between sampled point 0-100 is formed is indicated, wherein 0b000 indicates this group of level number According to being low level, 100 indicate that the level width of this group of level data is 100 data points;Can with set 0b011, 150 } level data that the Wave data in Fig. 8 between sampled point 100-150 is formed is indicated, wherein 0b011 indicates this group of level Data are high level, and 150 indicate that the level width of this group of level data is 150 data points;Can with set 0b101, 50 } level data that the Wave data in Fig. 8 between sampled point 250-300 is formed is indicated, wherein 0b101 indicates this group of level number According to being intermediate level, 50 indicate that the level width of this group of level data is 50 data points;Other groups of level data can be with It is indicated, is not discussed here using similar aggregate form.
Then, binary array is can be obtained into the binary system that the corresponding set of every group of level data is converted to 32.This In to be illustrated for set { 0b011,150 }, 150 corresponding binary systems are 0b1,001 0110, gather together enough low 29 0b0 0000 0,000 0,000 0,000 0,000 1,001 0110, being combined with high 3 0b011 can be obtained binary array 0b0110 0,000 0,000 0,000 0,000 0,000 1,001 0110, " 0b " here are binary meanings.In order to save number According to memory space, which can be converted, obtain the compressed data of Hexadecimal form, i.e., 0x60000096, " 0x " here are the hexadecimal meanings.It is possible to conveniently obtain according to set { 0b000,100 }, The compressed data that { 0b101,50 }, { 0b000,150 } are respectively obtained is 0x00000064,0xA0000032,0x00000096.
It should be noted that other level states can also be set as desired, time low electricity such as is indicated with 0b001 It puts down, time high level is indicated with 0b010, is indicated to maintain level with 0b100, indicate reserved expansion level with 0b110,0b111, so Enough numerical value can be reserved to meet the extending space of level state.
It should be noted that low 29 in binary array can cover 512M sampled point in total, can satisfy more Data compression demand under number occasion.
Step S400 is decoded processing to compressed data according to the corresponding decoding protocol of data compression rule, is solved Code data.Here decoding protocol can be common protocol when data decoding process in the art, such as dual threashold Be worth level MIL-STD-1553B agreement, for the IIC agreement of single threshold level, SPI protocol, UART protocol, CAN protocol, LIN agreement or IIS agreement, since decoding protocol belongs to the prior art, so being no longer described in detail here.It is specific real one It applies in example, sees Fig. 2, step S400 may include step S410-S420, be respectively described below.
Step S410, obtain high M in the corresponding binary array of compressed data with it is N low, according to N M high, low Level state, the level width of compressed data are determined respectively.
For example, binary array is 0b0,110 0,000 0,000 0,000 0000 for compressed data 0x60000096 0000 1001 0110.In decoding process, high 3 for extracting the binary array according to MIL-STD-1553B agreement are 0b011 thereby determines that the level state of the compressed data is high level;Low 29 for extracting the binary array are 0b0 0000 0000 0,000 0,000 0,000 1,001 0110, thereby determine that the level width of the compressed data is 150 data points.
Step S420 forms decoding data using the level state and level width of compressed data.
For example, level state is high level for compressed data 0x60000096, level width is 150 data points, Decoding data is so formed after decoder in the compressed data.It should be noted that being formed by decoding data and being mainly Signal transmits the data content of corresponding agreement, and followed by additional information is (such as frame number, frame initial time, a frame data content Starting and ending position etc.).Such as: signal is IIC data transfer signal, then corresponding threshold level is set, according to this technology Plan content compresses the Wave data that acquisition is formed to obtain compressed data, and compressed data is assisted by decoder completion according to IIC View decoding, can be obtained the decoding data of IIC protocol type.
In another embodiment, see Fig. 3, further include step (i.e. after obtaining decoding data) after step S400 S500 specifically includes step S510-S520.
Step S510, is formatted institute's decoding data and filtration treatment, to eliminate the number except screen indication range According to or filter the repeated data of the Overlapping display on same pixel point.Since formatting and filtration treatment are contemporary digital oscillographys Common data processing method in device, therefore no longer formatting and the process of filtration treatment are described in detail here.
Step S520 is shown to formatting with the data after filtration treatment.In one embodiment, Ke Yitong It crosses the form of data list and is shown with the data after filtration treatment to formatting, it can also be by way of waveform diagram pair Formatting is shown with the data after filtration treatment, is no longer specifically limited here.
Embodiment two,
Referring to FIG. 4, the application is in example 1 on the basis of the decoding processing method of disclosed Wave data, accordingly Ground also discloses a kind of decoding processing device 1 of Wave data, mainly includes acquiring unit 11, first processing units 12, second Processing unit 13 and third processing unit 14, illustrate separately below.
Acquiring unit 11 is used to obtain the Wave data of signal.Here Wave data refers to that analog signal is passing through ADC The data sampled when Sampling device (i.e. analog-digital converter), show as the discrete signal continuously fluctuated in the time domain.
First processing units 12 are connect with acquiring unit 11, for the waveform according to one or more threshold levels to acquisition Data carry out digitized processing, obtain several groups level data.Specifically, Wave data is being carried out according to a threshold level When digitized processing, i.e., for a threshold level when, first processing units 12 compare Wave data and the threshold level Compared with using continuously greater than the threshold level or continuously less than Wave data one group of level data of formation of the threshold level.In According to multiple threshold levels to Wave data carry out digitized processing when, i.e., for multiple threshold levels when, first processing units 12 are compared Wave data and those threshold levels respectively, and using being continuously greater than, maximum threshold value in those threshold levels is electric It is flat, be continuously less than in those threshold levels the smallest threshold level or continuously wave in the range of two adjacent thresholds level Graphic data forms one group of level data.Concrete function about first processing units 12 can be with the step in reference implementation example one S200 is not discussed here.
The second processing unit 13 is connect with first processing units 12, is used for according to preset data compression rule to each group Level data is pre-processed, and compressed data is obtained;Data compression rule is to indicate each group of level with a binary array The level state and level width of data.In one embodiment, for each group of level data, the second processing unit 13 is used The level state of this group of level data of high M expressions in binary array, indicates group electricity with low N in binary array The level width of flat data;Compressed data is formed using the binary array;Wherein, the level state of this group of level data is height Level, low level or intermediate level, the level width of this group of level data are the number of data point in this group of level data, M+N Value be equal to the binary array total bit.Concrete function about the second processing unit 13 can be in reference implementation example one Step S300, is not discussed here.
Third processing unit 14 is connect with the second processing unit 13, for according to the corresponding decoding protocol of data compression rule Processing is decoded to compressed data, obtains decoding data.In one embodiment, third processing unit 14 obtains compression number It is according to high M in corresponding binary array and N low, according to M high, low N respectively the level state of determining compressed data, Level width;And decoding data is formed using the level state and level width of compressed data.About third processing unit 14 Concrete function can be not discussed here with the step S400 in reference implementation example one.
Further, see Fig. 4, the decoding processing device 1 in the present embodiment can also include connecting with third processing unit 14 The display unit 15 connect, which is used to be formatted decoding data and filtration treatment, is shown with eliminating screen Data except range or the repeated data for filtering the Overlapping display on same pixel point;And for formatting and filtering Data after processing are shown.It in one embodiment, can be by way of data list to formatting and filtering Data after processing are shown, can also be carried out by way of waveform diagram to formatting and the data after filtration treatment It has been shown that, is no longer specifically limited here.Concrete function about display unit 15 can be with the step in reference implementation example one S500 is not discussed here.
In the present embodiment, acquiring unit 11, first processing units 12, the second processing unit 13, third processing unit 14 It can be the functional module integrated on fpga logic device with display unit, be also possible to the function mould executed on CPU processor Block is not specifically limited.
For the decoding process efficiency for improving Wave data, the processing used time of decoding processing device 1 is reduced, it can be using one kind Preferably hardware combinations mode constructs decoding processing device 1.For example, realizing acquiring unit by a fpga logic device 11 and first processing units 12 function, the second processing unit 13, third processing unit 14 are realized by a CPU processor With the function of display unit 15, so that fpga logic device and CPU processor are cooperated, the former mainly undertakes Wave data Digitized processing and the work of the compression processing of level data, the latter mainly undertake the decoding process and solution yardage of compressed data According to formatting and filtration treatment work, so can reduce data in each processing links used time amount, improve waveform number According to decoding process efficiency.
Embodiment three,
Referring to FIG. 5, the application is in example 2 on the basis of the decoding processing device of disclosed Wave data, it is open A kind of digital oscilloscope 2, mainly includes sampling apparatus 21 and decoding processing device 22, illustrates separately below.
Sampling apparatus 21 is used to carry out continuous sampling to a signal, to form the Wave data of signal.Sampling apparatus 21 can To be ADC sampler part (i.e. analog-digital converter), should sample frequency with higher so that per second extract from continuous signal And the number of samples for forming discrete signal is more, can relatively accurately be indicated with digital form continuous signal in the time domain Fluctuate situation.
The structure and function of decoding processing device 22 can be with the decoding processing device in reference implementation example two in the present embodiment 1.Acquiring unit 11 is connect with sampling apparatus 21, and acquiring unit 11 is used to obtain the Wave data of signal from sampling apparatus 21.
Further, see that Fig. 5, digital oscilloscope 2 further include the display screen 23 connecting with decoding processing device 22, the display Screen 23 can be cooperated with display unit 15 in decoding processing device 22, the data that display unit 15 exports be received, with data The form of list or waveform diagram shows formatting with the data after filtration treatment, so that user checks.
In another embodiment, see Fig. 6, digital oscilloscope 2 may include memory 201 and processor 202, wherein Memory 201 is for storing program;Processor 202 is used for the program by executing the storage of memory 201 to realize decoding process The function that the function that device 22 is realized, i.e. step S100-S500 are realized.
It will be understood by those skilled in the art that all or part of function of various methods can pass through in above embodiment The mode of hardware is realized, can also be realized by way of computer program.When function all or part of in above embodiment When being realized by way of computer program, which be can be stored in a computer readable storage medium, and storage medium can To include: read-only memory, random access memory, disk, CD, hard disk etc., it is above-mentioned to realize which is executed by computer Function.For example, program is stored in the memory of equipment, when executing program in memory by processor, can be realized State all or part of function.In addition, when function all or part of in above embodiment is realized by way of computer program When, which also can store in storage mediums such as server, another computer, disk, CD, flash disk or mobile hard disks In, through downloading or copying and saving into the memory of local device, or version updating is carried out to the system of local device, when logical When crossing the program in processor execution memory, all or part of function in above embodiment can be realized.
Use above specific case is illustrated the present invention, is merely used to help understand the present invention, not to limit The system present invention.For those skilled in the art, according to the thought of the present invention, can also make several simple It deduces, deform or replaces.

Claims (9)

1. a kind of decoding processing method of Wave data, which comprises the following steps:
Obtain the Wave data of signal;
Digitized processing is carried out to the Wave data according to one or more threshold levels, obtains several groups level data;
Each group of level data is pre-processed according to preset data compression rule, obtains compressed data;The data pressure Contraction ga(u)ge is then the level state and level width that each group of level data is indicated with a binary array;Obtain the compression number According to process include: that the electricity of this group of level data is indicated with high M in the binary array for each group of level data Level state indicates the level width of this group of level data with low N in the binary array, and utilizes the binary system Array forms the compressed data;Wherein, the level state of this group of level data is high level, low level or intermediate level, is somebody's turn to do The level width of group level data is the number of data point in this group of level data, and the value of M+N is equal to the binary array Total bit;
Processing is decoded to the compressed data according to the data compression rule corresponding decoding protocol, obtains solution yardage According to.
2. decoding processing method as described in claim 1, which is characterized in that it is described according to one or more threshold levels to institute It states Wave data and carries out digitized processing, obtain several groups level data, comprising:
For a threshold level, the Wave data is compared with the threshold level, it is electric using the threshold value is continuously greater than Wave data that is flat or being continuously less than the threshold level forms one group of level data;
For multiple threshold levels, the Wave data and those threshold levels are compared respectively, it should using being continuously greater than Maximum threshold level in a little threshold levels is continuously less than in those threshold levels the smallest threshold level or continuously at two Wave data in the range of adjacent thresholds level forms one group of level data.
3. decoding processing method as claimed in claim 2 characterized by comprising
If the value of the corresponding Wave data of any one group of level data is greater than maximum threshold level, this group of level data is set Level state be high level;
If the value of the corresponding Wave data of any one group of level data is less than the smallest threshold level, this group of level data is set Level state be low level;
If the group is arranged in the range of two adjacent thresholds level in the value of the corresponding Wave data of any one group of level data The level state of level data is intermediate level.
4. decoding processing method as claimed in any one of claims 1-3 characterized by comprising
The total bit of the binary array is 32, and M, N are respectively 3,29;The first value constituted with high M indicates low level, uses The second value of high M composition indicates intermediate level, and the third value constituted with high M indicates high level;With 0 indicate N low in remove Value bit except the corresponding Binary Conversion result of level width.
5. decoding processing method as claimed in claim 4, which is characterized in that described corresponding according to the data compression rule Decoding protocol is decoded processing to the compressed data, obtains decoding data, comprising:
High M in the corresponding binary array of the compressed data and N low are obtained, is determined respectively according to M high, low N Level state, the level width of the compressed data;Decoding is formed using the level state and level width of the compressed data Data.
6. decoding processing method as claimed in claim 5, which is characterized in that after obtaining the decoding data, further includes:
The decoding data is formatted and filtration treatment, to eliminate the data except screen indication range or filter The repeated data of Overlapping display on same pixel point;
It is shown to formatting with the data after filtration treatment.
7. a kind of decoding processing device of Wave data characterized by comprising
Acquiring unit, for obtaining the Wave data of signal;
First processing units are obtained for carrying out digitized processing to the Wave data according to one or more threshold levels Several groups level data;
The second processing unit is pressed for pre-processing according to preset data compression rule to each group of level data Contracting data;The data compression rule is to indicate that the level state of each group of level data and level are wide with a binary array Degree;The process that described the second processing unit obtains the compressed data includes: for each group of level data, with the binary system The level state of this group of level data of high M expressions in array, indicates this group of level with low N in the binary array The level width of data, and the compressed data is formed using the binary array;Wherein, the level of this group of level data State is high level, low level or intermediate level, and the level width of this group of level data is data point in this group of level data Number, the value of M+N are equal to the total bit of the binary array;
Third processing unit, for being decoded according to the corresponding decoding protocol of the data compression rule to the compressed data Processing, obtains decoding data.
8. a kind of digital oscilloscope characterized by comprising
Sampling apparatus, for carrying out continuous sampling to a signal, to form the Wave data of the signal;
Decoding processing device as claimed in claim 7, the acquiring unit are connect with the sampling apparatus, the acquiring unit For obtaining the Wave data from the sampling apparatus.
9. a kind of computer readable storage medium, which is characterized in that including program, described program can be executed by processor with reality Now such as decoding processing method of any of claims 1-6.
CN201910811513.3A 2019-08-30 2019-08-30 Decoding processing method and decoding processing device, the digital oscilloscope of Wave data Active CN110320394B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910811513.3A CN110320394B (en) 2019-08-30 2019-08-30 Decoding processing method and decoding processing device, the digital oscilloscope of Wave data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910811513.3A CN110320394B (en) 2019-08-30 2019-08-30 Decoding processing method and decoding processing device, the digital oscilloscope of Wave data

Publications (2)

Publication Number Publication Date
CN110320394A CN110320394A (en) 2019-10-11
CN110320394B true CN110320394B (en) 2019-11-26

Family

ID=68126393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910811513.3A Active CN110320394B (en) 2019-08-30 2019-08-30 Decoding processing method and decoding processing device, the digital oscilloscope of Wave data

Country Status (1)

Country Link
CN (1) CN110320394B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111245435B (en) * 2020-01-15 2023-07-14 深圳君略科技有限公司 Signal decoding system and decoding method thereof
CN113268244A (en) * 2021-05-13 2021-08-17 际络科技(上海)有限公司 Script generation method and device of automatic driving scene library and electronic equipment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5070086B2 (en) * 2008-02-29 2012-11-07 キヤノン電子株式会社 Data compression apparatus and image reading apparatus
CN101807926B (en) * 2010-01-21 2013-01-23 上海电力学院 Compressing and encoding method of low energy consumption SOC (System On a Chip) test data
CN101807924A (en) * 2010-03-17 2010-08-18 黄斐芝 Method for carrying out lossless coding compression on binary data
EP2882099A1 (en) * 2013-12-03 2015-06-10 Freescale Semiconductor, Inc. Multiple-state, switch-mode power amplifier systems and methods of their operation
CN103746702B (en) * 2013-12-17 2017-01-11 记忆科技(深圳)有限公司 Lossless data compression method and lossless data compression device
CN104868922B (en) * 2014-02-24 2018-05-29 华为技术有限公司 Data compression method and apparatus
CN108254606B (en) * 2016-12-28 2022-02-08 北京普源精电科技有限公司 Decoding data processing method and device and oscilloscope
CN108872667B (en) * 2017-05-12 2022-02-11 北京普源精电科技有限公司 Digital oscilloscope with high-precision waveform analysis function
CN107610445B (en) * 2017-10-12 2020-05-05 长沙蒲公英智能科技有限公司 Infrared self-learning data coding method and circuit thereof
CN109981106B (en) * 2018-11-15 2023-01-24 湖南工业大学 Multi-interval voltage comparison method

Also Published As

Publication number Publication date
CN110320394A (en) 2019-10-11

Similar Documents

Publication Publication Date Title
CN110320394B (en) Decoding processing method and decoding processing device, the digital oscilloscope of Wave data
CN101571906B (en) Decoder and decoding method of RFID receiver
CN108616280B (en) Compression method for real-time acquired data of unsteady-state data
CN102355382A (en) Method for analyzing and triggering controller area network (CAN) bus
CN104410419B (en) Analog-digital converter with digital programmable gating window
CN105703885B (en) Analysis method and device based on Manchester code
CN103023511A (en) Applied compressed encoding method and device
CN104168085A (en) Data compression method based on redundant entropy conversion
CN102790621B (en) Infrared data processing storage method and infrared remote-control unit
CN105187070A (en) Manchester encoding signal decoding method and device
CN103634006A (en) Rapid mixed sampling method for ultra wide band signal
CN104753626B (en) A kind of data compression method, equipment and system
WO2016157275A1 (en) Computer and graph data generation method
CN103176014B (en) A kind of Wave data decoding apparatus and oscillograph
CN103869127A (en) Digital oscilloscope with track display function
CN104769848A (en) Digital analog converter
CN103617408B (en) A kind of coding/decoding method being applied to magnetic stripe card decoding circuit
CN109299132B (en) SQL data processing method and system and electronic equipment
CN103795428B (en) Decoder in radio frequency identification data communication
CN103532552A (en) Slope analog-digital converter for random sampling
CN106656201A (en) Compression algorithm based on amplitude-frequency characteristics of sampled data
CN102298782B (en) System and method for parameter estimation for lossless video compression
CN110032432A (en) The decompressing method and device of the compression method and device of example, example
CN109194667A (en) The device of realization I/Q data signal data compression and transfer function based on frequency domain detection
CN203708233U (en) Novel decoder in radio frequency identification data communication

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
CP01 Change in the name or title of a patent holder

Address after: 518000 Guangdong Province, Baoan District, Baoan District, Xin'an Street, Xingdong Community, 68 District, Antongda Industrial Factory Area, 4 factories, 3 floors, 5 office buildings, 1-3 floors

Patentee after: Shenzhen dingyang Technology Co., Ltd

Address before: 518000 Guangdong Province, Baoan District, Baoan District, Xin'an Street, Xingdong Community, 68 District, Antongda Industrial Factory Area, 4 factories, 3 floors, 5 office buildings, 1-3 floors

Patentee before: Shenzhen Siglent Technologies Co., Ltd.

CP01 Change in the name or title of a patent holder