Using Simulink     Search    Help Desk 

Block Support for Data and Numeric Signal Types

All Simulink blocks accept signals of type double by default. Some blocks prefer boolean input and others support multiple data types on their inputs. The following table lists Simulink blocks that prefer boolean or support multiple data types

Block
Comments
Abs
Inputs a real or complex signal of type double. Outputs a real signal of type double.
Combinatorial Logic
Input and output data type is boolean, if Boolean mode is enabled (see "Enabling Strict Boolean Type Checking"); otherwise, double.
Constant
Outputs a real or complex signal of any data type.
Data Type Conversion
Inputs and outputs any real or complex data type.
Demux
Accepts mixed-type signal vectors.
Display
Accepts signals of any complex or real data type.
Dot Product
Inputs and outputs real or complex values of type double.
Enable
The corresponding subsystem enable port accepts signals of type boolean or double.
From
Outputs the data type (or types) of the signal connected to the corresponding Goto block.
From Workspace
Outputs type of corresponding workspace values.
Gain
Input can be a real- or complex-valued signal or vector of any data type except boolean.
Goto
Input can be of any type.
Ground
Outputs a 0 signal of the same type as the port to which it is connected.
Hit Crossing
Inputs a double signal. Outputs boolean, if Boolean mode is enabled (see "Enabling Strict Boolean Type Checking"); otherwise, double.
Inport
An inport accepts real- or complex-valued signals of any data type. The elements of an input signal vector must be of the same type if the inport is a root-level inport or the inport is directly connected to an outport of the same subsystem.
Integrator
An Integrator block accepts and outputs signals of type double on its data ports. Its external reset port accepts signals of type double or boolean.
Logical Operator
Inputs and outputs real signals of type boolean, if Boolean mode is enabled (see "Enabling Strict Boolean Type Checking"); otherwise, real signals of type double.
Manual Switch
Accepts real- or complex-valued signals of any type. All inputs must have the same signal and data type.
Math Function
Inputs and outputs real or complex values of type double.
MATLAB Function
Inputs and outputs real or complex values of type double.
Memory
Inputs real or complex signals of any data type.
Merge
Inputs and outputs any real or complex data type.
Multiport Switch
The control input of a Multiport Switch block accepts a real-valued signal of any type except boolean. The other inputs accept real- or complex-valued inputs of any type. All inputs must of the same data and numeric type. The block outputs the type of signal on its inputs.
Mux
Accepts any supported Simulink data type, including mixed-type vectors, on each input.
Out
Accepts any Simulink data type as input. Accepts mixed-type vectors as input, if the outport is in a subsystem and no initial condition is specified.
Product
Accepts real- or complex-valued signals of any data type except boolean. All inputs must be of the same data type.
Relational Operator
Accepts any supported data type as inputs. Both inputs must be of the same type. Outputs boolean, if Boolean mode is enabled (see "Enabling Strict Boolean Type Checking"); otherwise, double.
Rounding Function
Accepts and outputs real or complex values of type double.
Scope
Accepts real or complex signals of any data type.
Selector
Outputs the data types of the selected input signals.
Sum
Accepts any Simulink data type as input. All inputs must be of the same type. Outputs the same type as the input.
Switch
Accepts real- or complex-valued signals of any data type as switched inputs (inputs 1 and 3). Both switched inputs must be of the same type. The block output signal has the data type of the input. The data type of the threshold input must be boolean or double.
Terminator
Accepts any Simulink type.
To Workspace
Accepts any Simulink data type as input.
Trigger
The corresponding subsystem control port accepts signals of type boolean or double.
Trigonometric Function
Inputs and outputs real- or complex-valued signals of type double.
Unit Delay
Accepts and outputs real- or complex-valued signals of any data type.
Width
Accepts real- or complex-valued signals of any data type, including mixed-type signal vectors.
Zero-Order Hold
Accepts any Simulink data type as input.
. The table also lists blocks that support complex signals.

See Chapter 8, "Block Reference" for more information on the data types supported by specific blocks for parameter and input and output values. If the documentation for a block does not specify a data type, the block inputs or outputs only data of type double.



[ Previous | Help Desk | Next ]