Filter recommendation method and device, electronic equipment and storage medium

By automatically determining the filter in the oscilloscope and recommending the filter based on the spectrum characteristics of the signal to be measured, the problem in the existing technology that users need to manually configure filter parameters is solved, and the ease of use and configuration efficiency of the oscilloscope equipment are improved.

CN118713629APending Publication Date: 2024-09-27RIGOL TECHNOLOGIES (BEIJING) INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410704231.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

When existing oscilloscopes process noisy signals, users need to manually configure filter parameters, making the configuration process cumbersome and inconvenient, especially in the 'custom' mode, which has poor usability.

Method used

By acquiring the digital signal of the analog signal to be measured, it automatically determines and recommends an appropriate filter based on its spectrum characteristics, and generates a recommended response signal containing filter information for users to choose, simplifying the filter configuration process.

Benefits of technology

Fast adaptation of filters is achieved, which improves the ease of use of oscilloscope equipment and reduces the user's time and complexity in the configuration process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713629A
    Figure CN118713629A
Patent Text Reader

Abstract

The invention relates to a filter recommendation method and device, electronic equipment and a storage medium. The filter recommendation method provided by the embodiment of the invention comprises the following steps: acquiring a digital signal corresponding to a to-be-tested analog signal; in response to an obtained filtering request signal generated when a user initiates a filtering request, one or more filters are determined according to spectral characteristics of the digital signal and outputs are recommended for filtering use of the digital signal. According to the embodiment of the invention, the applicable filter can be quickly recommended and output for the user to select, so that a very tedious, time-consuming and non-convenient process of configuring the filter by the user is canceled, the filter in the oscillographic equipment can be quickly adapted, and the usability is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of test and measurement technology, and in particular to a filter recommendation method, device, electronic device and storage medium. Background Art

[0002] Currently, there are usually only two operation options for filters on the operating interface of the oscilloscope: "Adaptive (or automatic)" and "Custom". However, if the quality of the measured signal is not very good, for example, it contains a lot of noise, then the "Adaptive (or automatic)" option on the operating interface may not achieve the expected effect. Then, according to the configuration of the existing oscilloscope, only the "Custom" option can be selected. Usually, in the "Custom" mode, the user needs to select appropriate parameters to configure the filter in the oscilloscope to eliminate glitches and noise in the measured signal, thereby improving the measurement display quality and clarity of the measured signal.

[0003] However, in actual operation, users often do not know what specific numerical parameters need to be configured to make the measured signal display clearly. It may take multiple attempts to achieve the desired clarity, which makes the filter parameter configuration process very cumbersome, time-consuming and inconvenient. Moreover, there are often many parameters for filter configuration, which makes the filter configuration in the "custom" mode of existing oscilloscopes less user-friendly. Summary of the invention

[0004] In view of this, embodiments of the present application provide a filter recommendation method, device, electronic device, and storage medium to solve at least one problem existing in the background technology.

[0005] In a first aspect, an embodiment of the present application provides a filter recommendation method, the filter recommendation method comprising:

[0006] Acquire a digital signal corresponding to the analog signal to be measured;

[0007] In response to the acquired filtering request signal generated when the user initiates the filtering request, one or more filters are determined and recommended for output according to the spectrum characteristics of the digital signal, so that the user can select and use them for filtering the digital signal.

[0008] In combination with the first aspect, in an optional implementation manner, in response to the acquired filtering request signal generated when the user initiates a filtering request, determining one or more filters and recommending outputs according to the spectrum characteristics of the digital signal for use in filtering the digital signal includes:

[0009] When a filtering request signal is obtained, converting the multiple frames of digital signals from the time domain to the frequency domain to obtain corresponding multiple groups of frequency domain values;

[0010] Determining the frequency spectrum characteristics of the digital signal according to the multiple sets of frequency domain values;

[0011] Determining a filter according to the frequency spectrum characteristics of the digital signal;

[0012] A recommendation response signal including the filter information is generated according to the filter and outputted; the filter information includes the coefficients of the filter.

[0013] In combination with the first aspect, in an optional implementation manner, determining the frequency spectrum characteristics of the digital signal according to the multiple groups of frequency domain values ​​includes:

[0014] Determine a first weight coefficient of the i-th group of frequency domain values ​​and a second weight coefficient of the i-1-th group of frequency domain values ​​according to the average coefficient, wherein i=2, ..., n, and n is the number of the multiple groups of frequency domain values;

[0015] Using the first weight coefficient and the second weight coefficient, weighted sum is performed on the i-th group of frequency domain values ​​and the (i-1)-th group of frequency domain values, and the i-th group of frequency domain values ​​is updated to a value obtained by the weighted sum;

[0016] The frequency spectrum characteristics of the digital signal are determined according to the updated nth group of frequency domain values.

[0017] In combination with the first aspect, in an optional implementation manner, determining the frequency spectrum characteristics of the digital signal according to the multiple groups of frequency domain values ​​further includes:

[0018] In case that an average coefficient configuration request signal is received, the average coefficient is obtained.

[0019] In combination with the first aspect, in an optional implementation manner, the filter recommendation method further includes:

[0020] A target filter is obtained, so as to adopt the target filter to filter the digital signal and then output the signal; the target filter is obtained by confirming the filter according to the recommended output.

[0021] In a second aspect, an embodiment of the present application provides a filter recommendation device, the filter recommendation device comprising:

[0022] An acquisition module is configured to acquire a digital signal corresponding to the analog signal to be tested;

[0023] The filter determination output module is configured to respond to the acquired filter request signal generated when the user initiates a filter request, determine one or more filters and recommend outputs according to the spectral characteristics of the digital signal for use in filtering the digital signal.

[0024] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0025] a memory storing instructions; and

[0026] The processor is configured to execute the instructions to implement the filter recommendation method.

[0027] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and the computer program can implement the above-mentioned filter recommendation method when executed.

[0028] In a fifth aspect, an embodiment of the present application provides an oscilloscope device, the oscilloscope device comprising:

[0029] a memory storing instructions;

[0030] A processor, configured to execute the instructions to implement the filter recommendation method;

[0031] an analog-to-digital conversion module, configured to convert the input analog signal to be tested into a digital signal and output the digital signal; and

[0032] A display is configured to display the recommended output filter.

[0033] In conjunction with the fifth aspect, in an optional implementation manner, the oscilloscope device further includes:

[0034] The input device is configured to obtain a filter request instruction, and generate and output a filter request signal according to the filter request instruction.

[0035] The beneficial effects brought about by the technical solution provided in the embodiment of the present application include: by responding to the filtering request signal, determining the filter according to the spectral characteristics of the digital signal corresponding to the analog signal to be measured, and outputting the filter recommendation, so that when the analog signal to be measured needs to be filtered under user demand, one or more suitable filters can be quickly recommended and output for the user to choose, thereby eliminating the very cumbersome, time-consuming and inconvenient process of user filter configuration, so that the filter in the oscilloscope device can be quickly adapted, greatly improving the ease of use.

[0036] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below and in part will become apparent from the description below or will be learned through the practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can also be obtained based on these drawings without creative work. These drawings and textual descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application for those skilled in the art by referring to specific embodiments. In the drawings:

[0038] Figure 1 A flowchart of a specific example of the filter recommendation method in an embodiment of the present application;

[0039] Figure 2 A schematic diagram of a specific example of the frequency domain numerical value update iterative process in the embodiment of the present application;

[0040] Figure 3 A flowchart of another specific example of the filter recommendation method in an embodiment of the present application;

[0041] Figure 4 A simulation schematic diagram of a specific example of an analog signal to be measured and its corresponding target filter in an embodiment of the present application;

[0042] Figure 5 A principle block diagram of a specific example of a filter recommendation device in an embodiment of the present application;

[0043] Figure 6 A schematic block diagram of a specific example of an electronic device in an embodiment of the present application;

[0044] Figure 7 It is a principle block diagram of a specific example of the oscilloscope device in the embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to make the technical solutions and beneficial effects of the embodiments of the present application more obvious and easy to understand, the following is a detailed description by listing specific embodiments. Among them, the drawings are not necessarily drawn to scale, and local features may be enlarged or reduced to more clearly show the details of the local features; unless otherwise defined, the technical and scientific terms used herein have the same meaning as those in the technical field to which the embodiments of the present application belong.

[0046] It should be noted that the terms "first", "second", etc. may be used in this article to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element. When describing "first", it does not mean that there must be a "second"; and when discussing "second", it does not mean that there must be a "first" in this application. The singular forms of "one", "an" and "said / the" may also be intended to include plural forms, unless the context clearly indicates otherwise. The term "includes" is to determine the existence of the included features, but does not exclude the existence or addition of one or more other features. The term "and / or" includes any and all combinations of the relevant listed items. The term "plurality" means two or more.

[0047] The present application embodiment provides a filter recommendation method, which can be applied to an oscilloscope device. The oscilloscope device can be a device with a waveform display function, for example, it can include at least one of an oscilloscope, a spectrum analyzer, a waveform generator, a data acquisition device, and a multimeter. Figure 1 As shown, the filter recommendation method includes the following steps:

[0048] S10: Acquire a digital signal corresponding to the analog signal to be tested;

[0049] S20: In response to the acquired filtering request signal generated when the user initiates a filtering request, one or more filters are determined and output recommended according to the frequency spectrum characteristics of the digital signal for use in filtering the digital signal.

[0050] In the embodiment of the present application, the digital signal can be obtained by converting the analog signal to be measured by using an analog-to-digital (AD) conversion module. The analog-to-digital conversion module can be a module inside the oscilloscope device, so the analog signal to be measured can enter the oscilloscope device from the analog input channel of the oscilloscope device, and then enter the analog-to-digital conversion module for AD conversion into a digital signal.

[0051] The method of determining one or more filters according to the spectral characteristics of the digital signal can be set according to actual needs. For example, the filter can be designed based on the spectral characteristics of the digital signal according to a preset algorithm, such as using the impulse response invariance method to obtain a digital low-pass filter, using the frequency sampling method to obtain an FIR filter, etc.; the historical filter collection library can also be used to search for matches from the historical filter collection library according to the spectral characteristics to obtain the required filter. For example, the historical filter collection library can be searched for matches first. If no match is successful, it can be iteratively optimized according to the initial template; or after obtaining a suitable filter from the historical filter collection library, the suitable filter can be further iteratively optimized according to the actual situation, but it is not limited to this.

[0052] The coefficients of a filter are the parameters or values ​​that describe the characteristics of the filter. These coefficients determine how the filter modifies the frequency components of the input signal. Specifically, the filter coefficients are usually used to determine the gain (or attenuation) and phase response of the filter at each frequency point.

[0053] For digital filters, especially linear time-invariant (LTI) discrete-time filters, the coefficients of the filter are usually a set of values ​​that are directly related to the difference equation or transfer function of the filter.

[0054] For discrete-time filters, the difference equation describes the relationship between the output signal and the input signal. For example, the difference equation for a simple finite impulse response (FIR) filter can be expressed as follows (1):

[0055]

[0056] Among them, b k are the coefficients of the filter, x(nk) is the input signal, y(n) is the output signal, and M is the order of the filter.

[0057] For an infinite impulse response (IIR) filter, the transfer function is a complex function that describes the characteristics of the filter in the complex frequency domain. The transfer function is usually expressed as the ratio of the numerator and denominator polynomials, where the coefficients of the numerator and denominator polynomials are the coefficients of the filter. The transfer function can be expressed as the following equation (2):

[0058]

[0059] Among them, a k are the coefficients of the numerator polynomial, b k are the coefficients of the denominator polynomial, Z is a variable in the complex frequency domain, and N and M are the orders of the numerator and denominator polynomials, respectively.

[0060] The coefficients of the filter can be determined by different methods, such as using a window function design method, a least squares method, an optimization algorithm, etc. Once the coefficients of the filter are determined, the coefficients can be used to implement the filter and filter the input signal.

[0061] The filter can be uniquely determined by the coefficient of the filter, so the determination of the filter can be achieved by determining the coefficient of the filter. When a filter request signal is obtained, it indicates that the user needs to see a clearer signal waveform display. For example, in the "custom" mode of the existing oscilloscope, the user initiates a filter request through the input device of the oscilloscope to generate a filter request signal. At this time, the filter can be determined according to the spectral characteristics of the digital signal, and the determined filter recommendation can also be output and displayed to the user for the user to choose, so that the digital signal can be filtered using the filter selected by the user to improve the clarity of the signal waveform display. The above-mentioned input device can be a touch layer covered on the display, or a button, trackball or touchpad set on the shell, or an external keyboard, touchpad or mouse. It can be seen that in addition to the two operations of "adaptive (or automatic)" and "custom" for the filter, the embodiment of the present application can provide a third operation for the filter for the oscilloscope device, that is, to recommend the filter according to the filter request initiated by the user for the user to choose and use.

[0062] The embodiment of the present application responds to a filter request signal, determines a filter according to the frequency spectrum characteristics of a digital signal corresponding to the analog signal to be measured, and outputs a filter recommendation. This enables one or more suitable filters to be quickly recommended and output for user selection when the analog signal to be measured needs to be filtered under user demand, thereby eliminating the very cumbersome, time-consuming and inconvenient process of user filter configuration, allowing the filter in the oscilloscope device to be quickly adapted, greatly improving ease of use.

[0063] In an optional implementation, in response to the acquired filtering request signal generated when the user initiates the filtering request, determining one or more filters and recommending outputs according to the spectrum characteristics of the digital signal for use in filtering the digital signal in step S20 includes the following steps:

[0064] S21: when a filtering request signal is obtained, converting multiple frames of digital signals from the time domain to the frequency domain to obtain corresponding multiple groups of frequency domain values;

[0065] S22: determining a frequency spectrum characteristic of the digital signal according to the multiple sets of frequency domain values;

[0066] S23: Determine a filter according to the frequency spectrum characteristics of the digital signal;

[0067] S24: Generate and output a recommended response signal including filter information according to the filter; the filter information includes filter coefficients.

[0068] In the embodiment of the present application, the analog signal to be measured can obtain a sequence containing N points within a period of time (i.e., one frame) after AD conversion, and the time length and the value of N can be set according to actual needs. This sequence can be converted from time domain to frequency domain by a variety of methods, such as discrete Fourier transform (DFT), fast Fourier transform (FFT), etc., but is not limited to this. Through the conversion from time domain to frequency domain, this sequence can be converted into a frequency domain sequence of N points of the same length (the value of each point represents the energy value of the corresponding frequency point), that is, a set of frequency domain values ​​is obtained. Then the set of frequency domain values ​​can be stored and used as the initial spectrum template. The above process can be regarded as the process of generating the initial spectrum template. After the initial spectrum template is generated, the analog-to-digital (AD) conversion module of the oscilloscope device can continue AD conversion to obtain a sequence of multiple frames containing N points, i.e., a multi-frame digital signal. And each frame sequence is continuously converted from time domain to frequency domain to obtain a corresponding set of frequency domain values. Finally, multiple sets of frequency domain values ​​corresponding to the multi-frame digital signal can be obtained.

[0069] The method of determining the spectrum characteristics of the digital signal based on multiple sets of frequency domain values ​​can be set according to actual needs. For example, it can be determined based on the average or weighted average value of multiple sets of frequency domain values; it can also be determined by using multiple sets of frequency domain values ​​as historical data and predicted using a neural network model, etc., but it is not limited thereto.

[0070] The filter determined according to the spectral characteristics of the digital signal may be one or more. The filter information may also include the type of filter. The type of filter may include FIR filters, etc. from the perspective of time domain characteristics, and may include low-pass filters, high-pass filters, band-pass filters or band-stop filters, etc. from the perspective of transfer functions, but is not limited to this. The embodiment of the present application generates and outputs a recommendation response signal containing filter information in response to a filter request signal, so that a display based on the recommendation response signal can be realized, and a user can select or determine a filter from one or more filters according to the display, or the user does not need to determine but directly uses the recommended filter to filter the signal according to the display. The determined filter can be stored in the historical filter collection library, thereby realizing rapid recommendation and adaptation of the filter and improving ease of use.

[0071] In an optional implementation manner, determining the frequency spectrum characteristics of the digital signal according to the multiple sets of frequency domain values ​​in step S22 includes the following steps:

[0072] S221: Determine a first weight coefficient of the i-th group of frequency domain values ​​and a second weight coefficient of the i-1-th group of frequency domain values ​​according to the average coefficient, wherein i=2, ..., n, and n is the number of the multiple groups of frequency domain values;

[0073] S222: performing weighted summation on the i-th group of frequency domain values ​​and the (i-1)-th group of frequency domain values ​​using the first weight coefficient and the second weight coefficient, and updating the i-th group of frequency domain values ​​to a value obtained by the weighted summation;

[0074] S223: Determine the frequency spectrum characteristics of the digital signal according to the updated nth group of frequency domain values.

[0075] In the embodiment of the present application, if the average coefficient is a, it can be preset according to actual needs, then the first weight coefficient can be 1 / a, and the second weight coefficient can be 1-1 / a, but it is not limited to this. Therefore, the calculation formula for the updated i-th group of frequency domain values ​​(i.e., the weighted summation formula) can be: 1 / a×X(i)+(1-1 / a)×X(i-1), wherein X(i) represents the i-th group of frequency domain values, and X(i-1) represents the i-1-th group of frequency domain values. In actual calculation, the energy values ​​of the corresponding frequency points in the two groups of frequency domain values ​​can be weighted and summed respectively to obtain a set of frequency domain values ​​after the weighted sum of the two groups of frequency domain values. For example Figure 2 As shown, when i=2, after the new second group of frequency domain values ​​X(2) are obtained, the energy values ​​of the corresponding frequency points in the second group of frequency domain values ​​X(2) and the first group of frequency domain values ​​(initial spectrum template) X(1) can be weighted and summed to obtain a group of frequency domain values ​​and update the second group of frequency domain values ​​accordingly, and then i is increased by 1; when i=3, after the new third group of frequency domain values ​​X(3) are obtained, the energy values ​​of the corresponding frequency points in the third group of frequency domain values ​​X(3) and the updated second group of frequency domain values ​​can be weighted and summed. Sum to obtain a set of frequency domain values ​​and update the third set of frequency domain values ​​accordingly, then i increases by 1; ..., iterate in sequence and so on, when i = n, after the new nth set of frequency domain values ​​X(n) is obtained, the nth set of frequency domain values ​​X(n) and the energy values ​​of the corresponding frequency points in the updated n-1th set of frequency domain values ​​can be weighted and summed to obtain a set of frequency domain values ​​and update the nth set of frequency domain values ​​accordingly, so that the spectral characteristics of the digital signal can be determined according to the updated nth set of frequency domain values, and the noise spectrum can be eliminated. The above process can be regarded as a process of iterative optimization of the template. The embodiment of the present application can control the convergence speed of the frequency domain value update by configuring the average coefficient, and iteratively optimizing through multiple analog-to-digital conversions of the analog signal to be tested and comparison with the initial spectrum template. And it can reduce the random errors of the updated frequency domain values, so that the spectral characteristics of the digital signal determined in this way can be closer to a stable spectral characteristic, thereby improving the accuracy.

[0076] In an optional implementation manner, determining the frequency spectrum characteristics of the digital signal according to the multiple sets of frequency domain values ​​in step S22 further includes the following steps:

[0077] S224: When an average coefficient configuration request signal is received, obtain the average coefficient.

[0078] In the embodiment of the present application, step S224 can be at any position before, after or between steps S221 to S223 to realize the configuration of the average coefficient. By setting the configuration step of the average coefficient, the average coefficient can also be customized when the average coefficient can be preset. The user can modify the average coefficient according to the waveform characteristics of the analog signal to be measured, so as to speed up or slow down the convergence speed of the frequency domain numerical update, making the time consumption of the iterative process more reasonable, and more conducive to improving the accuracy of the spectrum characteristics or speeding up the analysis of the spectrum characteristics.

[0079] In an alternative embodiment, if Figure 3 As shown, the filter recommendation method also includes the following steps:

[0080] S30: Obtain a target filter, so as to filter the digital signal with the target filter and then output it; the target filter is obtained by confirming the filter according to the recommended output.

[0081] In the embodiment of the present application, after determining one or more recommended filters, they can be output to the display of the oscilloscope device, and the coefficients of these filters can be displayed through the UI interface, or other information such as the type of these filters can also be displayed. The user can confirm the corresponding filter coefficients, type and other information based on the display, and then the final target filter can be obtained based on the information confirmed by the user, and can be stored in the non-volatile storage space of the oscilloscope device. For example, Figure 4 As shown, the spectrum diagram of the analog signal to be tested shows that the signal is noise in the frequency domain interval of the non-signal. The corresponding bandpass filter can be obtained according to the analog signal to be tested.

[0082] The following describes the apparatus, device, storage medium, etc. used to execute the filter recommendation method provided in the embodiments of the present application. The specific implementation process and technical effects are described above and will not be repeated below.

[0083] The present application also provides a filter recommendation device, such as Figure 5 As shown, the filter recommendation device 10 comprises:

[0084] An acquisition module 11 is configured to acquire a digital signal corresponding to the analog signal to be tested;

[0085] The filter determination output module 12 is configured to respond to the acquired filter request signal generated when the user initiates a filter request, determine one or more filters and recommend outputs according to the spectrum characteristics of the digital signal for use in filtering the digital signal.

[0086] In an optional implementation, the filter determination output module 12 includes:

[0087] The time-frequency conversion module is configured to convert the multiple frames of digital signals from the time domain to the frequency domain respectively when the filtering request signal is obtained, so as to obtain multiple sets of corresponding frequency domain values;

[0088] A spectrum characteristic determination module is configured to determine the spectrum characteristics of the digital signal according to multiple sets of frequency domain values;

[0089] A filter determination module, configured to determine a filter according to a frequency spectrum characteristic of a digital signal;

[0090] The recommendation output module is configured to generate and output a recommendation response signal containing filter information according to the filter; the filter information includes the coefficients of the filter.

[0091] In an optional implementation manner, the spectrum characteristic determination module includes:

[0092] A weight coefficient determination module is configured to determine a first weight coefficient of the i-th group of frequency domain values ​​and a second weight coefficient of the i-1-th group of frequency domain values ​​according to the average coefficient, wherein i=2, ..., n, and n is the number of the multiple groups of frequency domain values;

[0093] an iterative updating module, configured to perform weighted summation on the i-th group of frequency domain values ​​and the i-1-th group of frequency domain values ​​using the first weight coefficient and the second weight coefficient and update the i-th group of frequency domain values ​​to a value obtained by the weighted summation;

[0094] The spectrum characteristic obtaining module is configured to determine the spectrum characteristic of the digital signal according to the updated nth group of frequency domain values.

[0095] In an optional implementation manner, the spectrum characteristic determination module further includes:

[0096] The average coefficient acquisition module is configured to acquire the average coefficient when receiving the average coefficient configuration request signal.

[0097] In an optional implementation manner, the filter recommendation device further includes:

[0098] The filter confirmation module is configured to obtain a target filter, so as to filter the digital signal with the target filter and then output the signal; the target filter is obtained by confirming the filter according to the recommended output.

[0099] The present application also provides an electronic device, such as Figure 6 As shown, including:

[0100] a memory storing instructions; and

[0101] The processor is configured to execute instructions to implement the filter recommendation method.

[0102] The processor of the electronic device can be used to provide computing and control capabilities. The memory of the electronic device may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the above-mentioned filter recommendation method is implemented. For example, the electronic device includes a processor, a memory, a network interface, a display and an input device connected through a system bus. The network interface of the electronic device is used to communicate with an external terminal through a network connection. The display of the electronic device can be a liquid crystal display or an electronic ink display, and the input device of the electronic device can be a touch layer covered on the display, or a key, trackball or touchpad set on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.

[0103] Those skilled in the art will understand that Figure 6 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0104] The present application also provides a computer-readable storage medium in which a computer program is stored. When the computer program is executed, the corresponding functions described in the above method embodiment can be implemented. The computer program can also be stored in a computer-readable storage medium such as Figure 6 The memory of the computer device contains various program modules constituting the filter recommendation device, and the computer program composed of various program modules can realize the functions corresponding to the various steps in the filter recommendation method described in the above embodiment when being executed.

[0105] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the filter recommendation method provided in the above various implementations.

[0106] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0107] The present application also provides an oscilloscope device, such as Figure 7 As shown, the oscilloscope device 001 includes:

[0108] Memory 01, which stores instructions;

[0109] The processor 02 is configured to execute instructions to implement the filter recommendation method described above;

[0110] The analog-to-digital conversion module 03 is configured to convert the input analog signal to be tested into a digital signal and output the digital signal; and

[0111] The display 04 is configured to display the filter of the recommended output.

[0112] In the embodiment of the present application, the coefficients, type, etc. of the filter of the recommended output can be displayed through the display 04 for the user to view and confirm. The waveform of the analog signal to be tested after filtering can also be displayed through the display 04. The oscilloscope device of the embodiment of the present application receives the analog signal to be tested through the analog-to-digital conversion module, executes the instructions stored in the memory through the processor to implement the recommendation of the filter, and then displays it through the display to recommend it to the user, providing a filter recommendation function, which can increase the user experience, and does not need to increase any hardware cost, and has a simple structure.

[0113] In an optional implementation manner, the oscilloscope device 001 further includes:

[0114] The input device is configured to obtain a filter request instruction, and generate and output a filter request signal according to the filter request instruction.

[0115] In the embodiment of the present application, the filter request signal may be outputted by a terminal and / or server connected via a wired or wireless network and sent to the oscilloscope device 001, or may be converted and obtained after receiving the filter request instruction via an input device on the oscilloscope device 001, but is not limited thereto. For example, the input device may be a button, and if the user presses the button, the filter request instruction is received. The user may also select and determine the filter, obtain the average coefficient configuration request signal, input the average coefficient, etc. via the input device.

[0116] It should be understood that the above embodiments are exemplary and are not intended to include all possible implementations included in the claims. Various modifications and changes may be made on the basis of the above embodiments without departing from the scope of the present disclosure. Similarly, the various technical features of the above embodiments may be arbitrarily combined to form other embodiments of the present application that may not be explicitly described. Therefore, the above embodiments only express several implementations of the present application and do not limit the scope of protection of the patent of this application.

Claims

1. A filter recommendation method, It is characterized in that The filter recommendation method includes: Acquire a digital signal corresponding to the analog signal to be measured; In response to the acquired filtering request signal generated when the user initiates the filtering request, one or more filters are determined and recommended for output according to the spectrum characteristics of the digital signal, so that the user can select and use them for filtering the digital signal.

2. The filter recommendation method according to claim 1, It is characterized in that The step of determining, in response to the acquired filtering request signal generated when the user initiates a filtering request, one or more filters and recommending outputs according to the spectrum characteristics of the digital signal for use in filtering the digital signal comprises: When a filtering request signal is obtained, converting the multiple frames of digital signals from the time domain to the frequency domain to obtain corresponding multiple groups of frequency domain values; Determining the frequency spectrum characteristics of the digital signal according to the multiple sets of frequency domain values; Determining a filter according to the frequency spectrum characteristics of the digital signal; A recommendation response signal including the filter information is generated according to the filter and outputted; the filter information includes the coefficients of the filter.

3. The filter recommendation method according to claim 2, It is characterized in that Determining the frequency spectrum characteristics of the digital signal according to the multiple groups of frequency domain values ​​includes: Determine a first weight coefficient of the i-th group of frequency domain values ​​and a second weight coefficient of the i-1-th group of frequency domain values ​​according to the average coefficient, wherein i=2, ..., n, and n is the number of the multiple groups of frequency domain values; Using the first weight coefficient and the second weight coefficient, weighted sum is performed on the i-th group of frequency domain values ​​and the (i-1)-th group of frequency domain values, and the i-th group of frequency domain values ​​is updated to a value obtained by the weighted sum; The frequency spectrum characteristics of the digital signal are determined according to the updated nth group of frequency domain values.

4. The filter recommendation method according to claim 3, It is characterized in that The determining the frequency spectrum characteristics of the digital signal according to the multiple sets of frequency domain values ​​further includes: In case that an average coefficient configuration request signal is received, the average coefficient is obtained.

5. The filter recommendation method according to any one of claims 1 to 4, It is characterized in that The filter recommendation method further includes: A target filter is obtained, so as to adopt the target filter to filter the digital signal and then output the signal; the target filter is obtained by confirming the filter according to the recommended output.

6. A filter recommendation device, It is characterized in that The filter recommendation device comprises: An acquisition module is configured to acquire a digital signal corresponding to the analog signal to be tested; The filter determination output module is configured to respond to the acquired filter request signal generated when the user initiates a filter request, determine one or more filters and recommend outputs according to the spectral characteristics of the digital signal for use in filtering the digital signal.

7. An electronic device, It is characterized in that include: a memory storing instructions; as well as A processor is configured to execute the instructions to implement the filter recommendation method according to any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed, the filter recommendation method according to any one of claims 1 to 5 can be implemented.

9. An oscilloscope device, It is characterized in that The oscilloscope device comprises: a memory storing instructions; A processor, configured to execute the instructions to implement the filter recommendation method according to any one of claims 1 to 5; an analog-to-digital conversion module, configured to convert the input analog signal to be tested into a digital signal and output the digital signal; and A display is configured to display the recommended output filter.

10. The oscilloscope device according to claim 9, It is characterized in that The oscilloscope device also includes: The input device is configured to obtain a filter request instruction, and generate and output a filter request signal according to the filter request instruction.