I am facing a problem with a Simulink model utilizing Model References. Inside one of the referenced models, I want to log some data variables using a 'To Workspace' and a 'To File' block. To use these blocks Matlab advises me to set the configuration parameter 'Total number of instances allowed per top model' of the afftected Model Reference to 'One' instead of 'Multi'.
The Simulink model is being used for desktop simulation as well as for code generation, in order for the code generation to work the abovementioned parameter is supposed to be 'Multi', so changing it is no option. Also due to the overall model structure and definition of input/output signals the 'To Workspace' and a 'To File' blocks should stay inside the referenced model and can not be moved to the top-level model.
Is there a way to keep these blocks inside the referenced model without changing the number of allowed instances parameter? Or is there maybe another solution for logging specific data from desktop simulation?
Thanks in advance