How should I run a simulation in simulink so that the simulation matches the real time clock?

I have made a battery charging and discharging model wherein I have used a variable type solver.
But I need the simulation to run with the real time clock.
My problem is that if I give the simulation time as 100 s then the simulation gets completed much earlier.

추가 답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2012년 12월 27일
편집: Azzi Abdelmalek 2012년 12월 27일
If you have a Real time windows target toolbox you can simulate on real time

댓글 수: 1

If you have'nt this toolbox you can use an interpreted matlab function where you will put the code pause(n). n is your step time

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by