When does ssGetInputPortSignal return NULL in mdlOutputs
1 次查看(过去 30 天)
显示 更早的评论
Hi, from the Docs I got that if the InputPort is set to SS_REUSABLE_AND_LOCAL by ssSetInputPortOptimOpts I cannot use ssGetInputPortSignal inside of the mdlUpdate function, because the signal has already been used and is not valid anymore or whatever.
But I neither did set that flag nor do I try to call ssGetInputPortSignal from mdlUpdate. I built the CMex function using the FunctionBuilder Block and sourced the mdlStart and mdlInitializeSizes functions out because I implemented the strategy pattern to be able to change the input data type dependent on a value passed in as a parameter. Is that a problem? I don't know where to search, since I did not change the code that I sourced out.
Thanks and greets!
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!