Programatically write to Simulink Diagnostic Viewer
조회 수: 5 (최근 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!