Elements of a complex data type definition can reference one or more complex data type definitions in the type definition library. Such complex data type definitions are called nested data type definitions.
The following image shows a nested data type definition Company on the type definition library tab:
The nested data type definition Company references the following complex data type definitions:
In the complex data type definition Company, the array element Employees references the complex data type definition Employee.
In the complex data type definition Employee, the Emp_Address element references the complex data type definition Address.
In the complex data type definition Employee, the Emp_Contact element references the complex data type definition Contact.
In a recursive data type definition, one of the complex data type definitions at any level is the same as any of its parents. You cannot reference a recursive data type definition to a struct port or a struct element in a complex port.