Assigning a structure as a
data type
You can think of a user defined structure as a complex
data type.
When you configure a structure in a Global Variables
device, it becomes available from the New Variables window
Type drop-down list.
When you configure a new variable, you can assign the
structure as the data type.
To create a new variable, follow the steps in
Configuring Global Variables device variables; however,
the data type to select will be the new structure.
For this example StructureGVar is the
variable of type StructureA.
When the new variable is configured, and the Global
Variables device started, the variable becomes available
from the Variables tab.
Notice that the StructureGVar variable is
composed of four fields that comprise the
StructureA data type (which was configured
as a structure).