The real time and sample time do not match in the simulink scope.
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Chanhyeok
am 4 Sep. 2023
Beantwortet: Angelo Yeo
am 5 Sep. 2023
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.
0 Kommentare
Akzeptierte Antwort
Angelo Yeo
am 5 Sep. 2023
다음으로, 시뮬링크 시뮬레이션은 real-time 용 시뮬레이션을 위해 만들어진 것이 아닙니다. 예를 들어, 1시간 동안 돌아갈 일들을 1분 만에 시뮬레이션 해볼 수 있습니다. Rapid Control Prototyping이나 Hareware In the Loop 테스트 등을 위해 꼭 실시간 시뮬레이션이 필요한 경우 Simulink Real-Time 등을 활용할 수 있습니다.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Coder finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!