This topic describes how to create a new message definition from a C header file using the New Message Definition File wizard in the workbench.
Before you start:
You must have completed the following tasks:
Before you begin this task, you should be aware of the points listed below:
- To create a new message definition file from a C header file, the header file must already be present in the workbench, for example in your message set project. This allows you to select the header file in the New Message Definition File wizard.
- The wizard allows you to import C header files with .h, .c and .css extensions. If your source file has a different extension you must rename it before attempting to import it.
- If the message set to which you are adding the new message definition file does not have an Custom Wire Format (CWF) layer only the logical information appears in the model. You can add the physical layer to the message set before or after importing a C header file, but you should add the physical layer before importing it to ensure that it is populated with settings from the C header file.
- It is also possible to import a C header file from the command line using mqsicreatemsgdefs.
The following steps cover both creating a completely new message definition file and overwriting the contents of an existing file.
To create a message definition file from a C header file: