A new method of data interaction between C# program and Simulink model is presented for the power systematic three-dimensional simulated training system. By establishing shared memory to be medi-location of data, Simulink model read or write from share memory through program in S-function. C# program uses Win32 API function to accomplish writing programmed segment for establishing shared memory and controlling Simulink model starting. Thus, the interaction of data is realized. Experiments demonstrated this method offered a new mix program solution to take each advantage of C# Language and Matlab.