Method and device for on-line global optimization of feedback control parameters of radio frequency low-level system

Through the online global optimization of RF low-level system, a parameter scanning grid is generated, and the rms mean value of the cavity pressure signal is calculated using the 'S'-type path scanning, which solves the problem of PI parameter setting, avoids loop instability, and achieves global Locking of optimal parameters and stable system operation.

CN119024680AActive Publication Date: 2024-11-26INST OF MODERN PHYSICS CHINESE ACADEMY OF SCI

Patent Information

Application Number
CN202411515557.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2024-11-26
Estimated Expiration
2044-10-29

AI Technical Summary

Technical Problem

In the prior art, the PI parameter setting method is difficult to find the global optimal parameter position in the particle accelerator, and it is easy to lead to loop instability, limiting the stability of the radio frequency field and the longitudinal index optimization of the beam current.

Method used

Using the online global optimization of the feedback control parameters of the RF low-level system, the parameter scanning grid is generated, the parameter combination is used to scan the parameter, collect the cavity pressure signal, calculate the rms mean, and create a contour chart to obtain the best PI parameter combination to avoid loop instability.

Benefits of technology

Locking the global optimal PI parameter combination within a wider parameter range ensures stable operation of the system, realizing online optimization of PI parameters, improving the stability of the RF field and the longitudinal indicators of the beam current.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119024680A_ABST
    Figure CN119024680A_ABST
Patent Text Reader

Abstract

The invention discloses a method and device for on-line global optimization of feedback control parameters of a radio frequency low-level system, and the method comprises the steps: generating a parameter scanning grid of a parameter # imgabs0 # and a parameter # imgabs1 #, the # imgabs2 # being a proportional gain, and the # imgabs3 # being an integral gain; scanning a parameter scanning grid by using an S-shaped path to obtain a plurality of PI parameter combinations; collecting a cavity pressure signal of the radio frequency cavity under each group of PI parameters; calculating an rms mean value of the cavity pressure based on the cavity pressure signal of each group of PI parameters; and making a contour map based on the rms mean value of the cavity pressure, and obtaining an optimal PI parameter combination based on the contour map. Therefore, the PI parameter can be effectively set, the globally optimal PI parameter can be found, and the loop instability phenomenon can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method, device, equipment and medium for online global optimization of feedback control parameters of a radio frequency low-level system, and relates to the field of particle accelerators. Background Art

[0002] In a particle accelerator, the RF cavity is the core component that provides the acceleration field for the particle beam. The beam is susceptible to various factors during the acceleration process within the RF cavity. In superconducting linear accelerators, instability in the high-Q superconducting RF system caused by accidental factors can easily lead to poor beam quality or even beam loss. Low-level RF control systems enable precise control of the RF field and are a key factor in determining beam quality.

[0003] With the rapid advancement of microelectronics and digital chip technology, new-generation particle accelerators are increasingly adopting digital low-level frequency (LLRF) systems. Digital proportional and integral control (PI) controllers, due to their simple structure, model independence, adaptability, and reliability, are widely used in LLRF systems. One of the challenges with PI control is parameter tuning. Traditional PI parameter tuning methods often emphasize dynamic metrics, such as step response rise time, peak time, and loop overshoot. Alternatively, loop parameters (such as cutoff frequency, gain margin, and damping ratio) are calculated based on mathematical transfer function models, and then optimized based on engineer experience. However, in the low-level RF domain, the stability of the steady-state cavity pressure signal is directly related to longitudinal beam parameters (such as beam energy spread), making it a core requirement of particle accelerators. Traditional tuning methods do not fully consider this factor. Furthermore, RF loops often contain multiple nonlinear factors (such as nonlinear RF power source systems and nonlinear Lorentz detuning), making tuning methods based on linear transfer function models inapplicable.

[0004] Advanced international laboratories, such as the German Electron Synchrotron Radiation Research Center (DESY) and the High Energy Accelerator Research Organization (KEK) in Japan, typically use a two-dimensional parameter sweep to tune the PI parameters. The basic idea is to predetermine the adjustable ranges of the P and I parameters. Then, the P parameter is fixed, and the I parameter is swept point by point, recording the stability of the cavity pressure signal for each set of PI parameters. The P parameter is increased, and the I parameter is swept point by point, recording the stability of the cavity pressure signal for each set of PI parameters. This process is repeated, ultimately resulting in a two-dimensional contour map with the PI parameters as the abscissa and ordinate, and the contour data representing the stability of the cavity pressure signal. However, this method has several practical challenges. The most critical difficulty is that, for certain PI parameters, the system poles may approach the negative half-axis region of the complex plane, leading to loop instability during the sweep. To eliminate loop instability, the adjustable ranges of the PI parameters must be selected as conservatively as possible, making it difficult to identify the global optimal position in the two-dimensional contour map.

[0005] In summary, the tuning of PI parameters is crucial to the stability of the RF field and the longitudinal performance of the particle beam. Due to the unique characteristics of accelerator RF systems, traditional parameter tuning methods are no longer applicable. The existing two-dimensional scanning method also faces practical challenges, making it difficult to pinpoint the optimal parameters, hindering its widespread adoption and application in particle accelerators. Summary of the Invention

[0006] The present invention aims to solve at least one of the technical problems existing in the prior art. To address this issue, the present invention provides a method, apparatus, device, and medium for online global optimization of feedback control parameters in a low-level radio frequency system. These methods effectively tune the PI parameters, not only finding the globally optimal PI parameters but also preventing loop instability.

[0007] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is: In a first aspect, the present invention provides a method for online global optimization of feedback control parameters of a radio frequency low-level system, comprising: Generate Parameters and parameters A parameter sweep grid, where is the proportional gain, is the integral gain; The grid is scanned using an “S” path to obtain several PI parameter combinations; Collect the cavity pressure signal of the RF cavity under each set of PI parameters; Based on the cavity pressure signal of each set of PI parameters, the rms mean of the cavity pressure is calculated; A contour map was made based on the rms mean of the cavity pressure, and the optimal PI parameter combination was obtained based on the contour map.

[0008] In one possible implementation, the parameters are generated and parameters The parameter sweep mesh of , including: Determine parameters With parameters The boundary value of Based on the determined boundary value, generate according to the set principle indivual Parameter Set and indivual Parameter Set , and obtain the parameter sweep grid.

[0009] In one possible implementation, the parameter sweep grid is: .

[0010] In one possible implementation, the parameters With parameters The process of the boundary value is: parameter The process of determining the boundary value of is as follows: Set to 0 and gradually increase Until the feedback loop oscillates due to excessive gain, The value is recorded as Set the maximum value of the network scan 0.7~0.8 times Minimum value Should be less than 1 / 50; parameter The process of determining the boundary value of is as follows: The maximum value Set as the cavity half bandwidth ω 0.5 100 times, that is ,parameter r Minimum value of r 1 is set to ω 0.5 1 / 10~1 / 2 of.

[0011] In one possible implementation, an “S”-shaped path is used to scan the parameter scanning grid to obtain several PI parameter combinations. The specific process is as follows: the minimum parameter pair ( K p1 , r 1) Start scanning and maintain proportional gain firstK p1 Unchanged, scan parameters from small to large r ; When the parameter r Scan to maximum value r m When , the scanning parameter pair is ( K p1 , r m ), the next scan parameter pair is ( K p2 , r m ), and then proceed in sequence to complete the "S" type scanning path, generating PI parameter combinations, specifically: .

[0012] In one possible implementation, the rms mean of the cavity pressure is calculated based on the cavity pressure signal under each set of PI parameters. The specific process is as follows: The collected cavity pressure signal V c Expressed in plural form V c =| V c | e j∠Vc , where | V c | is the amplitude, ∠ V c is the phase; For a single measurement, the amplitude stability index and phase stability index are calculated as follows: ; in, n is the total number of collections, For the i The measured cavity pressure amplitude, For the i The cavity pressure phase measured at this time is and represent the mean of amplitude and phase respectively, and The smaller it is, the more stable the cavity pressure is; For each set of PI parameters, multiple measurements were performed and the average was calculated to obtain the rms mean of the cavity pressure.

[0013] In one possible implementation, a contour map is created based on the rms mean value of the cavity pressure, and an optimal PI parameter combination is obtained based on the contour map, including: Based on the rms values ​​of the amplitude and phase of the cavity pressure under different PI parameter combinations, a two-dimensional contour map is obtained, whose horizontal and vertical coordinates are the parameters and parameters, the data on the contour line is the rms radius of the cavity pressure signal; In the contour map, always look for the closed curve with the smallest rms value, and its center position is the optimal PI parameter , when there are multiple closed curves with equal rms values, select Smaller closed curve.

[0014] In a second aspect, the present invention further provides a device for online global optimization of RF low-level system feedback control parameters, the device comprising: A parameter generation unit configured to generate parameters and parameters A parameter sweep grid, where is the proportional gain, is the integral gain; A scanning unit is configured to scan a grid using an "S"-shaped path scanning parameter to obtain a plurality of PI parameter combinations; a cavity pressure acquisition unit configured to acquire a cavity pressure signal of the radio frequency cavity under each set of PI parameters; an rms calculation unit, configured to calculate an rms mean value of the cavity pressure based on the cavity pressure signal under each set of PI parameters; The control parameter acquisition unit is configured to create a contour map based on the rms mean value of the cavity pressure and acquire an optimal PI parameter combination based on the contour map.

[0015] In a third aspect, the present invention further provides an electronic device, comprising: at least one processor; and A memory in communication with the processor; wherein, The memory stores instructions that can be executed by the processor, and the instructions are executed by the processor to enable the processor to perform any one of the methods described above.

[0016] In a fourth aspect, the present invention further provides a computer-readable storage medium storing one or more programs, wherein the one or more programs include computer instructions, and the computer instructions are used to enable a computer to execute any one of the methods described.

[0017] The present invention adopts the above technical solution, which has the following characteristics: 1. The present invention can scan within a wider parameter range, thereby effectively locking the globally optimal PI parameter combination; at the same time, by optimizing the scanning path and scanning mode, loop instability is avoided, ensuring the stable operation of the system.

[0018] 2. The present invention can be deployed inside an existing digital low-level system to achieve online optimization of PI parameters.

[0019] In summary, the present invention can be widely applied to feedback parameter optimization of particle accelerator LLRF systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present invention. Throughout the drawings, the same reference numerals are used to denote the same components. In the drawings: Figure 1 This is the schematic diagram of the PI controller of the LLRF system.

[0021] Figure 2 Schematic diagram of traditional PI parameter scanning. (a) The traditional PI scanning method is prone to loop instability in the unstable area shown in the figure, and after narrowing the scanning area, the optimal PI parameter combination usually appears on the scanning boundary; (b) is the contour map of the traditional PI scanning method when adjusting the stability of the cavity pressure phase; (c) is the cavity pressure oscillation phenomenon in the upper left corner of the traditional PI scanning method.

[0022] Figure 3 The scanning area obtained by the traditional PI scanning method and the scanning area obtained by the PI scanning method proposed in the embodiment of the present invention are compared.

[0023] Figure 4 Schematic diagram of scanning scheme comparison, where (a) is the traditional "N" type parameter scanning scheme; (b) is the implementation of the embodiment of the present invention “S” type parameter sweep scheme for parameter tuning.

[0024] Figure 5 The low-level online measurement of superconducting cavity voltage signal of the embodiment of the present invention 、 and Experimental block diagram.

[0025] Figure 6 This is a flow chart of a method for online global optimization of feedback control parameters of a radio frequency low-level system proposed in an embodiment of the present invention.

[0026] Figure 74 is an example of the use of an embodiment of the present invention in a CAFe device, wherein Figure (a) is an rms radius heat map of the cavity pressure amplitude and phase obtained by scanning the method proposed in the present invention on CM2-4 of the CAFe device according to an embodiment of the present invention; Figure (b) is an rms radius heat map of the cavity pressure amplitude and phase obtained by scanning the method proposed in the present invention on CM2-5 of the CAFe device according to an embodiment of the present invention; and Figure (c) is an rms radius heat map of the cavity pressure amplitude and phase obtained by scanning the method proposed in the present invention on CM2-6 of the CAFe device according to an embodiment of the present invention.

[0027] Figure 8 This is a structural diagram of an electronic device of the present invention. DETAILED DESCRIPTION

[0028] It should be understood that the terms used herein are for the purpose of describing specific example embodiments only and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "comprise", "include", "contain" and "have" are inclusive and therefore specify the presence of stated features, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring them to be performed in the specific order described or illustrated, unless the order of execution is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0029] Although the terms first, second, third, etc. can be used in the text to describe multiple elements, components, regions, layers and / or sections, these elements, components, regions, layers and / or sections should not be limited by these terms. These terms can only be used to distinguish an element, component, region, layer or section from another region, layer or section. Unless the context clearly indicates otherwise, terms such as "first", "second" and other numerical terms do not imply order or sequence when used in the text. Therefore, the first element, component, region, layer or section discussed below can be referred to as the second element, component, region, layer or section without departing from the teaching of the example embodiments.

[0030] For ease of description, spatially relative terms may be used herein to describe the relationship of one element or feature relative to another element or feature as shown in the figures, such as "inside," "outside," "inner side," "outer side," "lower," "upper," etc. Such spatially relative terms are intended to encompass different orientations of the device in use or operation in addition to the orientation depicted in the figures.

[0031] The two-dimensional scanning method proposed in the prior art also faces some problems in practical application, and it is difficult to lock the optimal parameter position, which restricts its comprehensive promotion and application in the field of particle accelerators. The method, device, equipment and medium for online global optimization of RF low-level system feedback control parameters provided by the present invention include: generating parameters and parameters A parameter sweep grid, where is the proportional gain, The method uses an S-shaped path to scan the grid parameters to obtain several PI parameter combinations; acquires the cavity pressure signal of the RF cavity under each set of PI parameters; calculates the RMS mean of the cavity pressure based on the cavity pressure signal for each set of PI parameters; creates a contour map based on the RMS mean of the cavity pressure, and uses the contour map to determine the optimal PI parameter combination. Therefore, the present invention can effectively tune the PI parameters, not only finding the globally optimal PI parameters but also preventing loop instability.

[0032] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. Rather, these embodiments are provided to enable a more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0033] PID control is a classic control strategy that is widely used in industrial automation and process control. Since radio frequency systems place more emphasis on the steady-state performance of the loop, PID control is often simplified to PI control in the LLRF (low-level control) field. Figure 1 As shown in Figure 1, the PI controller adjusts the system output through two gain components: proportional gain P and integral gain I. Proportional control adjusts the control output based on the current error value, providing fast response and reducing transient errors. Integral control adjusts the control output based on the accumulated error, eliminating the system's steady-state error and improving system accuracy.

[0034] In the RF cavity, the control relationship between the output and input of PI control is as follows:

[0035]

[0036] in, is the voltage signal output by the PI controller, such as Figure 1 As shown, in the RF low-level loop, the PI controller output is generally directly transmitted to the solid-state amplifier SSA through the analog-to-digital converter DAC. is the proportional gain, is the integral gain, It's time The error signal, is from the initial time 0 to time The error integral of .

[0037] By performing Laplace transform on the above equation and assuming that the Laplace transform of the error signal is , then the above formula can be transformed into:

[0038] in, is the transfer function, which is the output With input ratio.

[0039] Note that in the LLRF system, two basic cavity pressure feedback loops are usually included. In the amplitude phase control mode, one loop is used to control the amplitude of the cavity pressure, and the other loop is used to control the phase of the cavity pressure. In the I / Q control mode, one loop is used to control the in-phase component of the cavity pressure, and the other loop is used to control the orthogonal component of the cavity pressure. The present invention mainly relates to the amplitude phase control mode, and the I / Q control mode is similar to it and will not be described in detail. In order to distinguish the amplitude and phase control loops, this embodiment defines the PI parameters of the amplitude control loop as , Correspondingly, the PI parameters of the phase control loop are defined as .

[0040] Two-dimensional parameter scanning is commonly used internationally to achieve and Parameter adjustment, such as Figure 2 (a) In the actual LLRF system, the PI parameters need to be optimized. When the PI parameters are too small, the loop cannot fully suppress the interference signal, resulting in a large steady-state error of the cavity pressure, such as Figure 2 (b) shows that it also cannot provide a sufficiently large loop bandwidth, which reduces the dynamic performance of the low-level loop. However, when the P parameter and I parameter are too large, the loop gain of the system may exceed the critical gain, eventually causing the loop oscillation to become unstable, as shown in Figure 2 In addition, when the P parameter is too small and the I parameter is too large, it may cause zero-pole mismatch in the closed-loop system, and eventually induce loop oscillation, as shown in Figure 2 (a) is shown in the upper left corner. To avoid loop instability during parameter sweeping and resulting in measurement interruption, the PI parameter grid is usually scanned within a relatively conservative rectangular area. In some cases, this area does not completely cover the global optimal PI parameters. Figure 2 (b) In accordance with Figure 2 The measured results of parameter sweep in the rectangular area in (a). Figure 2(a) The PI combination in the upper left corner has caused the cavity field to oscillate. The cavity pressure phase waveform corresponding to the black dot in the upper left corner is as follows: Figure 2 (c) If the range of the rectangular area is further expanded, it may directly lead to the collapse of the low-level loop.

[0041] To solve the above problems, this embodiment proposes a new PI parameter scanning method, which can obtain the global optimal PI parameter combination while avoiding cavity pressure oscillation. Do the following conversion:

[0042] in, is the transfer function Zero point.

[0043] It should be noted that the present invention designs two loops with a total of 4 PI parameters, which are named K xy In the form of. The first small subscript " x " takes the value "a" or "p", representing the amplitude control loop and phase control loop respectively. The second small subscript " y " takes the value "p" or "i", representing the proportional gain and integral gain in the PI parameters respectively, as shown in Table 1 below: Table 1 PI parameters

[0044] Since the PI parameters of the amplitude and phase control loop in the present invention are and Do the same processing, unless otherwise specified, the following text will use Represents the PI parameters of the above two loops, and no special distinction is made. In order to achieve a reasonable zero-pole configuration, The value of cannot be too large. Then, by scanning the parameters and , and find the optimal and Parameter combination to achieve and Parameter adjustment. Figure 3 As shown, in and On the two-dimensional scan map with coordinates, and The two-dimensional parameter grid is no longer a rectangle, but a right triangle. The maximum value of (i.e. the slope corresponding to the hypotenuse of the right triangle), that is, it is possible to bypass the unstable area and obtain the global optimal and combination.

[0045] Based on the above principles, the method for online global optimization of RF low-level system feedback control parameters provided in this embodiment includes: S1. Generate and The scanning grid.

[0046] In this embodiment, the generated and The scanning grid should first determine the parameters and The boundary values ​​of , i.e. the maximum and minimum values. Among them, the scanning parameters The maximum value of can be determined by experiment, the process is as follows: Set to 0 and gradually increase Parameters until the feedback loop oscillates due to excessive gain. The value is recorded as , you can set the maximum value for scanning the network value 0.7~0.8 times ,For example For superconducting radio frequency cavities, the minimum value( K p1 ) should generally be less than 1 / 50 of. For example: K p , max =200, then K pn Optional is 150, K p1 The value may be set to 2. Scan Parameters r The maximum value r m Can be set to cavity half bandwidth ω 0.5 30~100 times of . r Minimum value of r 1 can be set to ω 0.5 1 / 10~1 / 2, for example For example, if the half bandwidth of the cavity is ω 0.5 is 1000 radians per second (corresponding to approximately 160 Hz), then r m The optional value is 100000; r1 can be selected as 100, as an example, but not limited to this. After determining the boundary value ( K p1 , K pn )and( r 1, r m ), the parameter set can be determined according to the geometric principle. For example, if K p1 =2, K pn =256, then the scan parameter set [ K p1 , K p2 ,… K pn ] can be selected as [2,4, …,256]. Scan parameter set [ r 1, r 2,… r m The selection principle of ] is the same as that of , so I will not repeat it here. indivual Parameter sets and parameter sets and indivual Parameter Set , the generated parameter sweep mesh is: .

[0047] Among them, the parameter pair on the lower left is Corresponding parameter pairs The minimum value of Corresponding parameter pairs The maximum value of .

[0048] S2, use the "S" type path to scan the above parameters to generate a grid. PI parameter combinations.

[0049] It should be noted that the traditional method generally directly uses the integral gain With proportional gain As the scanning parameter to construct the scanning network, this embodiment uses the integral gain as well as and Ratio As the scanning parameter. The traditional "N" scanning path is as follows Figure 4 As shown in (a), the process is as follows: from the minimum parameter pair ( K p1 , r 1) Start scanning and maintain proportional gain first Kp Unchanged, scan parameters from small to large r ; When the parameter r Scan to maximum value r m When , the scanning parameter pair is ( K p1 , r m ), the next scan parameter pair is ( K p2 , r 1). It can be seen that the parameters r m and r 1 has a large difference in value ( r m >200 r 1). In a closed-loop control system, a sudden change in control parameters by a large multiple may cause transient instability in the system. To avoid the above problem, this embodiment adopts the following Figure 4 (b) shows the “S” type scanning path. The scanning process is as follows: As with the traditional method, the minimum parameter pair ( K p1 , r 1) Start scanning. First maintain the proportional gain K p Unchanged, scan parameters from small to large r ; When the parameter r Scan to maximum value r m When , the scanning parameter pair is ( K p1 , r m ), the next scan parameter pair is ( K p2 , r m ), it can be seen that the parameters K p1 and K p2 The value difference is small (for example: K p2 =K p1 ). The “S” type scanning path effectively avoids the instantaneous instability of the system caused by the sudden change of closed-loop parameters. Figure 4 As shown in (b), according to the "S" path, the PI parameters are configured using a python script to generate The PI parameter combinations are: .

[0050] S3. Online acquisition of the cavity pressure signal of the RF cavity under each set of PI parameters.

[0051] In this embodiment, for each group Parameters, first convert them into The parameters are then input into the LLRF system using the EPCIS (Experimental Physics and Industrial Control System) commonly used in the accelerator field, and the cavity sampling signal is obtained through the RF low-level system based on the online measurement method. P t , cavity incident signal and reflected signals Then the cavity pressure of the RF cavity is obtained and forward voltage and reverse voltage For each group Parameter combination, record several groups of cavity signals, for example 5 to 20 groups of cavity signals, including: cavity pressure, cavity incident and reflected signals, etc.

[0052] Furthermore, the low-level system measures the cavity sampling signal online , cavity incident and reflected signals and signal, where 、 and The signals correspond to the cavity pressure of the superconducting cavity , forward and reverse voltage and The voltage involved in the present invention (such as 、 and etc.) are all in complex form, which are expressed in the form of amplitude and phase, for example: V =| V | e j∠V , where | V | is the amplitude, ∠ V For phase.

[0053] S4. Read the cavity pressure signal under each set of PI parameters and calculate the rms mean.

[0054] In this embodiment, different The stability of the cavity pressure signal under the combination. V c is a complex number and can be expressed as V c =| V c | e j∠Vc , hence, the stability here includes the amplitude | Vc |Stability and phase ∠ V c This embodiment uses the Root Mean Square Radius (RMS radius) as the stability evaluation indicator.

[0055] For a single measurement, the amplitude stability index and phase stability index are calculated as follows:

[0056] A single measurement result may be affected by random noise and interference. Combination, multiple measurements should be performed and the average should be calculated. Taking the measurement of amplitude stability index as an example, this embodiment performs 7 measurements, and each measurement uses the above formula to calculate the rms value. The results of these 7 measurements are stored in the array [ a 1, a 2,… a 7], name this array V c_rms In the array V c_rms In the example, we need to set the maximum value max( V c_rms ) and minimum value min( V c_rms ) is removed to eliminate the influence of occasional factors (such as impulse noise). Assume that max( V c_rms ) and min( V c_rms ) respectively correspond to a 2 and a 5. Remove a 2 and a The new array after 5 V′ c_rms =[ a 1, a 3, a 4, a 6, a 7], the new array is averaged to obtain the final amplitude stability index. According to the above process, the superconducting cavity pressure amplitude is calculated. V c The algorithm for the rms mean of | is as follows:

[0057] It should be noted that the superconducting cavity phase ∠ V c Calculation method of stability index and cavity pressure amplitude | V c The calculation method of | is exactly the same and will not be repeated here.

[0058] S5. Create a contour map based on the calculated rms cavity pressure to obtain the optimal PI parameter combination.

[0059] In this embodiment, a two-dimensional contour map is obtained based on the calculation of the rms radius of the amplitude and phase of the cavity pressure under different sets of PI parameters, and its horizontal and vertical coordinates are and Parameters, the data on the contour line is the rms radius of the cavity pressure signal.

[0060] like Figure 7 As shown in (a), the values ​​on the contour lines are the calculated rms values ​​(e.g. 0.0282% and 0.04°). In the contour map, find the closed curve with the smallest rms value, and its center is the optimal parameter. Figure 7 In (a), the closed curve with the smallest cavity pressure amplitude rms value is 0.0282%, and the closed curve with the smallest cavity pressure phase rms value is 0.04°. The center positions of the two closed curves are marked with black squares. The parameters are: (13, 10000) and (17, 20000).

[0061] like Figure 7 As shown in (b) on the left and 7 (c) on the right, when there are multiple closed curves with equal rms values, the one that should be selected first is Smaller closed curve.

[0062] The application of the method for online global optimization of feedback control parameters of a radio frequency low-level system of the present invention is described in detail below through specific embodiments.

[0063] The superconducting cavity used in this embodiment is a half-wavelength superconducting cavity (HWR010, whose relativistic velocity is 0.1). The resonant frequency of the cavity is 162.5 MHz, and the loaded quality factor is ( ) is approximately The online data acquisition system used in this embodiment is as follows: Figure 5 As shown, it includes a digital low-level system 1, a solid-state power source 2, a directional coupler 3, an input coupler 4, a radio frequency cavity 5, a signal extraction coupler 6, and a host computer 7. The output end of the digital low-level system 1 is connected to the input end of the solid-state power source 2, the output end of the solid-state power source 2 is connected to the input end of the directional coupler 3, the output end (through port) of the directional coupler 3 is fed into the radio frequency cavity 5 through the input coupler 4, and the directional coupler 3 is used to extract the cavity incident signal of the radio frequency cavity 5. P f and cavity reflection signal P rThe signal extraction coupler 6 is connected to the RF cavity 5 to extract the cavity sampling signal. The cavity incident signal, cavity reflection signal and cavity sampling signal are sent to the digital low-level system 1 after down-conversion. The digital low-level system 1 is based on the cavity incident signal. P f , cavity reflection signal P r and cavity sampling signal P t Demodulate the corresponding cavity pressure , forward voltage and reverse voltage and uploaded to the host computer 7 via the data bus.

[0064] Based on the above system, such as Figure 6 As shown, the method for online global optimization of RF low-level system feedback control parameters in this embodiment has the following specific process: 1. Generate and Parameter sweep mesh of .

[0065] In this embodiment, the indivual parameter: and indivual parameter: , generate a parametric sweep mesh: .

[0066] in, The selection can be a linear arithmetic sequence or a nonlinear sequence (such as a geometric sequence). In general, due to the response of the system The small changes are not sensitive enough, so you can usually choose is a geometric progression. For example .

[0067] use Figure 4 The S-shaped scanning method shown in (b) scans the parameters point by point, generating indivual Parameter combination: .

[0068] Scanning Phase PI parameters When the PI parameters of the amplitude are maintained The preset position remains unchanged. The preset value of can usually be selected as the critical value , The preset value of can usually be selected as 1 to 10 times the cavity half bandwidth (for exampleK ai =5 ω 0.5 After completing the phase control loop PI parameter scan, a set of optimal Parameters. For example, after scanning the superconducting cavity CM 2-4 After the phase control loop, as Figure 7 (a) Right, we can get the optimal Parameters (17, 20000). Among them, , then the optimal PI parameters of the phase control loop ( K pp , K pi ) is (17, 340000). Set the PI parameters of the phase control loop to the above optimal parameters and remain unchanged (ie, the PI parameters are set to K pp =17, K pi =340000), the sweep amplitude control loop Parameters, such as Figure 7 (a) As shown on the left, the optimal ( ) is (13, 10000), where r a = K ai / K ap , then the optimal PI parameters of the phase control loop ( K ap , K ai ) is (13, 130000). The amplitude and phase PI parameter tuning method is equivalent to sequentially scanning the two phase and amplitude PI control loops.

[0069] 2. Measuring the cavity pressure of a superconducting cavity , forward and reverse voltage and .

[0070] In this embodiment, for each group Parameters, first convert them into Parameters are then entered into the LLRF system using EPCIS and Figure 5 The experimental block diagram shown in the figure collects cavity pressure data: the cavity sampling signal of the superconducting cavity is measured online using the signal extraction coupler 6. ; Use directional coupler 3 to measure the cavity incident signal and reflected signal online and ,in, 、 and After the above RF signals are down-converted and digitized, the digital low-level system 1 obtains the original baseband voltage signal, i.e., the cavity pressure. , forward voltage and reverse voltage The above signals are all expressed in complex form as amplitude and phase, for example: V =| V | e j∠V , where | V | is the amplitude, ∠ V For phase.

[0071] In order to eliminate the influence of random errors, for each group Parameters, a total of 5 to 20 sets of cavity pressure data are measured and recorded (7 sets are selected in this embodiment), the sampling rate is 0.01 MHz, a total of 10,000 points, and the corresponding waveform data duration is 1 second. For each cavity, first scan according to the scanning method mentioned in step 1. Phase Parameter grid, measure and store different Under parameter combination 、 and Signal.

[0072] 3. Calculate each group Under the parameter combination, the cavity pressure phase and amplitude rms radius, and draw a two-dimensional contour map to find the optimal PI parameters.

[0073] In this embodiment, according to the cavity pressure measured in step 2 The stability of the signal is described by the following indicators:

[0074] in, , and Respectively represent The amplitude and phase of and represent the mean of amplitude and phase respectively, and The smaller it is, the more stable the cavity pressure is.

[0075] In the sweep range Parameters, for each group The following 5~20 sets of measurement data are first calculated according to the above formula The mean value after removing the maximum and minimum values ​​is then used as an indicator to measure this group The stability of the cavity pressure amplitude under the parameters. Similarly, Parameters, As an indicator for sorting, the maximum and minimum values ​​will be removed. The mean is used to measure the The stability of the cavity pressure phase under the parameters is determined, thereby completing the parameter tuning of the two PI control loops of cavity pressure amplitude and phase.

[0076] PI parameter scanning results: Based on the above scanning method, a PI parameter tuning experiment was carried out on a half-wavelength HWR superconducting cavity. Figure 7 These are the experimental results on different cavities. For each cavity, the proposed method can find the globally optimal PI parameters. Figure 7 (b) Right and Figure 2 (b) is the PI parameter scanning process of the cavity pressure phase of the same cavity (CM2-5). Figure 7 As shown, the method proposed by the present invention can be used to avoid Figure 2 (b) While scanning the oscillation region in the upper left corner, a larger parameter range is scanned to determine the globally optimal PI parameter combination, thereby improving the operating stability of the cavity and the longitudinal indicators of the beam.

[0077] Example 2: The above-mentioned Example 1 provides a method for online global optimization of the feedback control parameters of the RF low-level system. Correspondingly, this embodiment provides an apparatus for online global optimization of the feedback control parameters of the RF low-level system. The apparatus provided in this embodiment can implement the method for online global optimization of the feedback control parameters of the RF low-level system of Example 1. The apparatus can be implemented by software, hardware, or a combination of software and hardware. For the convenience of description, this embodiment is described separately by functions divided into various units. Of course, during implementation, the functions of each unit can be implemented in the same or multiple software and / or hardware. For example, the apparatus may include integrated or separate functional modules or functional units to perform the corresponding steps of each method in Example 1. Since the apparatus of this embodiment is basically similar to the method embodiment, the description process of this embodiment is relatively simple. For relevant points, please refer to the partial description of Example 1. The embodiment of the apparatus for online global optimization of the feedback control parameters of the RF low-level system provided by the present invention is merely illustrative.

[0078] Specifically, the present invention also provides a device for online global optimization of RF low-level system feedback control parameters, the device comprising: A parameter generation unit configured to generate parameters and parameters A parameter sweep grid, where is the proportional gain, is the integral gain; A scanning unit is configured to scan a grid using an "S"-shaped path scanning parameter to obtain a plurality of PI parameter combinations; a cavity pressure acquisition unit configured to acquire a cavity pressure signal of the radio frequency cavity under each set of PI parameters; an rms calculation unit, configured to calculate an rms mean value of the cavity pressure based on the cavity pressure signal under each set of PI parameters; The control parameter acquisition unit is configured to create a contour map based on the rms mean value of the cavity pressure and acquire an optimal PI parameter combination based on the contour map.

[0079] Example 3: This embodiment provides an electronic device corresponding to the method for online global optimization of RF low-level system feedback control parameters provided in this embodiment one. The electronic device can be an electronic device for a client, such as a mobile phone, a laptop computer, a tablet computer, a desktop computer, etc., to execute the method of embodiment one.

[0080] like Figure 8 As shown, the electronic device includes a processor, a memory, a communication interface and a bus. The processor, the memory and the communication interface are connected via a bus to communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Component (EISA) bus, etc. The memory stores a computer program that can be run on the processor. When the processor runs the computer program, it executes the method of embodiment 1. The implementation principle and technical effect are similar to those of embodiment 1 and will not be repeated here. Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computing device to which the solution of the present application is applied. The specific computing device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0081] In a preferred embodiment, the logic instructions in the aforementioned memory can be implemented in the form of a software functional unit and, when sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the portion that contributes to the prior art, or the portion of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), and an optical disk.

[0082] In a preferred embodiment, the processor may be a central processing unit (CPU), a digital signal processor (DSP), or other general-purpose processors, which are not limited herein.

[0083] Embodiment 4: This embodiment provides a computer-readable storage medium storing one or more programs, wherein the one or more programs include computer instructions. When the computer instructions are executed by a computer, the computer executes the method provided in the above-mentioned embodiment 1.

[0084] Embodiment 5: This embodiment provides a computer program product, which may include a computer program stored on a computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the method provided in the above-mentioned embodiment 1. Its implementation principle and technical effects are similar to those of embodiment 1 and will not be repeated here.

[0085] In a preferred embodiment, a computer-readable storage medium may be a tangible device that retains and stores instructions used by an instruction execution device, such as, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any combination thereof. The computer-readable storage medium stores computer program instructions that cause a computer to execute the method provided in the first embodiment.

[0086] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (apparatus), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0087] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0088] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0089] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In the description of this specification, the reference terms "a preferred embodiment", "further", "specifically", "in the present embodiment", etc. mean that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiment of this specification. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.

[0090] 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 various embodiments of the present invention.

Claims

1. A method for online global optimization of feedback control parameters of RF low-level systems, It is characterized in that include: Generate Parameters and parameters The parameter sweep grid is is the proportional gain, is the integral gain; Use "S" type path scanning parameter scanning grid to obtain several PI parameter combinations; Collect the cavity pressure signal of the RF cavity under each set of PI parameters; Based on the cavity pressure signal of each set of PI parameters, the rms mean of the cavity pressure is calculated; A contour map was made based on the rms mean of the cavity pressure, and the optimal PI parameter combination was obtained based on the contour map.

2. The method for online global optimization of RF low-level system feedback control parameters according to claim 1, It is characterized in that Generate Parameters and parameters The parameter sweep grid includes: Determine the parameters With parameters The boundary value of Based on the determined boundary values, the indivual Parameter Set and indivual Parameter Set , and obtain the parameter sweep grid.

3. The method for online global optimization of RF low-level system feedback control parameters according to claim 2, It is characterized in that The parameter sweep mesh is: 。 4. The method for online global optimization of RF low-level system feedback control parameters according to claim 3, It is characterized in that Determine the parameters With parameters The process of the boundary value is: parameter The process of determining the boundary value is as follows: Set to 0 and gradually increase Until the feedback loop oscillates due to excessive gain, The value is recorded as , set the maximum value of scanning network 0.7~0.8 times ; Minimum Should be less than 1 / 50 of parameter The process of determining the boundary value is as follows: The maximum value of Set as cavity half bandwidth ω 0.5 30 to 100 times of r Minimum value of r 1 Set as ω 0.5 1 / 10~1 / 2 of.

5. The method for online global optimization of RF low-level system feedback control parameters according to claim 4, It is characterized in that Use the "S" path to scan the parameter scanning grid to obtain several PI parameter combinations. The specific process is: from the minimum parameter pair in the lower left corner of the parameter scanning network ( K p1 , r 1 ) starts scanning, first maintain the proportional gain K p1 Unchanged, scan parameters from small to large r ; When the parameter r Scan to maximum value r m When , the scanning parameter pair is ( K p1 , r m ), the next scan parameter pair is ( K p2 , r m ), and then proceed in sequence to complete the "S" type scanning path, generating PI parameter combinations, specifically: 。 6. The method for online global optimization of RF low-level system feedback control parameters according to claim 5, It is characterized in that Based on the cavity pressure signal under each set of PI parameters, the rms mean of the cavity pressure is calculated. The specific process is: The collected cavity pressure signal V c Use plural representation V c =| V c | e j∠Vc , where | V c | is the amplitude, ∠ V c is the phase; For a single measurement, the amplitude stability index and phase stability index are calculated as follows: ; in, n is the total number of collections, For the i The measured cavity pressure amplitude, For the i The cavity pressure phase measured at this time is and represent the mean of amplitude and phase respectively, and The smaller it is, the more stable the cavity pressure is; For each set of PI parameters, multiple measurements were performed and the average was calculated to obtain the rms mean of the cavity pressure.

7. The method for online global optimization of RF low-level system feedback control parameters according to claim 6, It is characterized in that A contour map is made based on the rms mean value of the cavity pressure, and the best PI parameter combination is obtained based on the contour map, including: Based on the rms mean values ​​of the amplitude and phase of the cavity pressure under different PI parameter combinations, a two-dimensional contour map is obtained, whose horizontal and vertical axes are the parameters and parameters , the data on the contour line is the rms radius of the cavity pressure signal; In the contour map, always look for the closed curve with the smallest rms value, and its center position is the optimal PI parameter , when there are multiple closed curves with equal rms values, select Smaller closed curve.

8. A device for online global optimization of feedback control parameters of a radio frequency low-level system, It is characterized in that The device includes: A parameter generation unit configured to generate parameters and parameters The parameter sweep grid is is the proportional gain, is the integral gain; A scanning unit is configured to scan a parameter scanning grid using an "S"-shaped path to obtain a plurality of PI parameter combinations; A cavity pressure acquisition unit is configured to acquire a cavity pressure signal of the radio frequency cavity under each set of PI parameters; an rms calculation unit, configured to calculate an rms mean value of the cavity pressure based on the cavity pressure signal under each set of PI parameters; The control parameter acquisition unit is configured to make a contour map based on the rms mean value of the cavity pressure, and acquire the best PI parameter combination based on the contour map.

9. An electronic device, It is characterized in that include: at least one processor; as well as A memory communicatively connected to the processor; wherein, The memory stores instructions executable by the processor, and the instructions are executed by the processor to enable the processor to perform the method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing one or more programs, It is characterized in that The one or more programs include computer instructions for causing a computer to execute the method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Analog quantity control loop controller parameter setting method and device

    CN109031943A

  • Control method for optimizing gain parameters of cross-coupled controller in numerical control machining

    CN112363399A

  • Method and device for measuring amplitude-frequency response and phase-frequency response of radio frequency cavity

    CN116466135A

  • Beam information online measurement method and device based on beam load effect

    CN118244328A

  • Radio frequency carbon dioxide laser control method based on surface detection

    CN118438062A

Cited By

  • Superconducting cavity parameter online rapid measurement method, device and equipment based on frequency sweep algorithm and storage medium

    CN119375597A