Simulink Reference Previous page   Next Page
Weighted Sample Time Math

Support calculations involving sample time

Library

Math Operations

Description

The Weighted Sample Time Math block adds, subtracts, multiplies, or divides the input signal, u, by a weighted sample time Ts.

You specify the math operation with the Operation parameter. Additionally, you can specify to use only the weight with either the sample time or its inverse.

Enter the weighting factor in the Weight value parameter. If the weight is 1, w is removed from the equation.

Data Type Support

The Weighted Sample Time Math block accepts signals of any data type supported by Simulink, including fixed-point data types.

Parameters and Dialog Box

The Main pane of the Weighted Sample Time Math block dialog appears as follows:

Operation
Specify operation to use: +, -, *, /, Ts only, 1/Ts only.
Weight value
Enter weight of sample time.
Implement using
Specify online calculations or offline scaling adjustment. This parameter is only visible for some Operation parameter settings.

The Signal data types pane of the Weighted Sample Time Math block dialog appears as follows:

Output data type and scaling
Specify whether the output data type and scaling are inherited by an internal rule or by backpropagation.
Round toward
Select the rounding mode for fixed-point operations. This parameter is only visible if you select Online Calculations for the Implement using parameter.
Saturate to max or min when overflows occur
If selected, fixed-point overflows saturate. This parameter is only visible if you select Online Calculations for the Implement using parameter.

Characteristics

Direct Feedthrough
For all math operations options except Ts and 1/Ts
Scalar Expansion
No, the weight is always a scalar


Previous page  Weighted Sample Time While Iterator Next page

© 1994-2005 The MathWorks, Inc.