Is there a way to share a C structure (instantiated only once) among several C S-functions? Here's what I mean: I have a Simulink model with many blocks that are implemented as C S-functions. There are many model parameters that are needed in those blocks and I would like to create a single object that holds all model parameters and is instantiated only once when I start the simulation. Right now I instantiate this object for each S-function in order to access the parameters but it would be nice to share this object among the S-functions.
Just a pure guess: Could I place my model parameters structure in a separate DLL and access it afterwards from each C S-function? Has any of you done this before?