C++ S-Function DYNAMICALLY_SIZED only known after mdlStart
이전 댓글 표시
Is there a way to set the Input-/Outputports during mdlStart? My Problem is that i am creating an instance of an object during the mdlStart function, and until this point I can't be sure about the size of my output signal.
Of course i could already create a dummy object during mdlInitializeSizes and free the Memory at the end of the function, but this would mean quite an overhead every time this function is called.
Is there any way I could avoid this? The examples from the helpfile did not help me as this example use parameters from simulink, which are already available during the call to mdlInitializeSizes.
Thanks for helping.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!