Simulink test: redirect "disp" output to file

10 次查看(过去 30 天)
Hi,
In the model I'm simulating I have multiple calls to "disp" function which prints to the Diagnostic viewer.
When running tests using Simulink test in batch I couldn't find the diagnostic viewer output.
Is it possible to redirect the screen output to log file which I can review?
Thanks!

回答(1 个)

Priyanka Kondapalli
编辑:Priyanka Kondapalli 2022-3-24
Hi,
I understand you are trying to output the logfile, for which you can use the diary function. Please use the link below on how to use the diary function.

类别

Help CenterFile Exchange 中查找有关 Outputs 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by