Mechanical parking system has been widely used,but there is no systematic inspection for the program logic of the control system software and the reliability of the hardware. To solve the problem, a real-time simulation system, based on dSPACE has been established, as well as modular simulation models. Through the test, it is proved that the simulation system can provide a near-real software and hardware test environment for the controllers of various types of mechanical parking system for the logic verification of the control system program and the reliability test of the hardware.