Display mode debugging method and device for oscillographic data of sensor

Through custom waveform controls and serial port communication, the independent Y-axis operation and real-time data display of each curve are achieved, which solves the problem of data distinction in the existing technology and the problem of waveform sharing of Y-axis, and improves the testing efficiency and clear data display. Spend.

CN119291262APending Publication Date: 2025-01-10SHENZHEN SILICON MOUNTAIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411746279.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

The existing PC platform cannot display different data waveforms separately in proportion mode, and all curves share a Y-axis, which makes it difficult to distinguish and observe data, and cannot operate independently or compare data changes of each curve.

Method used

Provide a display mode debugging method for sensor oscilloscope data. It realizes independent Y-axis scaling and highlighting of each curve through custom waveform controls. It supports mouse drag, serial port data communication, waveform data import and export, and real-time rendering. Different waveforms have unique dot-line styles and difference calculations.

Benefits of technology

The independent Y-axis operation of each curve is realized, which improves the efficiency of data observation and analysis, enhances the clarity of waveform differences display, and reduces the work burden of testers through real-time data display and automatic disconnection of ports, and improves the workload of testers and improves the Test efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119291262A_ABST
    Figure CN119291262A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of sensors, and discloses a display mode debugging method and device for oscillographic data of a sensor. The method comprises the steps that a waveform control is provided, the waveform control is applied to select legend of a plurality of waveforms from legend of a plurality of waveforms to serve as a first target control object, and y-axis scaling is only conducted on the first target control object. In the embodiment of the invention, each curve has an independent Y axis, so that the Y axis setting of each curve can be independently operated and does not interfere with each other, the data observation and analysis efficiency of testers is greatly improved, any y axes can be combined together, and different waveform curve data can be conveniently debugged in groups and modules.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of sensor technology, and in particular to a method and device for debugging a display mode of sensor oscillographic data. Background Art

[0002] Currently, there is no PC platform on the market that can display different data waveforms separately in proportional mode (the current maximum value of the real-time waveform rendering is 1 (the actual value is the maximum value of the y-axis), the minimum value is 0 (the actual value is the minimum value of the y-axis), and other waveform rendering data is proportionally rendered according to the maximum and minimum difference), and has the personalized ability to display different waveform curves in any proportion from a single curve to all curves. Summary of the invention

[0003] The object of the present invention is to provide a method and device for debugging the display mode of sensor oscillometric data to overcome the above problems.

[0004] To achieve this object, the present invention adopts the following technical solutions: A method for debugging a display mode of sensor oscillographic data, comprising: A waveform control is provided, and the waveform control is used to select a plurality of waveform legends from a plurality of waveform legends as a first target control object, and only the first target control object is scaled on the y-axis.

[0005] Optionally, also include: The waveform control is used to select a number of waveforms from a plurality of waveforms as second target control objects, and only the second target control objects are highlighted and / or the curve is thickened.

[0006] Optionally, it also includes: when the second target control object is selected, the second target control object is dragged up and down by the left mouse button to the target area, and if the release of the left mouse button is detected, the second target control object is controlled to stay in the release position area.

[0007] Optionally, also include: By monitoring the changes in serial port data, the communication of modbus protocol is established, waveform data can be imported and exported, screenshots of waveform data can be shared, and waveform data can be rendered in real time and the real-time data changes of the slave can be displayed in real time through LCD digital display.

[0008] Optionally, the method further includes: adjusting the dot and line styles of each waveform data so that different waveforms have different dot and line styles.

[0009] Optionally, it also includes: calculating the difference between points on the waveform, and using a pop-up window to display the difference between the x-axis and y-axis of two points on the current curve.

[0010] Optionally, it also includes: automatically disconnecting the port data connection when the serial port is closed.

[0011] A display mode debugging device for sensor oscillometric data, comprising a memory and a processor; The memory is used to store instructions; The processor is used to execute the instructions in the memory to implement any one of the above methods for debugging the display mode of sensor oscillographic data.

[0012] A storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor to execute the steps in any one of the above-mentioned methods for debugging a display mode of sensor oscillographic data.

[0013] Compared with the prior art, the present invention has the following beneficial effects: In the previous host computer system, all curves share a Y-axis, which makes it difficult to distinguish and observe data. Different from this, in the embodiment of the present invention, each curve has an independent Y-axis, so that the Y-axis settings of each curve can be independently operated without interfering with each other, thereby greatly improving the efficiency of test personnel in observing and analyzing data, and any Y-axes can be combined together, which is convenient for grouping and module debugging of different waveform curve data. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0015] Figure 1 A schematic diagram of a sensor oscillographic debugging platform provided in an embodiment of the present invention.

[0016] Figure 2 A schematic diagram of the sensor oscillographic debugging platform framework provided in an embodiment of the present invention.

[0017] Figure 3 A plurality of waveform renderings provided by an embodiment of the present invention. Figure 4 For Figure 3 The green waveform rendering after scaling the y-axis separately.

[0018] Figure 5 For Figure 3 The waveform rendering after the green and blue lines are scaled on the y-axis.

[0019] Figure 6 For Figure 3Waveform rendering of all waveforms after scaling the y-axis.

[0020] Figure 7 This is a waveform rendering with the red waveform curve highlighted and thickened.

[0021] Figure 8 This is the waveform rendering after dragging the blue waveform curve.

[0022] Fig. 9 Screenshot of the platform interface that supports waveform data import and export, screenshot sharing and other functions.

[0023] Fig.10 A schematic diagram showing the difference between the x-axis and y-axis of two points on the current curve through a pop-up window. DETAILED DESCRIPTION

[0024] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0025] At present, the waveform data display technology of the PC platform on the market cannot be displayed in a proportional mode, which is not conducive to observing the waveform changes of the collected data when there is a large difference in the data collection. Moreover, the mainstream technology on the market is to render multiple curves belonging to the same y-axis object, and it is impossible to separate and independently view the data changes of a single curve or any curve, that is, all waveforms can only be debugged uniformly, and different operations cannot be performed on any number of waveform data. It is impossible to effectively compare the changes in the waveform data collected in real time, which is not convenient for testers to troubleshoot problems.

[0026] To this end, the embodiment of the present invention provides a display mode debugging platform for sensor oscillographic data, and its architecture is as follows: Figure 1 As shown, the framework is Figure 2 shown.

[0027] The entire debugging platform architecture is implemented in layers and modules, including the communication layer, control layer, and view layer from bottom to top.

[0028] (1) View layer: A. Mission: Enter the debugging platform.

[0029] Establishing and disconnecting connections.

[0030] Waveform acquisition, selection, rendering, and import / export of waveforms.

[0031] B. Process: The user enters the debugging platform.

[0032] Scan and connect to the serial port.

[0033] Capture waveforms and perform various operations such as single / multiple selection and proportional rendering, and finally save or export waveform data.

[0034] (2) Control layer: A. Mission: Monitor serial port data and whether to start collection.

[0035] Process serial port data and pass it to the visual layer.

[0036] Processes visual layer instructions and visual data.

[0037] B. Process: The platform master station sends out instructions and the motor slave station receives the instructions.

[0038] The control layer listens to the data received from the serial port and monitors whether the visual layer issues a command to start acquisition.

[0039] After receiving the data, it is processed and passed to the visual layer for further visualization operations.

[0040] (3) Communication layer: A. Mission: Mainly responsible for data interaction between the platform master station and the motor slave station.

[0041] B. Process: After the platform master station issues a command, the motor slave station receives and returns the communication data, and the master station finally receives the processed data.

[0042] Sensor oscilloscope debugging platform - oscilloscope proportional mode rendering method is as follows: Point 1: The debugging platform of the embodiment of the present invention customizes the waveform control qcustomplot, so that the waveform can be clicked on the legend, and one to all curves can be scaled up and down by pressing Crtr + rolling the mouse wheel, so as to display the waveform data more intuitively.

[0043] For example, select Figure 3 In the legend of the green waveform, you can control the y-axis scaling of the green line separately. Figure 4 shown.

[0044] Select Figure 3 The legend of the green and blue waveforms in the figure can control the y-axis scaling of the green and blue lines together, and the red curve is not affected. After adjustment, Figure 5 shown.

[0045] Select Figure 3 In the legend of all waveforms and the legend of all waveforms, all y axes of the curves are scaled together. After adjustment, Figure 6 shown.

[0046] Point 2: Use the custom waveform control to detect whether the waveform is selected by pressing the left mouse button. If it is within the pixel error range, the waveform curve is highlighted and the curve becomes thicker, such as Figure 7 As shown, while holding down the left button, you can drag the curve up and down to the appropriate area. If you release the left button, the waveform curve stays in the released position area. Figure 8 shown.

[0047] Point 3: Establish modbus protocol communication by monitoring serial port data changes, support waveform data import and export, waveform data screenshot sharing, and real-time rendering of waveform data and display the real-time data changes of the slave in real time through LCD digital, such as Fig. 9 shown.

[0048] Compared with the prior art, the embodiments of the present invention have the following improvements: (1) Implementation of independent Y-axis: In the previous host computer system, all curves shared a Y-axis, which made it difficult to distinguish and observe data. Now, each curve has an independent Y-axis, so that the Y-axis settings of each curve can be operated independently without interfering with each other, which greatly improves the efficiency of test personnel in observing and analyzing data. In addition, any Y-axis can be combined together to facilitate grouping and module debugging of different waveform curve data.

[0049] (2) Waveform style adjustment: The new platform supports changing the point and line style of waveform data, which makes the difference between different waveforms clearer. It also adds the difference calculation between curve points and uses a pop-up window to display the difference between the x-axis and y-axis of two points on the current curve, such as Fig.10 As shown, the test personnel can observe the difference between the waveforms more intuitively, thereby reducing the workload when debugging motor data, judging the difference more accurately, and significantly improving the test efficiency.

[0050] (3) Real-time data display and data management: The platform provides real-time display of waveform data. When the serial port is closed, the port data connection is automatically disconnected to avoid unnecessary waveform curve rendering overhead. In addition, the platform also supports the import, export and saving of custom waveform data files. Wave files and waveform screenshot functions, providing testers with a reliable way to save and record abnormal and erroneous waveform data.

[0051] Based on the same concept, an embodiment of the present invention provides a display mode debugging device for sensor oscillometric data, the device comprising a memory and a processor. The memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the display mode debugging method for sensor oscillometric data provided by the embodiment of the present invention.

[0052] Those skilled in the art will appreciate that all or part of the steps in the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0053] To this end, an embodiment of the present invention provides a storage medium in which a plurality of instructions are stored. The instructions can be loaded by a processor to execute the steps of the display mode debugging method of sensor oscillometric data provided by the embodiment of the present invention.

[0054] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0055] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for debugging the display mode of sensor oscillographic data, characterized in that: include: A waveform control is provided, and the waveform control is used to select a plurality of waveform legends from a plurality of waveform legends as a first target control object, and only the first target control object is scaled on the y-axis.

2. The display mode debugging method of sensor oscillographic data according to claim 1, characterized in that: Also includes: The waveform control is used to select a number of waveforms from a plurality of waveforms as second target control objects, and only the second target control objects are highlighted and / or the curve is thickened.

3. The display mode debugging method of sensor oscillographic data according to claim 2, characterized in that: Also includes: When the second target control object is selected, the left mouse button is used to drag the second target control object up and down to the target area. If the left mouse button is detected to be released, the second target control object is controlled to stay in the release position area.

4. The display mode debugging method of sensor oscillographic data according to claim 1, characterized in that: Also includes: By monitoring the changes in serial port data, the communication of modbus protocol is established, waveform data can be imported and exported, screenshots of waveform data can be shared, and waveform data can be rendered in real time and the real-time data changes of the slave can be displayed in real time through LCD digital display.

5. The display mode debugging method of sensor oscillographic data according to claim 1, characterized in that: Also includes: The dot-line style of each waveform data is adjusted so that different waveforms have different dot-line styles.

6. The display mode debugging method of sensor oscillographic data according to claim 5, characterized in that: It also includes: calculating the difference between points on the waveform, and using a pop-up window to display the difference between the x-axis and y-axis of two points on the current curve.

7. The display mode debugging method of sensor oscillographic data according to claim 1, characterized in that: Also includes: When the serial port is closed, the port data connection is automatically disconnected.

8. A display mode debugging device for sensor oscillographic data, characterized in that: including memory and processor; The memory is used to store instructions; The processor is used to execute the instructions in the memory to implement the display mode debugging method of sensor oscillographic data according to any one of claims 1 to 7.

9. A storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the display mode debugging method of sensor oscillometric data according to any one of claims 1 to 7.