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.

Transfer Fcn Lead or Lag

Implement discrete-time lead or lag compensator

  • Library:
  • Simulink / Discrete

Description

The Transfer Fcn Lead or Lag block implements a discrete-time lead or lag compensator of the input. The instantaneous gain of the compensator is 1, and the DC gain is equal to (1-z)/(1-p), where z is the zero and p is the pole of the compensator.

The block implements a lead compensator when 0<z<p<1, and implements a lag compensator when 0<p<z<1.

Ports

Input

expand all

Input signal that the block applies the discrete-time lead or lag compensation to.

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

Output

expand all

Output signal that is discrete-time lead or lag compensation of the input sign.

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

Parameters

expand all

Specify the pole of the compensator.

Programmatic Use

Block Parameter: PoleZ
Type: character vector
Value: real scalar
Default: '0.95'

Specify the zero of compensator in the Z plane.

Programmatic Use

Block Parameter: ZeroZ
Type: character vector
Value: real scalar
Default: '0.75'

Specify the initial condition for the previous output.

Programmatic Use

Block Parameter: ICPrevOutput
Type: character vector
Value: real scalar
Default: '0.0'

Specify the initial condition for the previous input.

Programmatic Use

Block Parameter: ICPrevInput
Type: character vector
Value: real scalar
Default: '0.0'

Specify the initial condition for the previous output.

Programmatic Use

Block Parameter: ICPrevOutput
Type: character vector
Value: real scalar
Default: '0.0'

Specify the rounding mode for fixed-point operations. For more information, see Rounding (Fixed-Point Designer).

Block parameters always round to the nearest representable value. To control the rounding of a block parameter, enter an expression using a MATLAB® rounding function into the mask field.

Programmatic Use

Block Parameter: RndMeth
Type: character vector
Values: 'Ceiling' | 'Convergent' | 'Floor' | 'Nearest' | 'Round' | 'Simplest' | 'Zero'
Default: 'Floor'

When you select this check box, overflows saturate to the maximum or minimum value that the data type can represent. Otherwise, overflows wrap.

When you select this check box, saturation applies to every internal operation on the block, not just the output or result. In general, the code generation process can detect when overflow is not possible. In this case, the code generator does not produce saturation code.

Programmatic Use

Block Parameter: DoSatur
Type: character vector
Values: 'off' | 'on'
Default: 'off'

Block Characteristics

Data Types

Boolean[a] | double | fixed point | integer | single

Direct Feedthrough

no

Multidimensional Signals

no

Variable-Size Signals

yes

Zero-Crossing Detection

no

[a] This block is not recommended for use with Boolean signals.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

PLC Code Generation
Generate Structured Text code using Simulink® PLC Coder™.

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

Introduced before R2006a