I have a simulink model which i am controlling from Matlab engine in C++ application. i start the simulation by using command set_param("mySimulinkModel","SimulationCommand","start"). now my requirement is the run the simulink model only for given simulation time (timeStep), once the simulation exceed the given simulation time step it should be paused.
how can i setup my model to run it only for given simulation time step?
Best Answer