Skip to Main Content
The dSPACE is a software and hardware real-time control platform based on MATLAB/Simulink. In this paper, a single neuron adaptive PID is applied in the DC speed regulating system by dSPACE platform. The program of the single neuron adaptive PID controller is written by using S-function C language template which is provided by MATLAB/Simulink. After creating control system block diagram in Simulink, the control system frame can be compiled and downloaded to dSPACE real-time hardware system by RTW/RTI. The motor drive movement process can be monitored and the controller parameters can be adjusted online to improve the system's performance by Control Desk software. The real-time simulation shows that the method is simple, the parameters can be revised conveniently and the control effect is good.