Elements as channels (sample based) — Treat
each element of the input as a separate channel (sample-based
processing).
Use Input processing to specify whether the block performs
sample- or frame-based processing. The block accepts frame-based signals for the input
u. All other input signals must be sample-based.
Optimization of the code that you generate from the model. This
optimization can remove algorithmic code and affect the results of some
simulation modes such as SIL or external mode. For more information, see
Optimize using the specified minimum and maximum values (Embedded Coder).
Note
Output minimum does not saturate or clip the actual
output signal. Use the Saturation block instead.
Programmatic Use
Block Parameter:
OutMin
Type: character vector
Values: '[ ]'|
scalar
Default: '[ ]'
Output maximum — Maximum output value for range checking [] (default) | scalar
Upper value of the output range that Simulink checks.
Optimization of the code that you generate from the model. This
optimization can remove algorithmic code and affect the results of some
simulation modes such as SIL or external mode. For more information, see
Optimize using the specified minimum and maximum values (Embedded Coder).
Note
Output maximum does not saturate or clip the actual
output signal. Use the Saturation block instead.
Programmatic Use
Block Parameter:
OutMax
Type: character vector
Values: '[ ]'|
scalar
Default: '[ ]'
Output data type — Output data type Inherit: Inherit via internal
rule (default) | Inherit via back propagation | double | single | int8 | uint8 | int16 | uint16 | int32 | uint32 | int64 | uint64 | fixdt(1,16) | fixdt(1,16,0) | fixdt(1,16,2^0,0) | <data type expression>
Specify the output data type. You can set it to:
A rule that inherits a data type, for example,
Inherit: Inherit via back
propagation
The name of a built-in data type, for example,
single
The name of a data type object, for example, a
Simulink.NumericType object
An expression that evaluates to a data type, for example,
fixdt(1,16,0)
Click the Show data type assistant
button to display the Data Type Assistant,
which helps you set the data type attributes. For more information, see Specify Data Types Using Data Type Assistant.
Dependencies
When input is a floating-point data type smaller than single precision, the
Inherit: Inherit via internal rule
output data type depends on the setting of the Inherit floating-point output type smaller than single precision configuration parameter. Data types are smaller than single
precision when the number of bits needed to encode the data type is
less than the 32 bits needed to encode the single-precision data
type. For example, half and
int16 are smaller than single
precision.
Lock output data type setting against changes by the fixed-point tools — Prevent fixed-point tools from overriding Output data type off (default) | on
Select this parameter to prevent the fixed-point tools from overriding the
Output data type you specify on the block. For more
information, see Use Lock Output Data Type Setting (Fixed-Point Designer).
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.
Saturate to max or min when overflows occur — Method of overflow action off (default) | on
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.
Boolean[a] | double | fixed point | half | 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™.
The code generator does not explicitly group primitive blocks that
constitute a nonatomic masked subsystem block in the generated code. This
flexibility allows for more efficient code generation. In certain cases, you
can achieve grouping by configuring the masked subsystem block to execute as
an atomic unit by selecting the Treat as atomic unit option.
PLC Code Generation Generate Structured Text code using Simulink® PLC Coder™.
Fixed-Point Conversion Design and simulate fixed-point systems using Fixed-Point Designer™.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.