Fixed-Point Blockset    
Sample Time Multiply

Support calculations involving sample time

Library

Calculus

Description

The Sample Time Multiply block is a masked S-function that 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 with the Weight value. If the weight is 1, w is removed from the equation.

For a detailed description of all block parameters, refer to "Block Parameters" on page 9-4. For more information about converting from one Fixed-Point Blockset data type to another, refer to "Signal Conversions" on page 4-26.

The Calculus library contains the following implementations, which are all linked to the Sample Time Multiply block but have different parameter settings:

Parameters and Dialog Box

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.
Output data type and scaling
Specify whether the output data type and scaling are inherited by an internal rule or by backpropagation.
Round toward
Rounding mode for the fixed-point output.
Saturate to max or min when overflows occur
If selected, fixed-point overflows saturate.

Characteristics

Input Port
Any data type supported by the blockset
Output Port
Same as the input
Direct Feedthrough
For all math operations options except Ts and 1/Ts
Scalar Expansion
No, the weight is always a scalar


  Sample Time Divide Sample Time Probe