Specifying Profile Settings
Before generating the code, you must define the module interface (which model elements are read to, or written from, the environment), and the mapping between a Rational Statemate model element and the CANoe environment variable name.
1. In therun_stmm.bat
file, uncomment the following line:
2. Open Rational Statemate, and click the Embedded Rapid Prototyper icon.
4. Select Options > Global Profile Settings. The following window displays:
5. Select Module Procedures Only from the Generation of main: drop-down list.
6. Select Generate CANoe Interface.
●
●
●
8. Specify a module and scope. Do not include a panel.
9. Click OK.
10. Select a module in the profile, then select Options > Module Settings > Parameter Setting. The Parameters for Module <Name> window is displayed, as shown in the following figure.
11. Select the Type [Data-Item (integer, real, string, or binary), Event, or Condition], and Mode (In or Out, but not In/Out) information for each parameter.
By default, if you have not specified values for the external symbols, Rational Statemate uses the values of the attributeCANOE_ENV_VAR
.
If you want to select additional parameters, click Choose.
12. Set the mapped CANoe environment variable name as the value of theCANOE_ENV_VAR
attribute in the Prioperties entry of the element (using the Attributes mechanism).
Note: Currently, the interface supports only one module. Repeat Step 10 for every element defined as part of the module interface.