Borrar filtros
Borrar filtros

Passing user input in realtime to simulink

5 visualizaciones (últimos 30 días)
Ross
Ross el 28 de Nov. de 2013
Comentada: Ross el 17 de En. de 2023
Is there any way to include a value in simulink that is updated in real time by a user while the simulation runs?

Respuesta aceptada

Abhinav
Abhinav el 17 de En. de 2023
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 comentario
Ross
Ross el 17 de En. de 2023
Thanks! Now I can continue my university project.....

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Real-Time Simulation and Testing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by