Simulink Scope doesn't open in standalone .exe

6 visualizaciones (últimos 30 días)
John Schutkeker
John Schutkeker el 6 de En. de 2021
Respondida: Samhitha el 6 de Feb. de 2025
When I build a Simulink code and run the .exe standalone from Matlab or the CMD window, I can't get the scope to open automatically, to show me the results. How do I fix that, so I can see the data generated by my simulation? TIA

Respuestas (1)

Samhitha
Samhitha el 6 de Feb. de 2025
Hello John Schutkeker,
When you run a standalone Simulink executable (.exe), the built-in Simulink scopes don't automatically display results because they are part of the Simulink environment. Here is an alternative that you can use to visualize your simulation data:
File Logging : You can modify your Simulink model to log data to a file during the simulation. Use the “To File” block to save the data you want to analyse. After running the executable, open MATLAB and load this data file to visualize the results using MATLAB's plotting functions.
For more details, please refer to the following MathWorks Documentation:
Thank you.

Categorías

Más información sobre Prepare Model Inputs and Outputs en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by