MATLAB Answers


how to get value to workspace from simulink model when paused?which is running in a for loop

Asked by Arun Badigannavar on 17 Dec 2012

I am running script to open a simulink model and simulate it in a for loop for 100 steps,in which i want to pause my simulation at 30th step and pass the values from simulink model to workspace,,,,in a for loop models are not giving values to workspace

  1 Comment

Simulink provides an application programming interface, called the block run-time interface, that enables programmatic access to block data, such as block inputs and outputs, parameters, states, and work vectors, while a simulation is running. You can use this interface to access block run-time data from the MATLAB command line, the Simulink Debugger, and from Level-2 MATLAB S-functions (see Write Level-2 MATLAB S-Functions).



No products are associated with this question.

0 Answers

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!