TypeConstraint
This block adds a type constraint to the model.
Library
Activate/SignalProperties
Description
This block imposes type constraint on all input signals to force the same or different data types. Negative numbers in block parameter "Input Port Type Constraint" are used to represents the data type. For example, when the types are defined by -1, -1, it means both input signals should be of the same type. When types are defined by -1, -2, -1, it means the first and third input signals are same types, the second input signal is a different type.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
nin | Number of inputs | Specify the number of inputs of the block. | Number | |
in_ports | Input port type constraint | Structure | ||
in_ports/tp | Datatype code | The desired datatype. Use negative numbers to represent that input ports have the same or different data types. | Cell of scalars |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | input | nin |