Can I pause/continue Simulink simulation from s-function?
Can I pause/continue Simulink simulation from s-function?
(OP)
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!
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!





RE: Can I pause/continue Simulink simulation from s-function?
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