999精品在线视频,手机成人午夜在线视频,久久不卡国产精品无码,中日无码在线观看,成人av手机在线观看,日韩精品亚洲一区中文字幕,亚洲av无码人妻,四虎国产在线观看 ?

Dynamic compensation for sensors based on particle swarm optimization and realization on LabVIEW

2014-09-07 03:27:44ZHANGXiaZHANGZhijieCHENBaoli

ZHANG Xia, ZHANG Zhi-jie, CHEN Bao-li

(School of Information and Communication Engineering, North University of China, Taiyuan 030051, China)

For most of the sensors,there are such defects as dynamic response lag and static nonlinear distortion under the conditions of current technology.To establish a linear relationship between input signal and output signal, some methods are necessary, for example, intermediate compensation and correction.

With the popularity of computer technology, subsequent processing for output signal of sensor with software or a dynamic compensation filter has been widely used.Generally, the methods of designing a dynamic compensator include zero-pole assignment method and system identification method, etc.Especially, if using these methods, the structure of dynamic compensation filter must be constructed in advance.Furthermore, if the sensor is used in a high-order nonlinear system, the structure design of dynamic compensation filter is very complex.

In this paper, particle swarm optimization (PSO) algorithm is used for dynamic compensation for the sensor to overcome the shortcomings of the above methods.The test results show that the sensor after compensation obtains the required ideal dynamic characteristics.

1 Dynamic compensation principle based on particle swarm optimization (PSO) algorithm[1-4]

Fig.1 Principle of dynamic compensation for sensor

In order to avoid building dynamic model of the sensor, this paper directly designs dynamic compensation filter using the experimental data.The essence of this method is to transform dynamic compensation filter design into compensation filter parameters by means of the experimental data.The specific principle is described as follows.

The dynamic compensation for sensors can be described as a single variable differential equation in practical application,

y(t)(b0+b1z-1+…+bmz-m)+e(t),

(1)

wherez-1is delay operator,mandnare steps of the compensation filter ande(t) denotes output noise.To simplify the expression, Eq.(1) can be expressed as a vector form,

(2)

Fig.2 Principle of dynamic compensation of sensors based on PSO

2 PSO algorithm

2.1 Principle of PSO algorithm

PSO is a kind of excellent evolutionary algorithm, which has developed rapidly in recent years and become simpler and more efficient than genetic algorithm in coding and optimization strategy[5].The basic idea of PSO is to initialize a group of random particles, and then look for the optimal solution via iteration.In each iteration, the particles update their position by tracking two “extremums”: one is the optimal solution found by themselves, called individual extreumpbest; the other is the optimal solution found by the overall group at present, called the global extremumgbest.Then the speed and position are updated by

V=wV+c1r( )(pbest-p)+c2r( )(gbest-p),

(3)

p=p+V,

(4)

whereVdenotes the particle's speed;Pdenotes the particle's current position;pbestandgbestare individual extremum and global extremum, respectively;c1andc2are learning factors between 0-2;r( ) is the random function between (0,1);w(k) is weighting factor, which reduces linearly from the maximum weighting factorwmaxto the minimum weighting factorwminwith the iteration proceeding, as described by

(5)

In the initial stage of iteration,wselects a larger value to guarantee fast searching speed, and later it selects a smaller value to guarantee the convergence of the algorithm.Typical values are:wmax=0.9 andwmin=0.4.

In this paper, the fitness function using mean square error (MSE) is defined as

(6)

whereNis the sample size.

PSO algorithm has characteristics of less parameters, fast convergence and efficiency, so it has been widely used in the optimization process.The specific steps of calculating the dynamic compensation filter's coefficients are as follows.

1) Initialize the speed and position of each particle from the particle swarm within the given target area;

2) Set the parameters of PSO algorithm and calculate the fitness of the particles according to Eq.(6);

3) Update the particle's speed and position according to Eqs.(3) and (4) and calculate the fitness of each particle again;

4) Judge whether the particle's individual extremumpbestand the particle swarm's global extremumgbestare updated or not;

5) Repeat 4) and 5) until meeting the accuracy requirement or reaching the number of iterations;

6) Get outputgbestand the compensation coefficients.

2.2 Validation of PSO algorithm[6-8]

The algorithm is validated by the dynamic calibration experiment for the pressure sensor.In the experiment, the shock tube is used to generate a standard step pressure to press on the measured pressure sensor.Then the pressure sensor is calibrated and actual working performance is analyzed according to the output response of the pressure sensor.The curve 1 in Fig.3 is a piece of data starting from the first rising edge of the measured response curve of the pressure sensor obtained in the dynamic calibration experiment.

Creating a inverse model using PSO algorithm, it makes the sensor output equivalent to compensation filter input, and the sensor input equivalent to the compensator output.In Fig.3, curve 1 is the input of compensation system and the output of reference model is an ideal step signal.The 3-order compensation filter's coefficients can be got by using the above method.Curve 2 is the compensation result with the response-time of 10 μs and overshoot volume of 10%, which achieves the technical requirements.

Fig.3 Compensation result

Fig.4 Contrast of amplitude frequency characteristics before and after compensation

In order to verify compensation effect, the amplitude frequency characteristics of the system before and after compensation are compared.Firstly, the sensor model is established using the above method, and then the amplitude frequency response is worked out, as shown in Fig.4.Curve 2 shows amplitude frequency characteristic of the dynamic com-pensation filter.Finally, the amplitude frequency response of the system after compensation is calculated, as curve 3 shows in Fig.4.It can be seen from Fig.4 that the amplitude frequency characteristic of the sensor has a a flat working band below 70 kHz, but a larger amplitude error near the resonance frequency (245 kHz).The working band is extended to 400 kHz by dynamic compensation filter.Therefore, PSO algorithm can extend the effective working band of sensors.

3 Realization on LabVIEW[9]

LabVIEW has extensive applications in the measurement and control fields owing to powerful features and lots of advantages, so it is of important practical significance to realize the dynamic compensation for sensor on the LabVIEW platform.In this paper, PSO algorithm on LabVIEW platform is implemented.The modeling process of PSO needs a large amount of calculation and complex programming.To improve the efficiency of programming, training model on Matlab platform is established, and the model and parameters are obtained.This method implements the mixed programming by invoking COM component generated by M-file to achieve dynamic compensation for sensors.The method is as follows.

1) Configurate COM component compiler.Input ‘mbuild-setup’ command and select the appropriate C/C++ compiler.Set the compiler according to hint step by step until the configuration is completed successfully.

2) Generate COM component.Firstly, create a new m-function which defines statements using the ‘Function’ keyword and design compensation using ‘filter’ function with the coefficients got by modeling.Secondly, create a new project by inputting ‘deploytool’ command, and add the created m-file.Finally, compile and package the engineering.The generated DLL file is COM component.

3) Register COM component.Start the_install.bat file to complete the component's register inside the computer.So other ActiveX client can invoke COM component.

4) Invoke COM component on LabVIEW.Program block diagram is shown in Fig.5.The implementation effect is shown in Fig.6.

Fig.5 Program block diagram on LabVIEW

Fig.6 Results of dynamic compensation

4 Conclusion

For dynamic test, it is important to broaden the passband of sensors using dynamic compensation technology to reduce measuring error.The method based on PSO algorithm establishes an optimal dynamic compensation filter by optimizing the sensor's input and output through the calibration experiment.Without modeling process, there is not modeling error.In this paper, the feasibility of compensation filter is verified, and the experimental results show that the application of PSO algorithm in sensor's dynamic compensation is an effective method.

[1] WU Jian, ZHANG Zhi-jie, DONG Gang-gang, et al.

Real-time correction for sensor's dynamic error based on DSP.In: Proceedings of 2011 IEEE International Instrumentation and Measurement Technology Conference, Hangzhou, China, 2011: 633-639.

[2] ZHANG Yuan-yuan, XU Ke-jun, XU Yao-hua.Dynamic modeling approach based on improved PSO and FLANN for a sensor.Journal of Vibration and Shock, 2009, 28 (1): 1-7.

[3] TIAN Wen-jie, LIU Ji-cheng.A new optimization algorithm for dynamic compensation of sensors.In: Proceedings of the 2nd International Conference on Computer Modeling and Simulation, 2010, 2: 38-41.

[4] WU De-hui, HUANG Song-ling, XIN Jun-jun.Dynamic compensation for an infrared thermometer sensor using LSSVR based FLANN.Measurement Science and Technology, 2008, 19(10): 105202-105208.[doi:10.1088/0957-0233/19/10/105202]

[5] GAO Zhen-bin, ZENG Xiang-ye, WANG Jing-yi, et al.FPGA implementation of adaptive IIR filters with particle swarm optimization algorithm.In: Proceedings of the 11th Singapore International Conference on Communication Systems (ICCS 2008), Guangzhou, China, 2008: 1364-1367.[doi: 10.1109/ICCS, 2008.4737406]

[6] CHEN Sheng, Luk B L.Digital IIR filter design using particle swarm optimization.International Journal of Modelling Identification and Control, 2010, 9(4): 327-335.

[7] Ben Arfia F, Ben Messaoud M, Abid M.Nolinear adaptive filters based on particle swarm optimizer.Leonardo Journal of Sciences, 2009, 14: 244-251.

[8] ZHAO Zhong-kai, GAO Hong-yuan.FIR digital filters based on cultural particle swarm optimizer.In: Proceedings of 2009 International Workshop on Information Security and Application (IWISA 2009), Qingdao, China, 2009: 252-255.

[9] CHEN Xi-hui, ZHANG Yin-hong.LabVIEW8.20 programming from entry to the master.Beijing: Tsinghua University Press, 2007.


登錄APP查看全文

主站蜘蛛池模板: 色色中文字幕| 亚洲中文字幕日产无码2021| 久久久黄色片| 国产精品偷伦在线观看| 日韩一二三区视频精品| 99成人在线观看| 波多野结衣一区二区三区88| 岛国精品一区免费视频在线观看| 国产福利大秀91| 亚洲首页在线观看| 2020国产免费久久精品99| 精品久久久久无码| 国产欧美精品专区一区二区| 国产91精品久久| 曰韩人妻一区二区三区| 久草视频中文| 欧美一级视频免费| 毛片最新网址| 国产网站在线看| 国产成人久视频免费| 国产成人精品在线1区| 国产精品深爱在线| 999福利激情视频| 国产日韩欧美在线播放| 久久久久国产一级毛片高清板| 欧美一级一级做性视频| 国产精品永久免费嫩草研究院| 人禽伦免费交视频网页播放| 精品综合久久久久久97超人该| 午夜a视频| 亚洲无码精品在线播放| 成人福利在线视频免费观看| 亚洲综合专区| 久久综合色视频| 最新国产在线| 亚洲伊人久久精品影院| 亚洲免费黄色网| 国产精品短篇二区| 国产精品手机视频| 高清精品美女在线播放| 狠狠色狠狠综合久久| 久久久久久久久久国产精品| 久久久精品国产SM调教网站| 凹凸精品免费精品视频| 国产地址二永久伊甸园| 欧美日韩午夜| 欧美一区精品| 欧美久久网| 欧美午夜在线视频| www成人国产在线观看网站| 狠狠躁天天躁夜夜躁婷婷| 在线观看国产精品日本不卡网| 亚洲精品午夜天堂网页| 免费观看男人免费桶女人视频| 成人a免费α片在线视频网站| 欧美色丁香| 亚洲成人网在线观看| 四虎永久免费网站| 国产午夜小视频| 日韩精品亚洲一区中文字幕| 色播五月婷婷| 亚洲人成电影在线播放| 中国丰满人妻无码束缚啪啪| 久无码久无码av无码| 欧美日韩在线第一页| 亚洲人成网站在线观看播放不卡| 亚洲精品在线91| 久久a级片| 国产精品美人久久久久久AV| 久久国产亚洲偷自| 无遮挡一级毛片呦女视频| 国产裸舞福利在线视频合集| 国产情精品嫩草影院88av| 免费激情网址| 久久www视频| 国产精品专区第一页在线观看| 日韩a级毛片| 国产一区二区三区在线精品专区| 女人一级毛片| 尤物成AV人片在线观看| 久久久久青草线综合超碰| 精品无码日韩国产不卡av|