Canoe3

4.3.1.4        Create Another Message By Duplication


Creating a second message using the first message as a template is quite easy.

1)   Select the message "aaaMsg" either in the tree view at the left or right, right-click on it, and select
Copy.

2)   Select Messages in the tree view, right-click on it, and select Paste.

3)   Double-click on the message "aaaMsg_Copy_1".

4)   Change the message name from "aaaMsg" to "bbbMsg".

5)   Change the message Identifier from "0x1AA" to "0x2BB".

6)   Select the Transmitter tab and click [Add].

7)   In the window that pops up, select the transmitter "BBB".

8)   Select the Signals tab and remove each signal associated to it by selecting the signal and click
[Remove…].

9)   Click on [Apply] and click [OK].

10) The question: "Shall Node BBB remain as sender of the message?" will appear. Click [Yes].


Next, we will create unique signals for this message by duplicating the three signals we have previously made.

Note: Unique signals are used to easily define signals associated to a message.

1)   Right click on “Indicator_A and select Copy.

2)   Select (highlight) Signals, right click and select Paste.
3)   The signal Indicator_A_Copy_1 appears under the Signals list in the tree view at the left. Double click on it.

4)   Rename the signal to “Indicator_B” and click [Ok].

5)   Repeat steps 1-4 to make “switch_1B” and “switch_2B”.

6)   Assign  theses  signals  to  the  message  bbbMessage”.  Right  click  on  “bbbMsg and  select  Edit
Message….

7)   Select the Signals tab and click [Add…]. Add the new signals.

8)   Click Apply and OK.

9)   Select “bbbMessage” in the tree view at the left.

10) Change the start bit of “switch_1B” to “0”, “switch_2B to “1”, and “Indicator_B” to “8”.


We now have two unique messages defined (shown in Figure 3) that use the same internal message data structure.

4.3.1.5        Create Database Environment Variables for Node AAA


1)   Select "Environment variables" in the tree view at the left, right-click on it, and select New.

2)   Name the environment variable "aaaSwitch_1A".

3)   Expand the Access drop-down list and select Read for read-only access to the variable.

4)   Expand the Value Table drop-down list and select Switch_Positions.

5)   Change Maximum value to "0x1".
6)   Go to the Control units tab and click [Add].

7)   Select control unit "AAA" and click [OK].

8)   Click [Apply] and then click [OK] to finish.



The new environment variable now appears in the Overall View. To see all the entries, expand "ECUs" in the tree view at the left, expand "AAA", right-click on "Environment variables and select List.



No comments:

Post a Comment