Allowed Record Content
A record can contain the following elements:
- scalar variables (cont, limitInt, wrapInt, sdisc, udisc, log)
- enumerations
other records
Nested records (i.e. record A contains record B, which contains record C, etc.) are allowed. Loops (record A contains record B, which contains record A) are forbidden; using them leads to a code generation error (EMake10).
- arrays
matrices
Note
Since ASCET V6.4.6, matrices and records with matrices can be used as interrunnable variables and AUTOSAR interface elements.
system constants
The main purpose of system constants in records is to allow arrays and matrices of variant size.
The following restrictions apply to the content of a record:
- Records cannot contain arrays and matrices of variable size.
- Records cannot contain characteristic lines/maps or components.
- Records cannot contain references.
- A system constant in a record is always imported. Local or exported system constants are not possible.
- Set ports for scalar record elements (cont, imitInt, wrapInt, sdisc, udisc, log, enumeration) are always enabled.
- Set ports for non-scalar record elements (record, array, matrix) are always disabled.
- Get ports are enabled for all record elements.
You can edit the properties, data, and implementations of elements in a record, however, the available options are limited.
See also