For Programmers: Free Programming Magazines  


Home > Archive > Matlab > March 2006 > flags in L2 Mfiles Sfunctions?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author flags in L2 Mfiles Sfunctions?
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)
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com