A waveform compression method, waveform compression device and waveform display device

By determining and displaying the data with the highest priority according to the preset priority conversion and comparison mechanism during the waveform compression process, the problem of data loss and disconnection in waveform compression is solved, and complete waveform display under different compression ratios is achieved.

CN118521465BActive Publication Date: 2024-10-18SHENZHEN CITY SIGLENT TECH
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410985022.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-10-18
Estimated Expiration
2044-07-23

AI Technical Summary

Technical Problem

The existing technology has problems of data loss and waveform disconnection during the waveform compression process. Especially when the compression ratio is greater than (N+1):1, some of the most suitable data may be lost in the entire line, resulting in the waveform part on the display. disconnect.

Method used

By obtaining the initial data of the waveform to be displayed, priority conversion is performed according to the preset priority order, the second display data is generated, and the data is compared according to the priority of the data type in the compression domain to determine the data with the highest priority as the display data. Compare and update the data in the cache area to generate third display data suitable for display.

Benefits of technology

It ensures that the most suitable data can be fully displayed during the compression process, avoids data loss and waveform disconnection, and adapts to the display needs of different compression ratios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118521465B_ABST
    Figure CN118521465B_ABST
Patent Text Reader

Abstract

A waveform compression method, a waveform compression device and a waveform display device, which relate to the field of measurement. The method comprises: obtaining first display data corresponding to at least one pixel point in an initial display area on a display screen of a waveform to be displayed, wherein the first display data comprises a data type; performing priority conversion on the data type of the first display data according to a preset priority order, and generating second display data corresponding to the first display data one by one; based on a set compression ratio, at least comparing the second display data in the same compression domain, determining the second display data with the highest priority in the compression domain, and using the second display data with the highest priority in each compression domain as the third display data for display in a reduced display area, so that the most suitable third display data can be fully displayed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of measurement, and in particular to a waveform compression method, a waveform compression device and a waveform display device. Background Art

[0002] In some acquisition systems, the acquired data needs to be mapped into waveforms and finally displayed on the screen, but the area where the waveform is displayed is not fixed. Figure 1 and Figure 2 As shown, Figure 1 It is the default display interface style of an oscilloscope. Figure 2 It is a common interface style after opening some pop-up areas. Figure 1 to Figure 2 , the waveform display area has been compressed in both vertical and horizontal directions, so the waveform displayed therein also needs to be compressed accordingly.

[0003] Taking the case where the data in the waveform display area is input row by row and the processing module performs vertical compression as an example, in order to retain the original data obtained by sampling as much as possible, the simplest processing method is to superimpose the rows that are not displayed due to compression on the next displayed row for display, but this method is only applicable to the case of a single waveform. In order to cope with more complex situations such as multiple different waveforms, an existing method is to cache N rows of data during the processing process. During compression, some rows will not be displayed, and in the displayed rows, the data of the row itself is compared with the cached data of the nearest N rows, and the most suitable data for display is selected from the N+1 rows. However, in this process, the cache resources that can store N rows of data are always consumed, and when the compression ratio is greater than (N+1):1, some of the most suitable data may be lost by the entire row, and the waveform may be partially disconnected on the display. Summary of the invention

[0004] The main technical problem solved by the present application is to provide a waveform compression method and a corresponding waveform compression device which can fully display the most suitable data after compressing the waveform.

[0005] According to the first aspect, an embodiment provides a waveform compression method, comprising:

[0006] Acquire first display data of the waveform to be displayed corresponding to at least one pixel point in the initial display area on the display screen, wherein the first display data includes a data type;

[0007] Performing priority conversion on the data type of the first display data according to a preset priority order, and generating second display data corresponding to the first display data one by one;

[0008] Based on the set compression ratio, the second display data in the same compression domain are compared at least according to the priority of the data type to determine the second display data with the highest priority in the compression domain, and the second display data with the highest priority in each compression domain is used as the third display data for display in the reduced display area; the compression domain refers to the area within the initial display area corresponding to the same position of the reduced display area.

[0009] In one embodiment, based on a set compression ratio, second display data in the same compression domain are compared at least according to the priority of the data type, the second display data with the highest priority in the compression domain is determined, and the second display data with the highest priority in each compression domain is used as the third display data for display in the reduced display area, including:

[0010] Compare the second display data with the cached data at the same position in the cache area one by one, determine the second display data with a higher current priority as the current comparison result, and the data cached in the cache area is the data with the lowest priority or the second display data with a higher priority after the previous comparison at the same position;

[0011] Based on the set compression ratio, obtaining enabling information of whether to display the second display data currently being compared in a reduced display area on the display screen;

[0012] The third display data is generated according to the enable information and the current comparison result.

[0013] In one embodiment, generating the third display data according to the enabling information and the current comparison result includes:

[0014] When the enabling information is valid, the second display data with a higher current priority is output as the third display data, and the cache data at the same position in the cache area is updated to the data with the lowest priority;

[0015] When the enabling information is invalid, no data is output, and the cached data at the same position of the cache area is updated to the second display data with a higher current priority.

[0016] In one embodiment, before generating the third display data according to the enabling information and the current comparison result, the waveform compression method further includes:

[0017] The enabling information is delayed so that the enabling information is synchronized with the output of the second display data having a higher current priority.

[0018] In one embodiment, the compression domain refers to a set number of rows in the initial display area corresponding to the same row of the reduced display area, and when the second display data is compared with the cache data at the same position in the cache area one by one, the second display data of each row is compared with the cache data at the same position in the cache area;

[0019] or,

[0020] The compression domain refers to a set number of columns in the initial display area corresponding to the same column of the reduced display area. When the second display data is compared with the cached data at the same position in the cache area one by one, the second display area of ​​each column is compared with the cached data at the same position in the cache area.

[0021] In one embodiment, the first display data further includes intensity value information, the intensity value information includes pixel brightness information, and the waveform compression method further includes:

[0022] Obtaining a data type bit corresponding to the data type and an intensity value bit corresponding to the pixel brightness information in the second display data;

[0023] The priority of the data type bit is set higher than the priority of the intensity value bit according to a preset priority order to generate the second display data.

[0024] In one embodiment, the data type bits include a persistence data bit and a data source channel bit;

[0025] In the data type bit, the priority of the persistence data bit of the data type bit is set higher than the priority of the data source channel bit according to a preset priority order;

[0026] On the persistence data bits, the priority of setting the non-persistence data bits is higher than the priority of the persistence data bits;

[0027] At the data source channel position, the priority of the data source channel is set in descending order according to the time sequence from near to far when the data source channel is selected.

[0028] In one embodiment, the intensity value information also includes special display information, the special display information represents a background color or a non-background color, and the priority of the intensity value bit of the intensity value information representing the special display information as a non-background color is set higher than the priority of the intensity value bit of the intensity value information representing the special display information as a background color.

[0029] According to the second aspect, an embodiment provides a waveform compression device, comprising:

[0030] a data sorting module, which obtains first display data of the waveform to be displayed corresponding to at least one pixel point in the initial display area on the display screen, performs priority conversion on the data type of the first display data and according to a preset priority order, and generates second display data corresponding to the first display data one by one; the first display data includes a data type;

[0031] The compression processing module is connected to the data sorting module. The compression processing module compares the second display data in the same compression domain based on the set compression ratio at least according to the priority of the data type, and determines the second display data with the highest priority in the compression domain; and uses the second display data with the highest priority in each compression domain as the third display data for display in the reduced display area; the compression domain refers to the area within the initial display area corresponding to the same position of the reduced display area.

[0032] In one embodiment, the compression processing module includes a comparator, a data selector and a cache module;

[0033] The comparator compares the second display data with the cache data at the same position in the cache module one by one, and determines the second display data with a higher current priority as the current comparison result, and the data cached by the cache module is the data with the lowest priority or the second display data with a higher priority after the previous comparison at the same position;

[0034] The data selector obtains the enabling information of whether to display the second display data currently being compared in the reduced display area on the display screen based on the set compression ratio; and generates the third display data according to the enabling information and the current comparison result.

[0035] In one embodiment, when the enabling information is valid, the data selector outputs the second display data with a higher current priority as the third display data, and updates the cache data at the same position in the cache module to the data with the lowest priority;

[0036] When the enabling information is invalid, the data selector does not output data, and updates the cache data at the same position in the cache module to the second display data with a higher current priority.

[0037] In one embodiment, the waveform compression device further includes a delay module;

[0038] The delay module delays the enabling information so that the enabling information is synchronized with the output of the second display data having a higher current priority.

[0039] In one embodiment, in the data selector, the compression domain refers to a set number of rows in the initial display area corresponding to the same row of the reduced display area, and the comparator compares the second display data of each row with the cache data at the same position in the cache module;

[0040] or,

[0041] In the data selector, the compression domain refers to a set number of columns in the initial display area corresponding to the same column of the reduced display area, and the comparator compares the second display data of each column with the cache data at the same position in the cache module.

[0042] In one embodiment, the first display data also includes intensity value information, the intensity value information includes pixel brightness information, the data sorting module obtains the data type bit corresponding to the data type and the intensity value bit corresponding to the pixel brightness information in the second display data, and sets the priority of the data type bit higher than the priority of the intensity value bit according to a preset priority order to generate the second display data.

[0043] In one embodiment, the data type bits include persistence data bits and data source channel bits; the data sorting module sets the priority of the persistence data bits of the data type bits higher than the priority of the data source channel bits in the data type bits according to a preset priority order; the data sorting module sets the priority of non-persistence data bits higher than the priority of the persistence data bits in the persistence data bits; the data sorting module sets the priority of the data source channels in the data source channel bits in a step-by-step manner according to the time sequence from near to far when the data source channels are selected.

[0044] In one embodiment, the intensity value information also includes special display information, and the special display information represents a background color or a non-background color; the data sorting module sets the priority of the intensity value bit of the intensity value information of the special display information representing a non-background color to be higher than the priority of the intensity value bit of the intensity value information of the special display information representing a background color.

[0045] According to a third aspect, an embodiment provides a waveform display device, comprising:

[0046] A data acquisition module is used to collect data input into each channel;

[0047] A data processing module, used for processing the collected data of each channel to generate first display data corresponding to at least one pixel point in the initial display area on the display screen;

[0048] A waveform compression device, which may be a waveform compression device in any one of the above embodiments;

[0049] The display module is used to display the first display data and / or display the third display data obtained by compressing the first display data.

[0050] According to the waveform compression method, waveform compression device and waveform display device of the above embodiment, the first display data of the waveform to be displayed is converted in priority according to the preset priority order, that is, the first display data is adjusted according to the data format that needs to be displayed first set by humans, so that the determined second display data becomes display data suitable for display before compression. Then, according to the set compression ratio, the second display data in the same compression domain are compared, wherein at least the priority of the data type in the second display data is compared, so as to determine the second display data with the highest priority in the compression domain, and the second display data is used as the third display data for display after compression. On the basis of the second display data that is already suitable for display, the third display data is compared again, and then the third display data is the most suitable display data for display under the compression ratio. The most suitable and complete waveform diagram can be obtained by displaying the third display data of each row or column after compression, and the compression ratio can be manually set as needed. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 The default display interface style diagram of the oscilloscope in the background technology;

[0052] Figure 2 It is the interface style diagram after the pop-up area in the background technology;

[0053] Figure 3 A schematic diagram of the structure of a waveform display device according to an embodiment;

[0054] Figure 4 A schematic diagram of the structure of a waveform compression device in an embodiment;

[0055] Figure 5 A data bit setting diagram of second display data in an embodiment;

[0056] Figure 6 A schematic diagram of the structure of a compression processing module of a waveform compression device in an embodiment;

[0057] Figure 7 A diagram showing the relationship between the number of addresses in a cache module and the input mode and compression direction of data in one embodiment;

[0058] Figure 8 is a general flow chart of a waveform compression method in another embodiment;

[0059] Fig. 9 is a flow chart of step S200 in the waveform compression method in another embodiment;

[0060] Fig.10 FIG. 4 is a flow chart of step S300 in the waveform compression method in another embodiment. DETAILED DESCRIPTION

[0061] The present application is further described in detail below by specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments adopt associated similar element numbers. In the following embodiments, many detailed descriptions are intended to enable the present application to be better understood. However, those skilled in the art can easily recognize that some of the features can be omitted in different situations, or can be replaced by other elements, materials, and methods. In some cases, some operations related to the present application are not shown or described in the specification, in order to avoid the core part of the present application being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations based on the description in the specification and the general technical knowledge in the art.

[0062] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various implementations. At the same time, the steps or actions in the method description can also be interchanged or adjusted in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a required sequence, unless otherwise specified that a certain sequence must be followed.

[0063] The serial numbers assigned to the components in this article, such as "first", "second", etc., are only used to distinguish the objects described and do not have any order or technical meaning.

[0064] The present application provides a waveform compression method, a waveform compression device and a waveform display device, which adjust the priority of the display data most suitable for display to the highest level according to a preset priority. In this way, no matter what the compression ratio is, the display data most suitable for display will definitely be displayed, and in the entire compression and display process, the resources consumed are minimal, which is explained in detail below.

[0065] Please refer to Figure 3 In one embodiment, the present application provides a waveform display device, including an acquisition module 1, a data processing module 2, a waveform compression device 3 and a display module 4.

[0066] In one embodiment, the data acquisition module 1 is used to acquire data input into each channel.

[0067] In one embodiment, the data processing module 2 is used to process the collected data of each channel to generate first display data corresponding to at least one pixel point in the initial display area on the display screen.

[0068] In one embodiment, the waveform compression device 3 is used to convert and compress the first display data to generate third display data.

[0069] In one embodiment, the waveform compression device 3 is also connected to the display module 4, and the first display data is sent to the display module for display after being processed in the waveform compression device 3. Therefore, the display module 4 is used to display the first display data and / or display the third display data after compressing the first display data.

[0070] Please refer to Figure 4 In one embodiment, the present application also provides a waveform compression device 3, which includes a data sorting module 100, a compression processing module 200 and a delay module 300.

[0071] In one embodiment, the data sorting module 100 obtains first display data of a waveform to be displayed corresponding to at least one pixel point in an initial display area on a display screen, and the data sorting module 100 performs priority conversion on the data type and intensity value information of the first display data according to a preset priority order, and generates second display data that corresponds one-to-one to the first display data.

[0072] In one embodiment, when the waveform to be displayed is displayed, it is displayed in the form of pixels. When the waveform needs to be displayed on the display screen, the first display data of the waveform to be displayed will correspond to at least one pixel in the original display area before compression on the display screen. Since the first display data is for waveform display, the first display data includes the data type and intensity value information of the corresponding pixel.

[0073] In one embodiment, a data type bit corresponding to the data type is set in the second display data, and an intensity value bit corresponding to the pixel brightness information in the intensity value information is also set in the second display data. In the second display data, the data sorting module 100 sets the priority of the data type bit higher than the priority of the intensity value bit according to the preset priority order. Among them, the preset priority order is related to the data type and the intensity value information, and is related to the persistence data and the data source channel in the data type. If the preset priority order is different, the priority order of the data type bit and the intensity value bit is also different, which can be adjusted according to user needs.

[0074] In one embodiment, the data type bit includes a persistence data bit and a data source channel bit, the persistence data bit is used to indicate whether the second display data is persistence data, and the data source channel bit is used to indicate which of the multiple channels the second display data comes from.

[0075] In one embodiment, in the data type bit of the second display data, the data sorting module 100 sets the priority of the persistence data of the data type bit higher than the priority of the data source channel bit according to the preset priority order. In the persistence data bit of the second display data, the data sorting module 100 sets the priority of the non-persistence data higher than the priority of the persistence data. In the data source channel bit of the second display data, the data sorting module 100 sets the priority of the data source channel to decrease step by step according to the time sequence from near to far when the data source channel is selected.

[0076] In one embodiment, in addition to the pixel brightness information used to determine the display of the waveform brightness, the intensity value information also includes special display information, which includes background color and non-background color. The non-background color includes templates, tested channel pressure templates, and other channel pressure templates. Among them, the template refers to a preset waveform display setting or layout style, the tested channel pressure template refers to the template of the data source channel currently being tested, and the other channel pressure template refers to the template of other data source channels other than the data source channel currently being tested. At the intensity value position of the second display data, the data sorting module 100 sets the priority of the non-background color to be higher than the priority of the background color. Moreover, at the intensity value position of the non-background color, the data sorting module 100 reserves a set number of digits for special display, which starts with the maximum value of the priority of the intensity value position and decreases successively until the required set number is reached.

[0077] In one embodiment, please refer to Figure 5 In this application, three data bits are used to represent the data type bit, and six data bits are used to represent the intensity value bit. Then, according to the preset priority order, the three data type bits are placed in the high position, and the six intensity value bits are placed in the low position. In the data type bit, one data bit is used to represent the afterglow data bit, and two data bits are used to represent the data source channel bit. Then, according to the preset priority order, the afterglow data bit is placed in the high position, and the data source channel bit is placed in the low position.

[0078] In one embodiment, if "1" represents the highest priority and "0" represents the lowest priority in binary, then in the afterglow data bit, 1 represents non-afterglow data and 0 represents afterglow data; in the data source channel bit, 11 represents the currently selected data source channel, then the last selected data source channel is 10, and the last selected data source channel is 01, and the priority decreases step by step, and the data also decreases step by step, so the earliest selected data source channel is 00. Since there are only four data source channels provided in this application, two data bits are used to represent the data source channel bit. If the number of data source channels is not limited to 4, the number of data bits used to represent the data source channel bit can be determined based on the corresponding relationship between the number of data source channels and binary. In this way, after the priority assignment has been completed as described above, the non-afterglow data of the currently selected data source channel has the highest priority value, so that it can be displayed when performing subsequent data comparisons.

[0079] Since the first display data corresponds to the pixel points, the intensity value information in the first display data is fixed, and therefore the intensity value information in the second display data is also fixed. It can be obtained that the 0 and 1 assigned to the intensity value bit in the second display data are fixed, but in order to meet the special display required by the user, the present application reserves a set number of digits on the intensity value bit for special display.

[0080] Taking the six-bit intensity value as an example, the range represented by the six-bit intensity value in binary is 0-63, which can represent background color and non-background color respectively, where non-background color includes template, tested channel pressure template and other channel pressure templates. If it is necessary to give priority to displaying the template, tested channel pressure template and other channel pressure templates in the three digits of intensity value, the assignment of the template in the intensity value bit can be adjusted to 63, the assignment of the tested channel pressure template in the intensity value bit can be adjusted to 62, and the assignment of other channel pressure templates in the intensity value bit can be adjusted to 61. The assignment of other information represented by the intensity value bit remains unchanged. At this time, in the intensity value bit, the template is the maximum value, that is, the highest priority, and the tested channel pressure template and other channel pressure templates are gradually reduced in data and priority.

[0081] For the background color, those skilled in the art expect the background color to be the bottom layer, so both the data type bit and the intensity value bit are assigned a value of 0, so that the background color can maintain the lowest priority.

[0082] In one embodiment, if "0" represents the highest priority and "1" represents the lowest priority in binary, then in the afterglow data bit, 0 represents non-afterglow data and 1 represents afterglow data; in the data source channel bit, 00 represents the currently selected data source channel, then the last selected data source channel is 01, and the last selected data source channel is 10, and the priority decreases step by step, and the data increases step by step, so the earliest selected data source channel is 11. Since there are only four data source channels provided in this application, two data bits are used to represent the data source channel bit. If the number of data source channels is not limited to 4, the number of data bits used to represent the data source channel bit can be determined based on the corresponding relationship between the number of data source channels and binary. In this way, after the priority assignment has been completed as described above, the non-afterglow data of the currently selected data source channel has the highest priority value, so that it can be displayed when performing subsequent data comparisons.

[0083] Since the first display data corresponds to the pixel points, the intensity value information in the first display data is fixed, and therefore the intensity value information in the second display data is also fixed. It can be obtained that the 0 and 1 assigned to the intensity value bit in the second display data are fixed, but in order to meet the special display required by the user, the present application reserves a set number of digits on the intensity value bit for special display.

[0084] Taking the six-bit intensity value as an example, the range represented by the six-bit intensity value in binary is 0-63, which can represent background color and non-background color respectively, where non-background color includes template, tested channel pressure template and other channel pressure templates. If it is necessary to give priority to displaying the template, tested channel pressure template and other channel pressure templates in the three digits of intensity value, the assignment of the template in the intensity value bit can be adjusted to 00, the assignment of the tested channel pressure template in the intensity value bit can be adjusted to 01, and the assignment of other channel pressure templates in the intensity value bit can be adjusted to 02. The assignment of other information represented by the intensity value bit remains unchanged. At this time, in the intensity value bit, the template is the minimum value, that is, the highest priority, and the tested channel pressure template and other channel pressure templates increase in data and decrease in priority.

[0085] For the background color, those skilled in the art expect the background color to be the bottom layer, so both the data type bit and the intensity value bit are assigned a value of 1, so that the background color can maintain the lowest priority.

[0086] In one embodiment, the compression processing module 200 is connected to the data sorting module 100. The compression processing module 200 compares the second display data in the same compression domain based on the set compression ratio, determines the second display data with the highest priority in the compression domain, and uses the second display data with the highest priority in each compression domain as the third display data for display in the reduced display area. The compression domain refers to the area in the initial display area corresponding to the same position of the reduced display area. For example, when the compression method is row compression and the compression ratio is 2:1, the compression domain is the first and second rows in the initial display area, and the second display data in the first and second rows are compared to determine the second display data with the highest priority in the compression domain. Similarly, when the compression method is row compression and the compression ratio is 2:1, the compression domain is also the third and fourth rows in the initial display area, or the compression domain is also the fifth and sixth rows in the initial display area, etc. Different compression methods and different compression ratios will result in different corresponding compression domains.

[0087] Please refer to Figure 6 In one embodiment, the compression processing module 200 includes a comparator 210 , a data selector 220 and a cache module 230 .

[0088] In one embodiment, the first input end of the comparator 210 is connected to the data sorting module 100 to obtain the second display data, the second end of the comparator 210 is connected to the first output end of the buffer module 230, and the output end of the comparator 210 is connected to the second input end of the data selector 220. The comparator 210 compares the second display data in the same compression domain based on the set compression ratio to determine the second display data with the highest priority in the compression domain.

[0089] In one embodiment, the comparator 210 can compare the data types in the second display data with the priorities of the data types corresponding to the cache data at the same position in the cache module 230 one by one, determine the second display data corresponding to the data type with the highest priority as the current comparison result, and send the current comparison result to the data selector 220.

[0090] In one embodiment, the comparator 210 can also directly compare the second display data with the cache data at the same position in the cache module 230 one by one, determine the second display data with the highest current priority as the current comparison result, and send the current comparison result to the data selector 220. The data cached by the cache module 230 is the data with the lowest priority or the second display data with a higher priority after the previous comparison at the same position. If "1" represents the highest priority and "0" represents the lowest priority in binary, then the data on each data bit in the data with the lowest priority is 0; if "0" represents the highest priority and "1" represents the lowest priority in binary, then the data on each data bit in the data with the lowest priority is 1.

[0091] It should be noted that the compression ratio set provided in the present application includes compression by row or by column. When compression by row and by column is required, according to the technical solution provided in the present application, compression by row or by column can be performed first, and then compression by column or by row can be performed.

[0092] In one embodiment, when the compression ratio is set to be compressed by row, the data of the initial row at the set compression ratio is cached in the cache module 230, and the data of the initial row has the lowest priority. The comparator 210 compares the second display data of each row with the cache data at the same position in the cache area, and uses the second display data with a higher priority as the current comparison result.

[0093] In one embodiment, when the compression ratio is set to be column-based compression, the data of the initial column at the set compression ratio is cached in the cache module 230, and the data of the initial column has the lowest priority. The comparator 210 compares the second display data of each column with the cache data at the same position in the cache area, and uses the second display data with a higher priority as the current comparison result.

[0094] In one embodiment, the first input end of the data selector 220 is connected to the second output end of the cache module 230, the third input end of the data selector 220 is connected to the output end of the data sorting module 100, the fourth input end of the data selector 220 is connected to the output end of the delay module 300, the first output end of the data selector 220 is connected to the input end of the cache module 230, and the second output end of the data selector 220 is used to output the compressed third display data.

[0095] In one embodiment, based on the set compression ratio, the data selector 220 obtains the enabling information of whether to display the second display data currently being compared in a reduced display area on the display screen, and the data selector 220 generates the third display data according to the enabling information and the current comparison result. Wherein, when the enabling information is valid, the data selector 220 outputs the second display data with a higher current priority as the third display data, and updates the cached data at the same position in the cache area to the data with the lowest priority; when the enabling information is invalid, the data selector 220 does not output the data, and updates the cached data at the same position in the cache area to the second display data with a higher current priority.

[0096] Please refer to Figure 7 In one embodiment, when the cache module 230 stores a row of second display data, the number of addresses in the cache module 230 is equal to the number of columns; when the cache module 230 stores a column of second display data, the number of addresses in the cache module 230 is equal to the number of rows.

[0097] It should be noted that the present application also delays the enabling information so that the enabling information can be synchronized with the second display data with the highest priority after comparison.

[0098] For example, when the compression ratio of row compression is set to 2:1, that is, the compression domain is compressed from 2 rows to 1 row, the data of the initial row is first cached in the buffer area, and the second display data of the first row is compared with the data in the buffer area. The priority of the second display data of the first row is greater than the data in the buffer area, and the enable information bit of the second display data of the first row is invalid, indicating that the second display data of the first row is not output, and the data cached in the buffer area is updated from the data of the initial row to the second display data of the first row. Then, the second display area of ​​the second row is compared with the second display data of the first row cached in the buffer area, and the enable information of the second display data of the second row is valid, then the second display data with the highest priority between the second display data of the first row and the second row is output, and this is used to generate the third display data.

[0099] For example, when the ratio of column compression is set to 2:1, that is, the compression domain is compressed from 2 columns to 1 column, the data of the initial column is first cached in the buffer area, and the second display data of the first column is compared with the data in the buffer area. The priority of the second display data of the first column is greater than the data in the buffer area, and the enable information bit of the second display data of the first column is invalid, indicating that the second display data of the first column is not output, and the data cached in the buffer area is updated from the data of the initial column to the second display data of the first column. Then, the second display area of ​​the second column is compared with the second display data of the first column cached in the buffer area, and the enable information of the second display data of the second column is valid, then the second display data with the highest priority between the second display data of the first column and the second column is output, so as to generate the third display data.

[0100] In one embodiment, the input end of the delay module 300 is used to obtain enable information, and the output end of the delay module 300 is connected to the fourth input end of the data sorting module 100. The delay module 300 is used to delay the enable information so that the enable information can be synchronized with the second display data with the highest priority after comparison.

[0101] Please refer to Figure 8 In one embodiment, the present application provides a waveform compression method, the method comprising the following steps:

[0102] Step S100: obtaining first display data of a waveform to be displayed.

[0103] In one embodiment, when the waveform to be displayed is displayed, it is displayed in the form of pixels. When the waveform needs to be displayed on the display screen, the first display data of the waveform to be displayed will correspond to at least one pixel in the original display area before compression on the display screen, that is, the first display data corresponds to at least one pixel in the initial display area on the display screen. Since the first display data is a waveform display, the first display data includes the data type and intensity value information of the corresponding pixel.

[0104] Step S200: performing priority conversion on the first display data to generate second display data.

[0105] In one embodiment, the data type and intensity value information of the first display data are prioritized according to a preset priority order, thereby generating second display data corresponding one-to-one to the first display data, that is, the second display data and the first display data correspond to the same pixel points.

[0106] Please refer to Fig. 9 In one embodiment, when executing step S200 to perform priority conversion on the first display data and generate the second display data, the following steps are also included.

[0107] Step S210: Prioritize the data type and strength value information.

[0108] In one embodiment, a data type bit corresponding to the data type is set in the second display data, and an intensity value bit corresponding to the pixel brightness information in the intensity value information is also set in the second display data. In the second display data, the priority of the data type bit is set higher than the priority of the intensity value bit according to a preset priority order. If the preset priority order is different, the order of the priority of the data type bit and the intensity value bit is also different, which can be adjusted according to user needs.

[0109] Step S220: Prioritize the data type bits.

[0110] In one embodiment, the data type bit includes a persistence data bit and a data source channel bit, the persistence data bit is used to indicate whether the second display data is persistence data, and the data source channel bit is used to indicate which of the multiple channels the second display data comes from.

[0111] In one embodiment, in the data type bit of the second display data, the priority of the persistence data of the data type bit is set higher than the priority of the data source channel bit according to a preset priority order. In the persistence data bit of the second display data, the priority of the non-persistence data is set higher than the priority of the persistence data.

[0112] In one embodiment, in addition to the pixel brightness information used to determine the display of the waveform brightness, the intensity value information also includes special display information, which includes background color and non-background color. The non-background color includes templates, tested channel pressure templates, and other channel pressure templates. Among them, the template refers to a preset waveform display setting or layout style, the tested channel pressure template refers to the template of the data source channel currently tested, and the other channel pressure template refers to the template of other data source channels other than the data source channel currently tested. At the data source channel position of the second display data, the priority of the data source channel is set to decrease step by step according to the time sequence from near to far when the data source channel is selected. At the intensity value position of the second display data, the priority of the non-background color is set higher than the priority of the background color. In addition, at the intensity value position of the non-background color, a set number of digits are reserved for special display, and the digits start with the maximum value of the priority of the intensity value position and decrease successively until the required set number is reached.

[0113] Step S300: based on the set compression ratio, compare the second display data in the same compression domain to determine the third display data.

[0114] In one embodiment, at a set compression ratio, the second display data in the same compression domain are compared to determine the second display data with the highest priority in the compression domain, and the second display data with the highest priority in each compression domain is used as the third display data displayed in the reduced display area. The compression domain refers to the area of ​​the initial display area corresponding to the same position in the reduced display area before compression at the set compression ratio.

[0115] Please refer to Fig.10 In one embodiment, when executing step S300, based on the set compression ratio, the second display data in the same compression domain is compared to determine the third display data, the following steps are also included.

[0116] Step S310: comparing the second display data with the cached data at the same position in the cache area at least according to the priority of the data type, and determining a current comparison result.

[0117] In one embodiment, the data types in the second display data are compared one by one with the priorities of the data types corresponding to the cache data at the same position in the cache area, and the second display data corresponding to the data type with the highest priority is determined as the current comparison result.

[0118] In one embodiment, the second display data can also be directly compared with the cached data at the same position in the cache area one by one to determine the second display data with the highest current priority as the current comparison result. The data cached in the cache area is the data with the lowest priority or the second display data with a higher priority after the previous comparison at the same position. If "1" represents the highest priority and "0" represents the lowest priority in binary, then the data on each data bit in the data with the lowest priority is 0; if "0" represents the highest priority and "1" represents the lowest priority in binary, then the data on each data bit in the data with the lowest priority is 1.

[0119] In one embodiment, the set compression ratio provided in the present application includes compression by row or by column. When compression by row and by column is required, according to the technical solution provided in the present application, compression by row or by column can be performed first, and then compression by column or by row can be performed.

[0120] In one embodiment, when the compression ratio is set to be compressed by row, the data of the initial row at the set compression ratio is cached in the buffer area, and the data of the initial row has the lowest priority. The second display data of each row is compared with the cached data at the same position in the buffer area, and the second display data with a higher priority is used as the current comparison result.

[0121] In one embodiment, when the compression ratio is set to be column-based compression, the data of the initial column at the set compression ratio is cached in the buffer area, and the data of the initial column has the lowest priority. The second display data of each column is compared with the cached data at the same position in the buffer area, and the second display data with a higher priority is used as the current comparison result.

[0122] Step S320: obtaining enabling information of the current comparison, and generating third display data according to the enabling information and the current comparison result.

[0123] In one embodiment, based on the set compression ratio, the enabling information of whether the second display data currently being compared is displayed in a reduced display area on the display screen is obtained, and the third display data is generated according to the enabling information and the current comparison result. Wherein, when the enabling information is valid, the second display data with a higher current priority is output as the third display data, and the cached data at the same position in the cache area is updated to the data with the lowest priority; when the enabling information is invalid, no data is output, and the cached data at the same position in the cache area is updated to the second display data with a higher current priority.

[0124] The waveform compression method provided by the present application can ensure that when the second display data of a row or a column cannot be displayed, the data with the highest priority in these rows or columns is always stored in the buffer area, and the data in the buffer area is restored to the data with the lowest priority until the row or column can be displayed, and the second display data with the highest priority is displayed at this time. The second display data with the highest priority is the most suitable data under the set compression ratio, thereby ensuring that the most suitable data can be displayed.

[0125] Those skilled in the art will appreciate that all or part of the functions of the various methods in the above-mentioned embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to implement 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 above-mentioned functions can be implemented. In addition, when all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can also be stored in a storage medium such as a server, another computer, disk, optical disk, flash disk or mobile hard disk, and can be downloaded or copied and saved in the memory of the local device, or the system of the local device is updated, and when the program in the memory is executed by the processor, all or part of the functions in the above-mentioned embodiments can be implemented.

[0126] The above specific examples are used to illustrate the present application, which is only used to help understand the present application and is not intended to limit the present application. For technicians in the technical field to which the present application belongs, they can also make some simple deductions, deformations or substitutions based on the ideas of the present application.

Claims

1. A waveform compression method, characterized in that: include: Acquire first display data of the waveform to be displayed corresponding to at least one pixel point in the initial display area on the display screen, wherein the first display data includes data type and intensity value information, and the intensity value information includes pixel brightness information; The data type of the first display data is prioritized according to a preset priority order to generate second display data corresponding to the first display data one by one; wherein a data type bit corresponding to the data type and an intensity value bit corresponding to the pixel brightness information in the second display data are obtained; and the priority of the data type bit is set higher than the priority of the intensity value bit according to the preset priority order to generate the second display data; Based on the set compression ratio, the second display data in the same compression domain are compared at least according to the priority of the data type, the second display data with the highest priority in the compression domain is determined, and the second display data with the highest priority in each compression domain is used as the third display data for display in the reduced display area; the compression domain refers to the area within the initial display area corresponding to the same position of the reduced display area.

2. The waveform compression method according to claim 1, characterized in that: The method of comparing the second display data in the same compression domain at least according to the priority of the data type based on the set compression ratio, determining the second display data with the highest priority in the compression domain, and using the second display data with the highest priority in each compression domain as the third display data for display in the reduced display area includes: Compare the second display data with the cached data at the same position in the cache area one by one, and determine the second display data with a higher current priority as the current comparison result, wherein the data cached in the cache area is the data with the lowest priority or the second display data with a higher priority after the previous comparison at the same position; Based on the set compression ratio, obtaining enabling information of whether to display the second display data currently being compared in a reduced display area on the display screen; The third display data is generated according to the enabling information and the current comparison result.

3. The waveform compression method according to claim 2, characterized in that: The generating the third display data according to the enabling information and the current comparison result includes: When the enabling information is valid, the second display data with a higher current priority is output as the third display data, and the cache data at the same position of the cache area is updated to the data with the lowest priority; When the enabling information is invalid, no data is output, and the cached data at the same position of the cache area is updated to the second display data with a higher current priority.

4. The waveform compression method according to claim 3, characterized in that: Before generating the third display data according to the enabling information and the current comparison result, the waveform compression method further includes: The enabling information is delayed so as to synchronize the enabling information with the output of the second display data having a higher current priority.

5. The waveform compression method according to claim 2, characterized in that: The compression domain refers to a set number of rows in the initial display area corresponding to the same row of the reduced display area, and when the second display data is compared with the cache data at the same position in the cache area one by one, the second display data of each row is compared with the cache data at the same position in the cache area; or, The compression domain refers to a set number of columns in the initial display area corresponding to the same column of the reduced display area, and when the second display data is compared with the cached data at the same position in the cache area one by one, the second display area of ​​each column is compared with the cached data at the same position in the cache area.

6. The waveform compression method according to claim 5, characterized in that: The data type bits include persistence data bits and data source channel bits; In the data type bits, the priority of the persistence data bits of the data type bits is set higher than the priority of the data source channel bits according to a preset priority order; On the persistence data bits, setting the priority of the non-persistence data bits to be higher than the priority of the persistence data bits; At the data source channel position, the priority of the data source channel is set to decrease step by step according to the time sequence from near to far when the data source channel is selected.

7. The waveform compression method according to claim 6, characterized in that: The intensity value information also includes special display information, the special display information represents background color or non-background color, and the priority of setting the intensity value bit of the intensity value information representing the special display information as non-background color is higher than the priority of the intensity value bit of the intensity value information representing the special display information as background color.

8. A waveform compression device, characterized in that: include: A data sorting module, which obtains first display data corresponding to at least one pixel point in an initial display area on a display screen of a waveform to be displayed, performs priority conversion on a data type of the first display data according to a preset priority order, and generates second display data corresponding to the first display data one by one; the first display data includes a data type and intensity value information, and the intensity value information includes pixel brightness information; wherein a data type bit corresponding to the data type and an intensity value bit corresponding to the pixel brightness information in the second display data are obtained; and a priority of the data type bit is set higher than a priority of the intensity value bit according to a preset priority order, so as to generate the second display data; A compression processing module is connected to the data sorting module. The compression processing module compares the second display data in the same compression domain based on a set compression ratio at least according to the priority of the data type, and determines the second display data with the highest priority in the compression domain; and uses the second display data with the highest priority in each compression domain as the third display data for display in the reduced display area; the compression domain refers to the area within the initial display area corresponding to the same position of the reduced display area.

9. The waveform compression device according to claim 8, characterized in that: The compression processing module includes a comparator, a data selector and a cache module; The comparator compares the second display data with the cache data at the same position in the cache module one by one, and determines the second display data with a higher current priority as the current comparison result, and the data cached by the cache module is the data with the lowest priority or the second display data with a higher priority after the previous comparison at the same position; The data selector obtains, based on the set compression ratio, enabling information of whether to display the second display data currently being compared in the reduced display area on the display screen; And generate third display data according to the enabling information and the current comparison result.

10. The waveform compression device according to claim 9, characterized in that: When the enabling information is valid, the data selector outputs the second display data with a higher current priority as the third display data, and updates the cache data at the same position in the cache module to the data with the lowest priority; When the enabling information is invalid, the data selector does not output data, and updates the cache data at the same position in the cache module to the second display data with a higher current priority.

11. The waveform compression device according to claim 10, characterized in that: The waveform compression device also includes a delay module; The delay module delays the enabling information so that the enabling information is synchronized with outputting the second display data with a higher current priority.

12. The waveform compression device according to claim 11, characterized in that: In the data selector, the compression domain refers to a set number of rows in the initial display area corresponding to the same row of the reduced display area, and the comparator compares the second display data of each row with the cache data at the same position in the cache module; or, In the data selector, the compression domain refers to a set number of columns in the initial display area corresponding to the same column of the reduced display area, and the comparator compares the second display data of each column with the cache data at the same position in the cache module.

13. The waveform compression device as described in claim 8, wherein the data type bit includes a persistence data bit and a data source channel bit; the data sorting module sets the priority of the persistence data bit of the data type bit higher than the priority of the data source channel bit according to a preset priority order in the data type bit; the data sorting module sets the priority of the non-persistence data bit higher than the priority of the persistence data bit in the persistence data bit; the data sorting module sets the priority of the data source channel in the data source channel bit in a step-by-step manner according to the time sequence from near to far when the data source channel is selected.

14. The waveform compression device as described in claim 13, wherein the intensity value information also includes special display information, and the special display information represents a background color or a non-background color; and the data sorting module sets the priority of the intensity value bit of the intensity value information of the special display information representing a non-background color to be higher than the priority of the intensity value bit of the intensity value information of the special display information representing a background color.

15. A waveform display device, characterized in that: include: A data acquisition module is used to collect data input into each channel; A data processing module, used for processing the collected data of each channel to generate first display data corresponding to at least one pixel point in the initial display area on the display screen; A waveform compression device, comprising the waveform compression device as claimed in any one of claims 8 to 14; The display module is used to display the first display data and / or display the third display data obtained by compressing the first display data.

Citation Information

Patent Citations

  • Method of realizing wave-shape fluorescent display effect by multiple-channel digital oscilloscope

    CN101609107A

  • Method for enlarging waveform details on touch oscilloscope

    CN106771455A

  • Gray scale compensation method and device of oscilloscope

    CN112466259A

  • Resolution compression method of waveform data in waveform display device

    JP2003107107A

  • Automatic oscillograph apparatus, waveform data server device, and automatic oscillograph system

    JP2010273527A