Is there any way to use autocode to generate code that uses dynamic allocation for the global variables (e.g., subsystem input outputs, %var, ....)?
The reason is that, we would like to combine codes generated for several hybrid systems (with continuos, discrete, and triggered blocks), or several instances of the same model, into one system using hand written wrapper functions. Therefore, each individual system needs to have its own scheduler and private copy of the global variables.
Thanks,