Terminal
Terminal Overview
Terminal is the input and output terminal of the block. Each block must contain at least one terminal. The user can connect a terminal via the connector. The user can connect one input terminal to multiple output terminals. The input terminal is connected only to the output terminal. Input and output terminal data types must be the same to connect.
Input Terminal
The Input terminal gets data from the output terminal.
Output Terminal
The Output terminal transfers data to the input terminal.
Terminal data types
All Data Types
uint8 | int8 | uint16 | int16 | uint32 | int32 | float
Data type |
Description |
|---|---|
uint8 |
Unsigned 8 bit integer type |
int8 |
Signed 8 bit integer type |
uint16 |
Unsigned 16 bit integer type |
int16 |
Signed 16 bit integer type |
uint32 |
Unsigned 32 bit integer type |
int32 |
Signed 32 bit integer type |
Float |
Floating point 32 bit |
Boolean
uint8
Data type |
Description |
|---|---|
uint8 |
Boolean |
Single Precision
Float
Data type |
Description |
|---|---|
Float |
Floating point 32 bit |
Signed data types
int8 | int16 | int32
Data type |
Description |
|---|---|
int8 |
Signed 8 bit integer type |
int16 |
Signed 16 bit integer type |
int32 |
Signed 32 bit integer type |
Unsigned data types
uint8 | uint16 | uint32
Data type |
Description |
|---|---|
uint8 |
Unsigned 8 bit integer type |
uint16 |
Unsigned 16 bit integer type |
uint32 |
Unsigned 32 bit integer type |
Type Casting
All input signals of a block must share the same data type. Flint Visual Programmer simplifies this requirement by automatically upcasting data types when necessary. This ensures compatibility across different input signals without manual intervention.
Flint intelligently handles data type mismatches by converting lower-precision or less complex data types to match the highest precision or most complex data type among the connected inputs. This process is automatic and ensures that operations are performed consistently without errors.
For example:
In an Add Block, if one input terminal is connected to an 8-bit unsigned integer (Uint8) and another to a single-precision float, Flint automatically converts the Uint8 input to a single-precision float and outputs a single precision float.
