I have a simulink simulation that runs for 20s. At every 5s, it will generate a new set of data, which needs to be written to the workspace automatically. (Hence, the values in workspace should be updated automatically every 5s).
Right now, even though I try to write to the workspace every 5s, the values in the workspace remain at its initial value throughout the simulation and only update at the very end of the entire simulation time (i.e. after 20s).
May I know what should I do? Any advice or help is really greatly appreciated!
Best Regards, Rachel