In1
Subsystem input port or external input.
blockType: Inport
Path in the library:
|
Description
Block In1 connects signals outside the system to the system.
The software assigns the block port numbers In1 according to these rules:
-
Blocks In1 in a top-level system or subsystem, they are numbered sequentially, starting with
1. -
If you are adding a block In1, it is added with the next available number.
-
If you are copying a block In1 Its port number is not renumbered unless its current number conflicts with an input port that already exists in the system.
Blocks of input ports in subsystems
Blocks In1 The inputs to the subsystem are represented in the subsystem. The signal coming to the input port in the block Subsystem, exits the linked block In1 in this subsystem.
Duplicate input ports
A duplicate input port is a special copy of an existing input port (In1). All duplicates created from the same port represent the same signal. This allows you to separate the same input signal into different parts of the model without creating multiple connecting lines through the entire circuit.
To create duplicates of the input port:
-
Select an existing block on the canvas In1 (input port).
-
Hold down the keyboard shortcut Ctrl+LKM on the block.
-
Pull the mouse to the side and a context menu will appear.
-
In the menu, select the Duplicate option.

After creating a duplicate, the system switches to identifying ports by program names. The appearance of all ports associated with this signal will change.:
-
Source port
Inport1turns intoG:1; -
The created duplicate is displayed as
G:2; -
Subsequent duplicates receive IDs
G:3,G:4etc.
All blocks G:1, G:2, G:3 they are equal representations of the same port. There is no difference between them — it is a single port with several connection points in the diagram. Learn more about working with duplicates:
| Highlight |
When any duplicate is selected, all associated ports of this signal are highlighted in orange. |
| Edit |
To change the properties of the signal (name, data type), edit any of the duplicates. The changes will be automatically applied to all associated ports. |
| Deletion |
Deleting any duplicate does not affect the original signal. The signal (and all its duplicates) is deleted only when the last remaining port is deleted. |
| Usage |
Place duplicate ports in different parts of the circuit to supply the same input signal to different blocks. |
The same identification system is used for duplicates of input ports of subsystems and state machines.
Ports
Output
#
OUT_1
—
output signal
scalar | vector | matrix | bus
Details
A signal that enters the system through the input port.
You can use the In1 block in a subsystem to provide fixed-point data in a structure or any other format.
| Data types |
|
| Complex numbers support |
Yes |
Parameters
Main
# Port Number — port number
Details
The serial number of the port.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
No |
#
Icon Display —
information on the block icon
Block Name | Port Number
Details
Select the information displayed on the port icon: the block name or the serial number of the port.
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
No |
#
Interpolate —
possibility of linear interpolation of output data
Logical
Details
When uploading data from the workspace to the root-level input block, specify whether the block performs linear interpolation and extrapolation of output data in time steps for which no corresponding data exists.
To load individual data from the workspace, in the dialog box of the block In1:
-
Uncheck the option Interpolate if it is active.
-
Set the Sample time parameter to a discrete value, for example
2.
Specifying the time of a discrete sample means that the simulation will have a hit time exactly at the moments when the data is sampled. You are specifying data values, not time values.
Disabling interpolation allows you to avoid unexpected data values at other points in the simulation as a result of double-precision arithmetic processing.
The software uses the following interpolation and extrapolation methods:
-
For time steps between the first specified data point and the last specified data point, zero—order retention is used.
-
For time steps before the first specified data point and after the last specified data point, this is the main value.
-
For variable—size signals, for time steps up to the first specified data point, the value is
NaNit registers for single or double data types and is grounded for other data types. The software uses base values for time steps after the last specified data point.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
No |
#
Sample Time —
the interval between the calculation steps
SampleTime (real number / vector of two real numbers)
Details
Specify the interval between the calculation steps as a non-negative number. To inherit the calculation step, set this parameter to −1.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
#
Partition —
selecting the input port signal for separation
Logical
Details
Check this box if you need to split the signal (only for subsystems For Each). Checking the box adds parameters from the block For Each in the block settings menu In1.
If the check box is selected:
-
Select the input port signals connected to the unit For Each, for dividing into subarrays or elements.
-
For each port listed in the Port column, select the appropriate checkbox to split this signal.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
No |
#
Partition Dimension —
measuring the slicing of an array of input signals
Int64 integer
Details
Specify the dimension by which the selected array of input signals will be cut. The resulting slices are perpendicular to the specified measurement. Slices divide an array into subarrays or elements, depending on the situation.:
-
Situation 1 — slicing the input array into columns.
-
Situation 2 — slicing the input array into rows.
-
Situation 3 — slicing the input array by dimension.
Dependencies
To use this option, check the box Partition.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
#
Partition Width —
signal width
Int64 integer
Details
Specify the width of each section fragment of the selected input signal.
Dependencies
To use this option, check the box Partition.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
#
Partition Offset —
shifting sections
Int64 integer
Details
Set the offset for each section fragment of the selected input signal:
-
0— there is no offset between the fragments of the section, that is, the fragments of the section do not have gaps between each other and do not overlap. -
an integer— Specify the offset of the section using a positive integer to indicate the gap between the fragments or a negative integer to indicate overlap. The sum of the parameter values Partition Offset and Partition Width must be a positive integer.
For example, Partition Width from 3 and Partition Offset from −2 means that each three-element fragment overlaps neighboring fragments by two elements; while Partition Width from 2 and Partition Offset from 1 This means that there is a gap of one element width between each pair of adjacent fragments with a width of two elements.
Dependencies
To use this option, check the box Partition.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
Signal Attributes
#
Output data type —
type of output data
Inherit: auto | Float64 | Float32 | Float16 | Int8 | UInt8 | Int16 | UInt16 | Int32 | UInt32 | Int64 | UInt64 | Int128 | UInt128 | Bool | Fixed-point | BusSignal
Details
Specify the type of output data.
The type can be inherited or specified directly.
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
No |
#
Output fixed-point type —
fixed-point output type
Data type
Details
Specify the type of fixed-point output.
Dependencies
To use this parameter, set for the parameter Output data type meaning Fixed-point.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
#
Output bus type —
type of output bus
Data type
Details
Specify the type of output bus.
For more information about working with tires, see Working with custom tires BusSignal in the equipment blocks.
Dependencies
To use this parameter, set for the parameter Output data type meaning BusSignal.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Port dimensions — port dimension
Details
Specify the dimension of the output signal:
-
−1— the port can load data for any signal size. The port inherits the dimension from the connected signal. -
()— the port can load data for a scalar signal, that is, a signal representing a single value (number). -
(N,)— the port can load data for a signal representing a vector of dimensionN. -
(R, C)— the port can load data for a matrix signal havingRlines andCcolumns.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
#
Signal type —
type of output signal
auto | real | complex
Details
Specify the type of output signal. To inherit the type of signal connected to its input, select auto. Otherwise, select real or complex the type of signal.
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
No |