how to send Data to workspace
6 views (last 30 days)
How to send data to workspace continuosly whenever my simulink model has been paused by below code,,I am using a simple constant block and to workspace block
set_param('SampleTest', 'Simulationcommand', 'start')
set_param('SampleTest', 'Simulationcommand', 'update')
set_param('SampleTest', 'Simulationcommand', 'continue')
Kaustubha Govind on 7 Jan 2013
Please see the second paragraph in my answer here for an explanation of what you're seeing. If you'd like your workspace to be updated immediately, you might need to write your own MATLAB code to do this. You can follow the technique described in Access Block Data During Simulation to run your MATLAB code as soon as a new output value becomes available.