Signal types

This section describes signal types

In terms of signal size, Signal Processing components currently support scalar and vector (one-dimensional array) signals.

In terms of data types, signals can hold one of the three supported data types:
  • 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.

Table 1. Default signal type mapping
Device Real Int Unsigned int
HIL402/404/602+/604/606 double (double precision) int (32bit) unsigned int (32 bit)

Some components have limitations on signals sizes and data types that they accept. Before a model is compiled, built-in validator checks signal terminals on all the components to ensure that they can accommodate the associated signals and reports errors in case of incompatibilities.