I would like to prepare a Simulink
file for a real-time target. In the main Simulink
file I have a Model
reference block, which I set to run in Accelerator
mode. The Model
block also contains several S-functions
. The Model
file was also configured to use a fixed-step solver.
However, I'm getting this error:
Caused by:
Error using do_rt (line 410)
The noninlined S-function 'whatever/Model' in a referenced model is not allowed
to call macros that use the generic function in the SimStruct. To find such macros,
search for GenericFcn in simstruc.h
when building for the SIM
target.
Everything works well if I switch to Normal
mode for the Model
block.
How should I fix this issue?