Signal triggering method and system

文档序号:1537794 发布日期:2020-02-14 浏览:25次 中文

阅读说明:本技术 信号触发方法及系统 (Signal triggering method and system ) 是由 蒋文裕 索世昌 王悦 王铁军 李维森 于 2019-11-15 设计创作,主要内容包括:本发明实施例提供了一种信号触发方法及系统,方法包括:利用数字滤波器对待触发数据信号进行滤波处理,将原始待触发数据信号的数据幅值与经过滤波后的数据幅值做差,通过判断得到的幅值差值和预设的幅度阈值之间的关系是否符合预设的条件,确定是否对待触发数据信号进行触发。通过对数字滤波器进行配置,可以得到不同类型的滤波器,进而对不同频率范围的待触发数据信号进行滤波,满足了用户对信号的任意特定频率分量进行触发。(The embodiment of the invention provides a signal triggering method and a system, wherein the method comprises the following steps: and performing filtering processing on the data signal to be triggered by using a digital filter, subtracting the data amplitude of the original data signal to be triggered from the filtered data amplitude, and determining whether the data signal to be triggered is triggered or not by judging whether the relation between the obtained amplitude difference and a preset amplitude threshold value meets a preset condition or not. By configuring the digital filter, different types of filters can be obtained, and then data signals to be triggered in different frequency ranges are filtered, so that the requirement that a user triggers any specific frequency component of the signals is met.)

1. A method of signal triggering, comprising:

acquiring a data signal to be triggered;

processing the data signal to be triggered by utilizing a pre-configured digital filter to obtain a first data signal;

performing delay processing on the data signal to be triggered to obtain a second data signal so as to enable the phase of the second data signal to be the same as that of the first data signal;

subtracting the obtained data amplitude of the second data signal from the data amplitude of the first data signal to obtain an amplitude difference value;

and determining whether to trigger the data signal to be triggered or not based on the relation between the amplitude difference value and a preset amplitude threshold value.

2. The signal triggering method according to claim 1, wherein the determining whether to trigger the data signal to be triggered based on the relationship between the amplitude difference value and a preset amplitude threshold value comprises:

and judging whether the amplitude difference value is larger than the amplitude threshold value, if so, triggering the data signal to be triggered, and if not, not triggering the data signal to be triggered.

3. The signal triggering method according to claim 1, wherein the digital filter is specifically:

an FIR filter.

4. The signal triggering method of claim 1, wherein the number of the digital filters is plural.

5. The signal triggering method of claim 1, wherein the digital filter configuring process comprises:

acquiring a frequency range input by a user;

determining the type of the filter to be configured according to the form of the frequency range;

configuring the digital filter to the filter type.

6. The signal triggering method according to claim 5, wherein the determining a filter type to be configured according to the form of the frequency range specifically includes:

when the form of the frequency range input by the user is more than one frequency, determining that the type of the filter to be configured is a low-pass filter, wherein the frequency range of a stop band of the low-pass filter is the frequency range input by the user;

when the form of the frequency range input by the user is less than one frequency, determining that the type of the filter to be configured is a high-pass filter, wherein the frequency range of a stop band of the high-pass filter is the frequency range input by the user;

when the frequency range of the user input is in a form of more than one frequency and less than another frequency, and the one frequency is less than the another frequency, determining that the filter type to be configured is a band-stop filter, wherein the frequency range of a stop band of the band-stop filter is the frequency range of the user input; and the number of the first and second groups,

and when the frequency range of the user input is in a form of being smaller than one frequency and larger than another frequency, and the one frequency is smaller than the another frequency, determining that the filter type to be configured is a band-pass filter, wherein the frequency range of a stop band of the band-pass filter is the frequency range of the user input.

7. The signal triggering method according to any one of claims 1 to 6, wherein the method is applied to an oscilloscope.

8. A signal triggering system, comprising:

the analog-to-digital conversion circuit is used for converting an analog signal of the data to be triggered into a digital signal;

the digital filter is used for processing the data signal to be triggered after the conversion of the analog-to-digital conversion circuit to obtain a first data signal;

the data delay unit is used for carrying out delay processing on the data signal to be triggered after the conversion of the analog-to-digital conversion circuit to obtain a second data signal so as to enable the phase of the second data signal to be the same as that of the first data signal;

the amplitude decision device is used for subtracting the data amplitude of the second data signal output by the data delay unit from the data amplitude of the first data signal output by the digital filter to obtain an amplitude difference value, and determining whether to trigger the data signal to be triggered based on the relation between the amplitude difference value and a preset amplitude threshold value;

and the trigger unit is used for triggering the data signal to be triggered.

9. The signal trigger system of claim 8, further comprising:

the data input unit is used for a user to input a frequency range and an amplitude threshold;

and the controller is used for determining the type of the filter to be configured according to the form of the frequency range and configuring the digital filter into the type of the filter.

10. The signal trigger system according to claim 9, wherein the process of the controller determining the type of the filter to be configured according to the form of the frequency range specifically comprises:

when the form of the frequency range input by the user is more than one frequency, determining that the type of the filter to be configured is a low-pass filter, wherein the frequency range of a stop band of the low-pass filter is the frequency range input by the user;

when the form of the frequency range input by the user is less than one frequency, determining that the type of the filter to be configured is a high-pass filter, wherein the frequency range of a stop band of the high-pass filter is the frequency range input by the user;

when the frequency range of the user input is in a form of more than one frequency and less than another frequency, and the one frequency is less than the another frequency, determining that the filter type to be configured is a band-stop filter, wherein the frequency range of a stop band of the band-stop filter is the frequency range of the user input; and the number of the first and second groups,

and when the frequency range of the user input is in a form of being smaller than one frequency and larger than another frequency, and the one frequency is smaller than the another frequency, determining that the filter type to be configured is a band-pass filter, wherein the frequency range of a stop band of the band-pass filter is the frequency range of the user input.

11. The signal triggering system of claim 8, wherein the data delay unit is specifically an FIR filter; and/or the digital filter is embodied as a FIR filter.

12. The signal trigger system of claim 8, wherein the number of digital filters is plural.

13. The signal trigger system according to any one of claims 8 to 12, wherein the signal trigger system is applied to an oscilloscope.

Technical Field

The present invention relates to the field of data processing technologies, and in particular, to a signal triggering method and system.

Background

Currently, identification and triggering is typically based on time domain characteristics of the signal, such as identifying and triggering a rising edge or pulse width in the signal. In the prior art, a scheme for identifying and triggering based on frequency domain characteristics of signals does not exist.

Disclosure of Invention

In view of this, the present invention provides a signal triggering method and system, which are intended to achieve the purpose of identifying and triggering based on the frequency domain characteristics of a signal.

In order to achieve the above object, the following solutions are proposed:

in a first aspect, the present invention provides a signal triggering method, including:

acquiring a data signal to be triggered;

processing the data signal to be triggered by utilizing a pre-configured digital filter to obtain a first data signal;

performing delay processing on the data signal to be triggered to obtain a second data signal so as to enable the phase of the second data signal to be the same as that of the first data signal;

subtracting the obtained data amplitude of the second data signal from the data amplitude of the first data signal to obtain an amplitude difference value;

and determining whether to trigger the data signal to be triggered or not based on the relation between the amplitude difference value and a preset amplitude threshold value.

Optionally, the determining whether to trigger the data signal to be triggered based on the relationship between the amplitude difference value and a preset amplitude threshold includes:

and judging whether the amplitude difference value is larger than the amplitude threshold value, if so, triggering the data signal to be triggered, and if not, not triggering the data signal to be triggered.

Optionally, the digital filter specifically includes:

FIR (Finite Impulse Response) filter.

Optionally, the number of the digital filters is multiple.

Optionally, the configuring process of the digital filter includes:

acquiring a frequency range input by a user;

determining the type of the filter to be configured according to the form of the frequency range;

configuring the digital filter to the filter type.

Optionally, the determining the type of the filter to be configured according to the form of the frequency range specifically includes:

when the form of the frequency range input by the user is more than one frequency, determining that the type of the filter to be configured is a low-pass filter, wherein the frequency range of a stop band of the low-pass filter is the frequency range input by the user;

when the form of the frequency range input by the user is less than one frequency, determining that the type of the filter to be configured is a high-pass filter, wherein the frequency range of a stop band of the high-pass filter is the frequency range input by the user;

when the frequency range of the user input is in a form of more than one frequency and less than another frequency, and the one frequency is less than the another frequency, determining that the filter type to be configured is a band-stop filter, wherein the frequency range of a stop band of the band-stop filter is the frequency range of the user input; and the number of the first and second groups,

and when the frequency range of the user input is in a form of being smaller than one frequency and larger than another frequency, and the one frequency is smaller than the another frequency, determining that the filter type to be configured is a band-pass filter, wherein the frequency range of a stop band of the band-pass filter is the frequency range of the user input.

Optionally, the method is applied to an oscilloscope.

In a second aspect, the present invention provides a signal triggering system, comprising:

the analog-to-digital conversion circuit is used for converting an analog signal of the data to be triggered into a digital signal;

the digital filter is used for processing the data signal to be triggered after the conversion of the analog-to-digital conversion circuit to obtain a first data signal;

the data delay unit is used for carrying out delay processing on the data signal to be triggered after the conversion of the analog-to-digital conversion circuit to obtain a second data signal so as to enable the phase of the second data signal to be the same as that of the first data signal;

the amplitude decision device is used for subtracting the data amplitude of the second data signal output by the data delay unit from the data amplitude of the first data signal output by the digital filter to obtain an amplitude difference value, and determining whether to trigger the data signal to be triggered based on the relation between the amplitude difference value and a preset amplitude threshold value;

and the trigger unit is used for triggering the data signal to be triggered.

Optionally, the signal triggering system further includes:

the data input unit is used for a user to input a frequency range and an amplitude threshold;

and the controller is used for determining the type of the filter to be configured according to the form of the frequency range and configuring the digital filter into the type of the filter.

Optionally, the process of determining the type of the filter to be configured according to the form of the frequency range by the controller specifically includes:

when the form of the frequency range input by the user is more than one frequency, determining that the type of the filter to be configured is a low-pass filter, wherein the frequency range of a stop band of the low-pass filter is the frequency range input by the user;

when the form of the frequency range input by the user is less than one frequency, determining that the type of the filter to be configured is a high-pass filter, wherein the frequency range of a stop band of the high-pass filter is the frequency range input by the user;

when the frequency range of the user input is in a form of more than one frequency and less than another frequency, and the one frequency is less than the another frequency, determining that the filter type to be configured is a band-stop filter, wherein the frequency range of a stop band of the band-stop filter is the frequency range of the user input; and the number of the first and second groups,

and when the frequency range of the user input is in a form of being smaller than one frequency and larger than another frequency, and the one frequency is smaller than the another frequency, determining that the filter type to be configured is a band-pass filter, wherein the frequency range of a stop band of the band-pass filter is the frequency range of the user input.

Optionally, the data delay unit is specifically an FIR filter; and/or the digital filter is embodied as a FIR filter.

Optionally, the number of the digital filters is multiple.

Optionally, the signal triggering system is applied to an oscilloscope.

Compared with the prior art, the technical scheme of the invention has the following advantages:

according to the signal triggering method and the signal triggering system provided by the technical scheme, the digital filter is used for filtering the data signal to be triggered, the data amplitude of the original data signal to be triggered is different from the filtered data amplitude, and whether the data signal to be triggered is triggered or not is determined by judging whether the relation between the obtained amplitude difference value and the preset amplitude threshold value meets the preset condition or not. By configuring the digital filter, different types of filters can be obtained, and then data signals to be triggered in different frequency ranges are filtered, so that the requirement that a user triggers any specific frequency component of the signals is met.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.

FIG. 1 is a schematic diagram of the frequency response of a band stop filter;

fig. 2 is a flowchart of a signal triggering method according to an embodiment of the present invention;

fig. 3 is a schematic structural diagram of a signal triggering system according to an embodiment of the present invention;

fig. 4 is a schematic diagram of a hardware structure of a controller according to an embodiment of the present invention;

fig. 5 is a schematic structural diagram of another signal triggering system according to an embodiment of the present invention;

FIG. 6 is a schematic diagram of a sampling waveform according to an embodiment of the present invention;

fig. 7 is a schematic diagram of a comparison of waveforms before and after filtering by the band-stop filter according to the embodiment of the present invention;

fig. 8 is a schematic diagram of a waveform difference after delay and filtering according to an embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The inventor finds that the amplitude attenuation of different frequency components of the signal by the filter is different, for example, the frequency response of the band-stop filter is as shown in fig. 1, and by using the frequency response of the filter, when a user needs to trigger some frequency components, the user can input the frequency range of the signal needing to be triggered, and configure the corresponding filter type. According to the amplitude difference value between the data signal to be triggered and the original data signal to be triggered after the data signal to be triggered is filtered by the configured filter, the corresponding frequency component can be determined, and then whether triggering is carried out or not is determined. The signal triggering method provided by the invention is described in detail below.

Referring to fig. 2, a flowchart of a signal triggering method provided in this embodiment may include the steps of:

s21: and acquiring a data signal to be triggered.

S22: and processing the data signal to be triggered by utilizing a pre-configured digital filter to obtain a first data signal.

The type of digital filter to be configured is determined according to the frequency range to be triggered. Types of digital filters include low pass filters, high pass filters, band stop filters, band pass filters, and the like. The digital filter includes an FIR filter and an IIR (Infinite Impulse Response) filter. In one embodiment, the digital filter employs a FIR filter. The FIR filter mainly comprises a data shift register, a multiplier module, an adder module and the like. Wherein the input in the multiplier module comprises input data and coefficients; the coefficients determine the type and characteristics of the FIR filter. The type of FIR filter is configured by configuring the coefficients in advance.

S23: and performing delay processing on the data signal to be triggered to obtain a second data signal so as to enable the phase of the second data signal to be the same as that of the first data signal.

S24: and subtracting the obtained data amplitude of the second data signal from the data amplitude of the first data signal to obtain an amplitude difference value.

S25: and determining whether to trigger the data signal to be triggered or not based on the relation between the amplitude difference value and a preset amplitude threshold value.

In the signal triggering method provided by this embodiment, a digital filter is used to filter a data signal to be triggered, a difference is made between a data amplitude of an original data signal to be triggered and a filtered data amplitude, and whether the data signal to be triggered is determined by judging whether a relationship between an obtained amplitude difference and a preset amplitude threshold meets a preset condition. By configuring the digital filter, different types of filters can be obtained, and then data signals to be triggered in different frequency ranges are filtered, so that the requirement that a user triggers any specific frequency component of the signals is met.

In a specific embodiment, determining whether to trigger the data signal to be triggered based on a relationship between the amplitude difference value and a preset amplitude threshold includes: and judging whether the amplitude difference value is larger than an amplitude threshold value, if so, triggering the data signal to be triggered, and if not, not triggering the data signal to be triggered.

In one embodiment, the digital filter configuration process includes the steps of:

a11: the frequency range of the user input is obtained.

The user inputs the frequency range to be triggered, and the frequency range input by the user is acquired through step a 11. The specific frequency range of user input may be in the form of more than a certain frequency; less than a certain frequency; greater than frequency a, less than frequency B, and frequency a < frequency B; less than frequency a and greater than frequency B, and frequency a < frequency B.

A12: the type of filter to be configured is determined according to the form of the frequency range.

Specifically, when the form of the frequency range input by the user is greater than one frequency, determining that the type of the filter to be configured is a low-pass filter, wherein the cut-off frequency of the low-pass filter is the frequency, that is, the stopband frequency range of the low-pass filter is the frequency range input by the user; when the frequency range input by the user is smaller than one frequency, determining that the type of the filter to be configured is a high-pass filter, wherein the cut-off frequency of the high-pass filter is the frequency, namely the stop band frequency range of the high-pass filter is the frequency range input by the user; when the frequency range input by the user is greater than the frequency A and less than the frequency B, and the frequency A is less than the frequency B, determining that the type of the filter to be configured is a band-elimination filter, and the stopband frequency range of the band-elimination filter is the frequency range input by the user; and when the frequency range input by the user is in a form of being smaller than the frequency A and larger than the frequency B, and the frequency A is smaller than the frequency B, determining that the filter type to be configured is a band-pass filter, wherein the stop band frequency range of the band-pass filter is the frequency range input by the user.

A13: the digital filter is configured to the determined filter type.

While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present invention is not limited by the illustrated ordering of acts, as some steps may occur in other orders or concurrently with other steps in accordance with the invention.

The following are embodiments of systems of the present invention that may be used to perform embodiments of methods of the present invention. For details which are not disclosed in the embodiments of the system of the present invention, reference is made to the embodiments of the method of the present invention.

Referring to fig. 3, a schematic structural diagram of a signal triggering system provided in this embodiment is shown, where the system includes:

and the analog-to-digital conversion circuit is used for converting the analog signal of the data to be triggered into a digital signal.

And the digital filter is used for processing the data signal to be triggered after the conversion of the analog-to-digital conversion circuit to obtain a first data signal.

And the data delay unit is used for carrying out delay processing on the data signal to be triggered after the conversion of the analog-to-digital conversion circuit to obtain a second data signal so as to enable the phase of the second data signal to be the same as that of the first data signal.

And the amplitude decision device is used for subtracting the data amplitude of the second data signal output by the data delay unit from the data amplitude of the first data signal output by the digital filter to obtain an amplitude difference value, and determining whether to trigger the data signal to be triggered or not based on the relation between the amplitude difference value and a preset amplitude threshold value.

And the trigger unit is used for triggering the data signal to be triggered.

Optionally, the oscilloscope trigger system further includes: a data input unit and a controller.

And the data input unit is used for a user to input the frequency range and the amplitude threshold. The data input unit may be a keypad, a device having a voice recognition function including a microphone, or a touch sensor, etc. The area provided by the touch sensor for the user to perform touch operation is referred to as a touch area. Further, the touch sensor may be a resistive touch sensor, a capacitive touch sensor, or the like. The touch sensor may include not only a contact type touch sensor but also a proximity type touch sensor. Further, the touch sensor may be a single sensor, or may be a plurality of sensors arranged in an array, for example. The user can input information such as a frequency range and an amplitude threshold value by touching the touch area. The area of the touch sensor may be the same as or different from the area of the display of the oscilloscope. Optionally, the display is stacked with the touch sensor to form a touch display screen. The device detects touch operation triggered by a user based on the touch display screen.

And the controller is used for determining the type of the filter to be configured according to the form of the frequency range input by the user and configuring the digital filter into the determined type of the filter. Referring to fig. 4, the hardware architecture of the controller may include at least one processor 41, at least one communication interface 42, at least one memory 43, and at least one communication bus 44; and the processor 41, the communication interface 42 and the memory 43 complete the communication with each other through the communication bus 44.

Processor 41 may be, in some embodiments, a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), one or more Integrated circuits configured to implement embodiments of the present invention, or the like.

The communication interface 42 may include a standard wired interface, a wireless interface. Typically for establishing a communication connection between a controller and its device or system.

The memory 43 includes at least one type of readable storage medium. The readable storage medium may be an NVM (non-volatile memory) such as flash memory, hard disk, multimedia card, card-type memory, etc. The readable storage medium may also be a high-speed RAM (random access memory) memory.

Wherein the memory 43 stores a computer program, and the processor 41 may call the computer program stored in the memory 43, the computer program being configured to: and determining the type of the filter to be configured according to the form of the frequency range input by the user, and configuring the digital filter into the determined filter type.

Optionally, the data delay unit may specifically be an FIR filter; the digital filters may specifically be FIR filters, and the number of the digital filters may be at least two, and the data signal to be triggered is processed after all the digital filters are cascaded, so as to obtain the first data signal. In a specific embodiment, the digital filter includes a FIR filter and a decimation filter cascaded at a front stage of the FIR filter, as shown in fig. 5. By designing a filter cascade mode, namely the front stage uses an extraction filter and the rear stage uses an FIR filter, compared with a filter with a high order, the resource consumption is reduced.

The triggering of the oscilloscope refers to that a user sets conditions according to requirements, and when a certain waveform in the oscilloscope sampling waveform stream meets the set conditions, the oscilloscope captures the waveform and the adjacent part of the waveform in real time. The condition set by the user is referred to as a trigger condition. The role of the oscilloscope trigger is to capture events of interest and stabilize the displayed waveform. In one embodiment, the signal triggering method provided by the invention is applied to an oscilloscope. The following describes in detail the process of applying the signal triggering method provided by the present invention to an oscilloscope:

sampling a section of waveform at a sampling rate of 1 GSa/S; the acquired waveform contains various frequency components from 10MHz to 100MHz, and the maximum amplitude is 4 DIV; the user needs to trigger 100MHz for observation and 100MHz signal intervals appear.

The frequency range input by the user through the data input unit is as follows: > 50MHz, < 200 MHz. The amplitude threshold value input by the user through the data input unit is as follows: 1 DIV. And setting the decision as: and (5) triggering.

The controller configures the FIR filter as a band stop filter according to a frequency range of the user input. After the waveform obtained by sampling passes through the band elimination filter, the amplitude attenuation of the frequency component of 50 MHz-200 MHz is large, the amplitude is reduced to at least half of the original amplitude, and the amplitude attenuation of the frequency component lower than 50MHz and higher than 200MHz is small.

After being processed by the band elimination filter, the signal is delayed; therefore, the original signal is delayed by the data delay unit, so that the original data phase is consistent with the filtered data phase. And the data amplitude after passing through the data delay unit is different from the data amplitude after passing through the band elimination filter. And comparing and judging the amplitude difference value with an amplitude threshold value set by a user. The 100MHz attenuation is at least half, i.e. reduced from 4DIV to below 2DIV, so after the point-by-point amplitude comparison, a point with an attenuation exceeding 1DIV can be found, i.e. the position of the 100MHz signal can be found.

Referring to fig. 6, the waveform of the upper portion is a 100MHz signal waveform, and the waveform of the lower portion is an original waveform containing a plurality of frequency components of 10MHz to 100MHz, that is, a waveform obtained at a sampling rate of 1 GSa/S.

Referring to fig. 7, the waveform of the upper part is the frequency before filtering, i.e., the original frequency, and the lower part is the frequency spectrum after filtering by the band-stop filter.

Referring to fig. 8, the upper part of the waveform is a delayed waveform of the original waveform, i.e., the second data signal after being delayed by the data delay unit, and includes a plurality of frequency components; the waveform of the middle part is the waveform after passing through the filter, namely the first data signal after the filtering processing of the band elimination filter; the lower part of the waveform is the waveform obtained after the difference between the second data signal and the first data signal is made.

The above-described system embodiments are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.

In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于负群时延电路的宽带线性相位滤波器

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!