Generate linear models in base workspace when triggered
Simulink / Model-Wide Utilities
When triggered, this block calls
dlinmod to create a linear model for the system at the current operating point. No trimming is performed. The linear model is stored in the base workspace as a structure, along with information about the operating point at which the snapshot was taken. Multiple snapshots are appended to form an array of structures.
dlinmod provide only basic
linearization functionality. For full linearization functionality, use Simulink®
Control Design™ software. For more information, see Choose Linearization Tools (Simulink Control Design).
The block sets the following model parameters to the indicated values:
BufferReuse = 'off'
RTWInlineParameters = 'on'
BlockReductionOpt = 'off'
The name of the structure used to save the snapshots is the
name of the model appended by
vdp_Trigger_Based_Linearization. The structure has the following fields:
The A matrix of the linearization
The B matrix of the linearization
The C matrix of the linearization
The D matrix of the linearization
Names of the model's states
Names of the model's output ports
Names of the model's input ports
A structure that specifies the operating point of the
linearization. The structure specifies the value of the model's states
The sample time of the linearization for a discrete linearization
Use the Timed-Based Linearization block to generate linear models at predetermined times.
Port_1 — Input signal
Input trigger signal, specified as a scalar. Specify the type of event that triggers generation of a linear model using the Trigger type parameter.
Trigger type — Signal type that triggers generation of a linear model
Type of event on the trigger input signal that triggers generation of a linear model. You can select:
rising— Trigger execution of subsystem or model when the trigger signal rises from a negative or zero value to a positive value. If the initial value is negative, a rising signal to zero triggers execution.
falling— Trigger execution of subsystem or model when the trigger signal falls from a positive or a zero value to a negative value. If the initial value is positive, a falling signal to zero triggers execution.
either— Trigger execution of subsystem or model when the trigger signal is either rising or falling.
function-call— Trigger execution of subsystem or model when the trigger signal is a function-call event from a Stateflow® chart, Function-Call Generator block, S-Function block, or Hit Crossing block.
|Type: character vector
Sample time (of linearized model) — Sample time
0 (default) | scalar | vector
Specify a sample time for the linear model. To create a continuous-time
linmod, specify a sample time of
0. Otherwise, to create a discrete-time model using
dlinmod, specify a positive sample time (see Discrete-Time System Linearization).
|Type: character vector
|Values: scalar | vector
Design and simulate fixed-point systems using Fixed-Point Designer™.
Introduced before R2006a