Simulink with arduino MEGA 2560

I am using simulink matlab with arduino to generate pulses. As I increase the number of the digital output and the pulse generators the output frequency changed on the real oscilliscope but on the simulink scope it stays the same. what is the solution??