In C-MEX S-functions, it is possible to include a call to the 'ssSupportsMultipleExecInstances' function. This function allows you to set a flag to true or false indicating whether or not that S-function supports multiple execution instances. This determines whether a 'For Each' Subsystem block will support that S-function operating inside the subsystem.
When the S-function source file is generated using the Legacy Code Tool, I need to manually go into the generated C file and add in the call to 'ssSupportsMultipleExecInstances'. I was wondering if there is a way for Legacy Code Tool to do this automatically.
Best Answer