Hi,
I have one simulink model for Cpp code generation, which is referenced twice in a simulation model. While compiling the latter, I encounter the following issue.
Cannot generate reusable model reference target in the presence of machine parented data, events or exported graphical functions. Consider updating the 'Total number of instances allowed per top model' parameter, in the Model Referencing tab of the Simulation parameters (Configuration) dialog to "one".
Although a hint is given in the error message, after having set the field 'Total number of instances allowed per top model' to "one", the compiler again asks to set it back to "Multiple".
I have been looking around for hints without success, and trying to localize the issue. It somehow links to a matlab function block (in simulink) in the referenced model. Could you please give me hints to resolve the above issue?
Thanks in advance!
Regards,
Anh