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!