Template triggering method based on dynamic templates
By using a dynamic template triggering method, the template is adjusted according to changes in signal parameters, which solves the problem that static templates cannot adapt to changes during signal acquisition and achieves more accurate signal detection and triggering.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- UNIV OF ELECTRONICS SCI & TECH OF CHINA
- Filing Date
- 2023-12-07
- Publication Date
- 2026-05-01
AI Technical Summary
Traditional static templates cannot adapt to the subtle trends in signal changes over time during acquisition, resulting in the inability to accurately detect the quality of FM signals.
A dynamic template-based approach is adopted to adjust the trigger template according to the time variation characteristics of the signal parameters. By setting the maximum and minimum limit templates, the start time and change period interval within the signal period are calculated, and the trigger template is generated in real time and trigger judgment is performed.
It enables flexible and precise triggering of signals, reduces template storage pressure, and improves the accuracy and adaptability of triggering.
Smart Images

Figure CN117648582B_ABST
Abstract
Description
Template triggering method based on dynamic templates Technical Field
[0001] This invention belongs to the field of data signal analysis technology, and more specifically, relates to a template triggering method based on dynamic templates. Background Technology
[0002] Signal triggering essentially involves filtering signals based on user-defined preconditions, capturing waveforms that meet these conditions for further processing. Template triggering is a traditional method, but traditional static templates can only limit the extreme values that the signal might reach during the entire acquisition process, and cannot track the fine trends of the signal in each frame over time. Therefore, more precise triggering of time-varying signals, such as amplitude-modulated (AM) and frequency-modulated (FM) signals, at any given moment becomes a new challenge in digital triggering systems.
[0003] As a signal changes over time, both its amplitude and frequency may change. The quality of the signal may vary at different amplitudes and bandwidths. For example, a frequency-modulated signal may have a normal trajectory at the maximum and minimum modulation frequencies, but its trajectory may not be normal at other frequencies within that range. It may be too large or too small, but still within the trajectory range of the maximum and minimum modulation frequencies. In this case, traditional static templates cannot detect signal quality problems and need further improvement. Summary of the Invention
[0004] The purpose of this invention is to overcome the shortcomings of the prior art and provide a template triggering method based on dynamic templates. The trigger template is adjusted according to the time variation characteristics of the parameters of the signal under test, thereby adapting to the changes and needs of the signal and achieving more flexible and precise signal triggering.
[0005] To achieve the above-mentioned objectives, the template triggering method based on dynamic templates of the present invention includes the following steps:
[0006] S1: Determine the changing parameters based on the type of the signal to be measured, and denote the changing parameters as follows: , , Indicate the number of changing parameters, and then determine each changing parameter. maximum value and minimum value ;
[0007] S2: Based on the changing parameters maximum value and minimum value Set the maximum limit template and the minimum limit template;
[0008] S3: Use the maximum limit template to perform a pass / fail test on the signal to be triggered, and record the time interval with the most consecutive successful template passes within the first signal cycle time interval as . and the The times of the first and last successful template passes are recorded as follows: and ;
[0009] Simultaneously, a pass / fail test is performed on the signal to be triggered using a minimum limit template. The time with the most consecutive successful template passes within the first signal cycle time interval is recorded as _____. and the The times of the first and last successful template passes are recorded as follows: and ;
[0010] S4: Calculate the starting time of the maximum limit of the signal within one signal period using the following formula. :
[0011] ,
[0012] The starting time of the minimum limit of the signal within one signal period is calculated using the following formula. :
[0013] ,
[0014] The change period interval was calculated. ;
[0015] S5: Initialization template start time ;
[0016] S6: Acquire the signal and record the acquisition time. ;
[0017] S7: If the parameters change To ensure linear variation, the adjustment ratio parameter for the trigger template is calculated using the following formula. :
[0018] ,
[0019] If the parameters change Since the change is non-linear, the adjustment ratio parameter for the trigger template is calculated using the following formula. :
[0020] ,
[0021] in, Indicates the preset variation parameters The function of change;
[0022] S8: Update each changing parameter value using the following formula. :
[0023] ,
[0024] Based on the changing parameter values Set the current trigger template parameters and generate the trigger template;
[0025] S9: Compare the collected data with the trigger template generated in step S8. If the signal does not pass through the template, the trigger is successful and the triggering stops. If the signal passes through the template, the triggering is not achieved and proceed to step S10.
[0026] S10: Update template start time Then return to step S6.
[0027] This invention relates to a template triggering method based on dynamic templates. The method determines the changing parameters according to the type of the signal to be tested. A maximum limit template and a minimum limit template are set based on the maximum and minimum values of the changing parameters. The maximum and minimum limit templates are used to perform pass / fail tests on the signal to be triggered, obtaining the maximum limit start time, the minimum limit start time, and the changing period interval. The template start time is initialized, the signal is acquired, and the adjustment ratio parameter is calculated based on the data acquisition time. The trigger template parameters are then updated, and the updated trigger template is used to trigger the acquired data. If the trigger is successful, the triggering stops; otherwise, data acquisition continues and the trigger template is updated.
[0028] The present invention has the following beneficial effects:
[0029] (1) The present invention uses a dynamic method to generate templates. Different templates are used at different acquisition times, which specifies the trajectory that the signal should pass through at different times. Compared with the traditional static template triggering method, it can trigger the signal at each time more precisely.
[0030] (2) Templates are generated in real time, which reduces the storage pressure on templates;
[0031] (3) Generate templates based on the collection time. Compared with the method of pre-storing templates based on fixed time intervals, the templates generated based on the collection time are more accurate. Attached Figure Description
[0032] Figure 1 is a flowchart of a specific implementation of the template triggering method based on dynamic templates of the present invention.
[0033] Figure 2 shows the frequency in this embodiment. Example diagram of a sinusoidal signal template;
[0034] Figure 3 shows the frequency in this embodiment. Example diagram of a sinusoidal signal template;
[0035] Figure 4 shows the frequency range in this embodiment. Example diagram of a static sinusoidal signal template;
[0036] Figure 5 shows the frequency dynamically generated by the present invention in this embodiment. Example diagram of a sine wave template;
[0037] Figure 6 shows the frequency in this embodiment. A comparison chart of dynamic and static templates. Detailed Implementation
[0038] The specific embodiments of the present invention will now be described with reference to the accompanying drawings to enable those skilled in the art to better understand the invention. It should be particularly noted that in the following description, detailed descriptions of known functions and designs that might obscure the main content of the invention will be omitted here.
[0039] Example
[0040] Figure 1 is a flowchart illustrating a specific implementation of the template triggering method based on dynamic templates according to the present invention. As shown in Figure 1, the specific steps of the template triggering method based on dynamic templates according to the present invention include:
[0041] S101: Determine the changing parameters:
[0042] The varying parameters are determined based on the type of the signal to be measured, and denoted as follows: , , Indicate the number of changing parameters, and then determine each changing parameter. maximum value and minimum value .
[0043] If the signal's frequency varies with time, then frequency is used as the variable parameter; if the signal's amplitude varies with time, then amplitude is used as the variable parameter; alternatively, both frequency and amplitude can be used as variable parameters. The maximum and minimum values of the variable parameters can be obtained through actual measurements or through theoretical analysis of the generation of the signal under test.
[0044] S102: Set the maximum limit template and the minimum limit template:
[0045] According to the changing parameters maximum value and minimum value Set maximum and minimum limit templates. When there is only one variable parameter, the maximum or minimum limit template is set based on the maximum or minimum value of that variable parameter. When the number of variable parameters is greater than one, the maximum and minimum limit templates are set based on the maximum or minimum values of all variable parameters. For example, a single frequency change or a single amplitude change means multiplying by a coefficient along the x-axis or y-axis. When both frequency and amplitude are used as variable parameters, the x-axis and y-axis are multiplied by a coefficient respectively.
[0046] S103: Passed the failure test:
[0047] Using the maximum limit template, a pass / fail test is performed on the signal to be triggered. The time interval with the most consecutive successful template passes within the first signal cycle time interval is recorded as . and the The times of the first and last successful template passes are recorded as follows: and .
[0048] Simultaneously, a pass / fail test is performed on the signal to be triggered using a minimum limit template. The time with the most consecutive successful template passes within the first signal cycle time interval is recorded as _____. and the The times of the first and last successful template passes are recorded as follows: and .
[0049] In practical applications, this step can involve measuring multiple signal cycles, averaging the results, and then using the last signal cycle as the first cycle.
[0050] S104: Calculate the signal limit start time:
[0051] The starting time of the maximum limit of a signal within one signal period is calculated using the following formula. :
[0052] ,
[0053] The starting time of the minimum limit of the signal within one signal period is calculated using the following formula. :
[0054] ,
[0055] The change period interval was calculated. .
[0056] S105: Template initialization start time:
[0057] Initialization template start time .
[0058] S106: Data Acquisition
[0059] The signal is acquired and the acquisition time is recorded. .
[0060] S107: Calculate the adjustment ratio coefficient:
[0061] To better handle changes in parameters and accurately adjust the trigger template, this invention proposes calculation methods for adjusting the proportional parameters in two different scenarios. The specific methods are as follows:
[0062] If the parameters change To ensure linear variation, the adjustment ratio parameter for the trigger template is calculated using the following formula. :
[0063] ,
[0064] If the parameters change Since the change is non-linear, the adjustment ratio parameter for the trigger template is calculated using the following formula. :
[0065] ,
[0066] in, Indicates the preset variation parameters The function of change is determined based on the actual situation.
[0067] S108: Set trigger template parameters:
[0068] The value of each variable parameter is determined using the following formula. :
[0069] ,
[0070] Based on the changing parameter values Set the current trigger template parameters and generate the trigger template.
[0071] S109: Template trigger judgment:
[0072] The collected data is compared with the trigger template generated in step S108. If the signal does not pass through the template (i.e., the signal curve intersects with the template), the trigger is successful and the triggering stops. If the signal passes through the template (i.e., the signal curve does not intersect with the template), the triggering is not achieved and the process proceeds to step S110.
[0073] S110: Update template start time:
[0074] Update template start time Return to step S106.
[0075] To better illustrate the technical effects of the present invention, a specific example is used to experimentally verify the invention. This embodiment uses a frequency-modulated signal, that is, a signal whose frequency is a variable parameter. In this embodiment, the noise level is 20%, and the minimum frequency is [missing value]. The maximum frequency is The frequency conversion signal is used as the signal to be tested, and a dynamic template is generated based on the signal to be tested.
[0076] Figure 2 shows the frequency in this embodiment. Example diagram of a sinusoidal signal template. As shown in Figure 2, this diagram illustrates a frequency of... A standard template for triggering a sinusoidal signal with a falling edge is used, which has a fixed frequency. The static template for a sinusoidal signal, which is also the one with the minimum frequency of The minimum frequency template of the frequency conversion signal.
[0077] Figure 3 shows the frequency in this embodiment. An example diagram of a sinusoidal signal template is shown in Figure 3. This diagram illustrates a frequency of... A standard template for triggering a sinusoidal signal with a falling edge is used, which has a fixed frequency. A static template for a sinusoidal signal, which also has a maximum frequency of The maximum frequency template of the frequency conversion signal.
[0078] Figure 4 shows the frequency range in this embodiment. An example diagram of a static sinusoidal signal template is shown in Figure 4. This diagram illustrates a frequency range of... A static template whose trigger edge is a falling edge for a frequency-converted sinusoidal signal.
[0079] Figure 5 shows the frequency dynamically generated by the present invention in this embodiment. An example diagram of a sine wave template is shown in Figure 5. This diagram illustrates a sine wave template generated using a dynamic generation algorithm, with a frequency of... A sine wave template.
[0080] Figure 6 shows the frequency in this embodiment. A comparison chart of dynamic and static templates is shown in Figure 6. This chart illustrates the comparison between dynamic and static templates within a test frequency range of [missing information]. The frequency conversion signal at a frequency of At that time, the area of the static template is compared with the area of the dynamically generated template, where the gray area is the static template, the green area is the dynamic template, and the blue dashed line represents the frequency. However, signals with small amplitudes (where the difference between the signal amplitude and the expected amplitude exceeds 20% of the preset threshold). When the signal frequency is... When the signal is completely outside the gray static template and not completely covered by the black dynamic template, for example, the frequency represented by the blue dashed line in the figure is... If the waveform is under-amplitude, the signal cannot be marked as a failure by the static template. Instead, the dynamically generated template can detect that the signal exceeds the expected template and is successfully triggered.
[0081] Although the illustrative specific embodiments of the present invention have been described above to enable those skilled in the art to understand the invention, it should be understood that the invention is not limited to the scope of the specific embodiments. For those skilled in the art, various changes are obvious as long as they are within the spirit and scope of the invention as defined and determined by the appended claims, and all inventions utilizing the concept of the present invention are protected.
Claims
1. A template triggering method based on dynamic templates, characterized in that, Includes the following steps: S1: Determine the variable parameters based on the type of the signal to be measured, and denote the variable parameters as follows: , , Indicate the number of changing parameters, and then determine each changing parameter. maximum value and minimum value S2: Based on the changing parameters maximum value and minimum value Set the maximum and minimum limit templates; S3: Use the maximum limit template to perform a pass / fail test on the signal to be triggered, and record the time interval with the most consecutive successful template passes within the first signal cycle time interval as . and the The times of the first and last successful template passes are recorded as follows: and Simultaneously, a minimum limit template is used to perform a pass / fail test on the signal to be triggered, and the time with the most consecutive successful template passes within the first signal cycle time interval is recorded as ; and the The times of the first and last successful template passes are recorded as follows: and S4: Calculate the starting time of the maximum limit of the signal within one signal period using the following formula. : The starting time of the minimum limit of the signal within one signal period is calculated using the following formula. : The change period interval was calculated. S5: Initialization template start time S6: Acquire the signal and record the acquisition time. S7: If the parameter changes To ensure linear variation, the adjustment ratio parameter for the trigger template is calculated using the following formula. : If the parameters change Since the change is non-linear, the adjustment ratio parameter for the trigger template is calculated using the following formula. : ,in, Indicates the preset variation parameters The function of change; S8: Update the value of each changing parameter using the following formula. : According to the changing parameter values Set the current trigger template parameters and generate the trigger template; S9: Compare the collected data with the trigger template generated in step S8. If the signal does not pass through the template, the trigger is successful and the triggering stops. If the signal passes through the template, the triggering was not achieved, and proceed to step S10. S10: Update the template start time. Then return to step S6.
Citation Information
Patent Citations
Triggering method based on oscilloscope measurement parameters
CN112485493A
Self-adaptive waveform template construction method
CN114217298A