Programatically write to Simulink Diagnostic Viewer

1 visualización (últimos 30 días)
Ashley Schaeffer
Ashley Schaeffer el 19 de Mzo. de 2020
Respondida: Ganesh Regoti el 24 de Mzo. de 2020
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?

Respuestas (1)

Ganesh Regoti
Ganesh Regoti el 24 de Mzo. de 2020
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!

Categorías

Más información sobre Configure and View Diagnostics en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by