Input

This block adds an input port to a super block to connect regular signals outside of the super block to blocks inside of the super block.

    Input

Library

Ports

Description

Placed in the diagram of a super block, the Input block adds an input port to the super block for linking regular signals outside of the super block to blocks inside of the super block. Any link, outside of the super block, that is connected to the input port extends to the corresponding Input block inside of the super block.
The parameter "Port number" determines the relationship between the port block and the port on the super block. By default, the input ports are numbered sequentially from top to bottom.

  • When an input port block is added to a diagram, it is assigned with the smallest available "Port number".
  • When the "Port number" parameter is changed to an already assigned number, the existing one is renumbered to the smallest available number.

The number of ports on the super block is equal to the largest "Port number".

Parameters

Input_0

NameLabelDescriptionData TypeValid Values

portNumber

Port number

Number

outsize

Outport size

Vector of size 2

outtyp

Outport type

String

'double'
'complex'
'int32'
'int16'
'int8'
'uint32'
'uint16'
'uint8'
'boolean'
'string'
'inherit'

dept

Time dependency

Scalar

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

output

1

Advanced Properties

NameValueDescription

always active

no

For the simulation, this block is a virtual block.
For the code generation, you can force the always active mode by setting the Time Dependency parameter.

direct-feedthrough

no

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no

See Also