Main Content

Simulink.op.ModelOperatingPoint class

Package: Simulink.op

Access simulation operating point data


The Simulink.op.ModelOperatingPoint class contains all of the information associated with an operating point of a simulation, including the logged states, the time of the snapshot, and the start time of the simulation. To access this data for a specific block in the model, use the get method or the loggedStates property.


expand all

Description of the saved operating point object, specified as a character vector. By default, Simulink® generates a character vector based on your model name.

Continuous and discrete states of the block that depend on the SaveFormatsettings of the model.

If specified as a Dataset format, you cannot assign a structure or a Simulink.SimulationData.Dataset object with a different number of elements than that of the Dataset object used for loggedStates.

If specified as a Structure format, you cannot assign a Dataset object.

With dataset logging format, the answers returned by ModelOperatingPoint always match those returned by state logging (non-Operating Point save).

Time at which Simulink takes a snapshot of the complete simulation operating point.

This data is read-only.

Time at which simulation of the model starts.

This data is read-only.


expand all


collapse all

Use the sim command with set_param. Set the SaveOperatingPoint parameter to 'on'.

simOut = sim('sldemo_tonegen','StopTime','10');
myOperPoint = simOut.myOperPoint;

To configure the simulation to restore the operating point that you saved, use LoadInitialState. Simulink® restores the ModelOperatingPoint object when you simulate the model.

myOperPoint = simOut.myOperPoint;


Before you save the operating point, disable the Block Reduction parameter in Configuration Settings > Simulation Target > Advanced Parameters.

Introduced in R2019a