Variable Size for Arrays and Matrices

The size of an array or matrix is determined when the element is created. In addition, ASCET allows the determination of normal arrays/matrices with variable sizes.

Note

Arrays/matrices used as messages and arrays/matrices of record type cannot have variable sizes.

A common use case for arrays/matrices with variable size is to have a method that accepts arrays/matrices of any size, and then compute the average, min, max, etc. inside the method.

The following rules apply:

If you use an array or matrix with variable size, keep the following in mind:

See also

Specifying an Array or Matrix with Variable Size

Converting Arrays/Matrices to Variable Size

Defining a Component Signature, steps 4, 5, 6

Defining the SWC Signature, steps 6, 7, 8

Array

Matrix

Initialization of Composite Elements

Specifying a Reference

Initialization of Explicit References

Kind of Elements

Variant Size for Arrays and Matrices

Code Generation Options

Editing the Configuration of a Composite Element

ASCET Options – Targets Node