Borrar filtros
Borrar filtros

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

3 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by