필터 지우기
필터 지우기

The real time and sample time do not match in the simulink scope.

조회 수: 3 (최근 30일)
Chanhyeok
Chanhyeok 2023년 9월 4일
답변: Angelo Yeo 2023년 9월 5일
For example, I set the sample time to 0.5 seconds. Does that mean there are two types of data per second?
However, if you look at the actual data being extracted, 0.5 seconds becomes 1 second(in real time), and a graph is drawn on the x-axis 60-second graph for 120 seconds(in real time).
Even if the amount of calculation becomes large, the 0.5 second becomes more than 1 second(in real time), resulting in 180 seconds, 200 seconds(in real time), or more on the 60-second axis.
The most curious thing is to distort the time axis as I want.
For example, the 60-second axis is extended to 200 seconds of the real time it took to actually extract data.

채택된 답변

Angelo Yeo
Angelo Yeo 2023년 9월 5일
우선, "샘플 시간이란?" 이라는 문서를 통해 샘플 시간에 대한 개념을 정확히 이해할 필요가 있어 보입니다.
다음으로, 시뮬링크 시뮬레이션은 real-time 용 시뮬레이션을 위해 만들어진 것이 아닙니다. 예를 들어, 1시간 동안 돌아갈 일들을 1분 만에 시뮬레이션 해볼 수 있습니다. Rapid Control Prototyping이나 Hareware In the Loop 테스트 등을 위해 꼭 실시간 시뮬레이션이 필요한 경우 Simulink Real-Time 등을 활용할 수 있습니다.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

태그

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by