TW202407355A - Radio frequency power supply signal acquisition method and device - Google Patents

Radio frequency power supply signal acquisition method and device Download PDF

Info

Publication number
TW202407355A
TW202407355A TW112128898A TW112128898A TW202407355A TW 202407355 A TW202407355 A TW 202407355A TW 112128898 A TW112128898 A TW 112128898A TW 112128898 A TW112128898 A TW 112128898A TW 202407355 A TW202407355 A TW 202407355A
Authority
TW
Taiwan
Prior art keywords
sampling
signal
data
array
falling edge
Prior art date
Application number
TW112128898A
Other languages
Chinese (zh)
Inventor
唐亞海
林桂浩
樂衛平
Original Assignee
大陸商深圳市恒運昌真空技術有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 大陸商深圳市恒運昌真空技術有限公司 filed Critical 大陸商深圳市恒運昌真空技術有限公司
Publication of TW202407355A publication Critical patent/TW202407355A/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/40Testing power supplies
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)
  • Measuring Frequencies, Analyzing Spectra (AREA)

Abstract

The invention provides a radio frequency power supply signal acquisition method and device, and the method comprises the steps: determining a rising edge interval and a falling edge interval in a current pulse period; data bits corresponding to a rising edge interval and a falling edge interval in a sampling array are set to be 0, signal low bits or null signals, and the problem that in the prior art, due to the fact that an acquisition board continuously acquires voltage and current signals and continuously outputs the signals, even in a startup and shutdown mode and a PULSE mode, the sampling efficiency is low is solved. And signals are still continuously collected and output in a slope generation stage, so that the problem of inaccurate output data is caused.

Description

一種射頻電源信號採集方法及裝置(一) A radio frequency power signal acquisition method and device (1)

本發明涉及射頻電源信號採集技術領域,具體涉及一種射頻電源信號採集方法及裝置。 The invention relates to the technical field of radio frequency power signal acquisition, and in particular to a radio frequency power signal acquisition method and device.

一個典型的數據獲取系統會通過各式各樣的感測器搜集周圍環境或是各種待測物產生的信號。一般而言,這些信號會隨機地產生,所以數據獲取系統必須不斷地進行採樣,才能確保不漏掉任何重要的信號。在射頻電源中,目前的採集板是通過連續採樣的方式來採集電壓和電流信號,現有技術由於採集板連續不間斷採集電壓和電流信號並且連續進行信號輸出,即使在開關機和脈衝(PULSE)模式下,在斜坡產生階段仍然不間斷採集信號並輸出,導致輸出數據不準確的問題。 A typical data acquisition system collects signals from the surrounding environment or various objects under test through various sensors. Generally speaking, these signals are generated randomly, so the data acquisition system must continuously sample to ensure that no important signals are missed. In radio frequency power supplies, the current acquisition board collects voltage and current signals through continuous sampling. In the existing technology, the acquisition board continuously collects voltage and current signals and outputs signals continuously, even when turning on and off and pulse (PULSE). In mode, signals are still continuously collected and output during the ramp generation stage, resulting in inaccurate output data.

因此,本發明要解決的技術問題在於克服現有射頻電源技術中,由於採集板連續不間斷採集電壓和電流信號並且連續進行信號輸出,即使在開關機和脈衝(PULSE)模式下,在斜坡產生階段仍然不間斷採集信號並輸出,導致輸出數據不準確的問題,從而提供一種射頻電源信號採集方法及裝置。 Therefore, the technical problem to be solved by the present invention is to overcome the existing radio frequency power supply technology. Since the acquisition board continuously collects voltage and current signals and continuously outputs signals, even in the on/off and pulse (PULSE) modes, during the ramp generation stage The signal is still continuously collected and output, resulting in the problem of inaccurate output data, thereby providing a radio frequency power signal collection method and device.

為解決上述技術問題,本發明公開實施例至少提供一種射頻電源信號採集方法及裝置。 In order to solve the above technical problems, disclosed embodiments of the present invention provide at least one radio frequency power signal acquisition method and device.

第一方面,本發明公開實施例提供了一種射頻電源信號採集方法,包括:確定當前脈衝週期內的上升沿區間和下降沿區間;將採樣數組內與所述上升沿區間和所述下降沿區間對應的數據位設置為0、信號低位或空信號。 In a first aspect, disclosed embodiments of the present invention provide a method for collecting radio frequency power signals, which includes: determining the rising edge interval and the falling edge interval within the current pulse period; and comparing the sampling array with the rising edge interval and the falling edge interval. The corresponding data bit is set to 0, signal low, or null signal.

可選地,所述將採樣數組內與所述上升沿區間和所述下降沿區間對應的數據位設置為0、信號低位或空信號為:通過採樣延時或採樣數據輸出置0的方式將採樣數組內與所述上升沿區間和所述下降沿區間對應的數據位設置為0、信號低位或空信號。 Optionally, setting the data bits corresponding to the rising edge interval and the falling edge interval in the sampling array to 0, low signal bits or empty signals is: setting the sampling delay or sampling data output to 0. The data bits in the array corresponding to the rising edge interval and the falling edge interval are set to 0, low signal, or empty signal.

可選地,所述通過採樣延時或採樣數據輸出置0的方式將採樣數組內與所述上升沿區間和所述下降沿區間對應的數據位設置為0、信號低位或空信號包括:在上升沿區間內,在數據採樣時,通過延時採樣時間將採樣數組內所述上升沿區間對應的數據位設置為0、信號低位或空信號,或,在採樣資料輸出時,將採樣數組內所述上升沿區間對應的數據位設置為0、信號低位或空信號;在下降沿區間內,在資料採樣時,通過延時採樣時間將採樣數組內所述下降沿區間對應的數據位設置為0、信號低位或空信號,或,在採樣數據輸出時,將採樣數組內所述下降沿區間或所述下降沿區間對應的數據位設置為0、信號低位或空信號。 Optionally, setting the data bits in the sampling array corresponding to the rising edge interval and the falling edge interval to 0, a low signal or a null signal in the sampling array by sampling delay or setting the sampling data output to 0 includes: In the edge interval, when data is sampled, the data bit corresponding to the rising edge interval in the sampling array is set to 0, low signal or empty signal by delaying the sampling time, or, when the sampling data is output, the data bit in the sampling array is set to The data bits corresponding to the rising edge interval are set to 0, low signal or empty signal; in the falling edge interval, when data is sampled, the data bits corresponding to the falling edge interval in the sampling array are set to 0, signal by delaying the sampling time. Low bit or empty signal, or, when the sampled data is output, the falling edge interval or the data bit corresponding to the falling edge interval in the sampling array is set to 0, signal low bit or empty signal.

可選地,所述通過延時採樣時間將採樣數組內所述上升沿區間對應的數據位設置為0、信號低位或空信號包括:當前脈衝週期內的上升沿起始點開始,啟動第一採樣延時,將採樣數組中所述第一採樣延時對應的數據位設置為0、信號低位或空信號;所述通過延時採樣時間將採樣數組內所述下降沿區間對應的數據位設置為0、信號低位或空信號包括:從當前脈衝週期內的下降沿起始點開始,啟動第二採樣延時,將採樣數組中所述第二採樣延時對應的數據位設置為0、信號低位或空信號。 Optionally, setting the data bit corresponding to the rising edge interval in the sampling array to 0, low signal or empty signal by delaying the sampling time includes: starting from the starting point of the rising edge in the current pulse period, starting the first sampling Delay, set the data bit corresponding to the first sampling delay in the sampling array to 0, low signal or empty signal; set the data bit corresponding to the falling edge interval in the sampling array to 0, signal by delaying the sampling time The low or empty signal includes: starting from the starting point of the falling edge in the current pulse cycle, starting the second sampling delay, setting the data bit corresponding to the second sampling delay in the sampling array to 0, signal low or empty signal.

可選地,所述將採樣數組內所述上升沿區間對應的數據位設置為0、信號低位或空信號包括:在完成對當前脈衝週期內的上升沿結束點進行信號採樣的同時,確定第一異常數據,所述第一異常數據是所述採樣數組內、從所述上升沿結束點對應的數據位開始、往前計數第一預設長度內的數據,將所述 第一異常數據置0、信號低位或空信號,所述第一預設長度為所述上升沿區間對應的陣列長度;所述將採樣數組內所述下降沿區間對應的數據位設置為0、信號低位或空信號包括:在完成對當前脈衝週期內的下降沿結束點進行信號採樣的同時,確定第二異常數據,所述第二異常數據是所述採樣數組內、從所述下降沿結束點對應的數據位開始、往前計數第二預設長度內的數據,將所述第二異常數據置0、信號低位或空信號,所述第二預設長度為所述下降沿區間對應的陣列長度。 Optionally, setting the data bit corresponding to the rising edge interval in the sampling array to 0, a low signal, or a null signal includes: while completing signal sampling of the rising edge end point in the current pulse cycle, determining the first An abnormal data, the first abnormal data is the data within the first preset length starting from the data bit corresponding to the rising edge end point in the sampling array, and counting forward The first abnormal data is set to 0, the signal is low or the signal is empty, the first preset length is the array length corresponding to the rising edge interval; the data bit corresponding to the falling edge interval in the sampling array is set to 0, The signal low or empty signal includes: while completing the signal sampling of the falling edge end point in the current pulse cycle, determining the second abnormal data, the second abnormal data is within the sampling array and ends from the falling edge. Starting from the data bit corresponding to the point, count the data within the second preset length forward, and set the second abnormal data to 0, signal low or empty signal, and the second preset length is the corresponding falling edge interval. Array length.

可選地,所述將採樣數組中所述第一採樣延時對應的數據位設置為0、信號低位或空信號為:將採樣數組中第一預設採樣時長對應的數據位設置為0、信號低位或空信號,延時結束;所述將採樣數組中所述第二採樣延時對應的數據位設置為0、信號低位或空信號為:將採樣數組中第二預設採樣時長對應的數據位設置為0、信號低位或空信號,延時結束。 Optionally, the step of setting the data bit corresponding to the first sampling delay in the sampling array to 0 and the low signal or empty signal is: setting the data bit corresponding to the first preset sampling duration in the sampling array to 0, The signal is low or empty, and the delay ends; the data bit corresponding to the second sampling delay in the sampling array is set to 0, the signal is low or the empty signal is: the data corresponding to the second preset sampling duration in the sampling array is set The bit is set to 0, the signal is low or the signal is empty, and the delay ends.

可選地,所述將採樣數組中所述第一採樣延時對應的資料位設置為0、信號低位或空信號為:將採樣數組中第一預設數組長度對應的數據位設置為0、信號低位或空信號,延時結束;所述將採樣數組中所述第二採樣延時對應的數據位設置為0、信號低位或空信號為:將採樣數組中第二預設數組長度對應的數據位設置為0、信號低位或空信號,延時結束。 Optionally, the step of setting the data bit corresponding to the first sampling delay in the sampling array to 0 and the signal low bit or the empty signal is: setting the data bit corresponding to the first preset array length in the sampling array to 0, signaling Low or empty signal, the delay ends; setting the data bit corresponding to the second sampling delay in the sampling array to 0, signal low or empty signal is: setting the data bit corresponding to the second preset array length in the sampling array If it is 0, the signal is low or empty, the delay ends.

可選地,所述確定當前脈衝週期內的上升沿區間和下降沿區間包括:通過基準閾值、上升沿時長和下降沿時長確定當前脈衝週期內的上升沿區間和下降沿區間,所述基準閾值用於標記信號低位;或,通過所述基準閾值和頂端閾值確定當前脈衝週期內的上升沿區間和下降沿區間,所述頂端閾值用於標記信號高位;或,通過採樣點的功率變化確定當前脈衝週期內的上升沿區間和下降沿區間。 Optionally, determining the rising edge interval and falling edge interval in the current pulse period includes: determining the rising edge interval and falling edge interval in the current pulse period through a reference threshold, rising edge duration and falling edge duration, said The reference threshold is used to mark the low level of the signal; or, the rising edge interval and the falling edge interval in the current pulse cycle are determined through the base threshold and the top threshold, and the top threshold is used to mark the high level of the signal; or, the power change of the sampling point is used Determine the rising edge interval and falling edge interval within the current pulse cycle.

可選地,所述第一預設採樣時長等於上升沿時長,所述第二預設採樣時長等於下降沿時長。 Optionally, the first preset sampling duration is equal to the rising edge duration, and the second preset sampling duration is equal to the falling edge duration.

可選地,所述第一預設數組長度、所述第二預設數組長度是由所述上升沿時長或所述下降沿時長與採樣週期按照預設運算關係確定的。 Optionally, the first preset array length and the second preset array length are determined according to a preset operation relationship between the rising edge duration or the falling edge duration and the sampling period.

可選地,第一預設數組長度=上升沿時長/採樣週期,所述第二預設數組長度=下降沿時長/採樣週期;或者,所述第一預設數組長度=所述第二預設數組長度=上升沿時長/採樣週期;或者,所述第一預設數組長度=所述第二預設數組長度=下降沿時長/採樣週期。 Optionally, the first preset array length = rising edge duration/sampling period, the second preset array length = falling edge duration/sampling period; or, the first preset array length = the third Two preset array length = rising edge duration/sampling period; or, the first preset array length = the second preset array length = falling edge duration/sampling period.

可選地,所述通過採樣點的功率變化確定當前脈衝週期內的上升沿區間和下降沿區間包括:獲取上升沿起始點,所述上升沿起始點是在當前脈衝週期內功率第一次大於上升沿基準閾值的採樣點;獲取下降沿起始點,所述下降沿起始點是在當前脈衝週期內功率第一次小於下降沿基準閾值的採樣點。 Optionally, determining the rising edge interval and falling edge interval in the current pulse period through the power change of the sampling point includes: obtaining the rising edge starting point, the rising edge starting point is the first power in the current pulse period. The sampling point that is greater than the rising edge reference threshold for the first time; obtain the falling edge starting point, which is the sampling point where the power is less than the falling edge reference threshold for the first time in the current pulse period.

可選地,上述方法還包括:在所述上升沿區間和所述下降沿區間以外,所述採樣數組讀取並按順序輸出採樣數據。 Optionally, the above method further includes: outside the rising edge interval and the falling edge interval, the sampling array reads and outputs sampled data in sequence.

可選地,若所述第一預設數組長度=所述第二預設數組長度=上升沿時長/採樣週期,且上升沿時長大於下降沿時長,則所述通過採樣延時或採樣數據輸出置0的方式將採樣數組內與所述上升沿區間和所述下降沿區間對應的數據位設置為0、信號低位或空信號包括:在採樣資料輸出時,在完成對當前脈衝週期內的下降沿結束點進行信號採樣的同時,計算第三延時的時長,所述第三延時時長是所述上升沿時長與所述下降沿時長的差值,啟動第三延時,在所述第三延時結束時,確定第三異常數據,所述第三異常數據是所述採樣數組內、從所述第三延時結束點對應的數據位開始、往前計數第三預設長度內的數據,將所述第三異常數據置0、信號低位或空信號,所述第三預設長度為所述下降沿區間對應的陣列長度。 Optionally, if the first preset array length = the second preset array length = rising edge duration/sampling period, and the rising edge duration is longer than the falling edge duration, then the sampling delay or sampling period The method of setting the data output to 0 sets the data bits corresponding to the rising edge interval and the falling edge interval in the sampling array to 0, low signal or empty signal including: when the sampling data is output, after completing the current pulse period While sampling the signal at the falling edge end point, calculate the third delay duration. The third delay duration is the difference between the rising edge duration and the falling edge duration. The third delay is started. When the third delay ends, third abnormal data is determined. The third abnormal data is within the third preset length in the sampling array starting from the data bit corresponding to the third delay end point and counting forward. data, the third abnormal data is set to 0, the signal is low, or the signal is empty, and the third preset length is the array length corresponding to the falling edge interval.

第二方面,本發明公開實施例還提供一種射頻電源信號採集裝置,包括:異常數據區間確定模組,用於確定當前脈衝週期內的上升沿區間和下降沿區間;採樣數據置0模組,用於將採樣數組內與所述上升沿區間所述下降沿區間對應的數據位設置為0、信號低位或空信號。 In a second aspect, disclosed embodiments of the present invention also provide a radio frequency power signal acquisition device, including: an abnormal data interval determination module, used to determine the rising edge interval and falling edge interval within the current pulse cycle; a sampling data setting module of 0, Used to set the data bits in the sampling array corresponding to the rising edge interval and the falling edge interval to 0, a low signal, or a null signal.

第三方面,本發明公開實施例還提供一種電腦設備,包括:處理器、存儲器和匯流排,所述存儲器存儲有所述處理器可執行的機器可讀指令,當電腦設備運行時,所述處理器與所述存儲器之間通過匯流排通信,所述機器可讀指令被所述處理器執行時執行上述第一方面,或第一方面中任一種可能的實施方式中的步驟。 In a third aspect, disclosed embodiments of the present invention also provide a computer device, including: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the computer device is running, the The processor communicates with the memory through a bus, and when the machine-readable instructions are executed by the processor, the steps in the above-mentioned first aspect, or any possible implementation manner of the first aspect, are performed.

第四方面,本發明公開實施例還提供一種電腦可讀存儲介質,該電腦可讀存儲介質上存儲有電腦程式,該電腦程式被處理器運行時執行上述第一方面,或第一方面中任一種可能的實施方式中的步驟。 In a fourth aspect, the disclosed embodiments of the present invention also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is run by a processor, it executes the above-mentioned first aspect, or any of the first aspects. steps in a possible implementation.

本發明的實施例提供的技術方案可以具有以下有益效果: The technical solution provided by the embodiments of the present invention can have the following beneficial effects:

確定當前脈衝週期內的上升沿區間和下降沿區間,將採樣數組內與上升沿區間和下降沿區間對應的數據位設置為0、信號低位或空信號,用FIFO(First Input First Output,先進先出)採樣數組置0來實現遮罩掉異常段的數據,也就是使開關機和脈衝(PULSE)模式下斜坡段的數據輸出0,只在斜坡以外的正確時間段輸出功率。 Determine the rising edge interval and falling edge interval in the current pulse period, set the data bits corresponding to the rising edge interval and falling edge interval in the sampling array to 0, low signal or empty signal, use FIFO (First Input First Output, first in first Out) sampling array is set to 0 to mask out the data in the abnormal segment, that is, to output 0 in the ramp segment data in the on/off and pulse (PULSE) modes, and only output power in the correct time period other than the slope.

應當理解的是,以上的一般描述和後文的細節描述僅是範例性和解釋性的,並不能限制本發明。 It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit the present invention.

S11、S12、S13;S21、S22、S221、S222、S23:步驟 S11, S12, S13; S21, S22, S221, S222, S23: steps

1:存儲器 1: memory

2:處理器 2: Processor

71:異常數據區間確定模組 71: Abnormal data interval determination module

711:上升沿起始點獲取子模組 711: Rising edge starting point acquisition sub-module

712:下降沿起始點獲取子模組 712: Falling edge starting point acquisition sub-module

72:採樣數據置0模組 72:Sampling data is set to 0 module

721:上升沿異常處理子模組 721: Rising edge exception handling sub-module

722:下降沿異常處理子模組 722: Falling edge exception handling sub-module

73:FIFO數組輸出模組 73:FIFO array output module

為了更清楚地說明本發明具體實施方式或現有技術中的技術方案,下面將對具體實施方式或現有技術描述中所需要使用的附圖作簡單地介紹,顯而易見地,下面描述中的附圖是本發明的一些實施方式,對於本領域普 通技術人員來講,在不付出創造性勞動的前提下,還可以根據這些附圖獲得其他的附圖。 In order to more clearly explain the specific embodiments of the present invention or the technical solutions in the prior art, the drawings that need to be used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are: Some embodiments of the present invention are common in the art For ordinary technicians, other drawings can also be obtained based on these drawings without exerting creative work.

圖1示出了本發明公開實施例所提供的一種射頻電源信號採集方法的流程圖。 Figure 1 shows a flow chart of a radio frequency power signal acquisition method provided by a disclosed embodiment of the present invention.

圖2示出了本發明公開實施例所提供的另一種射頻電源信號採集方法的流程圖。 Figure 2 shows a flow chart of another radio frequency power signal acquisition method provided by the disclosed embodiment of the present invention.

圖3示出了本發明公開實施例中脈衝結構示意圖。 Figure 3 shows a schematic diagram of the pulse structure in the disclosed embodiment of the present invention.

圖4示出了本發明公開實施例中範例1的脈衝結構示意圖。 FIG. 4 shows a schematic diagram of the pulse structure of Example 1 in the disclosed embodiment of the present invention.

圖5示出了本發明公開實施例中範例2的脈衝結構示意圖。 Figure 5 shows a schematic diagram of the pulse structure of Example 2 in the disclosed embodiment of the present invention.

圖6示出了本發明公開實施例中範例3的脈衝結構示意圖; Figure 6 shows a schematic diagram of the pulse structure of Example 3 in the disclosed embodiment of the present invention;

圖7示出了本發明公開實施例所提供的一種射頻電源信號採集裝置的結構示意圖; Figure 7 shows a schematic structural diagram of a radio frequency power signal acquisition device provided by a disclosed embodiment of the present invention;

圖8示出了本發明公開實施例所提供的一種電腦設備的結構示意圖。 Figure 8 shows a schematic structural diagram of a computer device provided by a disclosed embodiment of the present invention.

這裡將詳細地對範例性實施例進行說明,其範例表示在附圖中。下面的描述涉及附圖時,除非另有表示,不同附圖中的相同數字表示相同或相似的要素。以下範例性實施例中所描述的實施方式並不代表與本發明相一致的所有實施方式。相反,它們僅是與如所附權利要求書中所詳述的、本發明的一些方面相一致的裝置和方法的例子。 Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the appended claims.

實施例一: Example 1:

如圖1所示,本發明公開實施例所提供的一種射頻電源信號採集方法的流程圖,方法包括: As shown in Figure 1, there is a flow chart of a radio frequency power signal acquisition method provided by an embodiment disclosed in the present invention. The method includes:

步驟S11:確定當前脈衝週期內的上升沿區間和下降沿區間; Step S11: Determine the rising edge interval and falling edge interval within the current pulse cycle;

步驟S12:將採樣數組內與上升沿區間和下降沿區間對應的數據位設置為0、信號低位或空信號; Step S12: Set the data bits corresponding to the rising edge interval and the falling edge interval in the sampling array to 0, low signal, or empty signal;

步驟S13:在上升沿區間和下降沿區間以外,採樣數組讀取並按順序輸出採樣資料。 Step S13: Outside the rising edge interval and falling edge interval, the sampling array reads and outputs the sampling data in sequence.

可以理解的是,本實施例提供的技術方案,確定當前脈衝週期內的上升沿區間和下降沿區間,將採樣數組內與上升沿區間和下降沿區間對應的數據位設置為0、信號低位或空信號,用FIFO(First Input First Output,先進先出)採樣數組置0來實現遮罩掉異常段的數據,也就是使開關機和脈衝(PULSE)模式下斜坡段的數據輸出0,只在斜坡以外的正確時間段輸出功率。 It can be understood that the technical solution provided by this embodiment determines the rising edge interval and falling edge interval within the current pulse cycle, and sets the data bits corresponding to the rising edge interval and falling edge interval in the sampling array to 0, signal low bit, or For an empty signal, use the FIFO (First Input First Output, first in first out) sampling array to set it to 0 to mask out the data in the abnormal section, that is, to make the data in the slope section output 0 in the power on and off and pulse (PULSE) modes, only in Output power at the correct time period outside of the ramp.

實施例二: Example 2:

如圖2所示,本發明公開實施例所提供的另一種射頻電源信號採集方法的流程圖,參見圖3,該方法將脈衝週期內的斜坡階段產生的異常數據屏蔽掉,該方法包括: As shown in Figure 2, there is a flow chart of another radio frequency power signal acquisition method provided by the disclosed embodiment of the present invention. See Figure 3. This method masks abnormal data generated during the ramp phase within the pulse cycle. The method includes:

步驟S21:確定當前脈衝週期內的上升沿區間和下降沿區間; Step S21: Determine the rising edge interval and falling edge interval within the current pulse cycle;

步驟S22:將採樣數組內與上升沿區間和下降沿區間對應的數據位設置為0、信號低位或空信號; Step S22: Set the data bits corresponding to the rising edge interval and the falling edge interval in the sampling array to 0, low signal, or empty signal;

步驟S23:在上升沿區間和下降沿區間以外,採樣數組讀取並按順序輸出採樣數據。 Step S23: Outside the rising edge interval and falling edge interval, the sampling array reads and outputs the sampled data in sequence.

在一些實施例中,步驟S22將採樣數組內與上升沿區間和下降沿區間對應的數據位設置為0、信號低位或空信號可以為:通過採樣延時或採樣數據輸出置0的方式將採樣數組內與上升沿區間和下降沿區間對應的數據位設置為0、信號低位或空信號。 In some embodiments, step S22 sets the data bits corresponding to the rising edge interval and the falling edge interval in the sampling array to 0, and the signal low bit or empty signal can be: setting the sampling array to 0 through sampling delay or sampling data output. The data bits corresponding to the rising edge interval and falling edge interval are set to 0, low signal or empty signal.

在一些實施例中,步驟S22可以包括以下步驟: In some embodiments, step S22 may include the following steps:

步驟S221:在上升沿區間內,根據不同的數據判定模式,可以採用不同的數據處理方式。數據判定模式包括: Step S221: In the rising edge interval, different data processing methods can be adopted according to different data determination modes. Data judgment modes include:

(A)通過基準閾值判定輸入信號是否從信號低位轉為上升沿區間,即是指,當信號數據低於基準閾值即視為信號低位(又或信號零位輸出,又或是0輸出),當信號數據高於基準閾值即視為信號向高位爬升,爬升過程即視為上升沿區間。 (A) Use the reference threshold to determine whether the input signal changes from the low signal level to the rising edge interval, that is, when the signal data is lower than the reference threshold, it is regarded as the signal low level (or signal zero output, or 0 output), When the signal data is higher than the reference threshold, it is regarded as the signal climbing to a high level, and the climbing process is regarded as the rising edge interval.

在讀取採樣數據時,一旦讀取到、預定導入採樣數組的採樣資料超過基準閾值時,即認為信號進入上升沿,此時啟動採樣延時。當採樣延時結束時,即恢復正常的採樣數據的讀取作業。在一些實施例中,採樣延時的時長即為上升沿區間的時長。其中,依據對應的採集陣列的長度,採取相應的數據處理方式,說明如下: When reading sampling data, once the sampling data read and scheduled to be imported into the sampling array exceeds the reference threshold, the signal is considered to enter a rising edge, and the sampling delay is started at this time. When the sampling delay ends, the normal reading operation of sampling data is resumed. In some embodiments, the length of the sampling delay is the length of the rising edge interval. Among them, according to the length of the corresponding acquisition array, the corresponding data processing method is adopted, which is explained as follows:

(A-1)當採集陣列的數據位對應的時長大於或等於上升沿區間的時長,通過如下方式擇一處理: (A-1) When the duration corresponding to the data bits of the acquisition array is greater than or equal to the duration of the rising edge interval, choose one of the following methods to process:

(A-11)採樣延時期間內,所讀取到的採樣數據,先設置為0、信號低位或空信號,再填入採樣數組。 (A-11) During the sampling delay period, the sampled data read is first set to 0, low signal or empty signal, and then filled in the sampling array.

(A-12)標記採樣延時期間內所讀取到的,導入採樣數組的採樣數據,在採樣數據輸出時,將採樣數組內上升沿區間對應的數據位設置為0、信號低位或空信號。 (A-12) Mark the sampled data read during the sampling delay period and imported into the sampling array. When the sampling data is output, the data bit corresponding to the rising edge interval in the sampling array is set to 0, low signal or empty signal.

(A-13)啟動延時採樣時間的期間,不論讀取到何種採樣數據,整個採樣數組的數據仍保持FIFO的運作,當延時採樣時間結束,採樣數組內的數據欄位全數設置為0、信號低位或空信號,同時進行正常的數據採樣作業。 (A-13) During the period of starting the delayed sampling time, no matter what kind of sample data is read, the data of the entire sampling array still maintains FIFO operation. When the delayed sampling time ends, all data fields in the sampling array are set to 0, The signal is low or empty, and normal data sampling operations are performed at the same time.

(A-2)當採集陣列的數據位對應的時長小於上升沿區間的時長,通過(A-11)或(A-12)的方式對讀取的數據進行處理。 (A-2) When the duration corresponding to the data bits of the acquisition array is less than the duration of the rising edge interval, process the read data through (A-11) or (A-12).

(B)通過基準閾值判定輸入信號是否從信號低位轉為上升沿區間,及通過頂端閾值判定輸入信號是否從上升沿區間轉為信號高位。 (B) Use the reference threshold to determine whether the input signal changes from the low signal level to the rising edge interval, and use the top threshold to determine whether the input signal changes from the rising edge interval to the signal high level.

在讀取採樣數據時,一旦讀取到、預定導入採樣數組的採樣數據超過基準閾值時,即認為信號進入上升沿,此時啟動採樣延時。當讀取到、預定導入採樣數組的採樣數據超過頂端閾值時,即認為信號從上升沿進入信號高位。此時,結束採樣延時,恢復正常的採樣數據讀取與填入採樣數組作業。 When reading sampling data, once the sampling data read and scheduled to be imported into the sampling array exceeds the reference threshold, the signal is considered to enter a rising edge, and the sampling delay is started at this time. When the sample data read and scheduled to be imported into the sampling array exceeds the top threshold, the signal is considered to enter the signal high position from the rising edge. At this time, the sampling delay ends, and normal operations of reading sampled data and filling in the sampled array resume.

在一些實施例中,上升沿區間的時長為已知時,依據對應的採集數組的長度所採取相應的數據處理方式如上述(A-1)與(A-2)。 In some embodiments, when the duration of the rising edge interval is known, the corresponding data processing method is adopted according to the length of the corresponding collection array as described above (A-1) and (A-2).

在一些實施例中,採樣延時的時長需視所讀取的採樣數值在基準閾值與頂端閾值之間的時長,即是按上升沿區間的實際時長而定。即是指,僅通過基準閾值與頂端閾值判定信號低位、上升沿與信號高位。數據處理方式如上述(A-1)與(A-2)。 In some embodiments, the length of the sampling delay depends on the length of time the read sample value is between the base threshold and the top threshold, that is, based on the actual length of the rising edge interval. That is to say, the low level, rising edge and high level of the signal are determined only by the reference threshold and the top threshold. The data processing methods are as described above (A-1) and (A-2).

(C)通過前後讀取的採樣數值進行對比,依據數據大小變化判定輸入信號是否從信號低位轉為上升沿區間,及是否從上升沿區間轉為信號高位。 (C) Compare the sample values read before and after, and determine whether the input signal changes from the low signal level to the rising edge interval, and whether it changes from the rising edge interval to the signal high level based on the change in data size.

在讀取採樣數據時,一旦讀取到、預定導入採樣數組的連續的多個採樣數據,從恒定的低位數據變成上升數據(讀取的前數據低於後數據),即認為信號進入上升沿,此時啟動採樣延時。當讀取到、預定導入採樣數組的連續的多個採樣數據,從上升數據變成恒定高位數據(讀取的前數據等於後數據)時,即認為信號從上升沿進入信號高位,此時結束採樣延時,恢復正常的採樣數據讀取與填入採樣數組作業。 When reading sampling data, once multiple consecutive sampling data that are scheduled to be imported into the sampling array are read and change from constant low-bit data to rising data (the previous data read is lower than the subsequent data), the signal is considered to enter the rising edge. , start the sampling delay at this time. When multiple consecutive sampled data that are read and scheduled to be imported into the sampling array change from rising data to constant high-bit data (the pre-read data is equal to the post-data), it is considered that the signal enters the signal high-bit from the rising edge, and sampling ends at this time Delay and resume normal sampling data reading and filling in sampling array operations.

在一些實施例中,上升沿區間的時長為已知時,依據對應的採集陣列的長度所採取相應的數據處理方式如上述(A-1)與(A-2)。 In some embodiments, when the duration of the rising edge interval is known, the corresponding data processing method is adopted according to the length of the corresponding acquisition array as described above (A-1) and (A-2).

在一些實施例中,採樣延時的時長需視所讀取的採樣數值在基準閾值與頂端閾值之間的時長,即是按上升沿區間的實際時長而定。即是指,可不考量上升沿區間的時長,通過恒定數據與上升數據的轉換,判定信號低位、上升沿與信號高位。數據處理方式如上述(A-11)與(A-12)。 In some embodiments, the length of the sampling delay depends on the length of time the read sample value is between the base threshold and the top threshold, that is, based on the actual length of the rising edge interval. That is to say, the length of the rising edge interval can be ignored, and the low level, rising edge and high level of the signal can be determined through the conversion of constant data and rising data. The data processing methods are as described above (A-11) and (A-12).

步驟S222:在下降沿區間內,根據不同的數據判定模式,可以採用不同的數據處理方式。數據判定模式包括: Step S222: In the falling edge interval, different data processing methods can be adopted according to different data determination modes. Data judgment modes include:

(D)通過基準閾值判定輸入信號是否已到達下降沿區間轉至信號低位,即是指,信號已到達下降沿區間末端,進一步的可視為進入信號低位、零位或無輸出。 (D) Use the reference threshold to determine whether the input signal has reached the falling edge interval and turned to the signal low position, that is, the signal has reached the end of the falling edge interval, and further can be regarded as entering the signal low position, zero position or no output.

在讀取採樣數據時,一旦讀取到、預定導入採樣數組的採樣數據低於基準閾值時,即認為信號通過下降沿末端,甚至於達到信號低位、零位或無輸出,此時啟動採樣延時。當採樣延時結束時,即恢復正常的採樣數據的讀取作業。 When reading sampling data, once the sampling data read and scheduled to be imported into the sampling array is lower than the reference threshold, it is considered that the signal has passed the end of the falling edge, or even reached the low position, zero position or no output of the signal. At this time, the sampling delay is started. . When the sampling delay ends, the normal reading operation of sampling data is resumed.

在一些實施例中,採樣延時的時長為採集數組的數據位對應的數據採樣時長總和-下降沿時長。其中,採集數組的數據位對應的數據採樣時長總和不小於下降沿時長。而依據對應的採集陣列的長度,延時處理的方式如下: In some embodiments, the duration of the sampling delay is the sum of the data sampling durations corresponding to the data bits of the collection array - the falling edge duration. Among them, the sum of the data sampling duration corresponding to the data bits of the collection array is not less than the falling edge duration. According to the length of the corresponding acquisition array, the delay processing method is as follows:

(D-1)採集數組的數據位對應的數據採樣時長總和等於下降沿時長,採樣延時的時長為0,即形成不啟用採樣延時,直接進行後續的數據處理。 (D-1) The sum of the data sampling durations corresponding to the data bits of the collection array is equal to the falling edge duration, and the sampling delay duration is 0, which means that the sampling delay is not enabled and subsequent data processing is performed directly.

(D-2)採集數組的數據位對應的數據採樣時長總和大於下降沿時長,採樣延時的時長即為前述兩者的差值,在延時結束後,進行後續的數據處理。 (D-2) The sum of the data sampling duration corresponding to the data bits of the acquisition array is greater than the falling edge duration. The duration of the sampling delay is the difference between the two. After the delay is over, subsequent data processing is performed.

在一些實施例中,若啟動延時採樣期間(上述D-2),不論讀取到何種採樣數據,整個採樣數組的數據仍保持FIFO的運作,當採樣延時時間結 束(或上述D-1的不啟用採樣延時),採樣數組內的數據欄位全數設置為0、信號低位或空信號,同時進行正常的數據採樣作業。 In some embodiments, if the delayed sampling period (D-2 above) is started, no matter what kind of sample data is read, the data of the entire sampling array still maintains FIFO operation. When the sampling delay time expires, Beam (or disable the sampling delay of D-1 above), set all data fields in the sampling array to 0, low signal or empty signal, and perform normal data sampling operations at the same time.

(E)通過頂端閾值判定輸入信號是否從信號高位轉為下降沿區間,即是指,當信號數據高於頂端閾值即視為信號高位,當信號數據低於頂端閾值即視為信號嚮往低位落下,落下過程即視為下降沿區間。 (E) Use the top threshold to determine whether the input signal changes from a high signal level to a falling edge interval, that is, when the signal data is higher than the top threshold, the signal is deemed to be high, and when the signal data is lower than the top threshold, the signal is deemed to be falling to a low level. , the falling process is regarded as the falling edge interval.

在讀取採樣數據時,一旦讀取到、預定導入採樣數組的採樣數據低於頂端閾值時,即認為信號進入下降沿,此時啟動採樣延時。當採樣延時結束時,即恢復正常的採樣數據的讀取作業。 When reading sampling data, once the sampling data that is read and scheduled to be imported into the sampling array is lower than the top threshold, the signal is considered to have entered a falling edge, and the sampling delay is started at this time. When the sampling delay ends, the normal reading operation of sampling data is resumed.

在一些實施例中,採樣延時的時長為下降沿區間的時長與採集數組的數據位對應的數據採樣時長總和,取兩者中較長者;若兩者相同,則任擇一即可。因此,延時結束後,所讀取的採集數據會落於信號低位。 In some embodiments, the length of the sampling delay is the sum of the length of the falling edge interval and the length of data sampling corresponding to the data bits of the collection array, whichever is longer; if they are the same, choose either one. . Therefore, after the delay is over, the acquired data read will fall to the low level of the signal.

其中,依據對應的採集數組的長度,採取相應的數據處理方式,說明如下: Among them, according to the length of the corresponding collection array, the corresponding data processing method is adopted, which is explained as follows:

(E-1)當採集陣列的數據位對應的時長大於或等於下降沿區間的時長,通過如下方式擇一處理: (E-1) When the duration corresponding to the data bits of the acquisition array is greater than or equal to the duration of the falling edge interval, choose one of the following methods to process:

(E-11)採樣延時期間內,所讀取到的採樣數據,先設置為0、信號低位或空信號,再填入採樣數組。 (E-11) During the sampling delay period, the sampled data read is first set to 0, low signal or empty signal, and then filled in the sampling array.

(E-12)標記採樣延時期間內所讀取到的,導入採樣數組的採樣數據,在採樣數組輸出時,將採樣數組內下降沿區間對應的資料位設置為0、信號低位或空信號。 (E-12) Mark the sampled data read during the sampling delay period and imported into the sampling array. When the sampling array is output, the data bit corresponding to the falling edge interval in the sampling array is set to 0, low signal or empty signal.

(E-13)啟動延時採樣時間的期間,不論讀取到何種採樣數據,整個採樣數組的數據仍保持FIFO的運作,當延時採樣時間結束,採樣數組內的數據欄位全數設置為0、信號低位或空信號,同時進行正常的數據採樣作業。 (E-13) During the period of starting the delayed sampling time, no matter what kind of sampling data is read, the data of the entire sampling array still maintains FIFO operation. When the delayed sampling time ends, all data fields in the sampling array are set to 0, The signal is low or empty, and normal data sampling operations are performed at the same time.

(E-2)當採集數組的數據位對應的時長小於下降沿區間的時長,通過(E-11)或(E-12)的方式對讀取的數據進行處理。 (E-2) When the duration corresponding to the data bits of the collection array is less than the duration of the falling edge interval, process the read data through (E-11) or (E-12).

(F)通過頂端閾值判定輸入信號是否從信號高位轉為下降沿區間,及通過基準閾值判定輸入信號是否從下降沿區間轉為信號低位。 (F) Use the top threshold to determine whether the input signal changes from the high signal level to the falling edge interval, and use the reference threshold to determine whether the input signal changes from the falling edge interval to the signal low level.

在讀取採樣數據時,一旦讀取到、預定導入採樣數組的採樣數據低於頂端閾值時,即認為信號進入下降沿,此時啟動採樣延時。當讀取到、預定導入採樣數組的採樣數據低於基準閾值時,即認為信號從下降沿進入信號低位。此時,結束採樣延時,恢復正常的採樣數據讀取與填入採樣數組作業。 When reading sampling data, once the sampling data that is read and scheduled to be imported into the sampling array is lower than the top threshold, the signal is considered to have entered a falling edge, and the sampling delay is started at this time. When the sampled data read and scheduled to be imported into the sampling array is lower than the reference threshold, the signal is considered to enter the signal low position from the falling edge. At this time, the sampling delay ends, and normal operations of reading sampled data and filling in the sampled array resume.

在一些實施例中,採樣延時的時長需視所讀取的採樣數值在基準閾值與頂端閾值之間的時長,即是按下降沿區間的實際時長而定。即是指,僅通過基準閾值與頂端域值判定信號高位、下降沿與信號低位。數據處理方式如上述(E-1)與(E-2)。 In some embodiments, the length of the sampling delay depends on the length of time the read sample value is between the base threshold and the top threshold, that is, based on the actual length of the falling edge interval. That is to say, the high level, falling edge and low level of the signal are determined only by the reference threshold and the top threshold value. The data processing methods are as described above (E-1) and (E-2).

(G)通過前後讀取的採樣數值進行對比,依據資料大小變化判定輸入信號是否從信號高位轉為下降沿區間,及是否從下降沿區間轉為信號低位。 (G) Compare the sample values read before and after, and determine whether the input signal changes from the high signal level to the falling edge interval, and whether it changes from the falling edge interval to the signal low level based on the change in data size.

在讀取採樣數據時,一旦讀取到、預定導入採樣數組的連續的多個採樣數據,從恒定的高位資料變成上升資料(讀取的前數據低於後資料),即認為信號進入下降沿,此時啟動採樣延時。當讀取到、預定導入採樣數組的連續的多個採樣數據,從下降數據變成恒定的低位數據(讀取的前資料等於後數據)時,即認為信號從下降沿進入信號低位,此時結束採樣延時,恢復正常的採樣數據讀取與填入採樣數組作業。 When reading sampling data, once multiple consecutive sampling data that are scheduled to be imported into the sampling array are read and change from constant high data to rising data (the previous data read is lower than the latter data), the signal is considered to enter the falling edge. , start the sampling delay at this time. When multiple consecutive sampled data that are read and scheduled to be imported into the sampling array change from falling data to constant low-bit data (the pre-read data is equal to the post-data), it is considered that the signal enters the low level of the signal from the falling edge, and it ends at this time Sampling delay, resume normal sampling data reading and filling sampling array operations.

在一些實施例中,下降沿區間的時長為已知時,依據對應的採集數組的長度所採取相應的資料處理方式如上述(E-1)與(E-2)。 In some embodiments, when the length of the falling edge interval is known, the corresponding data processing method is adopted according to the length of the corresponding collection array as in (E-1) and (E-2) above.

在一些實施例中,採樣延時的時長需視所讀取的採樣數值在基準閾值與頂端閾值之間的時長,即是按上升沿區間的實際時長而定。即是指,可不考量上升沿區間的時長,通過恒定資料與上升資料的轉換,判定信號低位、上升沿與信號高位。資料處理方式如上述(E-11)與(E-12)。 In some embodiments, the length of the sampling delay depends on the length of time the read sample value is between the base threshold and the top threshold, that is, based on the actual length of the rising edge interval. That is to say, the duration of the rising edge interval can be ignored, and the low level, rising edge and high level of the signal can be determined through the conversion of constant data and rising data. The data processing methods are as described in (E-11) and (E-12) above.

在一些實施例中,步驟S22包括:在資料採樣時,通過延時採樣時間將採樣數組內下降沿區間對應的資料位設置為0、信號低位或空信號,或,在採樣資料輸出時,將採樣數組內下降沿區間或下降沿區間對應的數據位設置為0、信號低位或空信號。 In some embodiments, step S22 includes: when sampling data, setting the data bit corresponding to the falling edge interval in the sampling array to 0, a low signal or a null signal by delaying the sampling time, or, when outputting the sampling data, setting the sampling The data bit corresponding to the falling edge interval or falling edge interval in the array is set to 0, low signal or empty signal.

在一些實施例中,步驟S221可以包括:當前脈衝週期內的上升沿起始點開始,啟動第一採樣延時,將採樣數組中第一採樣延時對應的數據位設置為0、信號低位或空信號; In some embodiments, step S221 may include: starting from the starting point of the rising edge in the current pulse cycle, starting the first sampling delay, and setting the data bit corresponding to the first sampling delay in the sampling array to 0, low signal, or empty signal. ;

上述通過延時採樣時間將採樣數組內下降沿區間對應的數據位設置為0、信號低位或空信號可以包括:從當前脈衝週期內的下降沿起始點開始,啟動第二採樣延時,將採樣數組中第二採樣延時對應的數據位設置為0、信號低位或空信號。 The above-mentioned setting of the data bit corresponding to the falling edge interval in the sampling array to 0, the signal low bit or the empty signal by delaying the sampling time may include: starting from the starting point of the falling edge in the current pulse period, starting the second sampling delay, changing the sampling array The data bit corresponding to the second sampling delay is set to 0, low signal or empty signal.

在一些實施例中,尤其在有些不能夠獲得上升沿功率基準閾值的情況下,步驟S222可以包括:在完成對當前脈衝週期內的上升沿結束點進行信號採樣的同時,確定第一異常資料,第一異常資料是採樣數組內、從上升沿結束點對應的數據位開始、往前計數第一預設長度內的數據,將第一異常資料置0、信號低位或空信號,第一預設長度為上升沿區間對應的數組長度。 In some embodiments, especially in some cases where the rising edge power reference threshold cannot be obtained, step S222 may include: determining the first abnormal data while completing signal sampling of the rising edge end point in the current pulse cycle, The first abnormal data is in the sampling array, starting from the data bit corresponding to the rising edge end point, counting forward the data within the first preset length, setting the first abnormal data to 0, low signal or empty signal, the first preset The length is the array length corresponding to the rising edge interval.

其中,上述將採樣數組內下降沿區間對應的數據位設置為0。信號低位或空信號可以通過以下過程實現:在完成對當前脈衝週期內的下降沿結束點進行信號採樣的同時,確定第二異常數據,第二異常數據是採樣數組內、從下降沿結束點對應的數據位開始、往前計數第二預設長度內的數據,將第二 異常資料置0、信號低位或空信號,第二預設長度為下降沿區間對應的數組長度。 Among them, the data bit corresponding to the falling edge interval in the sampling array is set to 0. The signal low or empty signal can be realized through the following process: while completing the signal sampling of the falling edge end point in the current pulse cycle, determine the second abnormal data. The second abnormal data is within the sampling array and corresponds to the falling edge end point. Starting from the data bit, count forward the data within the second preset length, and add the second The abnormal data is set to 0, the signal is low or the signal is empty, and the second preset length is the array length corresponding to the falling edge interval.

在一些實施例中,上述將採樣數組中第一採樣延時對應的數據位設置為0、信號低位或空信號可以為:將採樣數組中第一預設採樣時長對應的數據位設置為0、信號低位或空信號,延時結束;上述將採樣數組中第二採樣延時對應的數據位設置為0、信號低位或空信號可以為:將採樣數組中第二預設採樣時長對應的數據位設置為0、信號低位或空信號,延時結束。 In some embodiments, the above-mentioned setting of the data bit corresponding to the first sampling delay in the sampling array to 0, the signal low bit or the empty signal may be: setting the data bit corresponding to the first preset sampling duration in the sampling array to 0, The signal is low or empty, and the delay ends; the above-mentioned setting of the data bit corresponding to the second sampling delay in the sampling array to 0, the signal low or empty signal can be: setting the data bit corresponding to the second preset sampling duration in the sampling array If it is 0, the signal is low or empty, the delay ends.

在一些實施例中,上述將採樣數組中第一採樣延時對應的數據位設置為0、信號低位或空信號可以為:將採樣數組中第一預設數組長度對應的數據位設置為0、信號低位或空信號,延時結束;上述將採樣數組中第二採樣延時對應的數據位設置為0、信號低位或空信號可以為:將採樣數組中第二預設數組長度對應的數據位設置為0、信號低位或空信號,延時結束。 In some embodiments, the above-mentioned setting of the data bit corresponding to the first sampling delay in the sampling array to 0 and the signal low bit or empty signal may be: setting the data bit corresponding to the first preset array length in the sampling array to 0, signaling Low or empty signal, the delay ends; the above is to set the data bit corresponding to the second sampling delay in the sampling array to 0. The signal low or empty signal can be: set the data bit corresponding to the second preset array length in the sampling array to 0 , low signal or empty signal, the delay ends.

在一些實施例中,步驟S21可以包括: In some embodiments, step S21 may include:

a、通過基準閾值、上升沿時長和下降沿時長確定當前脈衝週期內的上升沿區間和下降沿區間,基準閾值用於標記信號低位;或, a. Determine the rising edge interval and falling edge interval in the current pulse cycle through the reference threshold, rising edge duration and falling edge duration. The reference threshold is used to mark the low level of the signal; or,

b、通過基準閾值和頂端閾值確定當前脈衝週期內的上升沿區間和下降沿區間,頂端閾值用於標記信號高位;或, b. Determine the rising edge interval and falling edge interval within the current pulse cycle through the base threshold and the top threshold. The top threshold is used to mark the high level of the signal; or,

c、通過採樣點的功率變化確定當前脈衝週期內的上升沿區間和下降沿區間。 c. Determine the rising edge interval and falling edge interval within the current pulse period through the power change of the sampling point.

在一些實施例中,具體表現為,作檢測採樣,以採樣週期為基數,在功率上升超過上升閾值開始時作為起始,在功率到達下降閾值時作為結束,計算採樣個數或採樣計時,得到上升沿區間;相反的,在功率下降超過下降閾值開始時作為起始,在功率到達上升閾值時作為結束,計算採樣個數或採樣計時,得到下降沿區間。 In some embodiments, the specific performance is to perform detection sampling, using the sampling period as the base, starting when the power rises beyond the rising threshold, and ending when the power reaches the falling threshold, calculating the number of samples or sampling timing, and obtaining Rising edge interval; on the contrary, it starts when the power drops beyond the falling threshold and ends when the power reaches the rising threshold. Calculate the number of samples or sampling timing to obtain the falling edge interval.

在一些實施例中,第一採樣延時時長等於上升沿時長,第二採樣延時時長等於下降沿時長。 In some embodiments, the first sampling delay duration is equal to the rising edge duration, and the second sampling delay duration is equal to the falling edge duration.

在一些實施例中,第一預設數組長度≧下降沿時長/採樣週期,第二預設數組長度≧下降沿時長/採樣週期。 In some embodiments, the first preset array length≧falling edge duration/sampling period, and the second preset array length≧falling edge duration/sampling period.

在一些實施例中,第一預設數組長度、第二預設數組長度是由上升沿時長或下降沿時長與採樣週期按照預設運算關係確定的。 In some embodiments, the first preset array length and the second preset array length are determined according to a preset operation relationship between the rising edge duration or the falling edge duration and the sampling period.

在一具體實施例中,第一預設數組長度=上升沿時長/採樣週期,第二預設數組長度=下降沿時長/採樣週期;或者,第一預設數組長度=第二預設數組長度=上升沿時長/採樣週期;或者,第一預設數組長度=第二預設數組長度=下降沿時長/採樣週期。 In a specific embodiment, the first preset array length = rising edge duration/sampling period, the second preset array length = falling edge duration/sampling period; or, the first preset array length = the second preset Array length = rising edge duration/sampling period; or, first preset array length = second preset array length = falling edge duration/sampling period.

在一些實施例中,若第一預設數組長度=第二預設數組長度=上升沿時長/採樣週期,且上升沿時長大於下降沿時長,則通過採樣延時或採樣數據輸出置0的方式將採樣數組內與上升沿區間和下降沿區間對應的數據位設置為0、信號低位或空信號包括: In some embodiments, if the first preset array length = the second preset array length = rising edge duration/sampling period, and the rising edge duration is greater than the falling edge duration, then the sampling delay or sampling data output is set to 0. The method of setting the data bits corresponding to the rising edge interval and falling edge interval in the sampling array to 0, low signal or empty signal includes:

在採樣數據輸出時,在完成對當前脈衝週期內的下降沿結束點進行信號採樣的同時算第三延時的時長,第三延時時長是上升沿時長與下降沿時長的差值,啟動第三延時,在第三延時結束時,確定第三異常數據,第三異常數據是採樣數組內、從第三延時結束點對應的數據位開始、往前計數第三預設長度內的數據,將第三異常數據置0、信號低位或空信號,第三預設長度為下降沿區間對應的陣列長度。 When the sampling data is output, the third delay duration is calculated while completing the signal sampling of the falling edge end point in the current pulse cycle. The third delay duration is the difference between the rising edge duration and the falling edge duration. Start the third delay, and at the end of the third delay, determine the third abnormal data. The third abnormal data is the data within the third preset length in the sampling array starting from the data bit corresponding to the third delay end point and counting forward. , set the third abnormal data to 0, low signal or empty signal, and the third preset length is the array length corresponding to the falling edge interval.

在一些實施例中,步驟S21可以包括:獲取上升沿起始點,上升沿起始點是在當前脈衝週期內功率第一次大於基準閾值的採樣點;獲取上升沿結束點,上升沿結束點是在當前脈衝週期內功率第一次大於頂端閾值的採樣點;獲取下降沿起始點,下降沿起始點是在當前脈衝週期內功率第一次小於下降沿 基準閾值的採樣點;獲取下降沿結束點,下降沿結束點是在當前脈衝週期內功率第一次小於基準閾值的採樣點。 In some embodiments, step S21 may include: obtaining the rising edge starting point, which is the sampling point where the power is greater than the reference threshold for the first time in the current pulse period; obtaining the rising edge end point, which is the sampling point where the power is greater than the reference threshold for the first time in the current pulse period; It is the sampling point where the power is greater than the top threshold for the first time in the current pulse period; obtain the starting point of the falling edge, which is the first time when the power is less than the falling edge in the current pulse period. The sampling point of the base threshold; obtain the falling edge end point, which is the sampling point where the power is less than the base threshold for the first time in the current pulse cycle.

為便於讀者理解,下面通過具體範例對上述射頻電源信號採集方法進行說明,首先,假定上升沿時長10μs(T1),下降沿時長4μs(T2),設定採樣數組長度為5,週期1μs: In order to facilitate readers' understanding, the above-mentioned RF power signal acquisition method is explained below through a specific example. First, assume that the rising edge duration is 10μs (T1) and the falling edge duration is 4μs (T2). Set the sampling array length to 5 and the period to 1μs:

範例1(已知基準閾值),如圖7、圖4所示: Example 1 (known baseline threshold), as shown in Figure 7 and Figure 4:

在上升沿區間內,通過基準閾值判定輸入信號是否從信號低位轉為上升沿區間,一旦讀取到、預定導入採樣數組的採樣數據超過基準閾值時,即認為信號進入上升沿,此時啟動採樣延時。FIFO數組首數位跑到上升沿A點時,下一個採集點的功率(Pa)超過基準閾值時,此時啟動延時T1的10μs,此時FIFO數組每一數據限定為0。FIFO數組首數位跑到上升沿B點時,此時結束採樣延時,FIFO數組首數位開始填補數據,直到C位時初步填滿整個FIFO數組,然後就FIFO理論,數據先進先出,當FIFO數組到達C位之前輸出的數據仍為0,直到C點時才輸出最初輸入的B點數據,一直到達E點前輸出數據都為正常輸出。 In the rising edge interval, the reference threshold is used to determine whether the input signal changes from the low signal level to the rising edge interval. Once the sampling data that is read and scheduled to be imported into the sampling array exceeds the reference threshold, the signal is considered to have entered the rising edge, and sampling is started at this time. Delay. When the first digit of the FIFO array reaches point A on the rising edge, and the power (Pa) of the next acquisition point exceeds the reference threshold, the 10μs delay T1 is started at this time, and each data in the FIFO array is limited to 0 at this time. When the first digit of the FIFO array reaches point B on the rising edge, the sampling delay ends at this time, and the first digit of the FIFO array begins to fill in data until the C position is initially filled with the entire FIFO array. Then according to the FIFO theory, the data is first in, first out. When the FIFO array The data output before reaching the C position is still 0, and the initially input point B data is not output until point C. The output data is normal output until it reaches point E.

在下降沿區間內,通過基準閾值判定輸入信號是否已到達下降沿區間轉至信號低位,在讀取採樣數據時,一旦讀取到、預定導入採樣數組的採樣數據低於基準閾值時,即認為信號通過下降沿末端,甚至於達到信號低位、零位或無輸出,此時啟動採樣延時。在下降沿階段,FIFO數組首數位跑到下降沿F點時,採集點的功率(Pb)會低於基準閾值,實質輸出為D點數據,此時啟動延時T2=5us-4us=1us,延時結束時,FIFO數組首數位到達G點,尾數位到達E點,FIFO數組作數據清0輸出。 In the falling edge interval, the reference threshold is used to determine whether the input signal has reached the falling edge interval and turned to the low level of the signal. When reading the sampling data, once the sampled data that is read and scheduled to be imported into the sampling array is lower than the reference threshold, it is considered When the signal passes the end of the falling edge, or even reaches the low level, zero level or no output of the signal, the sampling delay is started at this time. In the falling edge stage, when the first digit of the FIFO array reaches point F on the falling edge, the power (Pb) of the collection point will be lower than the reference threshold, and the actual output is point D data. At this time, the start delay T2=5us-4us=1us, the delay At the end, the first digit of the FIFO array reaches point G, the last digit reaches point E, and the FIFO array clears the data to 0 and outputs it.

範例2(已知基準閾值、頂端閾值),如圖7、圖5所示: Example 2 (known base threshold and top threshold), as shown in Figure 7 and Figure 5:

在上升沿區間內,通過基準閾值判定輸入信號是否從信號低位轉為上升沿區間,及通過頂端閾值判定輸入信號是否從上升沿區間轉為信號高位。在上升沿階段,FIFO數組首數位跑到上升沿A點時,下一個採集點的功率(Pa)高於基準閾值時,此時啟動採樣延時。FIFO數組首數位跑到上升沿B點時,下一個採集點的功率(Pa)高於頂端閾值時,此時結束採樣延時。FIFO數組首數位開始填補數據,直到C位時初步填滿整個FIFO數組,然後就FIFO理論,數據先進先出,當FIFO數組到達C位之前輸出的數據仍為0,直到C點時才輸出最初輸入的B點數據,一直到達E點前輸出數據都為正常輸出。 In the rising edge interval, the reference threshold is used to determine whether the input signal changes from a low signal level to a rising edge interval, and the top threshold is used to determine whether the input signal changes from a rising edge interval to a signal high level. In the rising edge stage, when the first digit of the FIFO array reaches point A on the rising edge, and the power (Pa) of the next acquisition point is higher than the reference threshold, the sampling delay is started at this time. When the first digit of the FIFO array reaches point B on the rising edge, and the power (Pa) of the next acquisition point is higher than the top threshold, the sampling delay ends at this time. The first digit of the FIFO array begins to fill in data, and the entire FIFO array is initially filled until the C position. Then according to the FIFO theory, the data is first in, first out. When the FIFO array reaches the C position, the output data is still 0, and the initial output is not until point C. The input data at point B and the output data until reaching point E are normal outputs.

在下降沿區間內,通過頂端閾值判定輸入信號是否從信號高位轉為下降沿區間,及通過基準閾值判定輸入信號是否從下降沿區間轉為信號低位,將採樣數組內下降沿區間對應的數據位設置為0、信號低位或空信號,資料處理方式如上述(E-1)。FIFO數組首數位跑到下降沿E點時,採集點的功率(Pb)會低於頂端閾值,此時啟動採樣延時;FIFO數組首數位跑到下降沿F點時,採集點的功率(Pb)會低於基準閾值,此時結束採樣延時,恢復正常的採樣數據讀取與填入採樣數組作業。 In the falling edge interval, the top threshold is used to determine whether the input signal changes from the high signal level to the falling edge interval, and the reference threshold is used to determine whether the input signal changes from the falling edge interval to the signal low level. The data bits corresponding to the falling edge interval in the sampling array are Set to 0, low signal or empty signal, the data processing method is as above (E-1). When the first digit of the FIFO array reaches point E on the falling edge, the power (Pb) of the collection point will be lower than the top threshold, and the sampling delay is started at this time; when the first digit of the FIFO array reaches point F on the falling edge, the power (Pb) of the collection point will be lower than the baseline threshold. At this time, the sampling delay ends and normal sampling data reading and filling in the sampling array operations resume.

範例3,如圖6所示: Example 3, as shown in Figure 6:

在上升沿區間內,通過前後讀取的採樣數值進行對比,依據數據大小變化判定輸入信號是否從信號低位轉為上升沿區間,及是否從上升沿區間轉為信號高位,具體可以通過採樣點的功率變化確定當前脈衝週期內的上升沿區間,將採樣數組內下降沿區間對應的數據位設置為0、信號低位或空信號,數據處理方式如上述(A-1)或(A-1)。 In the rising edge interval, compare the sample values read before and after, and determine whether the input signal changes from the low signal level to the rising edge interval, and whether it changes from the rising edge interval to the signal high level based on the change in data size. Specifically, you can use the sampling point The power change determines the rising edge interval in the current pulse cycle, and sets the data bit corresponding to the falling edge interval in the sampling array to 0, low signal, or empty signal. The data processing method is as described above (A-1) or (A-1).

在讀取採樣數據時,一旦讀取到、預定導入採樣數組的連續的多個採樣數據,從恒定的低位數據變成上升數據(讀取的前數據低於後數據),即認為信號進入上升沿,此時啟動採樣延時。當讀取到、預定導入採樣數組的 連續的多個採樣數據,從上升數據變成恒定高位數據(讀取的前數據等於後數據)時,即認為信號從上升沿進入信號高位,此時結束採樣延時,恢復正常的採樣數據讀取與填入採樣數組作業。 When reading sampling data, once multiple consecutive sampling data that are scheduled to be imported into the sampling array are read and change from constant low-bit data to rising data (the previous data read is lower than the subsequent data), the signal is considered to enter the rising edge. , start the sampling delay at this time. When the sample array is read and scheduled to be imported, When multiple consecutive sampling data change from rising data to constant high-bit data (the read previous data is equal to the last data), it is considered that the signal enters the signal high-bit from the rising edge. At this time, the sampling delay ends and normal sampling data reading and return are resumed. Fill in the sample array job.

從開始到A點採集的低功率數據是準確的;A點到B點為上升的斜坡,此時採集的數據不準確;B點到C點採集的高功率數據是準確的。 The low-power data collected from the beginning to point A is accurate; point A to point B is an upward slope, and the data collected at this time is inaccurate; the high-power data collected from point B to point C is accurate.

在下降沿區間內,通過前後讀取的採樣數值進行對比,依據數據大小變化判定輸入信號是否從信號高位轉為下降沿區間,及是否從下降沿區間轉為信號低位,數據處理方式如上述(E-1)與(E-2)。 In the falling edge interval, compare the sample values read before and after, and determine whether the input signal changes from the high signal level to the falling edge interval, and whether it changes from the falling edge interval to the low signal level based on the change in data size. The data processing method is as above ( E-1) and (E-2).

在讀取採樣數據時,一旦讀取到、預定導入採樣數組的連續的多個採樣數據,從恒定的高位數據變成上升數據(讀取的前數據低於後數據),即認為信號進入下降沿,此時啟動採樣延時。當讀取到、預定導入採樣數組的連續的多個採樣數據,從下降數據變成恒定的低位數據(讀取的前數據等於後數據)時,即認為信號從下降沿進入信號低位,此時結束採樣延時,恢復正常的採樣數據讀取與填入採樣數組作業。 When reading sampling data, once multiple consecutive sampling data that are scheduled to be imported into the sampling array are read and change from constant high-bit data to rising data (the previous data read is lower than the latter data), the signal is considered to enter the falling edge. , start the sampling delay at this time. When multiple consecutive sampled data that are read and scheduled to be imported into the sampling array change from falling data to constant low-bit data (the pre-read data is equal to the post-data), it is considered that the signal enters the low level of the signal from the falling edge, and it ends at this time Sampling delay, resume normal sampling data reading and filling sampling array operations.

C點到D點為下降的斜坡,此時採集的數據不準確;D點到E點採集的低功率數據是準確的。採集的連續三點功率值P1,P2和P3的時間順序如圖6所示,P1是最晚採集到的數據,P2次之,P3是最早採集到的數據。 There is a downward slope from point C to point D, and the data collected at this time is inaccurate; the low-power data collected from point D to point E is accurate. The time sequence of the collected three consecutive power values P1, P2 and P3 is shown in Figure 6. P1 is the latest data collected, followed by P2, and P3 is the earliest data collected.

對採集的功率值依次作差得到變化量△1=P1-P2,△2=P2-P3;△th大於0,為判定所採集的數據是否準確的閾值。當兩個變化量的絕對值都滿足大於或等於0、空信號數值或信號低位數值,且小於判定閾值△th時,採集到的數據是準確的。此時要保留採集到的對應數據,否則將異常數據位設置為0、空信號數值或信號低位數值,或,在進行採樣數據輸出時,跳過異常數據位的數據輸出,即A1和△2至少一個的絕對值大於等於+△th,則數據不正確,這種情況下將採集到的數據全丟棄。 The collected power values are successively differed to obtain the changes △1=P1-P2, △2=P2-P3; △th is greater than 0, which is the threshold to determine whether the collected data is accurate. When the absolute values of the two changes are greater than or equal to 0, empty signal value or low signal value, and less than the determination threshold Δth, the collected data is accurate. At this time, the corresponding data collected should be retained, otherwise the abnormal data bits should be set to 0, empty signal value or low signal value, or, when outputting the sampled data, skip the data output of the abnormal data bits, that is, A1 and △2 If at least one absolute value is greater than or equal to +△th, the data is incorrect. In this case, all collected data will be discarded.

需要說明的是,本發明實施例中的上升沿時長(T1)和下降沿時長(T2),可通過作檢測採樣,以採樣週期為基數,在功率上升超過上升閾值開始時作為起始,在功率到達下降閾值時作為結束,計算採樣個數或採樣計時,得到上升沿時長;相反的,在功率下降超過下降閾值開始時作為起始,在功率到達上升閾值時作為結束,計算採樣個數或採樣計時,得到下降沿時長,也可以是本領域技術人員根據工程需要選擇的其它方式,此處不再贅述。該方法尤其適用於在開關機和脈衝(PULSE)模式下,在一個脈衝週期內,解決信號採集不準確的問題。 It should be noted that the rising edge duration (T1) and falling edge duration (T2) in the embodiment of the present invention can be detected and sampled, using the sampling period as the base, and starting when the power rise exceeds the rising threshold. , it ends when the power reaches the falling threshold, calculates the number of samples or sampling timing, and obtains the rising edge duration; on the contrary, it starts when the power decreases beyond the falling threshold, and ends when the power reaches the rising threshold, and calculates the sampling Count or sampling timing to obtain the falling edge duration, or other methods selected by those skilled in the art according to engineering needs, which will not be described again here. This method is especially suitable for solving the problem of inaccurate signal acquisition within a pulse period in the power on and off and pulse (PULSE) modes.

可以理解的是,本實施例提供的技術方案,確定當前脈衝週期內的上升沿區間和下降沿區間,將採樣數組內與上升沿區間和下降沿區間對應的數據位設置為0、信號低位或空信號,用FIFO(First Input First Output,先進先出)採樣數組置0來實現遮罩掉異常段的數據,也就是使開關機和PULSE模式下斜坡段的數據輸出0,只在斜坡以外的正確時間段輸出功率。 It can be understood that the technical solution provided by this embodiment determines the rising edge interval and falling edge interval within the current pulse cycle, and sets the data bits corresponding to the rising edge interval and falling edge interval in the sampling array to 0, signal low bit, or For an empty signal, use the FIFO (First Input First Output, First In First Out) sampling array to set it to 0 to mask out the data in the abnormal section, that is, make the data in the slope section output 0 in the power on and off and PULSE modes, only in the other areas outside the slope. Output power in the correct time period.

實施例三: Embodiment three:

如圖7所示,本發明實施例還提供一種射頻電源信號採集裝置,包括:異常數據區間確定模組71,用於確定當前脈衝週期內的上升沿區間和下降沿區間;採樣數據置0模組72,用於將採樣數組內與上升沿區間和下降沿區間對應的數據位設置為0、信號低位或空信號。 As shown in Figure 7, the embodiment of the present invention also provides a radio frequency power signal acquisition device, including: an abnormal data interval determination module 71, used to determine the rising edge interval and falling edge interval within the current pulse cycle; the sampled data is set to 0 mode Group 72 is used to set the data bits corresponding to the rising edge interval and falling edge interval in the sampling array to 0, low signal, or empty signal.

在一些實施例中,如圖7中虛線部分所示,該裝置還包括:FIFO數組輸出模組73,用於在上升沿區間和下降沿區間以外,採樣數組讀取並按順序輸出採樣數據。 In some embodiments, as shown in the dotted line in Figure 7, the device also includes: a FIFO array output module 73, used for reading and sequentially outputting sampled data from the sampling array outside the rising edge interval and falling edge interval.

在一些實施例中,上述採樣數據置0模組72將採樣數組內與上升沿區間和下降沿區間對應的數據位設置為0、信號低位或空信號為:採樣數據置 0模組72通過採樣延時或採樣數據輸出置0的方式將採樣數組內與上升沿區間和下降沿區間對應的數據位設置為0、信號低位或空信號。 In some embodiments, the above-mentioned sampling data setting 0 module 72 sets the data bits corresponding to the rising edge interval and the falling edge interval in the sampling array to 0, and the signal low bit or empty signal is: sampling data setting The 0 module 72 sets the data bits corresponding to the rising edge interval and the falling edge interval in the sampling array to 0, a low signal, or a null signal by setting the sampling delay or the sampling data output to 0.

在一些實施例中,如圖7中虛線部分所示,採樣數據置0模組72包括: In some embodiments, as shown in the dotted line part in Figure 7, the sample data setting module 72 includes:

上升沿異常處理子模組721,用於在上升沿區間內,在數據採樣時,通過延時採樣時間將採樣數組內上升沿區間對應的數據位設置為0、信號低位或空信號,或,在採樣數據輸出時,將採樣數組內上升沿區間對應的數據位設置為0、信號低位或空信號; The rising edge exception processing sub-module 721 is used to set the data bit corresponding to the rising edge interval in the sampling array to 0, low signal or empty signal by delaying the sampling time during data sampling in the rising edge interval, or, in When sampling data is output, set the data bit corresponding to the rising edge interval in the sampling array to 0, low signal, or empty signal;

下降沿異常處理子模組722,用於在下降沿區間內,在數據採樣時,通過延時採樣時間將採樣數組內下降沿區間對應的數據位設置為0、信號低位或空信號,或,在採樣數據輸出時,將採樣數組內下降沿區間或下降沿區間對應的數據位設置為0、信號低位或空信號。 The falling edge exception processing sub-module 722 is used to set the data bit corresponding to the falling edge interval in the sampling array to 0, low signal or empty signal by delaying the sampling time during data sampling in the falling edge interval, or, in When sampling data is output, set the falling edge interval or the data bit corresponding to the falling edge interval in the sampling array to 0, low signal, or empty signal.

在一些實施例中,上述上升沿異常處理子模組721在採樣過程中,通過延時採樣時間將採樣數組內上升沿區間對應的數據位設置為0、信號低位或空信號包括:上升沿異常處理子模組721當前脈衝週期內的上升沿起始點開始,啟動第一採樣延時,將採樣數組中第一採樣延時對應的數據位設置為0、信號低位或空信號。上述下降沿異常處理子模組722通過延時採樣時間將採樣數組內下降沿區間對應的資料位設置為0、信號低位或空信號包括:從當前脈衝週期內的下降沿起始點開始,啟動第二採樣延時,將採樣數組中第二採樣延時對應的數據位設置為0、信號低位或空信號。 In some embodiments, during the sampling process, the above-mentioned rising edge exception processing sub-module 721 sets the data bit corresponding to the rising edge interval in the sampling array to 0, low signal or empty signal by delaying the sampling time, including: rising edge exception processing Starting from the starting point of the rising edge in the current pulse period, sub-module 721 starts the first sampling delay, and sets the data bit corresponding to the first sampling delay in the sampling array to 0, low signal, or empty signal. The above-mentioned falling edge exception processing sub-module 722 sets the data bit corresponding to the falling edge interval in the sampling array to 0 by delaying the sampling time, and the signal low bit or empty signal includes: starting from the starting point of the falling edge in the current pulse cycle, starting the first Second sampling delay, set the data bit corresponding to the second sampling delay in the sampling array to 0, low signal, or empty signal.

在一些實施例中,上述上升沿異常處理子模組721將採樣數組內上升沿區間對應的數據位設置為0、信號低位或空信號包括:在完成對當前脈衝週期內的上升沿結束點進行信號採樣的同時,確定第一異常資料,第一異常數據是採樣數組內、從上升沿結束點對應的數據位開始、往前計數第一預設長度 內的數據,將第一異常數據置0、信號低位或空信號,第一預設長度為上升沿區間對應的陣列長度;上述下降沿異常處理子模組722將採樣數組內下降沿區間對應的數據位設置為0、信號低位或空信號包括:在完成對當前脈衝週期內的下降沿結束點進行信號採樣的同時,確定第二異常數據,第二異常數據是採樣數組內、從下降沿結束點對應的數據位開始、往前計數第二預設長度內的數據,將第二異常數據置0、信號低位或空信號,第二預設長度為下降沿區間對應的陣列長度。 In some embodiments, the above-mentioned rising edge exception processing sub-module 721 sets the data bit corresponding to the rising edge interval in the sampling array to 0, a low signal or an empty signal including: after completing the processing of the rising edge end point in the current pulse period. While the signal is being sampled, the first abnormal data is determined. The first abnormal data is the first preset length in the sampling array starting from the data bit corresponding to the rising edge end point and counting forward. The first abnormal data is set to 0, the signal is low or the empty signal, and the first preset length is the array length corresponding to the rising edge interval; the above-mentioned falling edge exception processing sub-module 722 will sample the array corresponding to the falling edge interval. Setting the data bit to 0, low signal or empty signal includes: while completing the signal sampling of the falling edge end point in the current pulse cycle, determine the second abnormal data. The second abnormal data is within the sampling array and ends from the falling edge. Starting from the data bit corresponding to the point, count the data within the second preset length forward, set the second abnormal data to 0, signal low or empty signal, and the second preset length is the array length corresponding to the falling edge interval.

在一些實施例中,上述上升沿異常處理子模組721將採樣數組中第一採樣延時對應的數據位設置為0、信號低位或空信號為:將採樣數組中第一預設採樣時長對應的數據位設置為0、信號低位或空信號,延時結束;上述下降沿異常處理子模組722將採樣數組中第二採樣延時對應的數據位設置為0、信號低位或空信號為:將採樣數組中第二預設採樣時長對應的數據位設置為0、信號低位或空信號,延時結束。 In some embodiments, the above-mentioned rising edge exception processing sub-module 721 sets the data bit corresponding to the first sampling delay in the sampling array to 0, and the signal low bit or empty signal is: sets the first preset sampling duration in the sampling array to The data bit is set to 0, the signal is low or the null signal, and the delay ends; the above-mentioned falling edge exception processing sub-module 722 sets the data bit corresponding to the second sampling delay in the sampling array to 0, the signal is low or the null signal is: sample The data bit corresponding to the second preset sampling duration in the array is set to 0, low signal or empty signal, and the delay ends.

在一些實施例中,上述上升沿異常處理子模組721將採樣數組中第一採樣延時對應的數據位設置為0、信號低位或空信號為:上升沿異常處理子模組721將採樣數組中第一預設數組長度對應的數據位設置為0、信號低位或空信號,延時結束;上述下降沿異常處理子模組722將採樣數組中第二採樣延時對應的資料位設置為0、信號低位或空信號為:下降沿異常處理子模組722將採樣數組中第二預設數組長度對應的數據位設置為0、信號低位或空信號,延時結束。 In some embodiments, the above-mentioned rising edge exception processing sub-module 721 sets the data bit corresponding to the first sampling delay in the sampling array to 0, and the signal low bit or empty signal is: the rising edge exception processing sub-module 721 sets the data bit in the sampling array to 0. The data bit corresponding to the first preset array length is set to 0, signal low or empty signal, and the delay ends; the above-mentioned falling edge exception processing sub-module 722 sets the data bit corresponding to the second sampling delay in the sampling array to 0, signal low Or an empty signal: the falling edge exception processing sub-module 722 sets the data bit corresponding to the second preset array length in the sampling array to 0, a low signal or an empty signal, and the delay ends.

在一些實施例中,異常數據區間確定模組71包括:基準閾值確定單元,用於通過基準閾值、上升沿時長和下降沿時長確定當前脈衝週期內的上升沿區間和下降沿區間,所述基準閾值用於標記信號低位;或,頂端閾值確定單元,用於通過所述基準閾值和頂端閾值確定當前脈衝週期內的上升沿區間 和下降沿區間,所述頂端閾值用於標記信號高位;或,功率確定單元,用於通過採樣點的功率變化確定當前脈衝週期內的上升沿區間和下降沿區間。 In some embodiments, the abnormal data interval determination module 71 includes: a reference threshold determination unit, used to determine the rising edge interval and falling edge interval in the current pulse period through the reference threshold, the rising edge duration and the falling edge duration, so The reference threshold is used to mark the low level of the signal; or, the top threshold determination unit is used to determine the rising edge interval in the current pulse cycle through the reference threshold and the top threshold. and a falling edge interval, where the top threshold is used to mark the high level of the signal; or a power determination unit is used to determine the rising edge interval and falling edge interval within the current pulse period through the power change of the sampling point.

在一些實施例中,第一預設採樣時長等於上升沿時長,第二預設採樣時長等於下降沿時長。 In some embodiments, the first preset sampling duration is equal to the rising edge duration, and the second preset sampling duration is equal to the falling edge duration.

在一些實施例中,第一預設數組長度、第二預設數組長度是由上升沿時長或下降沿時長與採樣週期按照預設運算關係確定的。 In some embodiments, the first preset array length and the second preset array length are determined according to a preset operation relationship between the rising edge duration or the falling edge duration and the sampling period.

在一具體實施例中,第一預設數組長度=上升沿時長/採樣週期,第二預設數組長度=下降沿時長/採樣週期;或者,第一預設數組長度=第二預設數組長度=上升沿時長/採樣週期;或者,第一預設數組長度=第二預設數組長度=下降沿時長/採樣週期。 In a specific embodiment, the first preset array length = rising edge duration/sampling period, the second preset array length = falling edge duration/sampling period; or, the first preset array length = the second preset Array length = rising edge duration/sampling period; or, first preset array length = second preset array length = falling edge duration/sampling period.

在一些實施例中,如圖7中虛線內容所示,異常數據區間確定模組71包括:上升沿起始點獲取子模組711,上升沿起始點是在當前脈衝週期內功率第一次大於上升沿基準閾值的採樣點;下降沿起始點獲取子模組712,下降沿起始點是在當前脈衝週期內功率第一次小於下降沿基準閾值的採樣點。 In some embodiments, as shown in the dotted line in Figure 7, the abnormal data interval determination module 71 includes: a rising edge starting point acquisition sub-module 711. The rising edge starting point is the first time the power is in the current pulse cycle. The sampling point is greater than the rising edge reference threshold; the falling edge starting point acquisition sub-module 712, the falling edge starting point is the sampling point where the power is less than the falling edge reference threshold for the first time in the current pulse cycle.

在一些實施例中,若第一預設數組長度=第二預設數組長度=上升沿時長/採樣週期,且上升沿時長大於下降沿時長,則採樣數據置0模組72通過採樣延時或採樣數據輸出置0的方式將採樣數組內與上升沿區間和下降沿區間對應的數據位設置為0、信號低位或空信號包括:在採樣數據輸出時,採樣數據置0模組72在完成對當前脈衝週期內的下降沿結束點進行信號採樣的同時,計算第三延時的時長,第三延時時長是上升沿時長與下降沿時長的差值,啟動第三延時,在第三延時結束時,確定第三異常數據,第三異常數據是採樣數組內、從第三延時結束點對應的數據位開始、往前計數第三預設長度內的數據,將第三異常數據設置為0、信號低位或空信號,第三預設長度為下降沿區間對應的陣列長度。 In some embodiments, if the first preset array length = the second preset array length = rising edge duration/sampling period, and the rising edge duration is greater than the falling edge duration, then the sampling data is set to 0 by the module 72 through sampling The method of delaying or setting the sampling data output to 0 sets the data bits corresponding to the rising edge interval and the falling edge interval in the sampling array to 0. The signal low bit or the empty signal includes: when the sampling data is output, the sampling data is set to 0. The module 72 is in While completing the signal sampling of the falling edge end point in the current pulse cycle, calculate the third delay duration. The third delay duration is the difference between the rising edge duration and the falling edge duration. Start the third delay. At the end of the third delay, the third abnormal data is determined. The third abnormal data is the data within the third preset length in the sampling array starting from the data bit corresponding to the third delay end point and counting forward. The third abnormal data is Set to 0, low signal or empty signal, the third preset length is the array length corresponding to the falling edge interval.

可以理解的是,本實施例提供的技術方案,確定當前脈衝週期內的上升沿區間和下降沿區間,將採樣數組內與上升沿區間和下降沿區間對應的數據位設置為0、信號低位或空信號,用FIFO(First Input First Output,先進先出)採樣數組置0來實現遮罩掉異常段的數據,也就是使開關機和PULSE模式下斜坡段的數據輸出0,只在斜坡以外的正確時間段輸出功率。 It can be understood that the technical solution provided by this embodiment determines the rising edge interval and falling edge interval within the current pulse cycle, and sets the data bits corresponding to the rising edge interval and falling edge interval in the sampling array to 0, signal low bit, or For an empty signal, use the FIFO (First Input First Output, First In First Out) sampling array to set it to 0 to mask out the data in the abnormal section, that is, make the data in the slope section output 0 in the power on and off and PULSE modes, only in the other areas outside the slope. Output power in the correct time period.

實施例四: Embodiment 4:

基於同一技術構思,本申請實施例還提供了一種電腦設備,包括存儲器1和處理器2,如圖8所示,所述存儲器1存儲有電腦程式,所述處理器2執行所述電腦程式時實現上述任一項所述的射頻電源信號採集方法。 Based on the same technical concept, an embodiment of the present application also provides a computer device, including a memory 1 and a processor 2. As shown in Figure 8, the memory 1 stores a computer program. When the processor 2 executes the computer program Implement the radio frequency power signal acquisition method described in any of the above.

其中,存儲器1至少包括一種類型的可讀存儲介質,所述可讀存儲介質包括快閃存儲器、硬碟、多媒體卡、卡型存儲器(例如,SD或DX記憶體等)、磁性存儲器、磁片、光碟等。存儲器1在一些實施例中可以是OTT視頻業務監控系統的內部存儲單元,例如硬碟。存儲器1在另一些實施例中也可以是OTT視頻業務監控系統的外部存放裝置,例如插接式硬碟,智慧存儲卡(Smart Media Card,SMC),安全數位(Secure Digital,SD)卡,快閃記憶體卡(Flash Card)等。進一步地,存儲器1還可以既包括OTT視頻業務監控系統的內部存儲單元也包括外部存放裝置。存儲器1不僅可以用於存儲安裝於OTT視頻業務監控系統的應用軟體及各類數據,例如OTT視頻業務監控程序的代碼等,還可以用於暫時地存儲已經輸出或者將要輸出的數據。 Wherein, the memory 1 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), magnetic memory, magnetic disk , CD, etc. In some embodiments, the memory 1 may be an internal storage unit of the OTT video service monitoring system, such as a hard disk. In other embodiments, the memory 1 can also be an external storage device of the OTT video service monitoring system, such as a plug-in hard drive, a smart media card (SMC), a secure digital (SD) card, a fast Flash Card, etc. Furthermore, the memory 1 may also include both an internal storage unit and an external storage device of the OTT video service monitoring system. The memory 1 can not only be used to store application software and various data installed in the OTT video service monitoring system, such as the code of the OTT video service monitoring program, etc., but can also be used to temporarily store data that has been output or will be output.

處理器2在一些實施例中可以是一中央處理器(Central Processing Unit,CPU)、控制器、微控制器、微處理器或其他數據處理晶片,用於運行存儲器1中存儲的程式碼或處理數據,例如執行OTT視頻業務監控程序等。 In some embodiments, the processor 2 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chips, used to run program codes or processes stored in the memory 1 Data, such as executing OTT video service monitoring programs, etc.

可以理解的是,本實施例提供的技術方案,確定當前脈衝週期內的上升沿區間和下降沿區間,將採樣數組內與上升沿區間和下降沿區間對應的 數據位設置為0、信號低位或空信號,用FIFO(First Input First Output,先進先出)採樣數組置0來實現遮罩掉異常段的數據,也就是使開關機和脈衝(PULSE)模式下斜坡段的數據輸出0,只在斜坡以外的正確時間段輸出功率。 It can be understood that the technical solution provided by this embodiment determines the rising edge interval and falling edge interval within the current pulse period, and records the corresponding rising edge interval and falling edge interval in the sampling array. The data bit is set to 0, the signal is low or empty, and the FIFO (First Input First Output, first in, first out) sampling array is set to 0 to mask out the data in the abnormal segment, that is, in the power on and off and pulse (PULSE) modes The data output in the ramp segment is 0, and the power is only output in the correct time period outside the ramp.

本發明公開實施例還提供一種電腦可讀存儲介質,該電腦可讀存儲介質上存儲有電腦程式,該電腦程式被處理器運行時執行上述方法實施例中所述的射頻電源信號採集方法的步驟。其中,該存儲介質可以是易失性或非易失的電腦可讀取存儲介質。 Disclosed embodiments of the present invention also provide a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is run by a processor, the steps of the radio frequency power signal acquisition method described in the above method embodiment are executed. . The storage medium may be a volatile or non-volatile computer-readable storage medium.

本發明公開實施例所提供的射頻電源信號採集方法的電腦程式產品,包括存儲了程式碼的電腦可讀存儲介質,所述程式碼包括的指令可用於執行上述方法實施例中所述的射頻電源信號採集方法的步驟,具體可參見上述方法實施例,在此不再贅述。 The computer program product of the radio frequency power signal acquisition method provided by the disclosed embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the radio frequency power supply described in the above method embodiments. For details of the steps of the signal acquisition method, please refer to the above method embodiments and will not be described again here.

本發明公開實施例還提供一種電腦程式,該電腦程式被處理器執行時實現前述實施例的任意一種方法。該電腦程式產品可以具體通過硬體、軟體或其結合的方式實現。在一個可選實施例中,所述電腦程式產品具體體現為電腦存儲介質,在另一個可選實施例中,電腦程式產品具體體現為軟體產品,例如軟體發展包(Software Development Kit,SDK)等等。 Disclosed embodiments of the present invention also provide a computer program, which, when executed by a processor, implements any of the methods in the foregoing embodiments. The computer program product can be implemented specifically through hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium. In another optional embodiment, the computer program product is embodied as a software product, such as a Software Development Kit (SDK), etc. wait.

可以理解的是,上述各實施例中相同或相似部分可以相互參考,在一些實施例中未詳細說明的內容可以參見其他實施例中相同或相似的內容。 It can be understood that the same or similar parts in the above-mentioned embodiments can be referred to each other, and the content that is not described in detail in some embodiments can be referred to the same or similar content in other embodiments.

需要說明的是,在本發明的描述中,術語“第一”、“第二”等僅用於描述目的,而不能理解為指示或暗示相對重要性。此外,在本發明的描述中,除非另有說明,“多個”的含義是指至少兩個。 It should be noted that in the description of the present invention, the terms "first", "second", etc. are only used for description purposes and cannot be understood as indicating or implying relative importance. Furthermore, in the description of the present invention, unless otherwise stated, the meaning of "plurality" means at least two.

流程圖中或在此以其他方式描述的任何過程或方法描述可以被理解為,表示包括一個或更多個用於實現特定邏輯功能或過程的步驟的可執行指令的代碼的模組、片段或部分,並且本發明的優選實施方式的範圍包括另外 的實現,其中可以不按所示出或討論的順序,包括根據所涉及的功能按基本同時的方式或按相反的順序,來執行功能,這應被本發明的實施例所屬技術領域的技術人員所理解。 Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment, or code that includes one or more executable instructions for implementing a specified logical function or step of the process. part, and the scope of the preferred embodiments of the present invention includes additionally Implementations in which functions may be performed out of the order shown or discussed, including in a substantially simultaneous manner or in a reverse order depending on the functionality involved, should be understood by those skilled in the art to which embodiments of the invention belong. understood.

應當理解,本發明的各部分可以用硬體、軟體、固件或它們的組合來實現。在上述實施方式中,多個步驟或方法可以用存儲在存儲器中且由合適的指令執行系統執行的軟體或固件來實現。例如,如果用硬體來實現,和在另一實施方式中一樣,可用本領域公知的下列技術中的任一項或他們的組合來實現:具有用於對數據信號實現邏輯功能的邏輯門電路的離散邏輯電路,具有合適的組合邏輯門電路的專用積體電路,可程式設計閘陣列(PGA),現場可程式設計閘陣列(FPGA)等。 It should be understood that various parts of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if it is implemented in hardware, as in another embodiment, it can be implemented by any one or a combination of the following technologies known in the art: having a logic gate circuit for implementing a logical function on the data signal Discrete logic circuits, special integrated circuits with appropriate combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.

本技術領域的普通技術人員可以理解實現上述實施例方法攜帶的全部或部分步驟是可以通過程式來指令相關的硬體完成,所述的程式可以存儲於一種電腦可讀存儲介質中,該程式在執行時,包括方法實施例的步驟之一或其組合。 Those of ordinary skill in the art can understand that all or part of the steps involved in implementing the methods of the above embodiments can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable storage medium, and the program can be stored in a computer-readable storage medium. When executed, one of the steps of the method embodiment or a combination thereof is included.

此外,在本發明各個實施例中的各功能單元可以集成在一個處理模組中,也可以是各個單元單獨物理存在,也可以兩個或兩個以上單元集成在一個模組中。上述集成的模組既可以採用硬體的形式實現,也可以採用軟體功能模組的形式實現。所述集成的模組如果以軟體功能模組的形式實現並作為獨立的產品銷售或使用時,也可以存儲在一個電腦可讀取存儲介質中。 In addition, each functional unit in various embodiments of the present invention can be integrated in a processing module, or each unit can exist physically alone, or two or more units can be integrated in one module. The above integrated modules can be implemented in the form of hardware or software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

上述提到的存儲介質可以是唯讀記憶體,磁片或光碟等。 The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc.

在本說明書的描述中,參考術語“一個實施例”、“一些實施例”、“範例”、“具體範例”、或“一些範例”等的描述意指結合該實施例或範例描述的具體特徵、結構、材料或者特點包含于本發明的至少一個實施例或範例中。在本說明書中,對上述術語的示意性表述不一定指的是相同的實施例或範例。而且, 描述的具體特徵、結構、材料或者特點可以在任何的一個或多個實施例或範例中以合適的方式結合。 In the description of this specification, reference to the terms "one embodiment," "some embodiments," "examples," "particular examples," or "some examples" or the like means that specific features are described in connection with the embodiment or example. , structures, materials or features are included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. and, The specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

儘管上面已經示出和描述了本發明的實施例,可以理解的是,上述實施例是範例性的,不能理解為對本發明的限制,本領域的普通技術人員在本發明的範圍內可以對上述實施例進行變化、修改、替換和變型。 Although the embodiments of the present invention have been shown and described above, it can be understood that the above-mentioned embodiments are exemplary and cannot be understood as limitations of the present invention. Those of ordinary skill in the art can make various modifications to the above-mentioned embodiments within the scope of the present invention. The embodiments are subject to changes, modifications, substitutions and variations.

S11、S12、S13:步驟 S11, S12, S13: steps

Claims (17)

一種射頻電源信號採集方法,其包括: A radio frequency power signal acquisition method, which includes: 確定當前脈衝週期內的上升沿區間和下降沿區間; Determine the rising edge interval and falling edge interval within the current pulse cycle; 將採樣數組內與所述上升沿區間和所述下降沿區間對應的數據位設置為0、信號低位或空信號。 Set the data bits in the sampling array corresponding to the rising edge interval and the falling edge interval to 0, a low signal, or a null signal. 如請求項1所述之射頻電源信號採集方法,其中,所述將採樣數組內與所述上升沿區間和所述下降沿區間對應的數據位設置為0、信號低位或空信號為:通過採樣延時或採樣資料輸出置0的方式將採樣數組內與所述上升沿區間和所述下降沿區間對應的數據位設置為0、信號低位或空信號。 The radio frequency power signal acquisition method as described in request item 1, wherein the data bit corresponding to the rising edge interval and the falling edge interval in the sampling array is set to 0, the signal low bit or the empty signal is: through sampling The data bits corresponding to the rising edge interval and the falling edge interval in the sampling array are set to 0, low signal, or empty signal by delaying or setting the sampling data output to 0. 如請求項2所述之射頻電源信號採集方法,其中,所述通過採樣延時或採樣數據輸出置0的方式將採樣數組內與所述上升沿區間和所述下降沿區間對應的數據位設置為0、信號低位或空信號包括: The radio frequency power signal acquisition method as described in request item 2, wherein the data bits corresponding to the rising edge interval and the falling edge interval in the sampling array are set to 0 by sampling delay or setting the sampling data output to 0. 0. Low or empty signals include: 在上升沿區間內,在數據採樣時,通過延時採樣時間將採樣數組內所述上升沿區間對應的數據位設置為0、信號低位或空信號,或,在採樣數據輸出時,將採樣數組內所述上升沿區間對應的數據位設置為0、信號低位或空信號; In the rising edge interval, when data is sampled, the data bit corresponding to the rising edge interval in the sampling array is set to 0, low signal or empty signal by delaying the sampling time, or, when the sampling data is output, the data bit in the sampling array is set to The data bit corresponding to the rising edge interval is set to 0, low signal or empty signal; 在下降沿區間內,在數據採樣時,通過延時採樣時間將採樣數組內所述下降沿區間對應的數據位設置為0、信號低位或空信號,或,在採樣數據輸出時,將採樣數組內所述下降沿區間或所述下降沿區間對應的數據位設置為0、信號低位或空信號。 In the falling edge interval, when data is sampled, the data bit corresponding to the falling edge interval in the sampling array is set to 0, low signal or empty signal by delaying the sampling time, or, when the sampling data is output, the data bit in the sampling array is set to The falling edge interval or the data bit corresponding to the falling edge interval is set to 0, a low signal or a null signal. 如請求項3所述之射頻電源信號採集方法,其中,所述通過延時採樣時間將採樣數組內所述上升沿區間對應的數據位設置為0、信號低位或空信號包括:當前脈衝週期內的上升沿起始點開始,啟動第一採樣延時,將採樣數組中所述第一採樣延時對應的數據位設置為0、信號低位或空信號; The radio frequency power signal acquisition method as described in request item 3, wherein the data bit corresponding to the rising edge interval in the sampling array is set to 0 by delaying the sampling time, and the signal low bit or empty signal includes: within the current pulse period Starting from the starting point of the rising edge, start the first sampling delay, and set the data bit corresponding to the first sampling delay in the sampling array to 0, low signal, or empty signal; 所述通過延時採樣時間將採樣數組內所述下降沿區間對應的數據位設置為0、信號低位或空信號包括:從當前脈衝週期內的下降沿起始點開始,啟動第二採樣延時,將採樣數組中所述第二採樣延時對應的數據位設置為0、信號低位或空信號。 Delaying the sampling time to set the data bit corresponding to the falling edge interval in the sampling array to 0, low signal or empty signal includes: starting from the starting point of the falling edge in the current pulse cycle, starting the second sampling delay, The data bit corresponding to the second sampling delay in the sampling array is set to 0, a low signal, or a null signal. 如請求項3所述之射頻電源信號採集方法,其中,所述將採樣數組內所述上升沿區間對應的數據位設置為0、信號低位或空信號包括:在完成對當前脈衝週期內的上升沿結束點進行信號採樣的同時,確定第一異常數據,所述第一異常數據是所述採樣數組內、從所述上升沿結束點對應的數據位開始、往前計數第一預設長度內的數據,將所述第一異常數據置0、信號低位或空信號,所述第一預設長度為所述上升沿區間對應的陣列長度; The radio frequency power signal acquisition method as described in request item 3, wherein said setting the data bit corresponding to the rising edge interval in the sampling array to 0, low signal or empty signal includes: completing the rising edge in the current pulse period. While sampling the signal at the edge end point, the first abnormal data is determined. The first abnormal data is within the first preset length in the sampling array starting from the data bit corresponding to the rising edge end point and counting forward. data, set the first abnormal data to 0, low signal or empty signal, and the first preset length is the array length corresponding to the rising edge interval; 所述將採樣數組內所述下降沿區間對應的數據位設置為0、信號低位或空信號包括:在完成對當前脈衝週期內的下降沿結束點進行信號採樣的同時,確定第二異常數據,所述第二異常數據是所述採樣數組內、從所述下降沿結束點對應的數據位開始、往前計數第二預設長度內的數據,將所述第二異常數據置0、信號低位或空信號,所述第二預設長度為所述下降沿區間對應的數組長度。 Setting the data bit corresponding to the falling edge interval in the sampling array to 0, low signal, or empty signal includes: while completing signal sampling of the falling edge end point in the current pulse cycle, determining the second abnormal data, The second abnormal data is the data within the second preset length in the sampling array, starting from the data bit corresponding to the falling edge end point and counting forward. The second abnormal data is set to 0 and the signal is low. or an empty signal, and the second preset length is the array length corresponding to the falling edge interval. 如請求項4所述之射頻電源信號採集方法,其中,所述將採樣數組中所述第一採樣延時對應的數據位設置為0、信號低位或空信號為:將採樣數組中第一預設採樣時長對應的數據位設置為0、信號低位或空信號,延時結束; The radio frequency power signal acquisition method as described in request item 4, wherein the step of setting the data bit corresponding to the first sampling delay in the sampling array to 0, the low bit of the signal or the empty signal is: setting the first preset value in the sampling array The data bit corresponding to the sampling duration is set to 0, low signal or empty signal, and the delay ends; 所述將採樣數組中所述第二採樣延時對應的數據位設置為0、信號低位或空信號為:將採樣數組中第二預設採樣時長對應的數據設置為0、信號低位或空信號,延時結束。 The step of setting the data bit corresponding to the second sampling delay in the sampling array to 0, low signal, or empty signal is: setting the data corresponding to the second preset sampling duration in the sampling array to 0, low signal, or empty signal. , the delay ends. 如請求項4所述之射頻電源信號採集方法,其中,所述將採樣數組中所述第一採樣延時對應的數據位設置為0、信號低位或空信號為:將採樣數組中第一預設數組長度對應的數據位設置為0、信號低位或空信號,延時結束; The radio frequency power signal acquisition method as described in request item 4, wherein the step of setting the data bit corresponding to the first sampling delay in the sampling array to 0, the low bit of the signal or the empty signal is: setting the first preset value in the sampling array The data bit corresponding to the array length is set to 0, low signal or empty signal, and the delay ends; 所述將採樣數組中所述第二採樣延時對應的數據位設置為0、信號低位或空信號為:將採樣數組中第二預設數組長度對應的數據位設置為0、信號低位或空信號,延時結束。 The step of setting the data bit corresponding to the second sampling delay in the sampling array to 0, low signal, or empty signal is: setting the data bit corresponding to the second preset array length in the sampling array to 0, low signal, or empty signal. , the delay ends. 如請求項4所述之射頻電源信號採集方法,其中,所述確定當前脈衝週期內的上升沿區間和下降沿區間包括: The radio frequency power signal acquisition method as described in claim 4, wherein determining the rising edge interval and falling edge interval within the current pulse cycle includes: 通過基準閾值、上升沿時長和下降沿時長確定當前脈衝週期內的上升沿區間和下降沿區間,所述基準閾值用於標記信號低位;或, The rising edge interval and falling edge interval in the current pulse cycle are determined by the reference threshold, the rising edge duration and the falling edge duration, and the reference threshold is used to mark the low level of the signal; or, 通過所述基準閾值和頂端閾值確定當前脈衝週期內的上升沿區間和下降沿區間,所述頂端閾值用於標記信號高位;或, The rising edge interval and falling edge interval in the current pulse cycle are determined by the reference threshold and the top threshold, and the top threshold is used to mark the high level of the signal; or, 通過採樣點的功率變化確定當前脈衝週期內的上升沿區間和下降沿區間。 The rising edge interval and falling edge interval in the current pulse period are determined by the power change of the sampling point. 如請求項6所述之射頻電源信號採集方法,其中,所述第一預設採樣時長等於上升沿時長,所述第二預設採樣時長等於下降沿時長。 The radio frequency power signal acquisition method according to claim 6, wherein the first preset sampling duration is equal to the rising edge duration, and the second preset sampling duration is equal to the falling edge duration. 如請求項7所述之射頻電源信號採集方法,其中,所述第一預設數組長度、所述第二預設數組長度是由所述上升沿時長或所述下降沿時長與採樣週期按照預設運算關係確定的。 The radio frequency power signal acquisition method according to claim 7, wherein the first preset array length and the second preset array length are determined by the rising edge duration or the falling edge duration and the sampling period. Determined according to the preset operation relationship. 如請求項10所述之射頻電源信號採集方法,其中,所述第一預設數組長度=上升沿時長/採樣週期,所述第二預設數組長度=下降沿時長/採樣週期;或者,所述第一預設數組長度=所述第二預設數組長度=上升沿時長/採樣週期;或者,所述第一預設數組長度=所述第二預設數組長度=下降沿時長/採樣週期。 The radio frequency power signal acquisition method according to claim 10, wherein the first preset array length=rising edge duration/sampling period, and the second preset array length=falling edge duration/sampling period; or , the first preset array length = the second preset array length = rising edge duration/sampling period; or, the first preset array length = the second preset array length = falling edge time long/sampling period. 如請求項8所述之射頻電源信號採集方法,其中,所述通過採樣點的功率變化確定當前脈衝週期內的上升沿區間和下降沿區間包括: The radio frequency power signal acquisition method as described in claim 8, wherein determining the rising edge interval and falling edge interval in the current pulse period through the power change of the sampling point includes: 獲取上升沿起始點,所述上升沿起始點是在當前脈衝週期內功率第一次大於上升沿基準閾值的採樣點; Obtain the rising edge starting point, which is the sampling point where the power is greater than the rising edge reference threshold for the first time in the current pulse period; 獲取下降沿起始點,所述下降沿起始點是在當前脈衝週期內功率第一次小於下降沿基準閾值的採樣點。 Obtain the starting point of the falling edge, which is the sampling point where the power is less than the falling edge reference threshold for the first time in the current pulse period. 如請求項1至12中任意一項所述之射頻電源信號採集方法,其中,還包括:在所述上升沿區間和所述下降沿區間以外,所述採樣數組讀取並按順序輸出採樣數據。 The radio frequency power signal acquisition method as described in any one of claims 1 to 12, further comprising: outside the rising edge interval and the falling edge interval, the sampling array reads and sequentially outputs the sampled data . 如請求項11所述之射頻電源信號採集方法,其中,若所述第一預設數組長度=所述第二預設數組長度=上升沿時長/採樣週期,且上升沿時長大于下降沿時長,則所述通過採樣延時或採樣資料輸出置0的方式將採樣數組內與所述上升沿區間和所述下降沿區間對應的數據設置為0、信號低位或空信號包括: The radio frequency power signal acquisition method as described in claim 11, wherein if the first preset array length = the second preset array length = rising edge duration/sampling period, and the rising edge duration is longer than the falling edge duration, then the data corresponding to the rising edge interval and the falling edge interval in the sampling array is set to 0 by sampling delay or setting the sampling data output to 0. The low signal or empty signal includes: 在採樣數據輸出時,在完成對當前脈衝週期內的下降沿結束點進行信號採樣的同時,計算第三延時的時長,所述第三延時時長是所述上升沿時長與所述下降沿時長的差值,啟動第三延時,在所述第三延時結束時,確定第三異常數據,所述第三異常數據是所述採樣數組內、從所述第三延時結束點對應的數據位開始、往前計數第三預設長度內的數據,將所述第三異常數據置0、信號低位或空信號,所述第三預設長度為所述下降沿區間對應的陣列長度。 When the sampling data is output, while completing the signal sampling of the falling edge end point in the current pulse cycle, the third delay duration is calculated. The third delay duration is the sum of the rising edge duration and the falling edge duration. Along the difference in duration, the third delay is started. At the end of the third delay, the third abnormal data is determined. The third abnormal data is the corresponding data in the sampling array from the end point of the third delay. Starting from the data bit, count the data within the third preset length forward, and set the third abnormal data to 0, signal low level or empty signal. The third preset length is the array length corresponding to the falling edge interval. 一種射頻電源信號採集裝置,其包括: A radio frequency power signal acquisition device, which includes: 異常數據區間確定模組,用於確定當前脈衝週期內的上升沿區間和下降沿區間; Abnormal data interval determination module is used to determine the rising edge interval and falling edge interval within the current pulse cycle; 採樣數據置0模組,用於將採樣數組內與所述上升沿區間和所述下降沿區間對應的數據位設置為0、信號低位或空信號。 The sampling data setting module is used to set the data bits corresponding to the rising edge interval and the falling edge interval in the sampling array to 0, low signal or empty signal. 一種電腦設備,其包括: A computer device including: 處理器、存儲器和匯流排,所述存儲器存儲有所述處理器可執行的機器可讀指令,當電腦設備運行時,所述處理器與所述存儲器之間通過匯流排通信, 所述機器可讀指令被所述處理器執行時執行如請求項1至14中任意一項所述射頻電源信號採集方法。 A processor, a memory and a bus. The memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor communicates with the memory through the bus, When the machine-readable instructions are executed by the processor, the radio frequency power signal acquisition method described in any one of claims 1 to 14 is executed. 一種電腦可讀存儲介質,其包括: A computer-readable storage medium including: 該電腦可讀存儲介質上存儲有電腦程式,該電腦程式被處理器運行時執行如請求項1至14中任意一項所述射頻電源信號採集方法。 A computer program is stored on the computer-readable storage medium, and when the computer program is run by the processor, it executes the radio frequency power signal acquisition method described in any one of claims 1 to 14.
TW112128898A 2022-08-08 2023-08-01 Radio frequency power supply signal acquisition method and device TW202407355A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2022109438798 2022-08-08
CN202210943879.8A CN115015618B (en) 2022-08-08 2022-08-08 Radio frequency power supply signal acquisition method and device

Publications (1)

Publication Number Publication Date
TW202407355A true TW202407355A (en) 2024-02-16

Family

ID=83066155

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112128898A TW202407355A (en) 2022-08-08 2023-08-01 Radio frequency power supply signal acquisition method and device

Country Status (2)

Country Link
CN (1) CN115015618B (en)
TW (1) TW202407355A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024032432A1 (en) * 2022-08-08 2024-02-15 深圳市恒运昌真空技术有限公司 Radio frequency power supply signal acquisition method and apparatus

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4910250B2 (en) * 2001-06-26 2012-04-04 日本テキサス・インスツルメンツ株式会社 Interface circuit
CN1767607A (en) * 2005-09-27 2006-05-03 深圳创维-Rgb电子有限公司 Mute circuit for open and close
CN202663358U (en) * 2012-06-07 2013-01-09 无锡友达电子有限公司 Operational amplifier circuit for achieving zero starting-up noise
CN205265647U (en) * 2015-12-31 2016-05-25 上海芯泽电子科技有限公司 Zero quiescent power dissipation powering up and down reset signal produces circuit and powering up and down chip that restores to throne
CN105760330B (en) * 2016-02-22 2019-03-19 中国兵器工业集团第二一四研究所苏州研发中心 A kind of channelized frequencies Acquisition Circuit with APB interface
CN111257805B (en) * 2019-11-29 2022-09-06 广东中科慈航信息科技有限公司 Method and device for monitoring running state of equipment based on Hall sensor
CN114124078A (en) * 2020-08-31 2022-03-01 宁波飞芯电子科技有限公司 Driving circuit and driving method
CN112134466A (en) * 2020-09-09 2020-12-25 深圳市必易微电子股份有限公司 Primary side control circuit, power converter and control method thereof
CN112564705B (en) * 2020-12-02 2022-07-01 湖北方圆环保科技有限公司 Multi-channel data acquisition method for radon measuring instrument

Also Published As

Publication number Publication date
CN115015618A (en) 2022-09-06
CN115015618B (en) 2022-10-14

Similar Documents

Publication Publication Date Title
TW202407355A (en) Radio frequency power supply signal acquisition method and device
CN115015796B (en) Radio frequency power supply signal acquisition method and device
US20120166864A1 (en) System and method for detecting errors occurring in computing device
WO2024032431A1 (en) Radio frequency power supply signal acquisition method and apparatus
CN109213703B (en) Data detection method and data detection device
CN103197139A (en) Clock frequency test method and clock frequency test circuit
WO2024078546A1 (en) Pulse recognition method and apparatus
WO2024032432A1 (en) Radio frequency power supply signal acquisition method and apparatus
US8401821B1 (en) Method, apparatus and computer program for latency measurement
CN111836347A (en) Electric quantity display method, device and equipment and readable storage medium
CN115980440A (en) Method and device for reading frozen records of electric energy meter, electronic equipment and medium
US20130013962A1 (en) Computing device and method for analyzing integrality of serial attached scsi signals
CN109341446B (en) Command recognition device and method and time delay device and method for electronic detonator
CN113946200A (en) Method and device for detecting dynamic voltage drop of circuit, electronic equipment and storage medium
CN111351972B (en) Method and device for detecting idle-state sleep current of terminal
US11397197B2 (en) Voltage detection system and method
CN103186753B (en) A kind of detection method of initial rate of PSAM card and device
CN107632787B (en) Data reading method, device and system
CN113711060A (en) Adaptive power measurement accumulator with varying sampling frequency
US11824536B2 (en) Automatic protection against runt pulses
US11621702B2 (en) Automatic protection against runt pulses
CN110993012B (en) Device and method for counting nand flash busy time
CN112394225B (en) Phase angle detection device and method
CN113346877B (en) Clock period detection method and circuit based on dichotomy
CN116530016A (en) Automatic protection against short pulses