| Contents | Index |
op = operpoint('sys')
As an alternative to the operpoint function, create operating points in the Operating Points node of the Simulink Control Design GUI. See Steady-State Operating Points (Trimming) From Specifications.
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 specifies the name of the Simulink model that this operating point object refers to.
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 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 specifies the time at which any time-varying functions in the model are evaluated.
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.
get | linearize | operspec | set | update

Learn more about resources for designing, testing, and implementing control systems.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |