Sample time should be smaller then the simulation time. Because sample time represents the sampling period after which MATLAB will fetch the data for reading. If your simulation time is lesser then the sampling time then there is no data fetched for the simulation.