Specifying an Array or Matrix with Variable Size
Note |
|---|
Only arrays/matrices of kind Variable and specified as explicit references can have variable sizes. Arrays and matrices used as messages and arrays/matrices of record type cannot have variable sizes. |
- Open the properties editor for the array/matrix.
- Use the Name field to edit the element name.
In the Attributes area, activate the Reference option.
The other attributes are disabled.
In the Kind combo box, select the kind Variable.
In the combo boxes of the Variant Size field, select *.
The X (and Y) field(s) and the Reference option are disabled.
In the Basic Type combo box, assign the element type.
The basic scalar types, Enumeration, , and Record are available.
If you select Enumeration or Record, the
following happens. - In the Scope field, determine the scope of the element.
Specify external and internal access.
Explicit references cannot be calibrated or measured in an experiment; the settings in the Calibration Access field are irrelevant.
Click OK to close the properties editor.
Initialize the reference via one of the following possibilities:
Map the reference to a non-reference element.
Note
References must not be mapped to arrays or matrices used as messages.
- Use the reference without initialization.
See also
Variable Size of Arrays and Matrices
Editing the Configuration of an Array or Matrix
Software Component Editors – RTE Access Macros
Enabling or Disabling Elements