The invention belongs to the technical field of
control system simulation, and discloses a method for establishing a hardware-in-the-loop
simulation platform of a controller. The method comprises thefollowing steps that: firstly, pure digital
simulation of a model is implemented in an upper computer, comprising a controlled
system model, a
sensor model and an
actuator model; and then the controlled
system model is downloaded to a real-time industrial
personal computer by one-click download, wherein the industrial
personal computer is connected to a real digital
electronic controller through acommunication module, a
signal conditioning module of an analog
sensor model, and a load simulation module of a simulation
actuator mechanism model to perform data interaction, thereby debugging andverifying the digital
electronic controller according to state feedback parameters of the controlled
system model. The method provided by the invention is applicable to the hardware-in-the-loop simulation experiment of various control systems, and is convenient to use and reusable. The
model development and
verification efficiency of the controlled system can be greatly improved, the project development cycle can be shortened, and the cost can be reduced through the use of one-click
code generation, compilation, and download.