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

조회 수: 24 (최근 30일)
Ming Chun Hsu
Ming Chun Hsu 2018년 10월 1일
답변: Thomas Marullo 2018년 12월 22일
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.

답변 (1개)

Thomas Marullo
Thomas Marullo 2018년 12월 22일
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.

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by