Oscilloscope display method and device, computer device and storage medium
Patent Information
- Application Number
- CN202611218408.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-12
- Publication Date
- 2026-10-20
AI Technical Summary
在此模式下,小量程信号如位置偏差或扭矩波动在纵轴方向上被严重压缩,其波形几乎呈现为一条水平直线,导致瞬态波动、细微噪声及关键异常特征完全不可见
[0009]本发明实施例提供了一种示波器显示方法、装置、计算机设备及存储介质,包括响应于用户对多个信号的选定操作,将所选信号分别分配至预先构建的坐标系容器中不同的纵坐标轴;对于每个被分配有所选信号的纵坐标轴,根据所选信号的数值属性独立配置纵坐标轴的显示量程;获取所选信号的实时采样数据,基于各纵坐标轴的显示量程在坐标系容器中同步绘制各所选信号的波形曲线,通过为每个信号分配独立纵坐标轴并动态配置显示量程,避免小量程信号在统一量程下被压缩失真,从而实现多量级信号的清晰同步呈现,具有能够实现多量级信号的清晰同步显示,便于观察信号细节,提高故障诊断效率和参数整定精度的优点。
Smart Images

Figure FT_1 
Figure FT_2 
Figure FT_3
Abstract
Description
Technical Field
[0001] This invention relates to the fields of modern industrial automation and precision control technology, and in particular to an oscilloscope display method, device, computer equipment, and storage medium. Background Technology
[0002] In the field of modern industrial automation and precision control, servo systems, as core execution units, place high demands on the real-time monitoring of multiple physical quantities during their commissioning process. Commissioning personnel typically need to use tools such as oscilloscopes to simultaneously observe waveform changes of multiple variables, including position, speed, current, and torque, in order to accurately assess the system's dynamic response and identify potential faults. For example, in servo motor commissioning scenarios, the position deviation signal may fluctuate only within the micrometer or millimeter range, while the drive current signal may reach tens of amperes, a difference of several orders of magnitude. This significant difference in physical properties makes the simultaneous observation of multiple signals a serious challenge.
[0003] Traditional oscilloscope display methods generally employ a single coordinate system, where all selected signal waveforms are forcibly bound to the same vertical axis for plotting and display. When a user selects multiple signals to monitor, the range settings must be uniformly adjusted based on the largest signal. In this mode, small-range signals, such as positional deviations or torque fluctuations, are severely compressed along the vertical axis, their waveforms appearing almost as a horizontal straight line, making transient fluctuations, subtle noise, and key anomalies completely invisible. Debugging personnel therefore cannot capture minute vibrations or transient disturbances from the distorted view, significantly increasing the difficulty and time cost of fault location. Simultaneously, parameter tuning processes, such as PID controller adjustments, rely on precise analysis of signal details; the distorted view directly causes the tuning results to deviate from the optimal value, affecting system stability and control accuracy. Some existing solutions attempt to alleviate this problem by manually switching ranges or displaying different signals in a time-sharing manner, but manual operation is cumbersome and easily interrupts the real-time observation process, while time-sharing display destroys the temporal correlation between signals, failing to achieve true multi-variable synchronous analysis. These shortcomings make traditional methods unable to meet the core requirement of clear and synchronous presentation of multi-level signals in modern servo system debugging. Summary of the Invention
[0004] This invention provides an oscilloscope display method, apparatus, computer device, and storage medium, which can achieve clear and synchronous display of multi-level signals, so as to facilitate observation of signal details and improve fault diagnosis efficiency and parameter tuning accuracy.
[0005] In a first aspect, embodiments of the present invention provide an oscilloscope display method, comprising: In response to the user's selection of multiple signals, the selected signals are assigned to different vertical axes in a pre-built coordinate system container; For each vertical axis assigned a selected signal, the display range of the vertical axis is configured independently according to the numerical attribute of the selected signal. The real-time sampling data of the selected signal is obtained, and the waveform curves of each selected signal are synchronously plotted in the coordinate system container based on the display range of each vertical axis.
[0006] In a second aspect, embodiments of the present invention provide an oscilloscope display device, comprising: The selected operation response module is used to respond to the user's selection of multiple signals and assign the selected signals to different vertical axes in a pre-built coordinate system container. The display range configuration module is used to independently configure the display range of each vertical axis that is assigned a selected signal, based on the numerical attributes of the selected signal. The waveform curve drawing module is used to acquire real-time sampling data of the selected signal and synchronously draw the waveform curve of each selected signal in the coordinate system container based on the display range of each vertical axis.
[0007] Thirdly, embodiments of the present invention provide a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the oscilloscope display method described in the first aspect above.
[0008] Fourthly, embodiments of the present invention also provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, which, when executed by a processor, causes the processor to perform the oscilloscope display method described in the first aspect.
[0009] This invention provides an oscilloscope display method, apparatus, computer device, and storage medium. The method includes: responding to a user's selection of multiple signals, assigning the selected signals to different vertical axes in a pre-constructed coordinate system container; for each vertical axis assigned a selected signal, independently configuring the display range of the vertical axis according to the numerical attributes of the selected signal; acquiring real-time sampling data of the selected signals; and synchronously plotting the waveform curves of each selected signal in the coordinate system container based on the display range of each vertical axis. By assigning an independent vertical axis to each signal and dynamically configuring the display range, small-range signals are avoided from being compressed and distorted under a unified range, thereby achieving clear and synchronous presentation of multi-level signals. This method has the advantages of enabling clear and synchronous display of multi-level signals, facilitating observation of signal details, and improving fault diagnosis efficiency and parameter tuning accuracy. Attached Figure Description
[0010] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0011] Figure 1 This is a flowchart illustrating the oscilloscope display method provided in an embodiment of the present invention. Figure 2 This is a schematic diagram of a multi-axis coordinate system oscilloscope provided in an embodiment of the present invention; Figure 3 A schematic diagram of the first sub-process of the computer device control method based on reinforcement learning provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of the second sub-process of the computer device control method based on reinforcement learning provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of a multi-coordinate system oscilloscope provided in an embodiment of the present invention; Figure 6 A schematic diagram of the third sub-process of the computer device control method based on reinforcement learning provided in an embodiment of the present invention; Figure 7 A schematic diagram of the fourth sub-process of the computer device control method based on reinforcement learning provided in an embodiment of the present invention; Figure 8 A schematic block diagram of an oscilloscope display device provided in an embodiment of the present invention; Figure 9 A schematic block diagram of a computer device provided for an embodiment of the present invention. Detailed Implementation
[0012] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0013] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0014] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0015] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0016] Traditional oscilloscopes use a single coordinate system and a single vertical axis. When monitoring multiple signals with significantly different magnitudes, all waveforms are bound to the same vertical axis. This forces range settings to be based on the larger signal, resulting in significant compression of the waveforms of smaller signals along the vertical axis, loss of detail, and invisibility of transient fluctuations. This makes it difficult for technicians to detect subtle anomalies, impacting fault location and parameter tuning efficiency, and hinders simultaneous real-time observation of multiple variables.
[0017] To address this issue, this application proposes an oscilloscope display method. In response to a user's selection of multiple signals, the selected signals are assigned to different vertical axes within a pre-constructed coordinate system container. For each vertical axis assigned a selected signal, the display range of the vertical axis is independently configured based on the numerical properties of the selected signal. Real-time sampling data of the selected signals is acquired, and waveform curves of each selected signal are synchronously plotted within the coordinate system container based on the display range of each vertical axis. Therefore, this application effectively solves the problems existing in the prior art.
[0018] For ease of understanding, the following explains some key terms in this embodiment: Coordinate system container: refers to the basic graphic unit used to display waveforms in the display interface. It usually contains at least one horizontal axis and multiple vertical axes to define the display range and scale of the signal waveform.
[0019] The vertical axis (Y-axis) is the axis perpendicular to the horizontal axis in a coordinate system container, used to represent the numerical value or amplitude of a signal. In multi-signal display scenarios, multiple vertical axes can exist, and each vertical axis can be configured independently.
[0020] Display range: refers to the range of signal values displayed on the vertical axis, determined by the upper and lower display limits. Its configuration directly affects the scaling ratio of the waveform in the vertical direction and the visible detail.
[0021] Numerical attributes: These refer to the inherent numerical characteristics of the signal itself, such as the signal's physical unit, magnitude range, maximum value, minimum value, average value, and effective value. These attributes are the basis for configuring the display range.
[0022] Real-time sampling data: refers to the instantaneous numerical sequence of signals continuously acquired by the oscilloscope at a specific sampling rate. This data is the basis for plotting waveform curves.
[0023] Waveform curve: refers to the graphical representation of a signal changing over time, drawn in a coordinate system container based on real-time sampled data.
[0024] This application's embodiments effectively solve the problem of significant compression and loss of detail in small-signal waveforms when displaying multiple signals with large magnitude differences in traditional oscilloscopes by assigning an independent vertical axis to each selected signal and configuring the display range independently according to its numerical attributes. As a result, the waveform of each signal can be clearly displayed at an appropriate scale. Simultaneously, by synchronously plotting the waveform curves of each signal in the same coordinate system, real-time synchronous observation of multiple variables is achieved, enabling debugging personnel to capture transient fluctuations and interrelationships of signals, thereby improving the accuracy and efficiency of fault location and parameter tuning.
[0025] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
[0026] Please see Figure 1 and Figure 2 , Figure 1 This is a schematic flowchart illustrating the oscilloscope display method provided in an embodiment of the present invention. The oscilloscope display method provided in this embodiment of the present invention is applied in computer equipment. Figure 2 This is a schematic diagram of a multi-axis coordinate system oscilloscope provided in an embodiment of the present invention.
[0027] S1: In response to the user's selection of multiple signals, the selected signals are assigned to different vertical axes in a pre-built coordinate system container.
[0028] Specifically, users can specify the signals to be monitored through checkboxes, list selections, or drag-and-drop operations in the graphical user interface. For example, when a user selects position, velocity, and current signals in the signal list, the system receives this selection. Subsequently, the system associates these selected signals, such as position, velocity, and current signals, with different pre-defined vertical axes within the coordinate system container. One implementation is that the system can assign signals to available vertical axes sequentially according to the order in which they are selected. Another implementation is that the system can assign specific types of signals to specific vertical axes based on their type or preset priority. For example, the position signal might be assigned to the first vertical axis, the velocity signal to the second, and the current signal to the third. Thus, each selected signal logically has its own independent display space, laying the foundation for subsequent independent range configuration.
[0029] Furthermore, prior to step S1, this application further includes: constructing at least one coordinate system container in the display interface, wherein the coordinate system container includes a horizontal coordinate axis and multiple vertical coordinate axes; the multiple vertical coordinate axes include a reference axis and multiple data axes; the scale markings of all the data axes are initially set to a hidden state; the scale markings of the reference axis are always displayed.
[0030] like Figure 2 As shown, at least one coordinate system container is constructed in the display interface to provide a structured area for signal display. This coordinate system container can be a default container automatically generated by the system when the oscilloscope application starts, occupying a preset area of the display interface; alternatively, users can manually add, resize, and arrange multiple coordinate system containers using a graphical user interface (GUI) tool to meet the need for simultaneous observation of different signal groups. The coordinate system container includes a horizontal axis and multiple vertical axes, which establish the basic framework for signal waveform plotting. Typically, the horizontal axis represents the time axis, used to display the signal's change over time; while the multiple vertical axes are used to represent the numerical ranges of different signals. For example, the horizontal axis can be fixed at the bottom of the container, while the multiple vertical axes are arranged along the left or right side of the container; alternatively, the horizontal axis can be centered according to signal characteristics (such as AC signals), with the vertical axes symmetrically distributed on both sides.
[0031] Furthermore, the multiple vertical axes include a reference axis and multiple data axes. The reference axis serves as the primary reference axis in the coordinate system, while the data axes are specifically designed to carry specific signal waveforms. For example, the leftmost vertical axis can be designated as the reference axis, with the remaining vertical axes serving as data axes; alternatively, the reference axis can be located at the center of the container, with the data axes distributed on either side. To optimize display, the tick marks of all data axes are initially set to hidden. This means that when the coordinate system container is created or reset, unless a signal is assigned to a data axis, the tick marks, numerical labels, etc., of that data axis will not be displayed to reduce visual interference. For example, the system sets the rendering attribute of the tick marks of all data axes to invisible during initialization; or, a configuration parameter controls the default display state of the data axis tick marks to hidden. In contrast, the tick marks of the reference axis are always displayed. This ensures that regardless of how other data axes dynamically change or are hidden, the user always has a stable numerical reference. For example, the scale markings of the reference axis are always drawn and their display properties are locked to be visible; or, even if no signal is assigned to the reference axis, its scale markings will be displayed according to the preset default range.
[0032] Before responding to a user-selected operation, this application pre-constructs at least one coordinate system container in the display interface, clearly defining its structure as containing one horizontal axis and multiple vertical axes. This provides a clear and orderly visual framework for subsequent signal allocation and waveform drawing, effectively avoiding layout chaos. Furthermore, by dividing multiple vertical axes into one reference axis and multiple data axes, and setting the initial scale labels of all data axes to a hidden state while ensuring the reference axis scale labels are always displayed, this application provides a stable numerical measurement benchmark. This allows users to always have a clear reference point when observing multiple signals with significantly different magnitudes, even if the display range of each data axis is independently configured according to the signal numerical attributes (as described in the above embodiments), thus avoiding the problem of a lack of visual reference benchmark. In addition, the initial hiding of the data axis scale labels effectively reduces redundant information in the display interface when there are no assigned signals or few signals. Combined with the strategy of hiding the vertical axis scale labels of unassigned signals in the above embodiments, this improves the simplicity and readability of the display interface, greatly enhancing the efficiency of debugging personnel in quickly comparing and analyzing multiple signal waveforms.
[0033] In one specific embodiment, in the default single coordinate system mode, the system initializes a coordinate system container with 7 preset vertical axis channels (CH1-CH7) and 1 horizontal axis (time axis). CH1 serves as the reference axis and always retains scale lines for reference, while the remaining CH2-CH7 are data axes.
[0034] S2: For each vertical axis assigned a selected signal, the display range of the vertical axis is configured independently according to the numerical attribute of the selected signal.
[0035] Specifically, after receiving the signal and its assignment to the vertical axis, the system reads the numerical attributes of each selected signal. For example, for a voltage signal, its numerical attributes might include its rated voltage range, typical operating voltage, and maximum allowable voltage. The system can then set a suitable display range for the corresponding vertical axis based on these numerical attributes. One configuration method is that the system can set the upper and lower limits of the vertical axis display based on the signal's rated range or a range manually entered by the user. For example, if a signal's rated range is -10V to 10V, the corresponding vertical axis display range can be set to -10V to 10V. Another configuration method is that the system can determine the initial display range based on historical signal data or preset default values. For example, for a position signal whose value is typically between 0 and 5000, the corresponding vertical axis display range can be set to 0 to 5000. Through this independent configuration, even if the numerical magnitudes of different signals differ significantly, the waveform of each signal can obtain a suitable display ratio on its respective vertical axis, avoiding excessive compression or truncation of the waveform.
[0036] In one specific embodiment, the selected signals are sequentially assigned to the currently available vertical axis according to the priority order of the range span of the selected signals.
[0037] Please see Figure 3 , Figure 3 A specific implementation of step S2 is shown below: S21: For each vertical axis assigned a selected signal, dynamically calculate the upper and lower display limits of the vertical axis based on the maximum and minimum values of the selected signal within the current display time window, so that the waveform of the selected signal occupies a preset height ratio range on the display screen. S22: Hide the scale markings of vertical axes not assigned a selected signal.
[0038] Specifically, for each vertical axis assigned a selected signal, the upper and lower display limits of the vertical axis are dynamically calculated based on the maximum and minimum values of the selected signal within the current display time window, ensuring that the waveform of the selected signal occupies a preset height proportion on the display screen. This technical feature aims to achieve automated adaptation of the vertical axis display range. Its function is to ensure that, regardless of the actual numerical magnitude of the signal, its waveform is presented on the display interface in a clear and easily observable proportion, avoiding the tedious operation of manually adjusting the range and effectively solving the problem of small signal waveform compression and loss of detail. In terms of implementation, one option is that the system monitors the maximum and minimum values of the selected signal in real time within the current display time window, and based on this, by introducing a preset margin (e.g., a percentage or a fixed value), extends the maximum value upwards as the upper display limit and the minimum value downwards as the lower display limit, thereby ensuring that the waveform does not touch the display boundaries and occupies a preset height proportion. Another alternative is that the system first calculates the maximum and minimum values of the selected signal within the current time window. Then, based on these extreme values, it automatically selects the range closest to and that completely covers the signal's extreme values from a series of predefined standard ranges as the display range for the vertical axis. The zero-point position is adjusted so that the waveform is displayed in the central area of the screen, occupying a preset height proportion. The preset height proportion ranges from 60% to 80% of the screen display area height.
[0039] Furthermore, this application proposes hiding the tick marks of vertical axes that are not assigned a selected signal. This technical feature aims to optimize the cleanliness of the display interface. Its function is that when multiple vertical axes exist but not all are used to display signals, hiding the tick marks of unused axes can effectively reduce visual interference, avoid information overload on the interface, and allow users to focus more on the waveform data they are currently observing. In terms of implementation, one option is that during the display rendering process, the system checks the signal assignment status of each vertical axis. If a vertical axis is not assigned any signal, its tick marks (including tick lines, numerical labels, and unit symbols) will not be drawn or rendered on the graphical user interface. Another option is that the system provides a configuration option allowing users to choose whether to automatically hide the tick marks of vertical axes that are not assigned a signal. When this option is enabled, the system dynamically switches the visibility attribute of its tick marks based on the signal assignment status of the vertical axis. When the user assigns a signal to a vertical axis, the tick marks of that axis are automatically displayed; when the signal is removed, the tick marks are automatically hidden.
[0040] This application's embodiments achieve automated and precise control of the waveform display ratio, ensuring that signals of different magnitudes are displayed at the optimal scale on their respective vertical axes. This guarantees sufficient visual space for even minute signal fluctuations on the screen, effectively solving the problem of waveform detail loss. Simultaneously, through intelligent interface layout management, unoccupied axis scales are dynamically hidden, ensuring that the display interface only presents valid information relevant to the currently selected signal, thereby improving the clarity and professionalism of the oscilloscope interface. This solution, combining dynamic range calculation and intelligent scale management mechanisms, maximizes the utilization of display space while ensuring simultaneous observation of multiple signals, providing users with a more intuitive and efficient signal analysis environment.
[0041] S3: Obtain the real-time sampling data of the selected signal, and synchronously plot the waveform curves of each selected signal in the coordinate system container based on the display range of each vertical axis.
[0042] Specifically, the oscilloscope system continuously acquires real-time sampled data from various signal sources. For example, it uses an analog-to-digital converter to acquire digital signal sequences from position, speed, and current sensors at a preset sampling rate. Once the real-time sampled data is acquired, the system maps these data points to their corresponding positions in the coordinate system container based on the vertical axis display range previously configured independently for each signal. One approach is to connect consecutive sampled data points into a smooth waveform curve using a point-by-point connection method. Another approach is to use an interpolation algorithm to generate additional points between sampled points to improve the visual smoothness of the waveform curve. Since the waveform curves of all signals are in the same coordinate system container and share the same horizontal axis (time axis), synchronous display of multiple signals can be achieved.
[0043] Please see Figure 4 and Figure 5 , Figure 4 A specific implementation method following step S3 is shown. Figure 5 A schematic diagram of a multi-coordinate system oscilloscope provided in an embodiment of the present invention is described in detail below: S4: In response to the user enabling the waveform comparison function, the display interface is divided into a first coordinate system and a second coordinate system; wherein, the first coordinate system is used to load and display historical waveform data, and the second coordinate system is used to continuously display real-time acquired waveform data; the first coordinate system and the second coordinate system each have their own independent coordinate system container containing a horizontal coordinate axis and multiple independently configured vertical coordinate axes.
[0044] Specifically, when a user needs to perform waveform comparison, the system responds by activating the waveform comparison function. This function can be triggered in several ways, such as by clicking a specific button on the display interface, selecting the corresponding option in the menu, or issuing a command via a preset shortcut key combination (such as "Ctrl+B" or "Alt+C"). Upon capturing such user interaction events, the system initiates the waveform comparison mode, ensuring that the waveform comparison function is activated on demand and improving the flexibility and convenience of user operation.
[0045] Once the waveform comparison function is enabled, the current display interface will be divided into a first coordinate system and a second coordinate system. This division can be a physical split-screen display, such as dividing the screen vertically or horizontally into two equal areas to represent the first and second coordinate systems respectively; or it can be a logical multi-window or multi-tab mode, but with the option to display side-by-side, ensuring that the content of both coordinate systems is visible simultaneously. This division allows two different types of data (historical waveforms and real-time waveforms) to be displayed in parallel on the same screen, providing users with an intuitive comparison view.
[0046] The first coordinate system is specifically used to load and display historical waveform data. This historical data can be pre-stored in the oscilloscope's internal memory, hard drive, or other storage media, or it can be imported from external files (such as CSV or TDMS files). The system provides a data loading interface for users to select specific historical datasets or automatically select and load data from the most recent historical records. The first coordinate system, as a stable carrier of historical data, provides users with an important reference benchmark. Meanwhile, the second coordinate system is used to continuously display real-time acquired waveform data. This means that the second coordinate system is directly connected to the oscilloscope's real-time data acquisition front end; newly acquired data points are immediately processed and added to the waveform buffer, and drawn on the screen at a high refresh rate, thus achieving continuous scrolling or updating of the waveform display. The system can employ double or triple buffering technology to ensure smooth and flicker-free waveform display, allowing users to monitor the system's dynamic behavior in real time and compare it instantly with historical data.
[0047] Both the first and second coordinate systems are independent containers containing a horizontal axis and multiple independently configured vertical axes. This means that each coordinate system is treated as an independent graphics rendering object or component in the software architecture, encapsulating its own horizontal axis (usually representing time) and multiple independent vertical axes (used to display different signals) as well as waveform drawing logic. When configuring the range, configuration operations on the vertical axis in the first coordinate system will not affect the vertical axis in the second coordinate system, and vice versa. This independence ensures that even if there are significant differences in magnitude between historical and real-time data, the vertical axis within each coordinate system can be independently configured with range based on the numerical properties of the signal it carries, thereby avoiding waveform compression or distortion caused by range mismatch.
[0048] This application effectively solves the problem that a single real-time display interface cannot meet the requirements for correlated analysis of historical and real-time data. By responding to the user's activation of the waveform comparison function, the display interface is divided into a first coordinate system and a second coordinate system, achieving physical spatial isolation and logical correlation display of historical and real-time waveforms. The first coordinate system is dedicated to loading and displaying historical waveform data, providing the user with a stable reference benchmark, while the second coordinate system is used to continuously display the real-time acquired waveform data, ensuring the immediacy of monitoring. Furthermore, by independently configuring coordinate system containers containing a horizontal axis and multiple independent vertical axes for both the first and second coordinate systems, it is ensured that even if there are differences in the magnitude of historical and real-time data, both can still independently adapt their ranges, thereby ensuring that waveform details are clearly presented during the comparison process. This design allows users to more accurately evaluate the system's performance at different time points or under different operating conditions by comparing waveform characteristics in different coordinate systems within the same interface, significantly improving the efficiency of fault diagnosis and parameter optimization.
[0049] Please see Figure 6 , Figure 6 A specific implementation method following step S4 is shown below: S41: In synchronous mode, the horizontal axes of the first and second coordinate systems are scaled and translated synchronously, and the scaling operations of at least one common vertical axis are linked to maintain the same observation range for the first and second coordinate systems. S42: In asynchronous mode, the first and second coordinate systems respond independently to their respective scaling and translation operations.
[0050] Specifically, synchronization mode refers to a preset operating state in which specific operations (such as scaling and translation) performed by the user on one coordinate system (e.g., the first coordinate system) are automatically and equivalently applied to one or more associated coordinate systems (e.g., the second coordinate system). This mode can be indicated by internal system flags or status variables. When the user triggers the synchronization mode activation command, the flag is set to "synchronized," and in subsequent coordinate system operations, the event listener captures the operation events and broadcasts them to all synchronized coordinate systems for processing. Alternatively, synchronization mode can be activated or disabled via a toggle button or menu option on the user interface. At the software level, a global configuration object can be maintained, containing a boolean variable to indicate the synchronization state. When this variable is true, all scaling and translation commands targeting either the first or second coordinate system are intercepted and forwarded to the other coordinate system, ensuring consistent behavior between the two.
[0051] Synchronizing the scaling and translation of the horizontal axes of the first and second coordinate systems ensures that both systems maintain the same viewing range and starting point in the time dimension, facilitating precise comparisons on the timeline. When a user performs scaling (e.g., using the mouse wheel or pinch gestures) or translation (e.g., dragging) operations on the horizontal axis of the first coordinate system, the system calculates the corresponding scaling and translation amounts. These calculated scales and amounts are then immediately applied to the horizontal axis of the second coordinate system, maintaining consistency in the display range and position of the two horizontal axes. Alternatively, the underlying graphics rendering engine can share the same set of timeline parameters for both coordinate systems, including the start and end points of the time range and the currently displayed time scale. When a user modifies the timeline parameters of either coordinate system, this shared set of parameters is updated and immediately reflected in the display of both coordinate systems, ensuring synchronization.
[0052] In the context of "linking scaling operations for at least one common vertical axis," a common vertical axis refers to a vertical axis that exists in both coordinate systems and represents the same physical quantity or is comparable. For example, if both coordinate systems display current signals, the vertical axis representing the current can be designated as the common vertical axis. The system allows users to manually select one or more vertical axes that exist in both the first and second coordinate systems as common vertical axes through a configuration interface and store them as metadata for the axis object. Alternatively, the system can automatically identify the common vertical axis based on the signal type or user-preset configuration. For example, if both coordinate systems display current signals, their corresponding vertical axes are considered common axes. Linking scaling operations aims to ensure that the vertical display scale remains consistent when comparing the same physical quantities, avoiding visual misjudgments due to differences in measurement range. When a user performs a scaling operation on a selected common vertical axis in one coordinate system, the system captures the operation and applies the scaling ratio or range adjustment to the corresponding common vertical axis in the other coordinate system. Alternatively, display parameters (such as the upper and lower limits of the display range) can be used to programmatically link common vertical axes. When the display limits of a common y-axis in one coordinate system are modified, an event is triggered. This event handler updates the display limits of the corresponding common y-axis in another coordinate system to maintain consistency.
[0053] Asynchronous mode is an operational state relative to synchronous mode. In this state, scaling, translation, and other operations performed by the user on a coordinate system only affect the currently operating coordinate system and do not affect other coordinate systems. When the user triggers the asynchronous mode enable command, the system's internal synchronization flag is set to asynchronous. In this mode, each coordinate system's event listener only processes operation events specific to itself and does not broadcast operations to other coordinate systems. Alternatively, asynchronous mode can be activated or disabled via a toggle button or menu option on the user interface. At the software level, when the synchronization status variable in the global configuration object is false, all scaling and translation commands targeting the first or second coordinate system will be executed independently without interference.
[0054] The first and second coordinate systems respond independently to zoom and translation operations, allowing users to make independent and fine-grained adjustments to both systems for differentiated analysis of local details across different time periods or signals. In asynchronous mode, when a user performs zoom or translation operations on the first coordinate system, only the display range and position of the first coordinate system change, while the second coordinate system remains unchanged. The reverse is also true. Each coordinate system maintains its own independent x-axis and y-axis parameters, independent of each other. Alternatively, each coordinate system has its own independent event handling mechanism and rendering pipeline. When a user interacts with a coordinate system, the interaction event is captured and processed only by the event handler of that coordinate system, updating its display parameters without triggering updates in other coordinate systems.
[0055] This application significantly improves the flexibility and ease of operation of multi-coordinate system waveform comparison by introducing a switching mechanism between synchronous and asynchronous modes. In synchronous mode, by synchronously scaling and translating the horizontal axes of the first and second coordinate systems, strict alignment of the two coordinate systems in the time dimension is ensured, allowing users to intuitively observe the evolution characteristics of different waveforms within the same time interval. Simultaneously, linking the scaling operations of at least one common vertical axis further guarantees consistent observation at key magnitudes, effectively solving the problem of observation interval deviation caused by asynchronous manual adjustments. In asynchronous mode, allowing the two coordinate systems to independently respond to their respective scaling and translation operations provides users with the freedom to perform differentiated analysis on specific local details, meeting the need for fine-tuning different coordinate systems in complex signal analysis. This dual-mode design ensures both the synchronicity of macroscopic comparison and the independence of microscopic analysis, thereby achieving efficient control over the waveform comparison process and greatly improving the efficiency and accuracy of waveform comparison for users.
[0056] Furthermore, after step S4, this application further includes: in response to a data migration instruction, superimposing historical waveform data of the selected channel in the first coordinate system onto the corresponding channel in the second coordinate system according to a time alignment rule, so that the historical waveform data and the real-time waveform data are displayed in the same coordinate system.
[0057] The data migration command refers to a user-issued operation command used to transfer specific historical waveform data from the first coordinate system to the second coordinate system for merging and display. This command can be triggered in various ways, such as by clicking specific buttons on the graphical user interface (GUI) (e.g., "Overlay Historical Data" or "Migrate to Live View"), or by using keyboard shortcuts, voice commands, or gesture recognition.
[0058] Time alignment rules are standards used to guide the positioning of historical and real-time waveform data along the time axis (horizontal axis) when merging and displaying them. These rules ensure that waveforms acquired at different time periods maintain logical synchronization during merging, enabling meaningful comparisons. Specifically, time alignment rules can be based on absolute timestamps, matching a specific point in time in the historical data (e.g., the start time of acquisition, the time of an event) with the current point in the real-time data or a reference point; or they can be based on relative time offsets, such as aligning the starting point of the historical data with the starting point of the current display window of the real-time data, or aligning a specific event point in the historical data with the corresponding event point in the real-time data.
[0059] Historical waveform data for a selected channel in the first coordinate system refers to recorded or stored waveform data that the user explicitly selects in the first coordinate system and that is related to a specific measurement channel. Users can select waveform data from one or more channels in the first coordinate system as historical data to be migrated by clicking, dragging, or checking boxes; alternatively, the system can also automatically select historical data channels that match the currently displayed channel name or type in the second coordinate system according to preset rules.
[0060] Overlaying the historical waveform data onto the corresponding channel in the second coordinate system means rendering the selected historical waveform data and real-time waveform data together in the graphics space of the second coordinate system, ensuring that the historical data is plotted on the vertical axis corresponding to the channel from which its real-time data originates. In implementation, the system can allocate a separate drawing layer for the overlaid historical waveform data in the second coordinate system and use different colors, line styles, or transparency to distinguish it, ensuring it is displayed on the same vertical axis as the real-time waveform data. Alternatively, the display attributes of the corresponding channel in the second coordinate system can be adjusted, for example, by adding a historical data sub-layer, plotting the historical data on this sub-layer, and ensuring it shares the same vertical axis range and horizontal axis time scale as the real-time data.
[0061] This application, based on the user enabling the waveform comparison function and having already divided the display interface into a first coordinate system and a second coordinate system, further responds to the user's data migration command. According to preset or user-specified time alignment rules, the system accurately extracts the selected historical waveform data from the first coordinate system and superimposes it onto the corresponding real-time data channel in the second coordinate system. This process allows the historical waveforms and real-time waveforms, originally displayed independently in different coordinate systems, to be merged and presented within the same coordinate system. Debugging personnel no longer need to visually switch and mentally compare between two independent display areas; instead, they can directly observe the overlap, deviation, and dynamic evolution trend of the historical and real-time waveforms in the same view. For example, in servo system debugging, the historical response waveform before parameter adjustment can be intuitively superimposed with the real-time response waveform after adjustment, thereby quickly evaluating the effect of parameter adjustment and identifying minor performance improvements or anomalies. This merged display method greatly improves the intuitiveness and efficiency of waveform comparison analysis, simplifies the process of fault diagnosis and performance optimization, and provides users with a more convenient and efficient waveform data analysis experience.
[0062] Please see Figure 7 , Figure 7 Another specific implementation method after step S3 is shown and described in detail below: S5: In response to the user selecting a time interval on the waveform curve, extract the sampled data sequence of the selected signal within the selected interval. S6: Based on the analysis type selected by the user, perform time-domain statistics or frequency-domain transformation calculations on the sampled data sequence to obtain the calculation results, and generate analysis charts based on the calculation results. The time-domain statistics include calculating the maximum, minimum, and root mean square values; the frequency-domain transformation calculation includes performing a fast Fourier transform to generate a spectrum, or combining phase information to generate a Bode plot.
[0063] Specifically, in the step of extracting the sampled data sequence of the selected signal within a time interval selected by the user on the waveform curve, the user can operate through a graphical user interface (GUI), such as by dragging the mouse, using touchscreen gestures, or using cursor keys to define the start and end points on the waveform curve, thereby selecting a specific time interval. Upon receiving this selection operation, the system will accurately identify and extract all sampled data points of the selected signal corresponding to that time interval from the raw sampled data stored internally by the oscilloscope. For example, based on the start and end times of the selected interval, the system can find the corresponding index range in the signal's sampling timestamp sequence, and then obtain all sampled values within that range. This process ensures that the data source for subsequent analysis is highly targeted and accurate.
[0064] In the process of performing time-domain statistical or frequency-domain transformation calculations on the sampled data sequence according to the user-selected analysis type, obtaining the calculation results, and generating analysis charts based on the calculation results, the system provides multiple analysis options for the user to choose from after extracting the target sampled data sequence. Users can specify the desired analysis type through drop-down menus, buttons, or configuration panels on the interface, such as selecting time-domain statistical analysis or frequency-domain transformation analysis. Once the user makes a selection, the system will invoke the corresponding algorithm to calculate the extracted data sequence. For example, if time-domain statistics are selected, calculations for maximum, minimum, and root mean square values will be performed; if frequency-domain transformation is selected, Fast Fourier Transform will be performed. After the calculation is completed, the system will automatically generate intuitive analysis charts, such as statistical result tables, spectrum graphs, or Bode plots, based on the obtained numerical results, so that users can quickly understand the signal characteristics.
[0065] Time-domain statistics include calculating the maximum, minimum, and root mean square (RMS) values. Time-domain statistics are an important means of evaluating the fundamental characteristics of a signal. Calculating the maximum value aims to identify the peak value of the signal within a selected time interval, reflecting the highest instantaneous level the signal can reach. Calculating the minimum value is used to determine the lowest instantaneous level of the signal. The RMS value provides a measure of the effective value or average power of the signal, which is particularly important for AC signals as it reflects the signal's energy level. These statistics are obtained through direct mathematical operations on the sampled data sequence, such as traversing the data sequence to find the maximum / minimum values, or calculating them using the mathematical definition of RMS.
[0066] Furthermore, frequency domain transformation calculations include performing Fast Fourier Transform (FFT) to generate a spectrogram, or combining phase information to generate a Bode plot. Frequency domain transformation is a key technique for analyzing the frequency components of a signal. The Fast Fourier Transform (FFT) is an efficient algorithm that can convert a time-domain signal into a frequency-domain signal, revealing the various frequency components contained in the signal and their corresponding amplitude and phase information. Through FFT calculations, a spectrogram can be generated, typically with frequency on the horizontal axis and amplitude on the vertical axis, visually displaying the frequency distribution of the signal. For scenarios requiring analysis of the system's frequency response, a Bode plot can be generated by combining the signal's amplitude and phase information. This plot typically consists of amplitude-frequency response curves and phase-frequency response curves, used to evaluate the system's gain and phase shift at different frequencies.
[0067] This application's embodiments enable users to move beyond simple real-time waveform observation to in-depth mining and quantitative analysis of signal data within specific time periods. By responding to the user's selection of a time interval on the waveform curve, the system can accurately extract the specific data sequence of interest, ensuring the relevance of subsequent analysis. Based on this, according to the user-selected analysis type, the extracted data sequence undergoes time-domain statistics or frequency-domain transformation, converting the original waveform data into intuitive statistical indicators or frequency characteristic charts. For example, by calculating the maximum, minimum, and root mean square values, the amplitude fluctuations and energy levels of the signal can be quickly quantified; by performing a fast Fourier transform to generate a spectrum or Bode plot, the frequency components and phase response characteristics of the signal can be revealed. This design, which deeply integrates waveform plotting and data analysis, allows users to complete a comprehensive evaluation of signal characteristics within the oscilloscope interface without exporting data to external software, significantly improving the efficiency of fault diagnosis and system performance analysis. Especially in the multi-signal, independent vertical axis display environment proposed in this application, even signals with huge differences in magnitude can obtain high-precision analysis results when they are selected and analyzed under their respective suitable display ranges. This avoids analysis distortion caused by compression of small signals, thus providing debugging personnel with a more comprehensive and accurate signal insight capability.
[0068] The above technical solution will be explained in more detail through a more specific example: In a servo system debugging scenario, user A needs to simultaneously monitor several key signals, including position deviation, motor current, and motor speed. These signals vary significantly in magnitude; for example, position deviation may be at the micrometer level, motor current at the ampere level, and motor speed at the revolutions per minute (RPM) level.
[0069] First, a coordinate system container is constructed in the display interface, containing one horizontal axis and multiple vertical axes. One of these vertical axes is designated as the reference axis, whose scale markings are always displayed, while the scale markings of the other data axes are initially hidden. User A selects three signals—position deviation, motor current, and motor speed—using the selection operation response module of the oscilloscope display device. The selection operation response module assigns these three signals to different vertical axes in the coordinate system container. For example, position deviation is assigned to the first vertical axis, motor current to the second vertical axis, and motor speed to the third vertical axis.
[0070] Next, the display range configuration module independently configures the display range for each vertical axis assigned a selected signal, based on the numerical attributes of the corresponding signal. Specifically, for the first vertical axis (position deviation), the system dynamically calculates and sets its upper and lower display limits based on its maximum and minimum values within the current display time window, ensuring that the waveform of the position deviation occupies a preset height proportion range on the display screen; for example, configuring the range to -150 micrometers to +150 micrometers. Similarly, for the second vertical axis (motor current), the system independently configures its range, for example, setting it to -25 amperes to +25 amperes; for the third vertical axis (motor speed), the system independently configures its range, for example, setting it to -3500 RPM to +3500 RPM. Meanwhile, the scale markings of vertical axes not assigned a selected signal are hidden to maintain a clean interface.
[0071] Subsequently, the waveform plotting module acquires real-time sampled data of position deviation, motor current, and motor speed. Based on the independently configured display range of each vertical axis, the waveform plotting module simultaneously plots the waveforms of these three signals in the coordinate system container. At this time, user A can clearly observe the minute fluctuations in position deviation, the transient changes in motor current, and the overall trend of motor speed on the same display interface.
[0072] Unlike traditional oscilloscopes that display all signals on a single vertical axis, this application avoids the problem of severe compression and loss of detail in small signal waveforms due to differences in magnitude. In the traditional approach, if all signals share a single vertical axis and the range needs to adapt to a wide range of motor speeds, the waveform of positional deviation will appear almost as a straight line, making critical, minute anomalies undetectable. This solution, however, provides each signal with an independent vertical axis and a suitable display range, allowing all signal waveforms to be presented synchronously and clearly, significantly improving the debugging personnel's insight into system behavior.
[0073] During real-time waveform display, User A can enable the waveform comparison function. At this time, the display interface is divided into a first coordinate system and a second coordinate system. The first coordinate system is used to load and display historical waveform data, while the second coordinate system continuously displays the real-time acquired waveform data. Each of these coordinate systems independently has a coordinate system container containing one horizontal axis and multiple independently configured vertical axes. User A can choose to observe in synchronous mode, in which case the horizontal axes of the first and second coordinate systems will scale and translate synchronously, and the scaling operation of at least one common vertical axis (e.g., the vertical axis of motor current) will also be linked, thus maintaining the same observation range for direct comparison between the two coordinate systems. If User A selects asynchronous mode, the two coordinate systems will respond independently to their respective scaling and translation operations.
[0074] In addition, user A can issue a data migration command to overlay the selected historical position deviation waveform data in the first coordinate system onto the corresponding channel in the second coordinate system according to the time alignment rules, so that the historical waveform data and the real-time waveform data are merged and displayed in the same coordinate system, which further facilitates the direct comparison of real-time and historical performance.
[0075] When user A selects a time interval on the real-time position deviation waveform curve, the system extracts the sampled data sequence of position deviation within that interval. Depending on the analysis type selected by user A, such as time-domain statistics, the system calculates the maximum, minimum, and root mean square values of the sampled data sequence and generates corresponding analysis charts. If user A selects frequency-domain transform calculation, the system performs a Fast Fourier Transform to generate a spectrum, or combines phase information to generate a Bode plot, providing user A with in-depth signal analysis capabilities.
[0076] This invention also provides an oscilloscope display device for executing any of the aforementioned oscilloscope display methods. Specifically, please refer to... Figure 8 , Figure 8 A schematic block diagram of an oscilloscope display device provided in an embodiment of the present invention.
[0077] Among them, such as Figure 8 As shown, the oscilloscope display device 7 includes a selected operation response module 71, a display range configuration module 72, and a waveform curve plotting module 73.
[0078] The selected operation response module 71 is used to respond to the user's selection operation on multiple signals and assign the selected signals to different vertical axes in a pre-built coordinate system container. Display range configuration module 72 is used to independently configure the display range of the vertical axis according to the numerical attribute of the selected signal for each vertical axis assigned a selected signal. The waveform curve drawing module 73 is used to acquire real-time sampling data of the selected signal and synchronously draw the waveform curve of each selected signal in the coordinate system container based on the display range of each vertical axis.
[0079] Furthermore, the waveform curve plotting module 73 also includes: The waveform comparison function response module is used to divide the display interface into a first coordinate system and a second coordinate system in response to the user enabling the waveform comparison function. The first coordinate system is used to load and display historical waveform data, and the second coordinate system is used to continuously display real-time acquired waveform data. The first coordinate system and the second coordinate system each have an independent coordinate system container containing a horizontal coordinate axis and multiple independently configured vertical coordinate axes.
[0080] Furthermore, the waveform comparison function response module also includes: The synchronization mode processing module is used to synchronously scale and translate the horizontal axes of the first coordinate system and the second coordinate system in synchronization mode, and to link the scaling operations of at least one common vertical axis so that the first coordinate system and the second coordinate system maintain the same observation range. The asynchronous mode processing module is used to enable the first coordinate system and the second coordinate system to independently respond to their respective scaling and translation operations in asynchronous mode.
[0081] Furthermore, the waveform comparison function response module also includes: The data migration instruction response module is used to respond to the data migration instruction and, according to the time alignment rule, superimpose the historical waveform data of the selected channel in the first coordinate system onto the corresponding channel in the second coordinate system so that the historical waveform data and the real-time waveform data are displayed in the same coordinate system.
[0082] Furthermore, the waveform plotting module 73 includes the following: The sampling data sequence acquisition module is used to extract the sampling data sequence of the selected signal within the selected interval in response to the user selecting a time interval on the waveform curve; The analysis chart generation module is used to perform time-domain statistics or frequency-domain transformation calculations on the sampled data sequence according to the analysis type selected by the user, obtain the calculation results, and generate analysis charts based on the calculation results. The time-domain statistics include calculating the maximum value, minimum value, and root mean square value; the frequency-domain transformation calculation includes performing a fast Fourier transform to generate a spectrum diagram, or combining phase information to generate a Bode plot.
[0083] Furthermore, before selecting the operation response module 71, the following is also included: At least one coordinate system container is constructed in the display interface, wherein the coordinate system container includes a horizontal axis and multiple vertical axes; the multiple vertical axes include a reference axis and multiple data axes; the scale labels of all data axes are initially set to a hidden state; the scale labels of the reference axis are always displayed.
[0084] Furthermore, the display range configuration module 72 includes: The allocation unit is used to dynamically calculate the upper and lower limits of the display of each vertical axis to which a selected signal is allocated, based on the maximum and minimum values of the selected signal within the current display time window, so that the waveform of the selected signal occupies a preset height ratio range on the display screen. The hidden unit is used to hide the scale markings of the vertical axis that are not assigned the selected signal.
[0085] The aforementioned oscilloscope display device can be implemented as a computer program, which can, for example... Figure 9 It runs on the computer device shown.
[0086] Please see Figure 9 , Figure 9 This is a schematic block diagram of a computer device provided in an embodiment of the present invention. The computer device 500 includes a processor 502, a memory, and a network interface 505 connected via a device bus 501, wherein the memory may include a storage medium 503 and internal memory 504.
[0087] The storage medium 503 may store the operating device 5031 and the computer program 5032. When the computer program 5032 is executed, it causes the processor 502 to execute the oscilloscope display method.
[0088] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.
[0089] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the oscilloscope display method.
[0090] The network interface 505 is used for network communication, such as providing data information transmission. Those skilled in the art will understand that the structures shown in the embodiments of this application are merely block diagrams of some structures related to the present invention and do not constitute a limitation on the computer device 500 to which the present invention is applied. A specific computer device 500 may include more or fewer components than shown in the figures, or combine certain components, or have different component arrangements.
[0091] The processor 502 is used to run the computer program 5032 stored in the memory to implement the oscilloscope display method disclosed in the embodiments of the present invention.
[0092] Those skilled in the art will understand that the embodiments of the computer device shown in this application do not constitute a limitation on the specific configuration of the computer device. In other embodiments, the computer device may include more or fewer components than shown, or combine certain components, or have different component arrangements. For example, in some embodiments, the computer device may include only a memory and a processor. In such embodiments, the structure and function of the memory and processor are consistent with those shown in the above embodiments, and will not be repeated here.
[0093] It should be understood that, in this embodiment of the invention, the processor 502 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0094] In another embodiment of the present invention, a computer-readable storage medium is provided. This computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the oscilloscope display method disclosed in the embodiments of the present invention.
[0095] Those skilled in the art will readily understand that, for the sake of convenience and brevity, the specific working processes of the devices, apparatuses, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this invention.
[0096] In the embodiments provided by this invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Units with the same function may be grouped into one unit. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, or may be electrical, mechanical, or other forms of connection.
[0097] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of the present invention, depending on actual needs.
[0098] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0099] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of this invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a backend server, or a network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks.
[0100] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. An oscilloscope display method, characterized in that, include: In response to the user's selection of multiple signals, the selected signals are assigned to different vertical axes in a pre-built coordinate system container; For each vertical axis assigned a selected signal, the display range of the vertical axis is configured independently according to the numerical attribute of the selected signal. The real-time sampling data of the selected signal is obtained, and the waveform curves of each selected signal are synchronously plotted in the coordinate system container based on the display range of each vertical axis.
2. The oscilloscope display method according to claim 1, characterized in that, After acquiring real-time sampling data of the selected signals and synchronously plotting the waveform curves of each selected signal in the coordinate system container based on the display range of each of the vertical axes, the method further includes: In response to the user enabling the waveform comparison function, the display interface is divided into a first coordinate system and a second coordinate system; wherein, the first coordinate system is used to load and display historical waveform data, and the second coordinate system is used to continuously display real-time acquired waveform data; the first coordinate system and the second coordinate system each have their own independent coordinate system container containing a horizontal coordinate axis and multiple independently configured vertical coordinate axes.
3. The oscilloscope display method according to claim 2, characterized in that, After responding to the user enabling the waveform comparison function and dividing the display interface into a first coordinate system and a second coordinate system, the method further includes: In synchronization mode, the horizontal axes of the first coordinate system and the second coordinate system are scaled and translated synchronously, and the scaling operation of at least one common vertical axis is linked to keep the first coordinate system and the second coordinate system in the same observation range. In asynchronous mode, the first coordinate system and the second coordinate system respond independently to their respective scaling and translation operations.
4. The oscilloscope display method according to claim 2, characterized in that, After responding to the user enabling the waveform comparison function and dividing the display interface into a first coordinate system and a second coordinate system, the method further includes: In response to the data migration command, the historical waveform data of the selected channel in the first coordinate system is superimposed onto the corresponding channel in the second coordinate system according to the time alignment rules, so that the historical waveform data and the real-time waveform data are displayed in the same coordinate system.
5. The oscilloscope display method according to claim 1, characterized in that, After acquiring real-time sampling data of the selected signal and synchronously plotting the waveform curves of each selected signal in the coordinate system container based on the display range of each of the vertical axes, the method includes: In response to the user selecting a time interval on the waveform curve, the sampled data sequence of the selected signal within the selected interval is extracted; Based on the analysis type selected by the user, time-domain statistics or frequency-domain transformation calculations are performed on the sampled data sequence to obtain the calculation results, and analysis charts are generated based on the calculation results. The time-domain statistics include calculating the maximum value, minimum value, and root mean square value; the frequency-domain transformation calculation includes performing a fast Fourier transform to generate a spectrum diagram, or combining phase information to generate a Bode plot.
6. The oscilloscope display method according to any one of claims 1 to 5, characterized in that, Before assigning the selected signals to different ordinate axes in a pre-constructed coordinate system container in response to a user's selection of multiple signals, the method further includes: At least one coordinate system container is constructed in the display interface, wherein the coordinate system container includes a horizontal axis and multiple vertical axes; the multiple vertical axes include a reference axis and multiple data axes; the scale labels of all data axes are initially set to a hidden state; the scale labels of the reference axis are always displayed.
7. The oscilloscope display method according to any one of claims 1 to 5, characterized in that, The step of independently configuring the display range of the vertical axis according to the numerical attributes of the selected signal for each vertical axis assigned a selected signal includes: For each vertical axis assigned a selected signal, the upper and lower limits of the vertical axis are dynamically calculated based on the maximum and minimum values of the selected signal within the current display time window, so that the waveform of the selected signal occupies a preset height ratio range on the display screen. Hide the scale markings on the vertical axis that are not assigned the selected signal.
8. An oscilloscope display device, characterized in that, include: The selected operation response module is used to respond to the user's selection of multiple signals and assign the selected signals to different vertical axes in a pre-built coordinate system container. The display range configuration module is used to independently configure the display range of each vertical axis that is assigned a selected signal, based on the numerical attributes of the selected signal. The waveform curve drawing module is used to acquire real-time sampling data of the selected signal and synchronously draw the waveform curve of each selected signal in the coordinate system container based on the display range of each vertical axis.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the oscilloscope display method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to perform the oscilloscope display method as described in any one of claims 1 to 7.