Signal types
Description of types of signals available for signal processing components
In terms of signal size, signal processing components currently support scalar and vector (one-dimensional array) signals.
- real
- int
- unsigned int
Real type mapping to the real-time platform signals is defined in Schematic Editor via the Model/Schematic settings/Signal Processing settings/User SP settings menu path. Here, the real type mapping should be selected (other options include default, single precision, or double precision). Default settings are given in Table 1.
Other data types (integer and unsigned integer) are fixed, as specified in Table 1.
It is highly recommended to leave the default value to get the best performance.
Device | Real | Int | Unsigned int |
---|---|---|---|
All HIL devices | double (double precision) | int (32bit) | unsigned int (32 bit) |
Some components have limitations on signal sizes and data types that they accept. Before a model is compiled, a built-in validator checks signal terminals on all the components to ensure that they can accommodate the associated signals and report errors in case of incompatibilities.