An enumeration is a user-defined data type composed of a series of comma-separated components (enumeration values) for declaring user-defined variables.
You declare an enumeration in a DUT object, which you have already created in the project by clicking “Add Object”.
In the application code, you can use the enumeration components like constants whose
identifier <enumeration name>.<component name>
is recognized globally in the project.
-
Declaration
-
Enumeration with explicit basic data type
-
Strict programming rules
-
Declaration and initialization of enumeration variables
-
Unique access to enumeration components