This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Save Simulation Data

Behavior of the To Workspace Block

The To Workspace block writes event-based signals to the MATLAB® workspace when the simulation stops or pauses. One way to pause a running simulation is to select Simulation > Pause.

Send Queue Length to the Workspace

The example shows one way to write the times and values of signals to the MATLAB workspace. In this case, the signal is the n output from an Entity Queue block, which indicates how many entities the queue holds.

You can use different time formats in the To Workspace block to display the data.

To record entities and their attributes passing along an entity line, consider connecting a To Workspace block to that entity line.

Data Logging

You can log data from your SimEvents® model using Simulink®. For more information, see Save Runtime Data from Simulation (Simulink).

See Also


Was this topic helpful?