Multi-channel consistency calibration method based on beam position and phase data
By gradually calibrating the amplitude and phase offset of each channel, the channel inconsistency problem in the accelerator is solved, and accurate calibration and high-precision measurement of multi-channel systems are achieved.
Patent Information
- Application Number
- CN202411877091.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-12-19
AI Technical Summary
In the beam position and phase monitoring system of proton and heavy ion linear accelerators, due to the hardware differences between each channel, the measurement amplitude and phase are inconsistent, which affects the measurement accuracy of the beam position and phase, thereby reducing the operating stability of the accelerator.
A multi-channel consistency calibration method based on beam position and phase data is adopted. By gradually calibrating the amplitude offset, amplitude proportional coefficient and phase offset of each channel, we ensure that each channel outputs consistent amplitude and phase under the input conditions of the same frequency and amplitude signal.
Accurate calibration of multiple channels is achieved, the measurement accuracy and stability of the beam position and phase monitoring system are improved, and the operation stability of the accelerator is ensured.
Smart Images

Figure CN119322365B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of signal processing technology, and in particular to a multi-channel consistency calibration method based on beam position and phase data. Background Art
[0002] In the field of accelerators, with the continuous advancement of science and technology, especially driven by the demand for high-power and high-current accelerators, proton and heavy-ion linear accelerators have gradually become key acceleration devices. With the rapid development of proton and heavy-ion linear accelerators, the total power of the beam has reached the megawatt level. In the context of such high power, it is crucial to ensure accurate monitoring and control of the beam.
[0003] Currently, in the beam position and phase monitoring systems of proton and heavy ion linear accelerators, due to the hardware differences in the RF devices (such as amplifiers, filters, frequency converters, etc.) in each channel, the measured amplitude and phase between the channels will be inconsistent. This channel inconsistency will directly affect the measurement accuracy of the beam position and phase, and then lead to reduced operating stability of the linear accelerator. In order to eliminate this channel inconsistency, the existing technology usually relies on manual calibration using experimental instruments. However, since the entire manual calibration process is labor-intensive and time-consuming, it is difficult to guarantee the calibration accuracy.
[0004] Therefore, how to effectively improve the calibration accuracy of multiple channels in the beam position and phase monitoring system of the linear accelerator has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] The present invention provides a multi-channel consistency calibration method based on beam position and phase data, which is used to solve the defects in the prior art and realize the precise calibration of multiple channels in the beam position and phase monitoring system in a linear accelerator.
[0006] The present invention provides a multi-channel consistency calibration method based on beam position and phase data, comprising the following steps: calibrating each channel based on the amplitude offset of each channel to obtain a first calibration state of each channel;
[0007] When the first real-time amplitude of each channel in the first calibration state is within a preset first range, calibrate each channel based on the amplitude proportional coefficient of each channel in the first calibration state to obtain a second calibration state of each channel;
[0008] When the second real-time amplitude of each channel in the second calibration state is within a preset second range, calibrate each channel based on the phase offset of each channel in the second calibration state to obtain a third calibration state of each channel;
[0009] When the real-time phase of each channel in the third calibration state is within a preset third range, it is determined that the calibration of all channels is completed.
[0010] According to a multi-channel consistency calibration method based on beam position and phase data provided by the present invention, before calibrating each channel based on the amplitude offset of each channel to obtain a first calibration state of each channel, the method further includes:
[0011] When there is no signal input to each channel, the initial amplitude of each channel at multiple sampling points within a preset time period is collected;
[0012] The average value of the initial amplitude of each channel is calculated to obtain the amplitude offset of each channel.
[0013] According to a multi-channel consistency calibration method based on beam position and phase data provided by the present invention, before calibrating each channel based on the amplitude proportional coefficient of each channel in the first calibration state to obtain the second calibration state of each channel, the method further includes:
[0014] When each channel has a same-frequency and same-amplitude signal input in the first calibration state, the real-time amplitude of multiple sampling points of each channel in the first calibration state within a preset time period is collected; the same-frequency and same-amplitude signal is obtained by mixing and synthesizing the signal output by the time-frequency device and then passing it through a one-to-four power divider;
[0015] Calculate the average value of the real-time amplitude of each channel to obtain the average amplitude of each channel in the first calibration state;
[0016] Based on the real-time amplitude of each channel and the average amplitude of all channels, the amplitude proportional coefficient of each channel in the first calibration state is calculated.
[0017] According to a multi-channel consistency calibration method based on beam position and phase data provided by the present invention, before calibrating each channel based on the phase offset of each channel in the second calibration state to obtain the third calibration state of each channel, the method further includes:
[0018] When each channel has a signal with the same frequency and amplitude input in the second calibration state, collecting the real-time phase of multiple sampling points of each channel in the second calibration state;
[0019] The difference between the real-time phase of each channel and the phase of the same-frequency reference signal is calculated to obtain the phase offset of each channel in the second calibration state.
[0020] According to a multi-channel consistency calibration method based on beam position and phase data provided by the present invention, when there is no signal input to each channel, before collecting the initial amplitude of each channel at multiple sampling points within a preset time period, the method also includes:
[0021] Input a calibration signal at a calibration input port of the device under test and set the attenuator to a first preset value;
[0022] Initializing each channel, wherein the initialization process includes: setting the amplitude offset, amplitude proportional coefficient and phase offset of each channel to a predetermined initial value;
[0023] Determining whether the attenuation coefficient of the calibration signal is greater than a second preset value; the second preset value is obtained by continuously increasing the first preset value according to a fixed increment;
[0024] When the attenuation coefficient of the calibration signal is greater than a second preset value, attenuating the calibration signal;
[0025] When the attenuation coefficient of the calibration signal is not greater than a second preset value, the calibration signal is not attenuated;
[0026] The amplitude offset, the amplitude proportionality factor, and the phase offset are calibrated.
[0027] According to a multi-channel consistency calibration method based on beam position and phase data provided by the present invention, before inputting a calibration signal at a calibration input port of the device under test, the method further includes:
[0028] The signal output by the time-frequency device is passed through a one-to-four power divider to obtain four first harmonic signals;
[0029] Synthesizing any two of the first harmonic signals through a mixer to obtain a second harmonic signal;
[0030] The calibration signal is obtained by synthesizing the second harmonic signal and any remaining first harmonic signal through a two-in-one power combiner.
[0031] According to a multi-channel consistency calibration method based on beam position and phase data provided by the present invention, after determining that all channel calibrations are completed, the method further includes:
[0032] Determining whether the attenuation coefficient of the calibration signal is equal to a third preset value;
[0033] When the attenuation coefficient of the calibration signal is equal to a third preset value, storing the amplitude offset, the amplitude proportional coefficient and the phase offset in a structure;
[0034] The amplitude offset, the amplitude proportionality coefficient and the phase offset are extracted from the structure and stored in a document, and the document is used for real-time calibration of each channel when the device under test is subsequently running.
[0035] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0036] By calibrating each channel based on the amplitude offset of each channel, the amplitude deviation of each channel caused by hardware differences and background noise is eliminated, thereby obtaining the first calibration state of each channel, ensuring that the amplitude of each channel tends to zero when there is no signal input. When the first real-time amplitude of each channel in the first calibration state is within the preset first range, each channel is calibrated in the first calibration state based on the amplitude proportional coefficient of each channel in the first calibration state, and the output consistency of the amplitude of each channel is adjusted so that the amplitude output is the same when the same frequency and amplitude signal is input, and the second calibration state of each channel is obtained, thereby improving the signal measurement accuracy of the multi-channel system and ensuring the accuracy of the amplitude measurement result. When the second real-time amplitude of each channel in the second calibration state is within the preset second range, each channel is calibrated in the second calibration state based on the phase offset of each channel in the second calibration state, and the phase difference between channels is corrected to ensure the synchronization during the signal transmission process, and the third calibration state of each channel is obtained, thereby ensuring the accuracy of the phase calibration, so that each channel has delay consistency under the same frequency and amplitude signal input. When the real-time phase of each channel in the third calibration state is within the preset third range, it is determined that the calibration of all channels is completed, thereby confirming that the amplitude and phase calibration have reached the preset standard, thereby ensuring that all channels of the system are fully calibrated, and realizing accurate calibration of multiple channels in the beam position and phase monitoring system of the linear accelerator. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 It is one of the flow charts of the multi-channel consistency calibration method based on beam position and phase data provided by the present invention.
[0039] Figure 2 This is the second flow chart of the multi-channel consistency calibration method based on beam position and phase data provided by the present invention.
[0040] Figure 3 This is the third flow chart of the multi-channel consistency calibration method based on beam position and phase data provided by the present invention.
[0041] Figure 4 This is the fourth flow chart of the multi-channel consistency calibration method based on beam position and phase data provided by the present invention.
[0042] Figure 5 This is the fifth flow chart of the multi-channel consistency calibration method based on beam position and phase data provided by the present invention.
[0043] Figure 6 This is the sixth flow chart of the multi-channel consistency calibration method based on beam position and phase data provided by the present invention. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] It should be noted that, in the description of the present invention, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "include one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements. The orientation or positional relationship indicated by the terms "upper", "lower", etc. is based on the orientation or positional relationship shown in the accompanying drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the system or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances.
[0046] The terms "first", "second", etc. in the present invention are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more.
[0047] Combine the following Figure 1-Figure 6 The multi-channel consistency calibration method based on beam position and phase data provided by the present invention is described.
[0048] Figure 1 This is one of the flow charts of the multi-channel consistency calibration method based on beam position and phase data provided by the present invention, such as Figure 1 As shown, including but not limited to the following steps:
[0049] Step 11: Calibrate each channel based on the amplitude offset of each channel to obtain a first calibration state of each channel.
[0050] In the implementation process of the present invention, the core task of step 11 is to preliminarily calibrate the channels based on the amplitude offsets of each channel to ensure that the amplitude inconsistency caused by hardware differences, background noise and other factors is eliminated, thereby providing a more stable and accurate benchmark for subsequent calibration. In this step, the key point is to calculate the amplitude offset caused by the noise of the channel when there is no signal input, and use these offsets to preliminarily calibrate the channel.
[0051] In the specific implementation, the input signal is first cut off, that is, the relay is controlled so that the four channels of the device under test are in a state of no signal input. At this time, the output signals of the four channels are only internal noise caused by the hardware characteristics of the device itself, so these signals are the background noise of the channel. In order to ensure that the collected noise data is representative, the system will sample multiple times within the preset time period, and the amplitude signals of multiple sampling points of each channel will be recorded.
[0052] Next, the system processes the acquired amplitude signals. By averaging the noise signals of each channel, the amplitude offset of each channel is obtained. These offsets reflect the inherent deviation of the channel due to noise and hardware differences when there is no signal input.
[0053] To ensure the efficiency and automation of the calibration process, the calibration data will be transmitted back to the FPGA through the AXI-Lite protocol. On the FPGA side, the system will use these offsets to participate in the calibration of the channel amplitude. After receiving the offsets, the FPGA uses these data to adjust the output signal of the channel accordingly, eliminating the offset caused by noise and hardware differences, and ensuring that the output amplitude of the channel is close to zero when there is no signal input.
[0054] After preliminary calculations on the FPGA side, the calibrated channel data is transmitted to the ARM side again through the on-chip bus AXI4 for further verification and monitoring. The system monitors the real-time amplitude of each channel to ensure that the calibrated amplitude signal jumps around zero, that is, fluctuates within the allowable error range. This process ensures that the calibration of the amplitude offset is successful. When the output amplitude of all channels is stable within the preset range, the calibration is considered complete and the channel enters the first calibration state.
[0055] It should be noted that the specific calculation method of the amplitude offset will be described in detail in subsequent embodiments.
[0056] Step 12: When the first real-time amplitude of each channel in the first calibration state is within a preset first range, calibrate each channel based on the amplitude proportional coefficient of each channel in the first calibration state to obtain a second calibration state of each channel.
[0057] In the implementation process of the present invention, the core task of step 12 is to further calibrate each channel based on the amplitude proportional coefficient of each channel in the first calibration state to ensure that the output amplitudes of different channels remain consistent under the same frequency and amplitude signal input conditions. Due to the different hardware characteristics of each channel, such as differences in RF devices such as amplifiers, filters and frequency converters, these differences will cause the output amplitudes of different channels to be inconsistent when the same frequency and amplitude signals are input. Therefore, by adjusting the amplitude proportional coefficient, each channel can output the same amplitude under the same frequency and amplitude signal conditions, thereby improving the overall measurement accuracy of the system.
[0058] Specifically, before this step of calibration, a signal is first input to each channel in the first calibration state. The control relay is closed, that is, each channel inputs a known signal of the same frequency and amplitude, and the amplitude of the signal is known and remains stable. At this time, the system will monitor the output amplitude of each channel in the first calibration state in real time to ensure that the collected data accurately reflects the real-time amplitude response of the channel under the input signal. Within the preset time period, the system obtains the real-time amplitude of each channel at multiple sampling points in the first calibration state through multiple sampling.
[0059] Next, the system calculates the real-time amplitude collected by each channel, and obtains the average amplitude of each channel in the first calibration state by averaging the values of these sampling points. This average amplitude reflects the actual output of the channel when the same frequency and amplitude signals are input. However, since the hardware gain of each channel may be different, these average amplitudes will differ between different channels. In order to eliminate this difference, the system calculates the amplitude proportional coefficient of each channel by taking the average amplitude of all channels.
[0060] During the calibration process, the calculated amplitude proportionality coefficients are transmitted to the FPGA through the on-chip bus. In the FPGA, the system adjusts and corrects the output signals of each channel according to these proportionality coefficients so that the output amplitudes of all channels are the same. In this way, the system can effectively eliminate the amplitude inconsistency problem caused by differences in hardware characteristics between channels.
[0061] It should be noted that the specific range of the preset first range is usually determined by the calibration accuracy requirements of the system and the hardware characteristics of the device. The preferred value range of the preset first range is [-0.05%, 0.05%]. If the first real-time amplitude of any channel exceeds the preset first range, the system will automatically re-trigger the amplitude offset calibration to ensure that the output of the channel meets the calibration standard. Secondly, the specific calculation method of the amplitude proportional coefficient will be described in detail in the subsequent embodiments.
[0062] Step 13: When the second real-time amplitude of each channel in the second calibration state is within the preset second range, calibrate each channel based on the phase offset of each channel in the second calibration state to obtain a third calibration state of each channel.
[0063] In the implementation process of the present invention, the core task of step 13 is to perform phase calibration on each channel based on the phase offset of each channel in the second calibration state. Due to the differences in hardware characteristics between different channels during signal transmission (such as different circuit lengths, amplifiers, and phase responses of frequency converters), the same frequency and amplitude signals will cause phase inconsistencies after transmission through each channel. In order to ensure the synchronization and phase consistency of the signal, the phase offset of each channel must be accurately calibrated. By calibrating the phase offset, the phases of all channels can be consistent under the input conditions of the same frequency and amplitude signals, thereby improving the overall accuracy of the system in beam position and phase measurement.
[0064] In the specific implementation, the phase of each channel is first compared with the phase of the known reference signal of the same frequency in the second calibration state. The system can accurately compare the phase of each channel based on the output result of the FPGA end. The system collects the phase of each channel in the second calibration state in real time, and obtains the real-time phase of each channel by sampling multiple times in a preset time period. Due to differences in hardware characteristics, the real-time phases of these channels will be different, so further calibration is required.
[0065] The real-time phase of each channel collected is the phase offset of each channel. The phase offset indicates the degree of phase deviation of each channel relative to the same-frequency reference signal used to calculate the beam position and phase. It is these offsets that cause the phase inconsistency between channels. Therefore, by calculating these phase offsets, the system can further adjust the phase of each channel to keep the phase of each channel consistent.
[0066] The system transmits the calculated phase offset back to the FPGA through the on-chip bus. In the FPGA, the system adjusts and corrects the phase of each channel based on these offsets. Through the adjusted phase offset, the system can ensure that each channel outputs the same phase value when the same frequency and amplitude signal is input. The sign of successful phase calibration is that the calibration is considered complete when the output phase of all channels is consistent or fluctuates within the preset phase range.
[0067] It should be noted that the preset second range is usually determined based on the overall measurement accuracy of the system and the application requirements, and the preferred value range of the preset second range is [0,5um]. If the real-time amplitude of any channel exceeds the preset second range, the system will re-trigger the amplitude proportional coefficient calibration to ensure that the output of the channel meets the calibration standard. Secondly, the specific calculation method of the phase offset will be described in detail in the subsequent embodiments.
[0068] Step 14: When the real-time phase of each channel in the third calibration state is within a preset third range, it is determined that the calibration of all channels is completed.
[0069] Specifically, if the real-time phase of each channel fluctuates within this preset range, it means that the phase of all channels has been synchronized, which indicates that the phase calibration has been successful. At the same time, the system will continue to monitor the amplitude of each channel to ensure that the amplitude calibration remains stable. The dual detection of amplitude and phase further confirms the calibration accuracy of the system. Similarly, the preferred value range of the preset third range is [-0.05%, 0.05%]. If the phase of any channel exceeds the preset third range, the system will re-trigger the phase calibration to ensure that the output of the channel meets the calibration standard. This monitoring and feedback mechanism allows the system to dynamically correct possible deviations before the end of the calibration, ensuring that the final calibration result is accurate and reliable.
[0070] It should be noted that phase calibration can be achieved according to the following formula:
[0071] PHASE offset =-PHASE 实时值 ;
[0072] PHASE offset_CHA =-PHASE 实时值_CHA ;
[0073] PHASE offset_CHB =-PHASE 实时值_CHB ;
[0074] PHASE offset_CHC =-PHASE 实时值_CHC ;
[0075] PHASE offset_CHD =-PHASE 实时值_CHD ;
[0076] Among them, PHASE offset is the phase offset, PHASE 实时值 is the real-time phase value, PHASE offset_CHA is the phase offset of channel A, PHASE offset_CHB is the phase offset of channel B, PHASE offset_CHC is the phase offset of channel C, PHASE offset_CHD is the phase offset of channel D, PHASE 实时值_CHA is the real-time phase value of channel A, PHASE 实时值_CHB is the real-time phase value of channel B, PHASE 实时值_CHC is the real-time phase value of channel C, PHASE 实时值_CHD is the real-time phase value of channel D.
[0077] In one possible implementation, refer to Figure 2 , Figure 2This is the second flow chart of the multi-channel consistency calibration method based on beam position and phase data provided by the present invention. Before step 11, the method further includes steps 21-22:
[0078] Step 21: When there is no signal input to each channel, the initial amplitude of each channel at multiple sampling points within a preset time period is collected.
[0079] Step 22: Calculate the average of the initial amplitudes of each channel to obtain the amplitude offset of each channel.
[0080] Specifically, the system first cuts off the input signal of each channel by controlling the relay to ensure that all channels operate without signal input. At this time, the output signal of each channel is completely generated by the background noise and hardware deviation of the system itself. Within the preset time period, the system will sample the output amplitude of each channel multiple times to ensure that the collected data is representative. By recording multiple sampling data, the system can better capture the average noise level of the channel and reduce the random fluctuations that may be caused by sampling at a single moment.
[0081] Next, the initial amplitude of each channel at multiple sampling points is calculated. By averaging the multiple amplitude data points collected by each channel, the system can obtain the amplitude offset of each channel. The amplitude offset represents the inherent deviation of the channel when there is no signal input, that is, the signal offset caused by hardware characteristics and noise.
[0082] In one possible implementation, refer to Figure 3 , Figure 3 This is the third flow chart of the multi-channel consistency calibration method based on beam position and phase data provided by the present invention. Before step 12, the method further includes steps 31-33:
[0083] Step 31: When each channel has a same-frequency and same-amplitude signal input in the first calibration state, collect the real-time amplitude of multiple sampling points of each channel in the first calibration state within a preset time period; the same-frequency and same-amplitude signal is obtained by mixing and synthesizing the signal output by the time-frequency device and then passing it through a one-to-four power divider.
[0084] Step 32: Calculate the average value of the real-time amplitude of each channel to obtain the average amplitude of each channel in the first calibration state.
[0085] Step 33: Based on the real-time amplitude of each channel and the average amplitude of all channels, the amplitude proportional coefficient of each channel in the first calibration state is calculated.
[0086] Specifically, the control relay is closed, so that the system inputs a known same-frequency and same-amplitude signal to each channel in the first calibration state. The amplitude of the signal is known and fixed, ensuring that all channels input signals of the same frequency and amplitude. Specifically, the same-frequency and same-amplitude signal described above is a mixed signal containing the first harmonic and the second harmonic obtained by passing the signal output by the time-frequency device through a mixer. At this time, the system will obtain the output characteristics of each channel by collecting the real-time sampling amplitude of each channel under the signal input.
[0087] Next, the system processes the real-time amplitude of all sampling points of each channel in the first calibration state. By averaging the amplitudes of multiple sampling points collected, the system can obtain the average amplitude of each channel. This average amplitude reflects the actual response of each channel when the same frequency and amplitude signal is input.
[0088] Finally, the system compares the average amplitude of the four channels with the real-time amplitude of each channel to calculate the amplitude ratio coefficient of each channel. The amplitude ratio coefficient is an adjustment factor used to calibrate the amplitude difference between channels. Specifically, the calculation formula of the amplitude ratio coefficient is:
[0089] Vavg=(VA+VB+VC+VD) / 4;
[0090] KA=VA / Vavg, KB=VB / Vavg, KC=VC / Vavg, KD=VD / Vavg;
[0091] Among them, Vavg is the average amplitude of the four channels, channel A, channel B, channel C and channel D, VA is the real-time amplitude of channel A, VB is the real-time amplitude of channel B, VC is the real-time amplitude of channel C, VD is the real-time amplitude of channel D, KA, KB, KC, KD respectively represent the amplitude proportional coefficients of channel A, channel B, channel C and channel D. Through this proportional coefficient, the system can correct the actual output amplitude of each channel so that they output consistent amplitude when inputting the same frequency and amplitude signals.
[0092] In one possible implementation, refer to Figure 4 , Figure 4 This is a fourth flow chart of a multi-channel consistency calibration method based on beam position and phase data provided by the present invention. Before step 13, the method further includes steps 41-42:
[0093] Step 41: When each channel has a signal input with the same frequency and amplitude in the second calibration state, the real-time phase of multiple sampling points of each channel in the second calibration state is collected.
[0094] Step 42: Calculate the difference between the real-time phase of each channel and the phase of the same-frequency reference signal to obtain the phase offset of each channel in the second calibration state.
[0095] Specifically, the system inputs a known same-frequency and same-amplitude signal to each channel in the second calibration state. The phase of the same-frequency and same-amplitude signal is known and remains fixed, ensuring that all channels receive the same signal, and the real-time phase of each channel can be obtained by comparing it with the phase of the same-frequency signal as the reference signal. At this time, the system collects the real-time phase of each channel in the second calibration state in real time, samples multiple times within a preset time period, and obtains real-time phase data of multiple sampling points.
[0096] After collecting all the real-time phase data, the system compares the real-time phase of each channel with the standard phase of the same-frequency reference signal used to calculate the beam position and phase, and obtains the phase offset of each channel by calculating the difference between the real-time phase and the reference phase of each channel.
[0097] In one possible implementation, refer to Figure 5 , Figure 5 This is the fifth flow chart of the multi-channel consistency calibration method based on beam position and phase data provided by the present invention. Before step 21, the method further includes steps 51-56:
[0098] Step 51: Input a calibration signal at the calibration input port of the device under test, and set the attenuator to a first preset value.
[0099] Step 52: Initialize each channel, wherein the initialization process includes: setting the amplitude offset, amplitude proportional coefficient and phase offset of each channel to a predetermined initial value.
[0100] Step 53: Determine whether the attenuation coefficient of the calibration signal is greater than a second preset value; the second preset value is obtained by continuously increasing the first preset value according to a fixed increment.
[0101] Step 54: When the attenuation coefficient of the calibration signal is greater than a second preset value, the calibration signal is attenuated.
[0102] Step 55: When the attenuation coefficient of the calibration signal is not greater than the second preset value, the calibration signal is not attenuated.
[0103] Step 56: Calibrate the amplitude offset, amplitude proportionality factor and phase offset.
[0104] Specifically, the system first inputs a calibration signal at the input port of the device under test. The calibration signal is usually a known, standard signal whose amplitude and phase are precisely set in order to provide a consistent input reference for the subsequent calibration process. When the signal is input, the attenuator is set to a first preset value, which is to control the amplitude of the calibration signal to avoid the signal being too strong or too weak and affecting the accuracy of the calibration. Different devices and channels may require different signal strengths. The first preset value can be adjusted according to the specific device characteristics and system requirements to ensure that the strength of the input signal is within a reasonable range to avoid the signal being too strong or too weak and affecting the calibration results. In the present application, the first preset value can be set to -30dB.
[0105] Next, the system starts to initialize each channel. The initialization process includes setting the amplitude offset, amplitude scale factor and phase offset of each channel to the predetermined initial values. The initial setting of these parameters is very important to ensure that each channel is calibrated at the same starting point and to eliminate the initial deviation caused by hardware differences or environmental noise. The initialization of the amplitude offset and phase offset allows the output signal of each channel to start from a standard starting point, while the setting of the amplitude scale factor is used for subsequent amplitude scale calibration to ensure the consistent gain of each channel.
[0106] Next, it is necessary to determine whether the attenuation coefficient of the calibration signal is greater than the second preset value. Among them, the second preset value is obtained by continuously increasing the first preset value according to a fixed increase. This is to ensure that the strength of the input signal is not too strong, so as to avoid nonlinear distortion or signal overload in the subsequent calibration process. In the present application, the second preset value can be set to -15dB, and the fixed increase is preferably set to 3dB in this scheme, and can also be set to 1dB or 2dB according to the accuracy requirements. By comparing the attenuation coefficient and the second preset value, the system can dynamically adjust the attenuation degree of the signal input to ensure that the signal is within a suitable range. The purpose of this is to avoid damage to the device hardware caused by excessive signal strength, while ensuring that the accuracy of the signal is high enough for subsequent calibration work.
[0107] When the system determines that the attenuation coefficient of the calibration signal is compared with the second preset value, the system controls the calibration signal to attenuate or not attenuate by controlling the relay.
[0108] It should be noted that when the attenuation coefficient is between [-30dB, -15dB], the sampling value range of the ADC needs to be set to 4000-32768, so that the calibration signal is larger and the signal-to-noise ratio is better; when the attenuation coefficient is between (-15dB, 0dB], for example: with a fixed increase of 3dB for the attenuation coefficient, when the attenuation coefficient is greater than or equal to -12dB, an additional -20dB attenuator needs to be set after the two-in-one combiner (the attenuator can be the attenuator set in the device under test, that is, the device under test In the embodiment, the signal entering the calibration input port is transmitted in two paths, one path passes through a -20dB attenuator, and the other path is directly transmitted backward. In the embodiment, when the attenuation coefficient is between (-15dB, 0dB], the signal entering the calibration input port is controlled to pass through the path of the -20dB attenuator, otherwise it is directly transmitted backward through the other path). The sampling value range of the ADC needs to be set to 4000-22000, so that the calibration signal obtained by the two-in-one combiner is further passed through the attenuator to obtain a final calibration signal within the linear range and with a good signal-to-noise ratio.
[0109] In a possible implementation, before step 51, the method further includes the following steps:
[0110] The signal output by the time-frequency device is passed through a one-to-four power divider to obtain four first harmonic signals;
[0111] By synthesizing any two first harmonic signals through a mixer, a second harmonic signal is obtained;
[0112] The calibration signal is obtained by synthesizing the second harmonic signal and any remaining first harmonic signal through a two-in-one power combiner.
[0113] Specifically, first, the system outputs a stable signal source from the time-frequency device. This signal, as the benchmark for the entire calibration process, must have a high degree of stability and accuracy. In order to introduce this signal into multiple channels for calibration at the same time, the system uses a one-to-four power divider to divide the signal output by the time-frequency device into four first harmonic signals. The role of the power divider is to ensure that each signal remains consistent in phase and amplitude, so that each signal can be used as a stable input source.
[0114] Next, the system selects any two first harmonic signals and synthesizes them through a mixer. In this process, the mixer mixes the two input first harmonic signals with each other and generates a second harmonic signal through the nonlinear process of the signal. The purpose of this is to generate a second harmonic signal through mixing, provide frequency components for the subsequent calibration of the second harmonic signal, and maintain the stability of the phase and amplitude of the signal.
[0115] After generating the second harmonic signal, the system synthesizes the signal with the remaining first harmonic signal. Through the two-in-one power combiner, the system combines the second harmonic signal with the first harmonic signal to obtain the final calibration signal. This calibration signal not only contains the basic harmonic components, but also superimposes the characteristics of the second harmonic, which allows the first harmonic signal and the second harmonic signal to be calibrated at the same time, avoiding the error of the second calibration.
[0116] In one possible implementation, refer to Figure 6 , Figure 6 This is the sixth flow chart of the multi-channel consistency calibration method based on beam position and phase data provided by the present invention. After step 14, the method further includes steps 61-63:
[0117] Step 61: Determine whether the attenuation coefficient of the calibration signal is equal to a third preset value.
[0118] Step 62: When the attenuation coefficient of the calibration signal is equal to the third preset value, the amplitude offset, the amplitude proportional coefficient and the phase offset are stored in the structure.
[0119] Step 63: extract the amplitude offset, amplitude proportionality coefficient and phase offset from the structure and store them in a document, which is used for real-time calibration of each channel when the device under test is used later.
[0120] Specifically, the system first determines whether the attenuation coefficient of the calibration signal is equal to a third preset value. In the present application, the third preset value is preferably 0 dB.
[0121] When the attenuation coefficient of the calibration signal is equal to the third preset value, that is, equal to 0dB, the calibration parameters of each channel (including amplitude offset, amplitude proportional coefficient and phase offset) are stored in the structure. The purpose of storing in the structure is to temporarily store these important calibration parameters in memory to ensure that they are not lost or disturbed before the calibration is completed. The structure is a data structure that can effectively organize and manage the calibration parameters of multiple channels, so that the calibration information of each channel can be easily accessed and processed.
[0122] Next, the system extracts the amplitude offset, amplitude scaling factor, and phase offset from the calibration parameters previously stored in the structure, and stores these calibration data persistently in a document. The document can be in the form of an electronic file stored in the device, containing the calibration data for each channel. The purpose of persistent storage is to ensure that the calibration data is not lost when the device is restarted or the system fails, and that the data can be called again in the normal operation and fault diagnosis of subsequent devices. This operation allows the calibration data to be used not only temporarily, but also as a reference in subsequent system self-tests, maintenance, and secondary calibration.
[0123] Through the description of the above implementation modes, those skilled in the art can clearly understand that each implementation mode can be implemented by means of software plus a necessary general hardware platform, or of course by hardware. Based on such an understanding, the above technical solution can essentially or in other words be embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.
[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A multi-channel consistency calibration method based on beam position and phase data, characterized in that: include: The signal output by the time-frequency device is passed through a one-to-four power divider to obtain four first harmonic signals; Synthesizing any two of the first harmonic signals through a mixer to obtain a second harmonic signal; The second harmonic signal and any remaining first harmonic signal are synthesized by a two-in-one power combiner to obtain a calibration signal; Input the calibration signal at the calibration input port of the device under test, and set the attenuator to a first preset value; Initializing each channel, wherein the initialization process includes: setting the amplitude offset, amplitude proportional coefficient and phase offset of each channel to a predetermined initial value; Determining whether the attenuation coefficient of the calibration signal is greater than a second preset value; the second preset value is obtained by continuously increasing the first preset value according to a fixed increment; When the attenuation coefficient of the calibration signal is greater than a second preset value, attenuating the calibration signal; When the attenuation coefficient of the calibration signal is not greater than a second preset value, the calibration signal is not attenuated; Calibrate the amplitude offset, the amplitude proportionality factor and the phase offset; When there is no signal input to each channel, the initial amplitude of each channel at multiple sampling points within a preset time period is collected; Calculate the average of the initial amplitudes of each channel to obtain the amplitude offset of each channel; Calibrate each channel based on the amplitude offset of each channel to obtain a first calibration state of each channel; When each channel has a same-frequency and same-amplitude signal input in the first calibration state, the real-time amplitude of multiple sampling points of each channel in the first calibration state within a preset time period is collected; the same-frequency and same-amplitude signal is obtained by mixing and synthesizing the signal output by the time-frequency device and then passing it through a one-to-four power divider; Calculate the average value of the real-time amplitude of each channel to obtain the average amplitude of each channel in the first calibration state; Calculating an amplitude proportional coefficient of each channel in the first calibration state based on the real-time amplitude of each channel and the average amplitude of all channels; When the first real-time amplitude of each channel in the first calibration state is within a preset first range, calibrate each channel based on the amplitude proportional coefficient of each channel in the first calibration state to obtain a second calibration state of each channel; When each channel has a signal with the same frequency and amplitude input in the second calibration state, collecting the real-time phase of multiple sampling points of each channel in the second calibration state; Calculate the difference between the real-time phase of each channel and the phase of the same-frequency reference signal to obtain the phase offset of each channel in the second calibration state; When the second real-time amplitude of each channel in the second calibration state is within a preset second range, calibrating each channel based on the phase offset of each channel in the second calibration state to obtain a third calibration state of each channel; When the real-time phase of each channel in the third calibration state is within a preset third range, determining that the calibration of all channels is completed; Determining whether the attenuation coefficient of the calibration signal is equal to a third preset value; When the attenuation coefficient of the calibration signal is equal to a third preset value, storing the amplitude offset, the amplitude proportional coefficient and the phase offset in a structure; The amplitude offset, the amplitude proportionality coefficient and the phase offset are extracted from the structure and stored in a document, and the document is used for real-time calibration of each channel when the device under test is subsequently running.
Citation Information
Patent Citations
Method and system for automatically correcting digital BPM sampling data multi-channel phase
CN108449084A