Simulink scope only save the last 1 second data to workspace?
13 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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.
0 Commenti
Risposte (1)
Thomas Marullo
il 22 Dic 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.
0 Commenti
Vedere anche
Categorie
Scopri di più su Target Computer Setup in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!