MATLAB: Simulink : How to update the data from Workspace while the simulation is running

simulinkupdate data from workspace

Hello,
My simulation is writing data in Matlab from Simulink, then I automatically paused it and do some computations on Matlab. After that the Simulink is continued automatically and I want to read the results of the Matlabs computations on Simulink.
The problem is that the box "From Workspace" doesn't update the values while the simulation is running or even paused. Is there a solution for updating the values or no?
Thanks for the help.

Best Answer

Problem solved :
I made a matlab function that load a '.mat' file with the variable I want and pass it as an output of my matlab function in Simulink.