| Thomas LABRUYERE 2006-03-31, 10:03 pm |
| Hi,
I'm using a Level 2 M-file S-function to perform an animation similar
to the pendulum demo.
I've got most of it done, but I don't understand one feature from the
Level 1 S-function demo.
**from the demo file***
*switch flag,
* ...
* case 'DeleteBlock',
* LocalDeleteBlock
* ...
***********************
Using this flag, the demo can close the animation window when the
simulink window is closed.
It's not a default flag for an S-function, so I guess it's inherited
from the model itself, but I haven't found the mechanism. The closest
I can do is use the "Terminate" method to close the window right at
the end of the run.
Can anyone point me to resources on that mechanism or to how to
replicate these flags with Level 2 S-functions?
Thanks in advance,
Tom
PS:
mail='tompouce@liamg.com';
mail(10:14)=mail(14:-1:10);
disp(mail)
|