Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I pause/continue Simulink simulation from s-function?

Status
Not open for further replies.

robotboy

Automotive
Feb 12, 2002
7
0
0
US
Not sure if this is possible...

I saw some documentation on get_param, but this
appears to be restricted to command line usage.
(not sure)

To be more complete... What I want to do is start,
pause, continue, and stop (end) the Simulink simulation
from external c-code.

Must I use RTW and TLC? (Hope not as this is expensive)
Can anyone offer guidance and/or point out information resources?

Thanks!
 
Replies continue below

Recommended for you

In your s-function, you can do something like
while "pause.txt exists
do nothing
end while

and something similar for stoping

if "stop.txt" exist
throw an error

I dont know if there is a more elegant way of stopping a simulation, I think there is a standard activeX style API for starting simulations.

Ta
 
Status
Not open for further replies.
Back
Top