Using Simulink    

Using the set_param Command

You can use the set_param command to start, stop, pause, or continue a simulation, or update a block diagram. Similarly, you can use the get_param command to check the status of a simulation. The format of the set_param command for this use is

where 'sys' is the name of the system and 'cmd' is 'start', 'stop', 'pause', 'continue', or 'update'.

The format of the get_param command for this use is

Simulink returns 'stopped', 'initializing', 'running', 'paused', 'terminating', and 'external' (used with Real-Time Workshop).


 Using the sim Command sim