Documentation Center

  • Trials
  • Product Updates

Contents

operpoint

Create operating point for Simulink model

Syntax

op = operpoint('sys')

Alternatives

As an alternative to the operpoint function, create operating points in the Linear Analysis Tool. See Steady-State Operating Points (Trimming) from Specifications.

Description

op = operpoint('sys') returns an object, op, containing the operating point of a Simulink® model, sys. Use the object with the function linearize to create linearized models. The operating point object properties are:

Edit the properties of this object directly or with the set function.

Model

Model specifies the name of the Simulink model that this operating point object refers to.

States

States describes the operating points of states in the Simulink model. The States property is a vector of state objects that contains the operating point values of the states. There is one state object per block that has a state in the Simulink model. The States object has the following properties:

Nx

Number of states in the block. This property is read-only.

Block

Block with which the states are associated.

x

Vector containing the values of states in the block.

Ts

Vector containing the sample time and offset for the state.

SampleType

Set this value to CSTATE, for a continuous state, or DSTATE for a discrete state.

inReferencedModel

Set this value to 1, when the state is inside a referenced model, or 0, when it is not.

Description

Text string describing the block.

Inputs

Inputs is a vector of input objects that contains the input levels at the operating point. There is one input object per root-level inport block in the Simulink model. The Inputs object has the following properties:

Block

Inport block with which the input vector is associated

PortWidth

Width of the corresponding inport

u

Vector containing the input level at the operating point

Description

Text string describing the input

Time

Time specifies the time at which any time-varying functions in the model are evaluated.

Examples

To create an operating point object for the Simulink model magball, type:

op = operpoint('magball')

which returns the following:

 Operating Point for the Model magball.
 (Time-Varying Components Evaluated at time t=0)

States: 
----------
(1.) magball/Controller/PID Controller/Filter
      x: 0            
(2.) magball/Controller/PID Controller/Integrator
      x: 14           
(3.) magball/Magnetic Ball Plant/Current
      x: 7            
(4.) magball/Magnetic Ball Plant/dhdt
      x: 0            
(5.) magball/Magnetic Ball Plant/height
      x: 0.05         
 
Inputs: None 
----------

MATLAB® software displays the name of the model, the time at which any time-varying functions in the model are evaluated, the names of blocks containing states, and the values of the states at the operating point. In this example there are four blocks that contain states in the model and four entries in the States object. The first entry contains two states. MATLAB also displays the Inputs although there are not any in this model. To view the properties of op in more detail, use the get function.

See Also

| | | |

Was this topic helpful?