Project 1- Traffic Jam Assistant Feature
1.Objective::
Requirement No 1:
- Input Signal “Input_Voltage” is compared against voltage values “VOLTAGE_MINIMUM_RANGE” & “VOLTAGE_MAXIMUM_RANGE”.
- Incoming input signal “Input_Voltage” must be greater than – equal to “VOLTAGE_MINIMUM_RANGE” and less than – equal to “VOLTAGE_MAXIMUM_RANGE”.
- Output signal from here is “Optimum_Voltage” which will be one of the inputs to the subsystem “DisplayUnit”.
Requirement No 2 (DisplayUnit Subsystem):
- Input Signals are “Optimum_Voltage”, “Input_Switch”,“Enable_Display”. Signal “Enable_Display” must be saturated between the range 0 – 7. Output signal from the subsystem is “Output_Display”.
- Input Signal “Enable_Display” is compared against pre – defined set of values in a multiport switch. Total data ports in the multiport switch is 5.
- Multiport switch inputs 1 & 2 is connected to calibration signal “ON_MODE”, Multiport switch inputs 3 & 4 is connected to calibration signal “OFF_MODE” while Multiport switch input 5 is connected to calibration signal “STANDBY_MODE”.
- The output from Multiport switch is connected to the first input port of the Switch block. The third input port of the Switch block is connected to the calibration signal “NO_DISPLAY”.
- Meanwhile NOT value of input signal “Input_Switch” is compared in an AND gate against input signal “Optimum_Voltage” and the output from comparing if calibration signals “INTERRUPT_1” & “INTERRUPT_2” are equal. The output of the AND gate is the second input of the switch block.
The output from the switch block is “Output_Display”.
Model:
Below Model consists of two requirements.
An Localized signal "optimum Voltage'' output from Req 1 is Connected as Input to Req2,with Input_Switch,Enable_Display.

Requiment 1 Subsystem:

Requirement 2:

Resolving:
Resolving the Input & Output signal also in Subsystem.

Code Generation:


Results:
Model Advisor Report:

Code Generation:
File: AUTOSAR_Prj1.c
Header File:
File: AUTOSAR_Prj1.h
Conclusion:
Thus based on the requirements we had created the model,SLDD file attached with the model,model advisor check taken up and finally embedded code had been Generated Sucessfully.