Is it possible to obtain a debuggable S-function which is generated automatically by RTW?
1 次查看(过去 30 天)
显示 更早的评论
I'm using Matlab Real-Time Workshop in several versions of Matlab (2007a, 2007b, 2009a) with Microsoft Visual Studio 2008. I'm building s-functions from simulink models. While building S-Functions automatically by RTW, is there any option in configuration parameters dialog of models that make possible to obtain debuggable s-functions?
I set Compiler Optimization level as "Custom" and I entered some flags(/Zi,/DNDEBUG,etc) in "custom compiler optimization flags" but I couldn't achieve to get a debuggable s-function.
Is there any way to do this?
0 个评论
回答(1 个)
Guy Rouleau
2013-11-7
In the generated makefile, search for "debug", you should find some comments explaining what to do. If you can find it, you should find the OPT flags passed to the compiler... add yours there. Once you modified the makefile, re-run the bat-file and it should generate a debuggable mex-file with the pdb file.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Prepare Model Inputs and Outputs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!