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.

Trigger-Based Linearization

Generate linear models in base workspace when triggered

  • Library:
  • Simulink / Model-Wide Utilities

Description

When triggered, this block calls linmod or 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.

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 _Trigger_Based_Linearization, for example, vdp_Trigger_Based_Linearization. The structure has the following fields:

Field

Description

a

The A matrix of the linearization

b

The B matrix of the linearization

c

The C matrix of the linearization

d

The D matrix of the linearization

StateName

Names of the model's states

OutputName

Names of the model's output ports

InputName

Names of the model's input ports

OperPoint

A structure that specifies the operating point of the linearization. The structure specifies the value of the model's states (OperPoint.x) and inputs (OperPoint.u) at the operating point time (OperPoint.t).

Ts

The sample time of the linearization for a discrete linearization

Tip

Use the Timed-Based Linearization block to generate linear models at predetermined times.

Ports

Input

expand all

Input trigger signal specified as a scalar. You specify the type of event that triggers generation of a linear model using the Trigger type parameter.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | fixed point

Parameters

expand all

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, or an S-Function.

Programmatic Use

Block Parameter: TriggerType
Type: character vector
Values: 'rising' | 'falling' | 'either' | 'function-call'
Default: 'rising'

Specify a sample time to create a discrete-time linearization of the model (see Discrete-Time System Linearization).

Programmatic Use

Block Parameter: SampleTime
Type: character vector
Values: scalar | vector
Default: '0'

Block Characteristics

Data Types

double | single | Boolean | base integer | fixed point

Direct Feedthrough

No

Multidimensional Signals

No

Variable-Size Signals

No

Zero-Crossing Detection

No

Extended Capabilities

Fixed-Point Conversion
Convert floating-point algorithms to fixed point using Fixed-Point Designer™.

Introduced before R2006a