필터 지우기
필터 지우기

Passing user input in realtime to simulink

조회 수: 3 (최근 30일)
Ross
Ross 2013년 11월 28일
댓글: Ross 2023년 1월 17일
Is there any way to include a value in simulink that is updated in real time by a user while the simulation runs?

채택된 답변

Abhinav
Abhinav 2023년 1월 17일
The short answer is you can't (easily) do that, that's not how Simulink works. The MATLAB workspace is read/accessed at the beginning of the simulation and passed to the Simulink engine, and even if the values in the workspace change before the simulation is finished, this is not taken into account by the Simulink model running.
There are ways to work around this, but if you are a novice to MATLAB & Simulink, be aware that these are fairly advanced techniques, and I would advise to familiarise yourself with Simulink first.
Have a look at the following documentation links for suggestions:
  댓글 수: 1
Ross
Ross 2023년 1월 17일
Thanks! Now I can continue my university project.....

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Real-Time Simulation and Testing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by