Variable types
A variable type is a model variable from which you can create instances of the variable. Variable instances can contain other specific variables.
Predefined and custom variable types
Each project contains these predefined variable types:
Custom variable types that you or the application logic create are available only in the project in which you create them.
TIP:
Changes to a variable type automatically apply to all instances of the variable. If you delete the variable type, you also delete all the subtypes of the variable type, along with the corresponding instances of the variable.
Variable
Variables contain specific data types (for example, a numeric Int32 value or a String value).
By default, every variable contains these attributes:
Attribute | Description |
---|---|
BrowseName | Name of the variable in the project. |
DataType | Data type that the variable can contain. |
Description | Description of the variable. |
DisplayName | Translatable variable name that can appear on the interface at runtime. |
NodeId | Automatically assigned unique identifier. |
Value | Value of the data. |
For example, you can create a label with a string value of
OK
and then create a dynamic link between the variable and the Text
property of a Button
object.
Analog variable
Analog variables are structured variables that represent physical characteristics and ranges.
By default, every analog variable contains these attributes:
Attribute | Property | Data type | Description |
---|---|---|---|
EngineeringUnits
|