Identity
This is a virtual block that can be used to fix the size and datatype of the input and output links.
Library
Activate/SignalProperties
Description
The Identity block is a virtual block that can be used to fix the size and datatype of the input and output links.
The Data Size parameter defined the signal size with a 2x1 or 1x2 vector. The first entry represents the row number, the second entry represents the column number. Negative number can be used to make the row number or column number determined automatically by the compiler. For example when Data Size is set to [5, -1], it indicates the input signal is constrained to be a 5 row matrix. When Data Size is set to [-1, -2], it indicates the input signal is constrained to be of different row and column numbers.
Data type constraint is defined by "Data Type" parameter.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
sz | Data size | Specify the dimension of the input signal. | Vector of size 2 | |
typ | Datatype | Specify the data type of the input signal. | String | 'double' |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | input | 1 | |
Port 2 | explicit | output | 1 |