From: Stefan Leier on
Hello,

I'm trying to control my Simulink model through GUI
controls. The GUI consists of two pushbuttons allowing the
simulation to start and stop, respectively. Reading through
the documentation I figured out two possible solutions using

1) the sim command
2) the set_param command with SimulationCommands

With either solution I'm facing two different kind of
problems. While the sim command does not allow to stop the
simulation using set_param(gcs, 'SimulationCommand',
'stop'), which I reckon is expected behavior, the set_param
command cannot use the simset options for changing the
source workspace. Is there any way to overcome these
problems without writing/reading all variable to/from the
base workspace within the respective GUI function??

Thanks for any help in advance.

Regards,
Stefan