This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

GetSimState

(Not recommended) Return the MATLAB S-function simulation state as a valid MATLAB data structure, such as a matrix structure or a cell array.

Note

GetSimState is not recommended. Use GetOperatingPoint instead.

Required

No

Language

MATLAB

Syntax

GetSimState(s)

Arguments

s

Instance of Simulink.MSFcnRunTimeBlock class representing the Level-2 MATLAB S-Function block.

Description

The Simulink® engine invokes this custom method to get the simulation state (SimState) of the model containing S. A call to this method should occur after Start and before Terminate to ensure that all of the S-function data structures (e.g., states, DWork vectors, and outputs) are available.

Introduced in R2015b