External Data Types
Micro includes a design attributes file for User-defined Data Types (UDTs), which is named UserDefinedType.dat. A UDT that has its
Data Type
attribute defined asCK_itsDataType
generates a typedef statement in the code, which is then used to define variables of that type.
● Singleton-Record and Singleton-Union
For these types, the name of the UDT (the value of theCK_itsDataType
attribute) is used to define the variable.
● Variables that override the value ofCK_itsDataType
.To use an external data type in the model, set the Data Type field in the Design Attribute of a User-Defined-Type (UDT) to be a value other than “Default.” To have design attributes for a UDT in an OSI, complete the following steps:
2. 2. In the Edit Attributes dialog box, select the list item UserDefinedType.The design attributes for the UDT will be available from the Data Dictionary.