Discrete Derivative - Compute discrete time derivative

Library

Discrete

Description

The Discrete Derivative block computes an optionally scaled discrete time derivative as follows

where and are the block's input and output at the current time step, respectively, is the block's input at the previous time step, is a scaling factor, and is the simulation's discrete step size, which must be fixed.

Data Type Support

The Discrete Derivative block supports all Simulink® software data types, including fixed-point data types.

For a discussion on the data types supported by Simulink software, see Data Types Supported by Simulink®.

Parameters and Dialog Box

The Main pane of the Discrete Derivative block dialog appears as follows:

Gain value

Scaling factor used to weight the block's input at the current time step.

Initial condition for previous weighted input K*u/Ts

Set the initial condition for the previous scaled input.

The Signal Attributes pane of the Discrete Derivative block dialog box appears as follows:

Output minimum

Specify the minimum value that the block should output. The default value, [], is equivalent to -Inf. Simulink software uses this value to perform:

Output maximum

Specify the maximum value that the block should output. The default value, [], is equivalent to Inf. Simulink software uses this value to perform:

Output data type

Specify the output data type. You can set it to:

Click the Show data type assistant button to display the Data Type Assistant, which helps you set the Output data type parameter.

See Specifying Block Output Data Types for more information.

Lock output scaling against changes by the autoscaling tool

Select to lock scaling of outputs. This parameter is visible only if you enter an expression for the Output data type parameter.

Round toward

Select the rounding mode for fixed-point operations. For more information, see Rounding in the Simulink® Fixed Point™ User's Guide.

Saturate to max or min when overflows occur

If selected, fixed-point overflows saturate.

Characteristics

Direct Feedthrough

Yes

Scalar Expansion

Yes, of inputs and gain

See Also

Derivative

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS