[求助]generate S-function时遇到的问题
我把mdl模块中用到的参数全部定义成syms
然后把整个模块create subsystem,再右键real time workshop-->generate s-function
命令窗口出现下面的提示
### Model failed to compile with strict bus check on
### Turning strict bus check off
mdl模块提示如下
Model does not compile without errors.
Invalid setting in 'buck_boost_PCM_simulink_s/Subsystem/Fb/Gain' for parameter 'Gain'.
Error generating S-function for 'buck_boost_PCM_simulink_s/Subsystem' in block diagram 'buck_boost_PCM_simulink_s'. MATLAB error message:
Error using ==> rtw\private\ssgensfun>LocalErrorExit at 380
Cannot set RTW params for S-function target.
哪位大侠知道怎么回事?