There are two ways to import Enums:
You can import an .mxenum file (for example, MxV.mxenum) created by another project or subsystem. Mxenum files are in XML format. To open the Enum Master List dialog in MxVDev, select the Enum Master List button in the Signal Dictionary. 1.To overwrite Enum sets that are already in the project, select the Overwrite existing Enums checkbox. Otherwise, if an Enum set with the same name is in the project, the Enum set in the import file is ignored. 2.Click the
|
To import Enum definitions from a CSV file, select File->Import->Dictionary Data from the MxVDev main menu. A sample file named EnumExample.csv is provided in the Templates\CSV Import Examples subfolder of the MxSuite installation folder. If you provide a Signal name in the first column, a new Enum set is created with the same name as the Signal. If an Enum set with that name already exists, a new set is created with a number appended to the name, for example, VehRPM1. The most recently created Enum set is associated with the Signal named in the first column. If there is no Signal name in the first column, a new Enum set is created with a default name such as NewEnumSet or NewEnumSet1. To view the Enums, open the Signal Dictionary, select the Signal, and click the Edit button. Click on the drop-down list under "Enumeration List." See Working with Enums. |