A general model of photovoltaic module based on its mathematic model by using the S-function in Matlab is introduced.The model can simulate the I-V and P-V characteristics of the actual photovoltaic modules at different radiant intensity and temperature.It can be used to do the simulation research on dynamic photovoltaic power system directly.The simulation results prove the rationality and generality of this model.