Locals Tab
This tab contains the following elements.
local variables field
Lists all existing local variables with name and type.
AddAdds a new local variable of the type cont.
DelDeletes the local variable selected in the local variables field.
Properties field
Local Variable Type combo box
Select the type of the local variable selected in the Local Variables field. Possible values are:
<user defined>
local variable of component or enumeration type
<enumeration>
local variable of enumeration type
cont, sdisc, udisc,
limitInt, wrapInt, log
scalar local variable of the respective type
array[cont], array[log],
array[sdisc], array[udisc],
array[limitInt], array[wrapInt],
array[<enumeration>], array[<record>]
array local variable of the respective type
mat[cont], mat[log],
mat[sdisc], mat[udisc],
mat[limitInt], mat[wrapInt],
mat[<enumeration>], mat[<record>]
matrix local variable of the respective type
Unit field
Enter the unit of the selected local variable.
Comment field
Enter a comment for the selected local variable.
Type combo box
Select a type for a wrapInt local variable.
Min and Max fields
Enter lower and upper limit for a limitInt or wrapInt local variable.
For limitInt, the values in Min and Max must be representable in sint32 or uint32.
For wrapInt, the values in Min and Max must be representable in the selected Type.
context menu in the Min field
context menu in the Max field
Reference option
Note
Only available for local variables of array, matrix and record type.
If this option is deactivated, you can export the model only in AMD format V6.4.0 or higher. An export to AMD format V6.3.* or older will result in an export error.
This option determines if the local variable is an explicit reference.
Read for Referenced Element and Write for Referenced Element option
Note
Only available for explicit references (i.e. arrays/matrices/records with activated Reference option, or components). It is not possible to disable both * for Referenced Element options at the same time.
Activate the appropriate * for Referenced Element option to set the internal access to the referenced element to Read or Write.
You can
Add Local Variables to a Runnable or Method
See also