Signal analysis interaction method, device, electronic device, and recording medium
The signal analysis method simplifies signal analysis operations by enabling intuitive project selection and parameter determination through screen interactions, enhancing efficiency and flexibility.
Patent Information
- Application Number
- JP2025545982
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-30
- Filing Date
- 2024-06-07
- Publication Date
- 2026-02-12
AI Technical Summary
Current electronic measuring instruments require complex and time-consuming operations through multiple hierarchical menus to set test parameters and analyze signals, leading to reduced work efficiency.
A signal analysis interaction method that displays a project setting interface on a screen, allows users to select analysis projects and signal waveforms through intuitive control operations, and determines signal parameters based on image selection areas, enabling direct execution of analysis projects.
Facilitates efficient and flexible signal analysis by allowing users to freely set analysis projects and quickly select signals, simplifying operations and improving efficiency.
Smart Images

Figure 2026505198000001_ABST
Abstract
Description
[Technical Field]
[0001] This application claims priority to Chinese Patent Application No. 2023111076925, filed on August 30, 2023, entitled "Signal Analysis Interaction Method, Apparatus, Electronic Device and Recording Medium," the entire text of which is incorporated herein by reference.
[0002] The present application relates to the field of signal analysis technology, and in particular to a signal analysis interaction method, a signal analysis device, an electronic device, and a computer-readable recording medium. [Background technology]
[0003] In the field of electronic measurement technology, electronic measuring instruments such as oscilloscopes and spectrum analyzers are widely used. These instruments convert various invisible electrical signals such as voltage and current into visible waveform curves for display, which is convenient for studying the change processes of various electrical phenomena. In the process of displaying the waveform curves of each signal using electronic measuring instruments, it is necessary to set the test parameters for each waveform curve on the electronic measuring instruments and detect the signal quality of the electrical signal corresponding to the waveform curve.
[0004] Currently, when performing a signal test with such electronic measuring equipment, it is necessary to go through multiple hierarchical menus to obtain the desired operation, for example, from the start menu to set the channel, measurement range, function options, etc. This complicated and time-consuming operation results in reduced work efficiency. Summary of the Invention [Problem to be solved by the invention]
[0005] In view of the above-mentioned problems, embodiments of the present application provide a signal analysis interaction method, a signal analysis device, an electronic device, and a computer-readable recording medium to solve at least one problem in the background art. [Means for solving the problem]
[0006] In a first aspect, an embodiment of the present application provides a signal analysis interaction method applied to a signal analysis device having a screen, the method comprising: Displaying the signal analysis project setting interface on the above screen; Obtaining a first control operation through the analysis project setting interface to determine an analysis project to be executed; displaying a waveform image of the at least one signal in an image display area of a screen based on the acquired at least one signal; displaying, in response to a second control operation, a selection area in an image display area of the screen, the selection area being used to indicate an area in the image display area selected by the second control operation; obtaining a parameter of the signal selected by the second control operation based on an image within the selected region; A signal analysis interaction method is provided, which includes executing the analysis project to be executed based on parameters of the signal, and displaying the execution result.
[0007] In relation to the first aspect of the present application, in any embodiment, the parameters of the signal include a channel list of the signal; Obtaining a parameter of the signal selected by the second control operation based on the image within the selected region includes obtaining a pixel color of the image within the selected region; determining the channel list based on a correspondence between the pixel colors and the channels of the signal;
[0008] In relation to the first aspect of the present application, in any embodiment, obtaining pixel colors of the image within the selected area includes selecting at least one column of pixels from the selected area and determining pixel colors of the image within the selected area based on the pixel colors of the column.
[0009] In relation to the first aspect of the present application, in any embodiment, the parameters of the signal include a first signal range and a second signal range; Obtaining parameters of the signal selected by the second control operation based on the image within the selected area includes determining a first signal range and a second signal range based on a horizontal range and a vertical range of the image within the selected area, respectively.
[0010] In relation to the first aspect of the present application, in any embodiment, the parameters of the signal include a channel list of the signal, and the channel list is determined based on the first signal range and the second signal range.
[0011] In relation to the first aspect of the present application, in any embodiment, the method further includes obtaining a first control operation via the analysis project setting interface, determining an analysis project to be executed, and then displaying a list of the analysis projects to be executed.
[0012] In relation to the first aspect of the present application, in any embodiment, the waveform of the at least one signal includes a time domain waveform or a frequency domain waveform; parameters of the signal corresponding to the time-domain waveform include a time range, an amplitude range, a channel identifier, and / or signal data; The parameters of the signal corresponding to the frequency domain waveform include a frequency range, a signal power, a channel identifier, and / or signal data.
[0013] In a second aspect, an embodiment of the present application provides a signal analysis device, comprising: a display unit configured to display a signal analysis project setting interface on a screen, and display a waveform image of the at least one signal in an image display area of the screen based on the acquired at least one signal, and further configured to display, in response to a second control operation, a selection area in the image display area of the screen, used to indicate an area selected by the second control operation in the image display area; a control operation acquisition unit configured to acquire a first control operation via the analysis project setting interface, determine an analysis project to be executed, and acquire a second control operation; and a processing unit configured to acquire parameters of the signal selected by the second control operation based on an image within the selected area, execute the analysis project to be executed based on the parameters of the signal, and control a display unit to display the execution results.
[0014] In a third aspect, an embodiment of the present application provides an electronic device comprising: a memory having a computer program stored therein; and a processor that, when executing the computer program, implements the steps of the signal analysis interaction method according to any of the above aspects.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable recording medium having stored thereon a computer program that, when executed by a processor, implements the steps of the signal analysis interaction method according to any of the above aspects. [Effects of the Invention]
[0016] The signal analysis interaction method, signal analysis device, electronic device, and computer-readable recording medium provided in the embodiments of the present application allow a user to freely set an analysis project of interest and quickly select a signal to be analyzed by receiving a first control operation through an analysis project setting interface to set a desired analysis project, and receiving a second control operation to determine the signal waveform to be analyzed selected in the image display area of the screen. In this way, the technical problems of signal analysis requiring multiple interactions in the past and the complicated, time-consuming, and inefficient operation of signal analysis are solved, and the flexibility and convenience of waveform analysis operations are improved, thereby improving the efficiency of signal analysis.
[0017] Other aspects and advantages of the present application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application. [Brief explanation of the drawings]
[0018] The drawings described herein are provided to facilitate a further understanding of the present application and constitute a part of the present application. The exemplary embodiments and the description thereof are used for purposes of illustrating the present application and are not intended to unduly limit the present application. In the drawings,
[0019] [Figure 1] FIG. 1 is a schematic diagram of a signal analysis interaction method according to an embodiment of the present application; [Figure 2] FIG. 1 is a schematic diagram of an analysis project setting interface according to an embodiment of the present application. [Figure 3] FIG. 10 is a schematic diagram showing an analysis project list according to an embodiment of the present application. [Figure 4] FIG. 2 is a first schematic diagram of an image display area according to an embodiment of the present application. [Figure 5] FIG. 2 is a second schematic diagram of an image display area according to an embodiment of the present application. [Figure 6] FIG. 2 is a schematic diagram of waveform superposition in one embodiment of the present application. [Figure 7] FIG. 10 is a schematic diagram showing an analysis result according to an embodiment of the present application. [Figure 8] 1 is a first schematic diagram of a signal analyzing device according to an embodiment of the present application; [Figure 9] FIG. 2 is a second schematic diagram of a signal analyzing device according to an embodiment of the present application. [Figure 10] 1 is a schematic diagram of an electronic device according to an embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION
[0020] In order to make the technical solutions and their beneficial effects of the present application clearer and easier to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below by way of specific embodiments, but it is obvious that the described embodiments are only a part of the embodiments of the present application, and are not all of them. Based on the embodiments of the present application, all other embodiments that can be obtained by those skilled in the art without any creative work shall fall within the protection scope of the present application.
[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. The terms used herein in describing this application are used only for the purpose of describing particular embodiments and are not intended to be limiting of this application.
[0022] As used in this application, terms such as "first," "second," and the like may be used to describe various components herein, but it should be understood that these components are not limited by these terms. These terms are used only to distinguish a first component from another component. For example, a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor, without departing from the scope of this application. A first resistor and a second resistor are both resistors, but they are not the same resistor. The use of "first" does not necessarily imply the presence of a "second," and the use of "second" does not necessarily indicate the presence of a first component, member, region, level, or portion in this application. As used herein, the singular forms "a," "one," and "the" are intended to encompass the plural unless the context clearly dictates otherwise. "Plurality" means two or more unless expressly limited. It should also be understood that the use of the term "comprising" in this specification may specify the presence of the feature in question, but does not exclude the presence or addition of one or more other features. As used herein, the term "and / or" includes any and all combinations of the associated listed items.
[0023] In the context of this application, "connection" refers to the mutual transmission of electrical signals or data between one connected end and the other connected end, and it should be understood that it can be interpreted as, for example, "electrical connection" or "communication connection." In the context of this application, "A is directly connected to B" means that there are no other components between A and B other than conductors.
[0024] The signal analysis interaction method and signal analysis apparatus according to the embodiments of the present application are applicable to electronic measurement instruments such as oscilloscopes, spectrum analyzers, frequency meters, etc.
[0025] Referring to FIG. 1, the signal analysis interaction method is applied to a signal analysis device with a screen, and includes the following steps:
[0026] S10: Display a signal analysis project setting interface on the screen. The signal analysis project setting interface includes two or more analysis project selection controls. The analysis project setting interface is used to present to a user analysis functions that the device can perform and allow the user to intuitively specify a project to be analyzed through visual interaction. Optionally, the analysis project setting interface includes different functional areas divided based on analysis functional areas. The functional areas include at least one selection control for receiving a user control operation and determining an analysis project selected by the user. Optionally, the selection control includes a text input box, a button control, a check box control, a radio button control, a drop-down selection control, a list control, or the like. Optionally, the screen has a touch panel or a non-touch panel. The method for receiving a user control operation includes a method for receiving an analysis project corresponding to the selection control selected by the user using an input device such as a mouse, a keyboard, or a touch panel.
[0027] FIG. 2 illustrates a possible analysis project configuration interface, including multiple functional areas, such as automatic measurement, mathematical operation, bus decoding, and complex analysis. Each functional area includes multiple corresponding function selection controls. For example, the automatic measurement functional area includes Measurement Item 1 through Measurement Item 5, which respectively measure maximum value, amplitude, average value, frequency, and overshoot. The mathematical operation functional area includes Mathematical Operation 1 through Mathematical Operation 5, which respectively perform addition, subtraction, multiplication, division, and logical AND operations. The bus decoding functional area includes Bus 1 through Bus 5, which respectively represent five types of buses: IIC, SPI, UART, CAN, and LIN. The complex analysis functional area includes area screenshot, Bode diagram analysis, manual cursor, histogram analysis, power analysis, Lissajous analysis, and real-time spectrum. The number and content of the functional areas and selection controls can be configured as needed. Optionally, the selection controls in FIG. 2 include checkbox controls. It is understood that the types of controls can be configured as needed, and that different types of controls can be arbitrarily combined.
[0028] S20: Obtain a first control operation through the analysis project setting interface to determine the analysis project to be executed. The user's first control operation is received by a plurality of selection controls in the analysis project setting interface. Optionally, the user can perform the first control operation using an input device such as a touch panel, a keyboard, a mouse, or voice input. The analysis project setting interface includes a plurality of selection controls for receiving the user's first control operation. Optionally, the selection control includes a plurality of different types for receiving different types of first control operations. Referring to FIG. 2 , a checkbox control is used to receive the selection control operation for a function area. When a checkbox control corresponding to a function area is selected, it indicates that the selection control operation has been received. When a histogram analysis checkbox control in the complex analysis function area is selected, it indicates that an analysis project for histogram analysis has been received. When a checkbox control in the automatic measurement function area is selected and measurement item 1 and measurement item 2 in the function area are selected, it indicates that the analysis functions for measurement item 1 and measurement item 2 have been received. Optionally, when the selection control receives a control operation, the color of the selection control changes. As shown in Fig. 2, when measurement item 1 and measurement item 2 of the selection control receive a control operation, their color changes from the original white to blue. Optionally, the selection control in Fig. 2 includes a checkbox control, and when a control is selected, the rectangular frame of the control is filled with color.
[0029] The analysis project includes a single-channel analysis project, a dual-channel interaction analysis project, and / or a multi-channel interaction analysis project. Optionally, the analysis project setting interface may display the single-channel analysis project, the dual-channel interaction analysis project, and / or the multi-channel interaction analysis project as needed. The single-channel function is realized by performing processing such as analysis or parameter measurement on a single-channel signal. The dual-channel interaction function is realized by performing interaction processing between two or more channel signals. For time-domain waveforms, the single-channel function options include measurement analysis, cursor analysis, zoom magnification, histogram analysis, area decoding, single-channel frequency analysis, single-channel digital voltmeter analysis, and fast Fourier transform (FFT) calculation analysis.
[0030] The measurement analysis is used to obtain one or more waveform parameters of the selected channel signal in the entire image display area or in the selected area range, such as period, frequency, rise time, fall time, positive pulse width, negative pulse width, positive duty ratio, negative duty ratio, number of positive pulses, number of negative pulses, number of rising edges, number of falling edges, time to maximum value, time to minimum value, positive slope, negative slope, maximum amplitude, minimum amplitude, peak-to-peak value, maximum value, minimum value, average value, and RMS value. For example, the entire image display area is in the range of -800 ns≦t≦1500 ns.
[0031] Cursor measurements are used to obtain parameters of the selected channel signal and selected waveform range, such as peak-to-peak value, period, frequency, time range, etc. For example, the selected waveform range is -500ns≦t≦500ns, -300mV≦a≦200mV.
[0032] ZOOM is used to enlarge the selected channel signal or selected waveform range to the entire image display area, or automatically enlarge the selected channel to clearly display the waveform on the screen. Histogram analysis counts the occurrence of the instantaneous amplitude of each sample value of the waveform to grasp the waveform structure. The histogram is rotated so that its amplitude scale is vertical to match the waveform and overlay it on the signal waveform. Domain decoding translates the selected protocol message signal into the corresponding data meaning. FFT analysis performs a fast Fourier transform on the selected signal to obtain frequency domain information.
[0033] Dual-channel and / or multi-channel interaction analysis projects include math operations, dual-channel measurements, Lissajous curves, power quality analysis, multi-channel trigger settings, or decoding settings. Dual-channel measurements are used to obtain information such as waveform delay and phase between two selected channels. Math operations are used to perform arithmetic operations, including addition, multiplication, division, and subtraction, or logical operations, including AND, OR, and NOT, on the waveforms of two selected channels. Lissajous curves are used to obtain the composite locus of two sinusoidally oscillating signals along mutually perpendicular directions and measure the frequency ratio and phase difference between the two signals. Power quality analysis is used to analyze power quality according to the selected channels. For example, channel CH1 can be set as voltage and channel CH3 as current, and a selected waveform range can be analyzed, or the waveform data of the entire image display area can be analyzed. The multi-channel trigger setting or decode setting is used to set the trigger signal. For example, when setting the IIC (I2C) protocol trigger or decode, channel CH1 is used as the trigger clock and channel CH3 is used as the data.
[0034] As shown in Figure 4, the selection area contains two channels CH1 and CH3, and two waveforms 1 , waveform 2 is selected, and the rectangular frame in the figure is a single selection area identifier drawn by the user. The dual-channel interaction analysis project is waveform analysis for selected channels CH1 and CH3, such as summation operation for CH1 and CH3, phase measurement for CH1 and CH3, delay measurement for CH1 and CH3, Lissajous curve analysis for CH1 and CH3, power quality for CH1 and CH3, trigger for CH1 and CH3, etc.
[0035] For frequency domain waveforms, single channel analysis projects include magnification, area peak, signal-to-noise ratio (SNR), bandwidth, power measurement, etc. Dual channel or multi-channel interaction analysis projects include mathematical operations, normalization, two-way copying, etc. Optionally, the mathematical operations include addition, subtraction, multiplication, division, logarithm, exponential, etc.
[0036] Optionally, after step S20, the method may further include displaying a list of analysis projects to be executed (S21). When the analysis projects to be executed are determined, the list of the determined analysis projects to be executed is displayed on the screen, thereby presenting the analysis projects selected by the user to the user for confirmation or inspection. As shown in Fig. 3, the list of analysis projects to be executed displayed on the screen includes maximum value, average value, histogram analysis, and manual cursor.
[0037] S30: Based on the acquired at least one signal, display a waveform image of the at least one signal in an image display area of the screen. Before displaying the signal waveform, first acquire the signal to be analyzed. The signal may be acquired from one or more channels. Optionally, each channel includes one signal waveform. Optionally, the waveform includes a time domain waveform or a frequency domain waveform. Optionally, step S30 is located before or after step S10.
[0038] The image display area can be any type of display capable of displaying an image, including a CRT display, a liquid crystal display, an LED display, an LCD display, or a touch display. The image display area is composed of multiple pixels. The image is displayed by changing the color and brightness of the pixels. The image can be a two-dimensional image or a three-dimensional image. Each pixel has a coordinate position and a pixel attribute value. In a two-dimensional image, the coordinate position includes a horizontal coordinate and a vertical coordinate. In a three-dimensional image, the coordinate position is expressed as three values (x, y, z), where x, y, and z are the coordinate values of the x-axis, y-axis, and z-axis, which have a common coordinate origin and are mutually perpendicular.
[0039] The physical meaning of a coordinate position varies depending on the measurement instrument and the measurement target. Optionally, a coordinate position in a 2D image includes a horizontal coordinate and a vertical coordinate. For example, in an oscilloscope, the horizontal coordinate represents time, and the vertical coordinate represents signal amplitude (V / mV), such as voltage or current amplitude. In a spectrum analyzer, the horizontal coordinate represents frequency, and the vertical coordinate represents signal power in decibels (dB). In a 3D image, x represents time or frequency, y represents amplitude or power, and z represents waveform number or channel number.
[0040] Different pixel color attributes are used to display different waveforms in the waveform image. Optionally, color values are displayed using different color modes, such as RGB color mode, HSB color mode, grayscale mode, and bitmap mode. RGB color mode is a color composed of the three primary colors red (R), green (G), and blue (B). HSB color mode is a color expressed by hue (H), saturation (S), and brightness (B). Grayscale mode uses different grayscale levels to display brightness, such as 0 to 255. Bitmap mode displays pixels in the image in two colors: black and white.
[0041] Optionally, the signal data is read from a memory unit, where the signal data to be processed is stored in advance, or acquired by processing signals collected from an input port in real time. For example, the signal data acquisition method is as follows: First, a probe is used to sample the signal to obtain an analog input signal. Next, an analog signal processing unit controls the gain and offset of the analog input signal, amplifying or attenuating the analog signal, and outputs a signal of appropriate amplitude. Next, the output signal from the analog signal processing unit is analog-to-digital converted and output as a digital signal. Next, the digital signal is acquired and cached in a memory unit. Signals acquired multiple times are superimposed, and after data processing such as compression, filtering, or interpolation, the result is recorded to obtain waveform data. Optionally, signals from different analog signal processing units are distinguished by different colors.
[0042] The waveform image includes a waveform portion and a background portion. Figure 4 shows a partial image display area of the display, where the horizontal axis represents time in nanoseconds (ns) and the vertical axis represents amplitude in millivolts (mV). Two waveform images, waveform image 1 and waveform image 2, are displayed in the image display area. Waveform 1 is yellow and represented by a first pixel value, and waveform 2 is red and represented by a second pixel value. In the image display area, black represents the background and is represented by a third pixel value.
[0043] It is understood that the number of waveforms displayed in the image display area is not limited, and may be two waveforms as shown in Figure 4, or may be one, three, five, etc. The type of waveform to be displayed is also not particularly limited, and may be a square wave, a triangular wave, a sine wave, or any other type of waveform.
[0044] S40: In response to a second control operation, a selection area is displayed in the image display area of the screen, which is used to indicate the area selected in the image display area by the second control operation. The user draws the selection area or selects an area in the image display area by the second control operation. The selection area includes an image of the waveform of the signal to be analyzed selected by the second control operation, for example, a waveform image of a channel or multiple channels. The second control operation allows the user to select the desired analysis waveform.
[0045] The selection area may be a closed or non-closed area. The identifier of the selection area may be a regular shape, such as a rectangle, a circle, a triangle, or an ellipse (see FIG. 6). It may also be an irregular shape, such as a hand-drawn circle or a shape surrounded by multiple line segments or curves. By displaying the selection area in the image display area, a user can easily determine whether the current selection area is the desired selection area in a so-called WYSIWYG (What You See Is What You Get) manner. The selection area may be one or more. Figure 4 shows three selection areas. Means for implementing the second control operation may include, but are not limited to, a keyboard, a mouse, a microphone, a gesture recognition device, a touch display, or a touch panel. In this way, the user can intuitively and flexibly select the waveform to be analyzed.
[0046] Optionally, a selection area can be obtained by changing the position of the icon in the image display area. The icon is used to track and display in real time a change in the contact position when the image display area is touched, or a pixel position selected within the image display area. Optionally, when a selection area is drawn by touching the image display area with a finger or a touch pen, the icon can track a change in the position of the finger or touch pen in the image display area, for example, a movement trajectory. Alternatively, when a pixel in the image display area is selected with a mouse and the mouse cursor is moved, the icon can display a change in the position of the selected pixel. The icon may be a shape such as an arrow, a circle, or a cross of a specific color.
[0047] It is understood that when the mouse cursor moves within the image display area, or when a finger or touch pen touches the image display area and moves within the image display area, the icon changes linearly as the mouse cursor, finger or touch pen moves, and by tracking the position change or movement trajectory, a selection area identifier is formed.
[0048] Optionally, the method for drawing the selection area is as follows: two pixels are selected in the image display area, and the positions of these two pixels are displayed using an icon. The coordinate values of these two pixels are set as the diagonal vertices of a rectangle, and the four sides of the rectangle are parallel to the horizontal and vertical axes, and the area defined thereby is set as the selection area. Alternatively, multiple pixels are selected in the image display area, and the selected pixels are connected in sequence to determine the area enclosed thereby as the selection area. The image range of the selection area can be determined by obtaining the pixel coordinates of the selection area identifier.
[0049] Pixel selection is achieved by operating an input device such as a mouse, a touch display, or a touch panel. Optionally, the operation method is as follows: click the mouse button multiple times or click the touch display or touch panel, and the location where the icon is located in the image display area at each click becomes the location of the selected pixel; or first press the mouse button or press the touch display or touch panel with a finger or a touch pen, and then drag the mouse, finger, or touch pen along a predetermined path, and the location where the icon passes becomes the location of the selected pixel; or first press the mouse button or press the touch display or touch panel with a finger or a touch pen, and then drag the mouse, finger, or touch pen along a predetermined path, and then release the button, finger, or touch pen, and the location where the icon is located when the mouse button is pressed and released becomes the location of the selected pixel.
[0050] The visualized operation method described above allows the waveform to be analyzed to be selected flexibly and conveniently, simplifies the operation of the signal analysis equipment, and improves the efficiency of signal analysis work.
[0051] S50: Based on the image within the selected region, parameters of the signal selected by the second control operation are acquired. The signal parameters include a channel list of the signal. The signal parameters further include a first signal range and a second signal range. The selected region drawn or specified by the user in the image display region by the second control operation includes an image of the waveform of the desired analytic signal. Based on the image of the waveform within the selected region, a channel list of the signal selected by the second control operation is determined. Optionally, the channel list includes information such as the number and / or identifier of channels. The channel identifier is used to indicate the channel to which the waveform belongs. Optionally, the channel list is determined by counting the color values of image pixels within the selected region. Each channel is associated with a different color, allowing the images of the waveforms to be displayed distinctively. Therefore, by determining the pixel color values of the image within the selected region, information such as the number and identifier of channels can be determined. Specifically, the method includes the following steps.
[0052] S501: Obtain the pixel colors of the image within the selected area. The image data within the selected area includes the horizontal axis, vertical axis, and pixel color value of each pixel within the selected area. Each channel corresponds to a different color value, so the number and identifier of the channel can be determined based on the color value. In Figure 4, the horizontal axis range of the selected area, bounded by a white solid line, is [-50ns, 50ns], and the vertical axis range is [-300mV, 300mV]. The selected area contains three colors: yellow and red represent waveform image 1 and waveform image 2, respectively, and black represents the background. These three colors are represented by three codes: #FFDD55, #FF3333, and #000000. Counting the pixel color values within the selected area reveals that the color values outside the background are #FFDD55 and #FF3333.
[0053] S502: Determine a channel list based on the correspondence between pixel colors and signal channels. When waveform data is displayed as an image, the waveform of each channel is represented by a different pixel color value. After counting the pixel color values within the selected area, the channel list selected for the selected area can be determined based on the correspondence between the pixel color values and the channel signals. The channel list includes information such as the number of channels, identifiers, and gain settings. If the color values of Waveform Image 1 and Waveform Image 2 in Figure 4 are #FFDD55 and #FF3333, respectively, then there are two types of pixel colors within the selected area, and the corresponding channel identifiers are identified as two channels, CH1 and CH3.
[0054] Optionally, step S501 further includes: S5011: selecting at least one column of pixels from the selected region, and determining the pixel color of the image within the selected region based on the pixel color of the column. Counting the color types of the pixels in the column is used as the pixel color type of the image within the selected region. The image data is recorded in a two-dimensional array, with the column index of the array corresponding to the horizontal axis of the image, the row index of the array corresponding to the vertical axis of the image, and the value of the array corresponding to the pixel color value at the coordinate position. Optionally, a column along the vertical axis of symmetry of the selected region is selected for counting. Selecting and counting only one column from the selected region avoids statistical calculations for the pixels in the entire selected region, thereby improving calculation speed.
[0055] Optionally, the signal parameters further include a first signal range, a second signal range, and signal data, where for a time-domain waveform, the first signal range and the second signal range are a time range and an amplitude range, respectively, and for a frequency-domain waveform, the first signal range and the second signal range are a frequency range and a signal power range, respectively.
[0056] S511: Determine a first signal range and a second signal range based on the horizontal and vertical ranges of the image within the selected region. The horizontal and vertical coordinates of a waveform image each represent different physical meanings. For time-domain waveforms, when displaying signal data, the horizontal coordinate of each pixel in the image corresponds to a different time of the signal, and the vertical axis of each pixel corresponds to the signal amplitude. For frequency-domain waveforms, when displaying signal data, the horizontal coordinate of each pixel in the image corresponds to a different frequency of the signal, and the vertical axis of each pixel corresponds to the signal power. Based on the horizontal range of the image within the selected region, the start time and end time or start frequency and end frequency of the selected signal to be analyzed, i.e., the first signal range, can be determined. Based on the vertical range of the image within the selected region, the amplitude range or power range of the selected signal to be analyzed, i.e., the second signal range, can be determined. As shown in Figure 4, for time-domain waveform images, the selected region is bounded by a white solid line frame. Based on the above-mentioned correspondence between the image and the waveform, the first signal range is obtained as time t, -50 ns≦t≦50 ns, and the second signal range is obtained as amplitude a, -300 mV≦a≦300 mV. For the frequency domain waveform image, as shown in Figure 5, the selected region is delimited by a dashed frame, with the first signal range being approximately 1.9 MHz and the second signal range being approximately 6 dBm.
[0057] For some analysis projects, it may be feasible to acquire only the first and second signal ranges. For example, zooming in may be used.
[0058] Optionally, the channel list is determined by comparing the data ranges of the signals.
[0059] S512: Determine a channel list based on the first signal range and the second signal range. From the acquired signals, compare whether the time and amplitude of each channel signal data falls within the selected data range. If so, it indicates that the channel signal has been selected. First, identify the signal corresponding to data within the first signal range from the acquired data collected for each channel. Next, determine the signal channel corresponding to data within both the first signal range and the second signal range. As shown in FIG. 4, the signal data range of the selected region is time t: -50 ns≦t≦50 ns, amplitude a: -300 mV≦a≦300 mV. By comparing the acquired signal data, it is found that two channel signals CH1 and CH3 fall within the signal data range of the selected region, and it can be determined that the two channels CH1 and CH3 are selected in the selected region.
[0060] When waveform images overlap, the channel list cannot be determined by the pixel color of the image. As shown in Figure 6, the waveforms of two channels, CH1 and CH3 (3 and 4), overlap. In this case, the channel list can be determined by comparing the channel signal data, effectively solving the problem of overlapping waveform images.
[0061] S60: Execute the analysis project to be executed based on the signal parameters, and display the execution results. After determining the selected area through the second control operation, the signal parameters within the selected area are automatically read, and the determined analysis project to be executed is launched and executed. The determined function to be executed is executed by calling each functional module of the device. Different signal parameters are selected and transmitted according to different functions to be executed. Optionally, if the function option determined through the second control operation is FFT calculation, the data of the selected channel and its horizontal range, for example, a horizontal range [-100 us, 100 us], are transmitted; if the function option determined through the second control operation is cursor analysis, the data of the selected channel and its horizontal and vertical ranges, for example, a horizontal range [-500 ns, 500 ns] and a vertical range [-300 mV, 200 mV], are transmitted; and if the function option determined through the second control operation is ZOOM magnification, the horizontal range of the screen display area, for example, [-500 ns, 500 ns], are transmitted.
[0062] Optionally, the analysis results are displayed in the image display area. Referring to Figure 7, the image display area simultaneously displays the signal waveform image and the analysis results. The solid-line rectangular frame in the figure is the selected area. The lower left of the figure shows the histogram analysis results, the upper right shows the manual cursor analysis results, and the lower right shows the average and maximum value analysis results. The number of display areas for the execution results is determined according to the number of analysis projects to be executed.
[0063] By analyzing the project setting interface, a first control operation is obtained to set the desired analysis project, and by obtaining a second control operation, the signal waveform to be analyzed selected in the image display area of the screen is determined, allowing the user to freely set the analysis project of interest and quickly select the signal to be analyzed. In this way, the technical problems of signal analysis operations requiring multiple interactions in the past, which were cumbersome, time-consuming, and inefficient, are solved, and the flexibility and convenience of waveform analysis operations are improved, thereby increasing the efficiency of signal analysis.
[0064] Another embodiment of the present application provides a signal analysis device for realizing the above signal analysis interaction method. Optionally, referring to Figures 8 and 9, the signal analysis device includes:
[0065] The control operation acquisition unit 601 is configured to acquire a first control operation via the analysis project setting interface and determine an analysis project to be executed.
[0066] The display unit 602 is configured to display a signal analysis project setting interface on the screen. The display unit 602 is further configured to display a waveform image of the at least one signal in an image display area of the screen based on the acquired at least one signal. Optionally, the display unit 602 is further configured to display a selection area identifier, a selection control, and / or a signal execution result. Optionally, the processing result is a result corresponding to a function option or a result corresponding to multiple function options.
[0067] The control operation acquisition unit 601 is configured to acquire a second control operation for selecting a signal waveform to be further analyzed. In response to the second control operation, the display unit 602 displays a selection area in the image display area of the screen, the selection area being used to indicate the area in the image display area selected by the second control operation.
[0068] The processing unit 603 is configured to acquire parameters of the signal selected by the second control operation based on the image within the selected region, and is further configured to execute an analysis project to be executed based on the parameters of the signal, and control the display unit to display the execution results.
[0069] In one optional embodiment, displaying a function option to be performed based on the channel list includes determining the number of channels in the channel list, and displaying a first function option if the number of channels is one, and displaying a second function option if the number of channels is two or more.
[0070] In one optional embodiment, the parameters of the signal include a channel list of the signal, and the channel list is determined based on the correspondence between pixel colors and channels of the signal.
[0071] In one optional embodiment, obtaining pixel colors of the image within the selected region includes selecting at least one column of pixels from the selected region and determining pixel colors of the image within the selected region based on the pixel colors of the column.
[0072] In one optional embodiment, the parameters of the signal include a first signal range and a second signal range, and obtaining the parameters of the signal selected by the second control operation based on the image within the selected region includes determining the first signal range and the second signal range based on a horizontal range and a vertical range of the image within the selected region, respectively.
[0073] In one optional embodiment, the parameters of the signal include a channel list for the signal, and the channel list is determined based on the first signal range and the second signal range.
[0074] In one optional embodiment, the method includes obtaining a first control operation by analyzing a project setting interface to determine an analysis project to be executed, and then displaying a list of analysis projects to be executed.
[0075] In one optional embodiment, the waveform of at least one signal includes a time domain waveform or a frequency domain waveform, and the signal parameters corresponding to the time domain waveform include a time range, an amplitude range, a channel identifier, and / or signal data, and the signal parameters corresponding to the frequency domain waveform include a frequency range, a signal power, a channel identifier, and / or signal data.
[0076] In one optional embodiment, the signal analyzing device further comprises a measurement signal input port 604 configured to receive a measurement signal.
[0077] In one optional embodiment, the signal analysis device further comprises an analog signal processing unit 605 configured to control the gain and offset of the analog signal input, and perform amplification or attenuation processing on the analog signal, thereby generating a signal of appropriate amplitude, and outputting the signal to the analog-to-digital conversion unit.
[0078] In one optional embodiment, the signal analysis device further comprises an analog-to-digital converter 606 configured to receive the signal from the analog tip and convert it to a digital signal.
[0079] In one optional embodiment, the signal analysis device further comprises a digital signal acquisition and processing unit 607 configured to acquire digital signals, cache them in a storage unit, superimpose the acquired signals multiple times, and perform data processing such as compression, filtering or interpolation to obtain waveform data. Different analog tip signals are identified by different colors.
[0080] In one optional embodiment, the signal analysis device further comprises a storage unit 608 configured to store the waveform data output by the digital signal acquisition and processing unit.
[0081] In one optional embodiment, the signal analysis device further comprises a memory 609 configured to store application programs and display cache data.
[0082] For specific limitations regarding the signal analysis device, please refer to the limitations regarding the above signal analysis interaction method, and they will not be repeated here. Each module in the above signal analysis interaction method can be realized in whole or in part by software, hardware, or a combination thereof. Each module can be integrated into the processor of a computer device in the form of hardware, or can exist independently, or can be stored in the memory of a computer device in the form of software and configured to be called by the processor to perform the operations corresponding to each module.
[0083] An embodiment of the present application further provides an electronic device. FIG. 10 is a structural schematic diagram of an electronic device according to an embodiment of the present application. As shown in the figure, the electronic device 800 includes one or more processors 801 and a memory 802. The memory 802 stores computer-executable instructions, and the processor 801 executes the computer-executable instructions to implement steps in the signal analysis interaction method of any of the above embodiments. The processor 801 may be a central processing unit (CPU) or other type of processing unit having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0084] The memory 802 may include one or more computer program products. The computer program products may include various types of computer-readable recording media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory, while non-volatile memory may include, for example, read-only memory (ROM), a hard disk, or flash memory. One or more computer program instructions may be stored in the computer-readable recording media, and the processor 801 may execute the program instructions to implement the steps of the signal analysis interaction method in each embodiment of the present application described above and / or other desired functions.
[0085] In one example, the electronic device 800 may further include input devices and output devices, and these components are connected to each other by a bus system and / or other types of connection mechanisms (not shown). The input devices may further include, for example, a keyboard, a mouse, a microphone, etc. The output devices can output various types of information to the outside and may include, for example, a display, a speaker, a printer, a communication network, and a remote output device connected thereto. Naturally, for simplicity, FIG. 10 shows only some of the components of the electronic device 800 relevant to the present application, and components such as a bus and an input / output interface are omitted. Furthermore, the electronic device 800 may further include other appropriate components depending on specific application situations. In one embodiment, a computer-readable recording medium is provided that stores a computer program that, when executed by a processor, implements the steps of the above-described signal analysis interaction method. [Industrial Applicability]
[0086] Those skilled in the art will understand that all or part of the steps in the methods described above can be achieved by instructing associated hardware via a computer program to execute the program. The computer program may be stored in a non-volatile computer-readable storage medium, and when executed, the program can include the processing steps of the methods described above. Any reference to memory, storage, databases, or other media used in the embodiments provided herein may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical memory. Volatile memory may include random access memory (RAM) or external cache memory. For purposes of explanation and not limitation, RAM may take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0087] The technical features of the embodiments described above can be applied in any combination. For the sake of simplicity, not all combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction between the combinations of the technical features, they should be considered to be included in the scope described in this specification.
[0088] The above embodiments illustrate some examples of the present invention, and although the description is specific and detailed, it should not be construed as limiting the scope of the claims of the present invention. It is clear that various changes and modifications can be made by those skilled in the art without departing from the spirit of the present invention, and all of these are included in the technical scope of the present application. Therefore, the scope of the claims of the present application should be determined by the appended claims.
Claims
1. A signal analysis interaction method applied to a signal analysis device having a screen, comprising: displaying a signal analysis project setting interface on the screen; Obtaining a first control operation via the analysis project setting interface to determine an analysis project to be executed; displaying a waveform image of the at least one signal in an image display area of a screen based on the acquired at least one signal; displaying, in response to a second control operation, a selection area in an image display area of the screen, the selection area being used to indicate an area in the image display area selected by the second control operation; obtaining parameters of the signal selected by the second control operation based on an image within the selected region; A signal analysis interaction method, comprising: executing the analysis project to be executed based on the parameters of the signal; and displaying the execution results.
2. the signal parameters include a channel list for the signal; Obtaining the parameter of the signal selected by the second control operation based on the image within the selected region includes obtaining a pixel color of the image within the selected region; The signal analysis interaction method according to claim 1 , further comprising: determining the channel list based on a correspondence between the pixel colors and the channels of the signal.
3. Obtaining pixel colors of an image within the selected region includes: The signal analysis interaction method according to claim 2 , further comprising selecting at least one column of pixels from the selected region and determining pixel colors of the image within the selected region based on pixel colors of the column.
4. the signal parameters include a first signal range and a second signal range; 2. The signal analysis interaction method of claim 1, wherein obtaining parameters of the signal selected by the second control operation based on the image within the selected area includes determining a first signal range and a second signal range based on a horizontal range and a vertical range of the image within the selected area, respectively.
5. The signal analysis interaction method of claim 4 , wherein the parameters of the signal include a channel list of the signal, and the channel list is determined based on the first signal range and the second signal range.
6. After obtaining a first control operation through the analysis project setting interface and determining an analysis project to be executed, The signal analysis interaction method of claim 1 , further comprising displaying a list of the analysis projects to be performed.
7. the waveform of the at least one signal comprises a time domain waveform or a frequency domain waveform; the parameters of the signal corresponding to the time-domain waveform include a time range, an amplitude range, a channel identifier, and / or signal data; The signal analysis interaction method of claim 1 , wherein the parameters of the signal corresponding to the frequency domain waveform include a frequency range, a signal power, a channel identifier, and / or signal data.
8. A signal analysis device, comprising: a display unit used to display a signal analysis project setting interface on a screen, and display a waveform image of at least one signal in an image display area of the screen based on the acquired at least one signal, and further used to display a selection area in the image display area of the screen in response to a second control operation, the selection area being used to indicate an area selected by the second control operation in the image display area; a control operation acquisition unit used to acquire a first control operation via the analysis project setting interface, determine an analysis project to be executed, and acquire a second control operation; a processing unit that acquires parameters of the signal selected by the second control operation based on an image within the selected area, executes the analysis project to be executed based on the parameters of the signal, and controls a display unit to display the execution results.
9. An electronic device comprising: a memory in which a computer program is stored; and a processor that, when executing the computer program, implements the steps of the signal analysis interaction method according to any one of claims 1 to 7.
10. A computer-readable recording medium having stored thereon a computer program that, when executed by a processor, implements the steps of the signal analysis interaction method according to any one of claims 1 to 7.