Simulink scope only save the last 1 second data to workspace?

21 visualizaciones (últimos 30 días)
Ming Chun Hsu
Ming Chun Hsu el 1 de Oct. de 2018
Respondida: Thomas Marullo el 22 de Dic. de 2018
Hi, I have tried to run my program on Simulink desktop real-time workshop in externel mode. My MATLAB version is R2017a and I want to run my program with 0.001 sampling time for 60 seconds. I want to save the simulation data with the scope block. I have already unchecked the "limit data points to last" parameter. However, when I check the workspace the scope only save the last 1 second data to workspace. Is there any setting I missed or is there any solution to this problem.

Respuestas (1)

Thomas Marullo
Thomas Marullo el 22 de Dic. de 2018
If you are using a Target Scope set to File Scope, you need to check the "Auto Restart" option at the bottom of the File Scope window. This will capture all data. Otherwise, you can use the Simulink Signal Logging capabilities by right clicking the signals you want to log and checking Log Signal. And then after a real-time run, you can observe the data in the Simulink Inspector.

Productos


Versión

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by