Programatically write to Simulink Diagnostic Viewer
1 次查看(过去 30 天)
显示 更早的评论
I am writing a C++ S-Function and I would like to be able to programatically write to the Diagnostic Viewer to aid with debugging. How can this be achieved?
0 个评论
回答(1 个)
Ganesh Regoti
2020-3-24
Hi,
There is a way of writing data onto diagnostic viewer programatically from S-Functions. The 'std::cout' statements written in method mdlOutputs is printed onto diagnostic viewer. This method is hit for every iteration (every simulation step). To get more information on S-Function, refer the following
Hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Configure and View Diagnostics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!