我想Simulink为实时目标准备一个文件。在主Simulink文件中,我有一个Model参考块,我将其设置为在Accelerator模式下运行。该Model块还包含几个S-functions. 该Model文件还配置为使用固定步长求解器。
但是,我收到此错误:
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
在为SIM目标构建时。
Normal如果我切换到块模式,一切都会很好Model。
我应该如何解决这个问题?