I don't know what the "proper" way to do this is, but here's a quick-and-dirty way that I can think of:
void interruptFunction()
{
/* do something here */
}
You can also add a declaration to model.h if you like:
void interruptFunction();
You should be able to use this in any part of your TLC file (since you are reaching into specific portions of the generated code), I don't think it should matter whether you call it from Start or Output or any other method.
I haven't tried this out, so please post back if you run into issues with this solution. Typically this type of thing can be done in the custom file processing template, but my guess is that you can do it from an S-function TLC as well.
Best Answer