| Rapid Control Prototyping is a common solution in the control systems,ithas the advantages of short development cycle and low cost. RTWT and xPCTarget are two solutions have been widely used, which are based on theMatlab/RTW rapid control prototyping. This paper compared the Real-timesimulation performance in two environments for selecting the operatingparameters and rapid control prototyping solutions. PID parameters self-tuningmethod is widely used in the automation instrument, but for some complexobjects, for example, pneumatic control valve, due to the influence of nonlinearfactors such as the friction force, the compressibility of the gas. The traditionalmethod often requires multiple tuning, even tuning failure, therefore, thisresearch will apply intelligent optimization algorithm to the self-tuning of PIDparameters.We studied the implementation process of RTWT and xPC Target, andbased on this, we provide guidance for applications and provide the basis forrapid control prototyping to choose the best solution by the mechanism analysisand a large number of experiments and by comparing the performances of tworeal-time simulation environments in the sampling period, data storage and otheraspects of stability. For laboratory electric boiler control system, we set up therapid-control-prototyping under the xPC Target environment, show that thestructures of the semi-physical simulation platform can run accurately and byexperiments.This topic applies the Gradient descent and PSO to the study of Self-tuningmethod of PID parameters, and it studies new methods based on the bothmethods. It adopts the best toolbox OCD of Matlab based on numericaloptimization to carry on digital simulation by setting different initial value andsteps. In order to realize real-time simulation of Self-tuning PID paramentsunder xPC Target, it adopts periodicity inputs to realize periodicity motion andwrites corresponding program based on the both Self-tuning methods. It studiesboth Self-tuning methods of PID based on the platform of boiler rapid control prototyping built. The simulation and experimental results show that the PIDparameters after optimization can reach the optimal value and can control theboiler system. |