TypeConstraint

This block adds a type constraint to the model.

    TypeConstraint

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

TypeConstraint_0

NameLabelDescriptionData TypeValid 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

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

nin