Creating a Vehicle Rear Defogger System : Exercise 5 - Defining Textual Elements

Exercise 5 - Defining Textual Elements

In this exercise. you formally define the textual elements that were entered into the activity-chart 'REAR_DEFOG_SS'.

1.
Select the chart called 'REAR_DEFOG_SS' from right panel of the Chart Tab. Refer to the following figure.
Element Matrix for Chart REAR_DEFOG_SS
2.
Select the element called 'VEHICLE_SPEED_IN'.
3.
Select Edit > Properties. This opens the Properties window for this element (refer to the following figure). Double-clicking on the element name also opens the properties window for this element.
Properties - Vehicle Speed In
4.
a.
Change the type from Information Flow to Data-Item from the pull-down menu.
b.
Change the Data Type from None to Integer from the pull-down menu.
c.
Enter a Min Value of 0.
d.
Enter a Max Value of 150.
e.
Enter a Default Value of 50.
f.
Enter the following text in the Description field: 'Vehicle Speed from Powertrain (KPH).'
g.
Click Save.
h.
5.
6.
Change the Data Type from Information Flow to Event.
7.
Enter the following text in the Description field:

'Rear Defog switch status from Operator'
8.
Click Save.
9.
10.
11.
Change the Type from Information Flow to Condition.
12.
Enter the following text in the Description field:

'Logical output to turn on/off relay.'
13.
Click Save.
14.
15.
16.
Change the Type from Information Flow to Data-Item.
17.
Change the Data Type from None to Bit.
18.
19.
Click Save.
20.
21.
22.
Change the Type from Information Flow to Condition.
23.
Enter the following text in the Description field:

'Rear defog light output to Operator.'
24.
Click Save.
25.
Note:
The final element that needs to be defined is the element 'LOAD_SHED_IN'. This element can be one of four possible values. To accomplish this, an enumerated type is created.
26.
Note:
27.
Enter the name 'REAR_DEFOG_GDS' for the GDS name and click OK.
28.
Click New from the Properties window.
29.

Element Name: LOAD_MGMT_CMD_TYPE

Chart Name: REAR_DEFOG_GDS

Element Type: User-Defined Type

Note:
You now need to define the User-Defined Type called 'LOAD_MGMT_CMD_TYPE' (refer to the following figure).
User-Defined Type
30.
Change the Change the Data Type from None to Enum Type from the pull-down menu.
31.
Enter the following text in the Definition field:

{LM_LEVEL0, LM_LEVEL1, LM_LEVEL2, LM_LEVEL3}
32.
33.
Click Save.
34.
Note:
You can now return to the Chart Tab view and select the activity-chart REAR_DEFOG_SS” and define the textual element called 'LOAD_SHED_IN'.
35.
Double-click on the element called “LOAD_SHED_IN” to bring up the properties window (refer to the following figure).
36.
Change the Type from Information Flow to Data-Item from the pull-down menu.
37.
Change the Data Type from None to User Type.
38.
Select 'LOAD_MGMT_CMD_TYPE' from the drop down selection window next to the Data Type.
39.
40.
Click Save.
41.
Property Window - User Type