CN117562543A - An active magnetic compensation method and system - Google Patents
An active magnetic compensation method and system Download PDFInfo
- Publication number
- CN117562543A CN117562543A CN202311429952.0A CN202311429952A CN117562543A CN 117562543 A CN117562543 A CN 117562543A CN 202311429952 A CN202311429952 A CN 202311429952A CN 117562543 A CN117562543 A CN 117562543A
- Authority
- CN
- China
- Prior art keywords
- compensation
- magnetic
- signal
- voltage
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims description 13
- 238000012544 monitoring process Methods 0.000 claims description 73
- 238000012545 processing Methods 0.000 claims description 18
- 238000005070 sampling Methods 0.000 claims description 6
- 238000004364 calculation method Methods 0.000 claims description 4
- 238000001914 filtration Methods 0.000 claims 2
- 230000001629 suppression Effects 0.000 abstract description 2
- 230000000694 effects Effects 0.000 description 6
- 238000001514 detection method Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000007613 environmental effect Effects 0.000 description 4
- 239000000284 extract Substances 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000006698 induction Effects 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 206010003119 arrhythmia Diseases 0.000 description 1
- 230000006793 arrhythmia Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000747 cardiac effect Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 201000010099 disease Diseases 0.000 description 1
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 1
- 239000003814 drug Substances 0.000 description 1
- 230000005358 geomagnetic field Effects 0.000 description 1
- 230000004807 localization Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 208000031225 myocardial ischemia Diseases 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/24—Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
- A61B5/242—Detecting biomagnetic fields, e.g. magnetic fields produced by bioelectric currents
- A61B5/243—Detecting biomagnetic fields, e.g. magnetic fields produced by bioelectric currents specially adapted for magnetocardiographic [MCG] signals
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B2562/00—Details of sensors; Constructional details of sensor housings or probes; Accessories for sensors
- A61B2562/18—Shielding or protection of sensors from environmental influences, e.g. protection from mechanical damage
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B2562/00—Details of sensors; Constructional details of sensor housings or probes; Accessories for sensors
- A61B2562/18—Shielding or protection of sensors from environmental influences, e.g. protection from mechanical damage
- A61B2562/182—Electrical shielding, e.g. using a Faraday cage
Landscapes
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Heart & Thoracic Surgery (AREA)
- Medical Informatics (AREA)
- Biophysics (AREA)
- Pathology (AREA)
- Engineering & Computer Science (AREA)
- Biomedical Technology (AREA)
- Cardiology (AREA)
- Physics & Mathematics (AREA)
- Molecular Biology (AREA)
- Surgery (AREA)
- Animal Behavior & Ethology (AREA)
- General Health & Medical Sciences (AREA)
- Public Health (AREA)
- Veterinary Medicine (AREA)
- Measuring Magnetic Variables (AREA)
Abstract
本发明公开一种主动磁补偿系统,包括:设于磁屏蔽桶内的参考磁强计及磁补偿线圈,参考磁强计的输出端与信号处理器的输入端连接,信号处理器的输出端通过压控电流源与补偿线圈连接;其中,参考磁强计定时采集磁屏蔽筒环境中的磁场强度T1,并将磁场强度T1发送至信号处理器,信号处理器输出补偿电压至压控电流源,压控电流源将补偿电压转换成补偿线圈的补偿电流,以使磁屏蔽筒环境中的磁场强度T1接近或达到目标磁场强度T0。本发明的主动磁补偿系统的补偿精度可达pT级,对环境中的低频磁噪声也能产生很好的抑制效果,适用于对精度要求较高的心磁图仪系统。
The invention discloses an active magnetic compensation system, which includes: a reference magnetometer and a magnetic compensation coil located in a magnetic shielding barrel. The output end of the reference magnetometer is connected to the input end of a signal processor. The output end of the signal processor It is connected to the compensation coil through a voltage-controlled current source; among them, the reference magnetometer regularly collects the magnetic field intensity T 1 in the magnetic shielding tube environment, and sends the magnetic field intensity T 1 to the signal processor, and the signal processor outputs the compensation voltage to the voltage-controlled The current source, the voltage-controlled current source converts the compensation voltage into the compensation current of the compensation coil, so that the magnetic field intensity T 1 in the magnetic shielding cylinder environment is close to or reaches the target magnetic field intensity T 0 . The active magnetic compensation system of the present invention has a compensation accuracy of up to pT level, can also produce a good suppression effect on low-frequency magnetic noise in the environment, and is suitable for magnetocardiograph systems that require higher accuracy.
Description
技术领域Technical field
本发明属于磁补偿技术领域,更具体地,本发明涉及一种主动磁补偿方法及系统。The present invention belongs to the technical field of magnetic compensation, and more specifically, the present invention relates to an active magnetic compensation method and system.
背景技术Background technique
人的心脏在电生理活动过程中会伴随极微弱生物磁场的产生,在诊断心脏相关疾病的过程中,心磁探测已经是必不可少的一环。作为一种无创功能检测技术,心磁图(MCG)已广泛应用于临床医学,如心肌缺血的定位、心律失常的判断、心脏负荷的诊断等。MCG信号的典型强度约为几十pT(10-12特斯拉),而地磁场强度为30μT~50μT(10-6特斯拉),这意味着MCG信号的采集经常受到环境磁场的影响。The human heart is accompanied by the generation of extremely weak biological magnetic fields during electrophysiological activities. In the process of diagnosing heart-related diseases, cardiomagnetic detection is already an indispensable part. As a non-invasive functional testing technology, magnetocardiography (MCG) has been widely used in clinical medicine, such as the localization of myocardial ischemia, the judgment of arrhythmia, and the diagnosis of cardiac load. The typical strength of the MCG signal is about tens of pT (10 -12 Tesla), while the geomagnetic field strength is 30μT ~ 50μT (10 -6 Tesla), which means that the collection of MCG signals is often affected by the environmental magnetic field.
为了抑制环境磁噪声的干扰,通常会使用被动磁屏蔽技术,如磁屏蔽室和磁屏蔽桶,但磁屏蔽室有着成本高、体积大的缺点,磁屏蔽桶的屏蔽性能也会受到其材料特性的影响。被动屏蔽技术的这些缺点限制了高精度测量仪器的测量范围,无法给高精度磁探测传感器带来稳定磁场环境,为了保证MCG信号质量同时控制成本,目前的主流方案是通过搭建主动磁补偿系统来进一步抑制环境磁噪声。In order to suppress the interference of environmental magnetic noise, passive magnetic shielding technology is usually used, such as magnetic shielding chambers and magnetic shielding buckets. However, magnetic shielding chambers have the disadvantages of high cost and large volume. The shielding performance of magnetic shielding buckets is also affected by its material properties. Impact. These shortcomings of passive shielding technology limit the measurement range of high-precision measuring instruments and cannot bring a stable magnetic field environment to high-precision magnetic detection sensors. In order to ensure the quality of MCG signals while controlling costs, the current mainstream solution is to build an active magnetic compensation system. Further suppress environmental magnetic noise.
目前应用于主动磁补偿系统的补偿算法都具有调参简单、方便操作的特点,在稳定的磁场环境可以生成对应的磁补偿量,但当环境中出现突变磁场和电子磁噪声时,补偿效果就大大下降,补偿精度也无法让人满意。The compensation algorithms currently used in active magnetic compensation systems have the characteristics of simple parameter adjustment and convenient operation. In a stable magnetic field environment, the corresponding magnetic compensation amount can be generated. However, when sudden magnetic field changes and electronic magnetic noise appear in the environment, the compensation effect will be reduced. Greatly reduced, the compensation accuracy is also unsatisfactory.
发明内容Contents of the invention
本发明提供一种主动磁补偿方法,旨在改善上述问题。The present invention provides an active magnetic compensation method, aiming to improve the above problems.
本发明是这样实现的,一种主动磁补偿系统,所述系统包括:The present invention is implemented as follows: an active magnetic compensation system, which includes:
设于磁屏蔽桶内的参考磁强计及磁补偿线圈,参考磁强计的输出端与信号处理器的输入端连接,信号处理器的输出端通过压控电流源与补偿线圈连接;A reference magnetometer and a magnetic compensation coil are installed in the magnetic shielding barrel. The output end of the reference magnetometer is connected to the input end of the signal processor, and the output end of the signal processor is connected to the compensation coil through a voltage-controlled current source;
其中,参考磁强计定时采集磁屏蔽筒环境中的磁场强度T1,并将磁场强度T1发送至信号处理器,信号处理器输出补偿电压至压控电流源,压控电流源将补偿电压转换成补偿线圈的补偿电流,以使磁屏蔽筒环境中的磁场强度T1接近或达到目标磁场强度T0。Among them, the reference magnetometer regularly collects the magnetic field intensity T 1 in the magnetic shielding tube environment, and sends the magnetic field intensity T 1 to the signal processor. The signal processor outputs the compensation voltage to the voltage-controlled current source, and the voltage-controlled current source will compensate the voltage. The compensation current is converted into the compensation coil so that the magnetic field intensity T 1 in the magnetic shielding cylinder environment is close to or reaches the target magnetic field intensity T 0 .
进一步的,信号处理器包括:Further, the signal processor includes:
磁噪声监测模块,期望信号追踪模块及磁补偿量处理模块,其中,磁噪声监测模块、期望信号追踪模块与磁补偿量处理模块连接,其中,Magnetic noise monitoring module, desired signal tracking module and magnetic compensation processing module, wherein the magnetic noise monitoring module, desired signal tracking module and magnetic compensation processing module are connected, where,
磁噪声监测模块将参考磁强计采集到的磁场强度T1作为反馈信号y,输出反馈信号y、反馈信号y的微分信号监测值y1、y2及监测总值y3;The magnetic noise monitoring module uses the magnetic field strength T 1 collected by the reference magnetometer as the feedback signal y, and outputs the feedback signal y, the differential signal monitoring values y 1 and y 2 of the feedback signal y, and the total monitoring value y 3 ;
期望信号追踪模块将设定的目标磁场强度T0作为期望信号v,输出期望信号v及其微分信号监测值v1、v2;The expected signal tracking module takes the set target magnetic field intensity T 0 as the expected signal v, and outputs the expected signal v and its differential signal monitoring values v 1 and v 2 ;
磁补偿量处理模块基于反馈信号y的微分信号监测值y1、y2与期望信号v的微分信号监测值v1、v2的差值来计算电压补偿分量u0,再基于磁噪声的总监测值y3对电压补偿分量u0进行补偿,获取电压总补偿量U,即信号处理器输出补偿电压。The magnetic compensation processing module is based on the difference between the differential signal monitoring values y 1 and y 2 of the feedback signal y and the differential signal monitoring values v 1 and v 2 of the desired signal v To calculate the voltage compensation component u 0 , and then compensate the voltage compensation component u 0 based on the total monitoring value of magnetic noise y 3 to obtain the total voltage compensation amount U, that is, the signal processor output compensation voltage.
进一步的,电压补偿分量u0的计算公式具体如下:Further, the calculation formula of the voltage compensation component u 0 is as follows:
其中,kp为比例系数,kd为微分系数,为非线性函数,α1、α2为取值0~1的常数,β为常数。Among them, k p is the proportional coefficient, k d is the differential coefficient, is a nonlinear function, α 1 and α 2 are constants ranging from 0 to 1, and β is a constant.
进一步对,电压总补偿量U的计算公式具体如下:Further, the calculation formula of the total voltage compensation amount U is as follows:
U=u0-y3/cU=u 0 -y 3 /c
其中,c为常数。Among them, c is a constant.
进一步的,反馈信号y的微分信号监测值y1、y2及监测总值y3的追踪公式具体如下:Further, the tracking formulas of the differential signal monitoring values y 1 , y 2 and the total monitoring value y 3 of the feedback signal y are as follows:
y1=y′1+q(y′2-K01z′1);y 1 =y′ 1 +q(y′ 2 -K 01 z′ 1 );
其中,K01、K02、K03为三个可调参数;z′1、z′2、z′3分别为上一时刻反馈信号监测值y′1、y′2、y′3与反馈信号y的差值;q为滤波因子,为可调参数,c为常数,U′为上一时刻信号处理器输出的补偿电压,为非线性函数。Among them, K 01 , K 02 , and K 03 are three adjustable parameters; z′ 1 , z′ 2 , and z′ 3 are respectively the feedback signal monitoring values y′ 1 , y′ 2 , y′ 3 and the feedback signal at the previous moment. The difference of signal y; q is the filter factor, which is an adjustable parameter, c is a constant, U′ is the compensation voltage output by the signal processor at the last moment, is a nonlinear function.
进一步的,非线性函数表达是具体如下:Furthermore, nonlinear functions The expression is specifically as follows:
其中,z为反馈信号的监测值与反馈信号的差值,α为可调参数,取值范围0~1,β为参数因子,sign(*)为符号函数。Among them, z is the difference between the monitoring value of the feedback signal and the feedback signal, α is an adjustable parameter, ranging from 0 to 1, β is the parameter factor, and sign(*) is the sign function.
进一步的,期望信号v的微分信号v1、v2的追踪公式具体如下:Furthermore, the tracking formulas of the differential signals v 1 and v 2 of the desired signal v are as follows:
v1=v′1+qv′2;v 1 =v′ 1 +qv′ 2 ;
v2=v′2qf(x1,x2,p,q);v 2 =v′ 2 qf(x 1 ,x 2 ,p,q);
其中,v′1、v′2分别表示上一时刻的期望信号v的微分信号监测值,f(x1,x2,p,q)为离散域控制函数。Among them, v′ 1 and v′ 2 respectively represent the differential signal monitoring value of the desired signal v at the previous moment, and f (x 1 , x 2 , p, q) is the discrete domain control function.
进一步的,离散控制函数f(x1,x2,p,q)具体如下:Further, the discrete control function f(x 1 , x 2 , p, q) is as follows:
y=x1+qx2;y=x 1 +qx 2 ;
m=pq,m0=mqm=pq, m 0 =mq
其中,x1、x2、m、n0、m0为中间参数,p、q分别为设定的追踪速度因子和滤波因子。Among them, x 1 , x 2 , m, n 0 , and m 0 are intermediate parameters, and p and q are the set tracking speed factors and filter factors respectively.
本发明是这样实现的,一种基于主动磁补偿系统的主动磁补偿方法具体如下:The present invention is implemented in this way. An active magnetic compensation method based on an active magnetic compensation system is specifically as follows:
(1)读取设定的期望信号v;(1) Read the set expected signal v;
(2)当达到采样时间时,期望信号v进入期望信号追踪模块,反馈信号y进入磁噪声监测模块;(2) When the sampling time is reached, the expected signal v enters the expected signal tracking module, and the feedback signal y enters the magnetic noise monitoring module;
(3)期望信号追踪模块接收到期望信号v后,对期望信号v及其微分信号进行追踪处理,随后分别以v1=v′1+qv′2、v2=v′2+qf(x1,x2,p,q)输出追踪值v1和v2;(3) After receiving the expected signal v, the expected signal tracking module tracks the expected signal v and its differential signal, and then uses v 1 =v′ 1 +qv′ 2 , v 2 =v′ 2 +qf(x 1 , x 2 , p, q) output tracking values v 1 and v 2 ;
(4)磁噪声监测模块接收到反馈信号y后,会对反馈信号y及其微分信号进行追踪处理,随后以y1=y′1+q(y′2-K01z′1)和输出监测值y1和y2,同时以/>输出磁噪声的总监测值y3;(4) After receiving the feedback signal y, the magnetic noise monitoring module will track the feedback signal y and its differential signal, and then use y 1 =y′ 1 +q(y′ 2 -K 01 z′ 1 ) and Output the monitoring values y 1 and y 2 , and at the same time /> Output the total monitoring value of magnetic noise y 3 ;
(5)以和/>计算出偏差量/>和/>通过磁补偿量处理模块输出电压补偿分量u0,接着提取低压补偿分量和磁噪声的总监测值对磁噪声进行补偿,最后以U=u0-y3/c输出补偿电压U;(5) with and/> Calculate the deviation/> and/> The voltage compensation component u 0 is output through the magnetic compensation amount processing module, and then the low-voltage compensation component and the total monitoring value of the magnetic noise are extracted to compensate the magnetic noise, and finally the compensation voltage U is output as U=u 0 -y 3 /c;
(6)压控电流源将补偿电压转换成补偿线圈的补偿电流,以使磁屏蔽筒环境中的磁场强度T1接近或达到目标磁场强度T0。(6) The voltage-controlled current source converts the compensation voltage into the compensation current of the compensation coil, so that the magnetic field intensity T 1 in the magnetic shielding cylinder environment is close to or reaches the target magnetic field intensity T 0 .
本发明提供的主动磁补偿系统具有如下有益技术效果:The active magnetic compensation system provided by the present invention has the following beneficial technical effects:
(1)无需等到磁噪声产生时才进行补偿控制,其通过期望信号追踪模块和磁噪声检测模块可以准确追踪期望磁场值的微分,同时将监测到的磁噪声第一时间补偿到控制输出端,较一般补偿算法反应速度更快。(1) There is no need to wait until magnetic noise is generated before performing compensation control. It can accurately track the differential of the expected magnetic field value through the expected signal tracking module and magnetic noise detection module, and at the same time compensate the monitored magnetic noise to the control output end immediately. The response speed is faster than the general compensation algorithm.
(2)补偿算法中的三个模块能形成完整的闭环回路,只需根据期望磁场值和磁噪声监测值就可以计算出磁补偿量,无需了解被控制对象的模型就能适用于各种磁补偿系统,较一般磁补偿算法适应性更好;(2) The three modules in the compensation algorithm can form a complete closed loop. The magnetic compensation amount can be calculated only based on the expected magnetic field value and magnetic noise monitoring value. It can be applied to various magnetic fields without knowing the model of the controlled object. The compensation system has better adaptability than the general magnetic compensation algorithm;
(3)本补偿算法的补偿精度可达pT级,对环境中的低频磁噪声也能产生很好的抑制效果,适用于对精度要求较高的心磁图仪系统。(3) The compensation accuracy of this compensation algorithm can reach pT level, and it can also produce a good suppression effect on low-frequency magnetic noise in the environment. It is suitable for magnetocardiograph systems with high accuracy requirements.
附图说明Description of the drawings
图1为本发明实施例提供的主动磁补偿系统的结构示意图;Figure 1 is a schematic structural diagram of an active magnetic compensation system provided by an embodiment of the present invention;
图2为本发明实施例提供的主动磁补偿系统的信号反馈示意图;Figure 2 is a schematic diagram of signal feedback of the active magnetic compensation system provided by an embodiment of the present invention;
图3为本发明实施例提供的主动磁补偿方法流程图。Figure 3 is a flow chart of an active magnetic compensation method provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面对照附图,通过对实施例的描述,对本发明的具体实施方式作进一步详细的说明,以帮助本领域的技术人员对本发明的发明构思、技术方案有更完整、准确和深入的理解。The specific implementation modes of the present invention will be further described in detail below by describing the embodiments with reference to the accompanying drawings, so as to help those skilled in the art have a more complete, accurate and in-depth understanding of the inventive concepts and technical solutions of the present invention.
图1为本发明实施例提供的主动磁补偿系统的结构示意图,为了便于说明,仅示出与本发明实施例相关的部分,该系统包括:Figure 1 is a schematic structural diagram of an active magnetic compensation system provided by an embodiment of the present invention. For ease of explanation, only the parts related to the embodiment of the present invention are shown. The system includes:
设于磁屏蔽桶内的参考磁强计及磁补偿线圈,参考磁强计的输出端与信号处理器的输入端连接,信号处理器的输出端通过压控电流源与补偿线圈连接;A reference magnetometer and a magnetic compensation coil are installed in the magnetic shielding barrel. The output end of the reference magnetometer is connected to the input end of the signal processor, and the output end of the signal processor is connected to the compensation coil through a voltage-controlled current source;
其中,参考磁强计定时采集磁屏蔽筒环境中的磁场强度T1,并将磁场强度T1发送至信号处理器,信号处理器输出补偿电压至压控电流源,压控电流源将补偿电压转换成补偿线圈的补偿电流,以使磁屏蔽筒环境中的磁场强度T1接近或达到目标磁场强度T0。Among them, the reference magnetometer regularly collects the magnetic field intensity T 1 in the magnetic shielding tube environment, and sends the magnetic field intensity T 1 to the signal processor. The signal processor outputs the compensation voltage to the voltage-controlled current source, and the voltage-controlled current source will compensate the voltage. The compensation current is converted into the compensation coil so that the magnetic field intensity T 1 in the magnetic shielding cylinder environment is close to or reaches the target magnetic field intensity T 0 .
在本发实施例中,参考磁强计设于磁屏蔽筒的中心位置,主要监测磁屏蔽筒环境的磁场强度,而补偿线圈主要用于在磁屏蔽筒内产生均匀的补偿磁场,通过产生的补偿磁场强度来抵消环境磁场强度的波动,此外,在磁屏蔽筒还设有感应磁强计,感应磁强计的位置与参考磁强计的位置不同,其主要是用于验证补偿后的磁屏蔽筒内其他位置的磁场强度是否接近目标磁场强度T0。In the embodiment of the present invention, the reference magnetometer is designed at the center of the magnetic shielding cylinder to mainly monitor the magnetic field intensity of the environment of the magnetic shielding cylinder, and the compensation coil is mainly used to generate a uniform compensation magnetic field in the magnetic shielding cylinder. Compensate the magnetic field strength to offset the fluctuation of the environmental magnetic field strength. In addition, the magnetic shielding cylinder is also equipped with an induction magnetometer. The position of the induction magnetometer is different from that of the reference magnetometer. It is mainly used to verify the compensated magnetic field. Check whether the magnetic field intensity at other locations in the shielding tube is close to the target magnetic field intensity T 0 .
在本发明实施例中,信号处理器包括:In this embodiment of the present invention, the signal processor includes:
磁噪声检测模块,期望信号追踪模块及磁补偿量处理模块,其中,磁噪声检测模块、期望信号追踪模块与磁补偿量处理模块连接,如图2所示。Magnetic noise detection module, desired signal tracking module and magnetic compensation processing module. The magnetic noise detection module, desired signal tracking module and magnetic compensation processing module are connected, as shown in Figure 2.
(1)磁噪声监测模块将参考磁强计采集到的磁场强度T1作为反馈信号y,输出反馈信号y、反馈信号y的微分信号监测值y1、y2及监测总值y3。(1) The magnetic noise monitoring module uses the magnetic field intensity T 1 collected by the reference magnetometer as the feedback signal y, and outputs the feedback signal y, the differential signal monitoring values y 1 and y 2 of the feedback signal y, and the total monitoring value y 3 .
磁噪声监测模块用于对实际磁噪声和系统内总噪声进行监测,磁噪声监测模块不需要过多的信息源,仅从系统的输入量和输出量出发,就可以得到系统内各个状态变量的监测值。不仅如此,使用磁噪声监测模块也不需要考虑系统内外的噪声情况,即使是面对不确定的噪声模型,磁噪声监测模块也能实时得到总体磁噪声的监测值,同时在反馈中加以磁补偿。The magnetic noise monitoring module is used to monitor the actual magnetic noise and the total noise in the system. The magnetic noise monitoring module does not require too many information sources. It can obtain the status variables of each state variable in the system based only on the input and output of the system. monitoring value. Not only that, using the magnetic noise monitoring module does not need to consider the noise conditions inside and outside the system. Even in the face of uncertain noise models, the magnetic noise monitoring module can obtain the monitoring value of the overall magnetic noise in real time, and at the same time add magnetic compensation in the feedback. .
磁噪声监测模块接收到反馈信号y后,会对反馈信号y及其微分信号y1、y2、y3进行追踪处理,其中:After receiving the feedback signal y, the magnetic noise monitoring module will track the feedback signal y and its differential signals y 1 , y 2 , y 3 , where:
y1=y′1+q(y′2-K01z′1);y 1 =y′ 1 +q(y′ 2 -K 01 z′ 1 );
其中,K01、K02、K03为三个可调参数;z′1、z′2、z′3分别为上一时刻反馈信号监测值y′1、y′2、y′3与反馈信号y的差值;q为滤波因子,为可调参数,c为常数,U′为上一时刻信号处理器输出的补偿电压,为非线性函数,其表达是具体如下:Among them, K 01 , K 02 , and K 03 are three adjustable parameters; z′ 1 , z′ 2 , and z′ 3 are respectively the feedback signal monitoring values y′ 1 , y′ 2 , y′ 3 and the feedback signal at the previous moment. The difference of signal y; q is the filter factor, which is an adjustable parameter, c is a constant, U′ is the compensation voltage output by the signal processor at the last moment, is a nonlinear function, and its expression is as follows:
其中,z为反馈信号的监测值与反馈信号的差值,α为可调参数,取值范围0~1,β为参数因子,参数可调,sign(*)为符号函数。增加β的值可以提高函数的监测效果,但会降低其监测速度;减小α的值可以提高/>函数的监测速度,但会将降低其监测效果,所以根据不同的磁噪声情况取合适的α和β值可以达到互补的效果。Among them, z is the difference between the monitoring value of the feedback signal and the feedback signal, α is an adjustable parameter with a value range of 0 to 1, β is a parameter factor with adjustable parameters, and sign(*) is a sign function. Increasing the value of β can improve The monitoring effect of the function, but will reduce its monitoring speed; reducing the value of α can improve/> The monitoring speed of the function will reduce its monitoring effect, so choosing appropriate α and β values according to different magnetic noise conditions can achieve complementary effects.
当系统内外出现磁噪声时,磁噪声监测模块可以把这些噪声的状态进行转变,使其处于一阶状态,然后再利用以上定义的非线性函数和参数K01、K02、K03,即可得到系统内外所有噪声状态的监测值。When magnetic noise occurs inside and outside the system, the magnetic noise monitoring module can transform the state of these noises so that they are in a first-order state, and then use the nonlinear function defined above and parameters K 01 , K 02 , K 03 , the monitoring values of all noise states inside and outside the system can be obtained.
(2)期望信号追踪模块将设定的目标磁场强度T0作为期望信号v,输出期望信号v及其微分信号监测值v1、v2;(2) The expected signal tracking module takes the set target magnetic field intensity T 0 as the expected signal v, and outputs the expected signal v and its differential signal monitoring values v 1 and v 2 ;
期望信号追踪模块是针对磁场的输入特点对其提取所需要的磁信号,同时减少磁场输入量的跳变,便于磁补偿系统实时追踪。期望信号追踪模块可以通过反馈的方式获得磁噪声的微分信号,对磁场信号的响应进行过渡处理,使得系统在快速获得补偿期望的同时又能保证更小的超调量。最后可以使磁场反馈增益和磁噪声微分增益所适应的对象参数范围扩大,从而提高磁补偿系统鲁棒性。The desired signal tracking module extracts the required magnetic signal based on the input characteristics of the magnetic field, while reducing the jump of the magnetic field input to facilitate real-time tracking of the magnetic compensation system. The expected signal tracking module can obtain the differential signal of magnetic noise through feedback and perform transition processing on the response of the magnetic field signal, so that the system can quickly obtain the compensation expectation while ensuring a smaller overshoot. Finally, the range of object parameters adapted to the magnetic field feedback gain and magnetic noise differential gain can be expanded, thereby improving the robustness of the magnetic compensation system.
期望信号追踪模块接收到期望信号v后,会对期望信号v及其微分信号v1、v2进行以上追踪处理,其中:After the expected signal tracking module receives the expected signal v, it will perform the above tracking processing on the expected signal v and its differential signals v 1 and v 2 , where:
v1=v′1+qv′2;v 1 =v′ 1 +qv′ 2 ;
v2=v′2+qf(x1,x2,p,q);v 2 =v′ 2 +qf(x 1 ,x 2 ,p,q);
其中,v′1、v′2分别表示上一时刻的期望信号v的微分信号监测值,f(x1,x2,p,q)为离散域控制函数,设定两个参数即追踪速度因子p和滤波因子q,以二阶系统为例,离散控制函数为:Among them, v′ 1 and v′ 2 respectively represent the differential signal monitoring value of the desired signal v at the previous moment, f (x 1 , x 2 , p, q) is the discrete domain control function, and two parameters are set, namely the tracking speed. Factor p and filter factor q, in a second-order system For example, the discrete control function is:
y=x1+qx2;y=x 1 +qx 2 ;
m=pq,m0=mqm=pq, m 0 =mq
其中,x1、x2为二阶系统中的中间参数。Among them, x 1 and x 2 are the intermediate parameters in the second-order system.
(3)磁补偿量处理模块基于反馈信号y的微分信号监测值y1、y2与期望信号v的微分信号监测值v1、v2的差值来计算电压补偿分量u0,再基于磁噪声的总监测值y3对电压补偿分量u0进行补偿,获取电压总补偿量U,即信号处理器输出补偿电压。(3) The magnetic compensation processing module is based on the difference between the differential signal monitoring values y 1 and y 2 of the feedback signal y and the differential signal monitoring values v 1 and v 2 of the desired signal v To calculate the voltage compensation component u 0 , and then compensate the voltage compensation component u 0 based on the total monitoring value of magnetic noise y 3 to obtain the total voltage compensation amount U, that is, the signal processor output compensation voltage.
磁补偿量处理模块采用了一种独立于对象模型的非线性控制器结构,它可以自动检测磁噪声并给出电压补偿分量,只要磁噪声监测模块的速度足够快,那么这个电压补偿分量就能精确地反映出磁噪声的变化情况,将磁场变量积分串联后,磁补偿量处理模块就可达到理想的控制效果。总的来说,磁补偿量处理模块是期望信号追踪模块和磁噪声监测模块产生的磁场状态变量误差的非线性组合,它与磁噪声监测模块对总体磁噪声(监测总值)的电压补偿分量一起组成补偿电压;其中,电压补偿分量u0的计算公式具体如下:The magnetic compensation processing module adopts a nonlinear controller structure that is independent of the object model. It can automatically detect magnetic noise and provide a voltage compensation component. As long as the speed of the magnetic noise monitoring module is fast enough, then this voltage compensation component can be It accurately reflects the changes in magnetic noise. After integrating the magnetic field variables in series, the magnetic compensation processing module can achieve the ideal control effect. In general, the magnetic compensation processing module is a nonlinear combination of the magnetic field state variable error generated by the desired signal tracking module and the magnetic noise monitoring module. It is combined with the voltage compensation component of the overall magnetic noise (total monitoring value) of the magnetic noise monitoring module. Together they form a compensation voltage; among them, the calculation formula of the voltage compensation component u 0 is as follows:
其中,kp为比例系数,kd为微分系数,其中,Among them, k p is the proportional coefficient, k d is the differential coefficient, in,
磁噪声监测模块中的监测值y1和y2会反馈给期望信号追踪模块生成期望信号追踪值v1和v2,,磁补偿量处理模块通过期望信号追踪值计算出补偿分量u0,而监测总值y3也会结合系统系数c以负反馈的形式给到补偿分量u0,因此可以看出磁补偿总量U的输出和补偿分量u0、常数c以及磁噪声监测模块的总监测值y3相关,其表达式为:The monitoring values y 1 and y 2 in the magnetic noise monitoring module will be fed back to the expected signal tracking module to generate the expected signal tracking values v 1 and v 2 , and the magnetic compensation processing module calculates the compensation component u 0 through the expected signal tracking value, and The total monitoring value y 3 will also be combined with the system coefficient c to give the compensation component u 0 in the form of negative feedback. Therefore, it can be seen that the output of the total magnetic compensation U and the compensation component u 0 , constant c and the total monitoring of the magnetic noise monitoring module The value y 3 is related and its expression is:
U=u0-y3/c。U=u 0 -y 3 /c.
图3为本发明实施例提供的主动磁补偿方法流程图,该方法具体包括如下步骤:Figure 3 is a flow chart of an active magnetic compensation method provided by an embodiment of the present invention. The method specifically includes the following steps:
(1)开始时读取设定的期望信号v,同时也会读取上一时刻的反馈信号y,反馈信号y的初始值默认为零。(1) At the beginning, the set expected signal v is read, and the feedback signal y of the previous moment is also read. The initial value of the feedback signal y defaults to zero.
(2)等待采样时间,采样时间可以根据需要设置不同的值。当达到采样时间时,期望信号v会进入期望信号追踪模块,反馈信号y会进入磁噪声监测模块,当未达到采样时间时,期望信号和反馈信号会继续等待。(2) Wait for the sampling time. The sampling time can be set to different values as needed. When the sampling time is reached, the expected signal v will enter the expected signal tracking module, and the feedback signal y will enter the magnetic noise monitoring module. When the sampling time is not reached, the expected signal and feedback signal will continue to wait.
(3)期望信号追踪模块接收到期望信号v后,对期望信号v及其微分信号进行追踪处理,随后分别以v1=v′1+qv′2、v2=v′2+qf(x1,x2,p,q)输出追踪值v1和v2;(3) After receiving the expected signal v, the expected signal tracking module tracks the expected signal v and its differential signal, and then uses v 1 =v′ 1 +qv′ 2 , v 2 =v′ 2 +qf(x 1 , x 2 , p, q) output tracking values v 1 and v 2 ;
(4)磁噪声监测模块接收到反馈信号y后,会对反馈信号y及其微分信号进行追踪处理,随后以y1=y′1+q(y′2-K01z′1)和输出监测值y1和y2,同时以/>输出磁噪声的总监测值y3;(4) After receiving the feedback signal y, the magnetic noise monitoring module will track the feedback signal y and its differential signal, and then use y 1 =y′ 1 +q(y′ 2 -K 01 z′ 1 ) and Output the monitoring values y 1 and y 2 , and at the same time /> Output the total monitoring value of magnetic noise y 3 ;
(5)随后以和/>计算出偏差量/>和/>通过磁补偿量处理模块输出电压补偿分量u0,接着提取低压补偿分量和磁噪声的总监测值对磁噪声进行补偿,最后以U=u0-y3/c输出补偿电压U。(5) followed by and/> Calculate the deviation/> and/> The magnetic compensation processing module outputs the voltage compensation component u 0 , then extracts the low-voltage compensation component and the total monitoring value of magnetic noise to compensate for the magnetic noise, and finally outputs the compensation voltage U as U=u 0 -y 3 /c.
(6)压控电流源将补偿电压转换成补偿线圈的补偿电流,以使磁屏蔽筒环境中的磁场强度T1接近或达到目标磁场强度T0 (6) The voltage-controlled current source converts the compensation voltage into the compensation current of the compensation coil, so that the magnetic field intensity T 1 in the magnetic shielding cylinder environment approaches or reaches the target magnetic field intensity T 0
主动磁补偿系统放置在被动磁屏蔽环境中,磁补偿方法可以在参数整定后统一整合在信号处理器中,也可以直接在上位机中进行实时调参。本分明中的期望信号追踪模块和磁噪声监测模块会接收来自模数转换器ADC的数字信号,数字信号代表着真实环境中的磁场测量值,在反馈流程中称之为实际反馈信号。磁噪声监测模块需要根据实际反馈信号来追踪微分信号监测值y1、y2及监测总值y3,期望信号追踪模块追踪期望信号v的微分信号v1、v2,磁补偿量处理模块根据差量量计算出磁补偿量再通过数模转换器输出。补偿算法在主动磁补偿系统中的原理框图如图2所示。The active magnetic compensation system is placed in a passive magnetic shielding environment. The magnetic compensation method can be integrated into the signal processor after parameter setting, or real-time parameter adjustment can be performed directly in the host computer. The desired signal tracking module and magnetic noise monitoring module in this invention will receive the digital signal from the analog-to-digital converter ADC. The digital signal represents the magnetic field measurement value in the real environment, and is called the actual feedback signal in the feedback process. The magnetic noise monitoring module needs to track the differential signal monitoring values y 1 , y 2 and the total monitoring value y 3 based on the actual feedback signal. The expected signal tracking module tracks the differential signals v 1 and v 2 of the expected signal v. The magnetic compensation amount processing module is based on differential amount The magnetic compensation amount is calculated and output through the digital-to-analog converter. The principle block diagram of the compensation algorithm in the active magnetic compensation system is shown in Figure 2.
其中,磁强计负责采集磁场信号BOUT,并将磁场信号BOUT转换为电压信号VOUT输入到信号处理器中,嵌入在信号处理器中的磁补偿算法会根据设定的期望值来计算出磁补偿量U,信号处理器再将磁补偿量U以电压信号VCOMP的形式输出到压控电流源,压控电流源将对应的电流信号ICOMP输入到磁补偿线圈中,最终磁补偿线圈生成与磁噪声大小相同、方向相反的磁场BCOMP,从而达到磁补偿的目的。Among them, the magnetometer is responsible for collecting the magnetic field signal B OUT and converting the magnetic field signal B OUT into a voltage signal V OUT and inputting it into the signal processor. The magnetic compensation algorithm embedded in the signal processor will calculate the value based on the set expected value. The signal processor then outputs the magnetic compensation amount U to the voltage-controlled current source in the form of a voltage signal V COMP . The voltage-controlled current source inputs the corresponding current signal I COMP into the magnetic compensation coil. Finally, the magnetic compensation coil Generate a magnetic field B COMP with the same magnitude and opposite direction as the magnetic noise, thereby achieving the purpose of magnetic compensation.
本发明进行了示例性描述,显然本发明具体实现并不受上述方式的限制,只要采用了本发明的方法构思和技术方案进行的各种非实质性的改进,或未经改进将本发明的构思和技术方案直接应用于其它场合的,均在本发明的保护范围之内。The present invention has been described exemplarily. It is obvious that the specific implementation of the present invention is not limited by the above-mentioned manner. As long as various non-substantive improvements are made using the method concepts and technical solutions of the present invention, or the present invention is modified without improvement. If the ideas and technical solutions are directly applied to other situations, they are all within the protection scope of the present invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311429952.0A CN117562543A (en) | 2023-10-31 | 2023-10-31 | An active magnetic compensation method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311429952.0A CN117562543A (en) | 2023-10-31 | 2023-10-31 | An active magnetic compensation method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117562543A true CN117562543A (en) | 2024-02-20 |
Family
ID=89890781
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311429952.0A Pending CN117562543A (en) | 2023-10-31 | 2023-10-31 | An active magnetic compensation method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117562543A (en) |
-
2023
- 2023-10-31 CN CN202311429952.0A patent/CN117562543A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101488031B (en) | High-precision magnetic bearing axial control method based on interference observer | |
WO2015188779A1 (en) | High-precision data collection system for electrical impedance imaging | |
CN105022005B (en) | A kind of method, apparatus and system of raising SQUID Magnetic Sensor measurement sensitivities | |
CN109581010B (en) | AC voltage standard source | |
CN103389482B (en) | A kind of digitized simulation device of superconducting quantum interference device (SQUID) | |
CN106066397B (en) | A kind of compensation system, method and immunity analysis instrument suitable for current-output type photomultiplier tube | |
Zhang et al. | Disturbance suppression based high-precision magnetic field compensation method for magnetic shielding cylinder | |
CN110502047B (en) | Laser control system based on alternating current temperature control and temperature demodulation method thereof | |
CN118936519B (en) | A laser gyro correction system based on temperature adaptation | |
CN104950275B (en) | The performance testing device and method of superconducting quantum interference device Magnetic Sensor | |
CN117562543A (en) | An active magnetic compensation method and system | |
Li et al. | High-precision magnetic field control of active magnetic compensation system based on MFAC-RBFNN | |
Thanom et al. | Nonlinear control of heartbeat models | |
CN114266812B (en) | A phase registration method for lesion characteristic motion curve and respiratory fluctuation curve | |
CN117379056A (en) | A three-axis active magnetic compensation system | |
CN111830420B (en) | An online measurement method of battery internal resistance using SOGI | |
CN115509130A (en) | Compensation device for external magnetic field interference in magnetic shielding cabin | |
CN115813397B (en) | Active magnetic compensation closed-loop control system in magnetic shielding cylinder and design method | |
CN114777756A (en) | Resonance gyroscope based on closed-loop control and control method thereof | |
CN112073035A (en) | Self-adaptive filtering method for PSD (phase-sensitive Detector) signals | |
CN108919168B (en) | Method for improving distortion degree of high-voltage power source based on digital compensation technology | |
CN118295232A (en) | A magnetic compensation control system and method based on variable frequency tracking and suppression | |
CN110879532A (en) | A control system and design method | |
CN117348377A (en) | Near-zero magnetic field control system and method based on external disturbance magnetic field observation and suppression | |
CN113484565B (en) | DC signal generating device for calibrating low-frequency AC signal and calibration method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |