Hi,
I am trying to run an animation (which does not need any Simulink data) when the simulation status of a model is "running".
I am aware of the callback function StartFcn but this only runs during the initialization phase and not during the running phase.
I am also aware that I could run the animation by creating a MATLAB function within simulink and update the animation as the simulink model is running.
But I do not want this setup. I want to find out if I can invoke a MATLAB function outside simulink with a while loop using the simulink's simulation running status.
I tried parfeval but I cannot make it work because I believe I need to invoke the background process somehow within the simulink model (which I do not want). Then I found out about the timer function, but I am not sure if it can work in this setup either (or I cannot think of how to make it run).
Is what I ask possible? Or we always need to invoke the animation within the simulink model?
Many thanks.