Modeling and simulation is more and more widely applied in the development of the control system. It is very difficult to maintain and transplant that control system model is Complexity, dedicated and variability. To solve that problem this paper put forward research and implementation model base system platform based on C MEX S-Function. model base system platform contain model development ,model management ,and model storage and so on function. C MEX S-Function has some advantages that contain flexible, easy to transplant, run fast, real-time code generation and so on. So practices have proven that this base system platform can reduce development circle, reduce development cost, has model reusability and portability better, laid the foundation for embedded real-time code generation.