I have a reccurring problem with Simulink when signals are streamed to the Simulation Data Inspector. When the 'Run' button is pressed the model compiles but then gets stuck at 0% whilst the 'wheels' are turning in the plots of the Data Inspector window, see attached figure. Note also that new data has begun to appear in the plots. In this situation it's not possible to cancel the simulation nor use any other functionality of Matlab. So it is indeed stuck somehow.
Additional info:
- The simulation does in fact finish, but it may stay as in the figure for several minutes. When it finally starts the simulation is quick.
- I have had this problem with both 2016a and 2016b.
- The attached figure shows a simple simscape model, the problem occurs when running a 'standard' simulink model as well.
- The problem never arise the first time the model is run after Matlab startup, always from the second time onwards.
- If the 'Stream signal to Data Inspector' is removed the model runs as it should again.
- The 'Log signal to workspace' functionality works fine (as long as 'Stream to Data Insp' is not used at the same time).
- Simulink does not throw any error or warning of any kind that might suggest what may be the cause of this behaviour.