Abstract:In traditional teaching of the course on motion control systems, students lack practical training in actual control unit design and development for engineering applications, particularly during the phase of learning theoretical knowledge and using Matlab/Simulink simulations. To address this issue, an experimental platform based on Matlab is designed for motion control systems, which enables seamless integration of simulation testing and physical testing using a model based design approach. The overall design scheme of the experimental platform is presented, including the configuration of the PC side environment and the composition of the drivers in the platform. It introduces how the experimental platform uses the model based design method to realize the automatic code generation, and elaborates the development process of the model based design in detail. Through the case study of a dual loop control system for speed and current of a permanent magnet synchronous motor, the process and experimental results of model in loop simulation, software in loop simulation, processor in loop simulation, and physical testing on the experimental platform are presented to validate the advantages, feasibility, and effectiveness of the experimental platform.