ERP CANoe Interface : Specifying Profile Settings

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.

Complete the following steps:

1.
In the run_stmm.bat file, uncomment the following line:

set GEN_CANOE_IF_CODE=ON

2.
Open Rational Statemate, and click the Embedded Rapid Prototyper icon.
3.
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.
7.

With Debugger

With Remote Panel Server

Graphical Back Animation

8.
9.
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 attribute CANOE_ENV_VAR.

If you want to select additional parameters, click Choose.
12.
Set the mapped CANoe environment variable name as the value of the CANOE_ENV_VAR attribute in the Prioperties entry of the element (using the Attributes mechanism).
Note:
13.