Project 2 - Development of TFT Cluster Speedometer Software Component
Develop the Simulink model based on the given requirements and also create SLDD file and link the same to the model.
Perform the complete V and V workflow for the obtained model
Development of TFT Cluster Speedometer Software Component
Cluster Instrument receives the signals from other ECU via CAN bus interface. It also receives commands from the driver via steering wheel buttons. The signals are then processed by the Cluster ECU, after which the Cluster ECU may send the vehicle information to the LCD or light the LEDs and so forth, according to the results. Therefore, the Cluster ECU can be viewed as a carrier of the information flow.
Requirements:
1.1 Calculating TFT Display Speed
|
Average Vehicle Speed would be displayed only if its between 2 kmph & 250 kmph. Any value outside this range will be discarded by its lower limit & upper limit |
|
When Average Vehicle Speed is < 2 kmph, DisplaySpeed = 2 kmph |
|
When Average Vehicle Speed is in between 2 kmph & 250 kmph, DisplaySpeed = Average Vehicle Speed |
|
When Average Vehicle Speed is > 250 kmph, DisplaySpeed = 250 kmph |
1.2 Main Data Filtering
|
Main Data Filtering subsystem will be activated for every 10th millisecond |
||||||
|
DisplaySpeed1 (t) = ((DisplaySpeed (t) x 0.65)/ Main Filter Speed Value) 0.05 |
1.3 Auxiliary Data Filtering
|
Auxiliary Data Filtering subsystem will be activated for every 10th millisecond |
|||||||
|
DisplaySpeed_Filter (t) = ((DisplaySpeed1 (t) x 0.78)/ Auxillary Filter Speed Value) - 0.03 |
1.4 TFT Speed Output
|
If |(DisplaySpeedFilter - DisplaySpeed)| > 1.5 |
|
{ |
|
Vehicle Speed Display = DisplaySpeed |
|
} |
|
else |
|
{ |
|
Vehicle Speed Display = DisplaySpeed Filter |
|
} |
ans)
1. Simulink model file






2. SLDD file

3. Requirement tagging report
For the Requirement tagging report First we have to create a requirement set which is .slreqx file.
To create and link requirements go to apps click on requirment manager then click on requirement editor and then create the requirement set as shown below.
For linking requirements go to that subsystem and select that subsystem and then return to the requirement editor and right click on that requirement and then click on a link from "Subsystem name".

Then go to report and click on generate report it will look like shown below image and also attached.

4. Fixed-point Tool
For the Fixed-point tool go to apps and click on fixed point then click on the green button and select optimized fixed-point conversion.
Then click on prepare.

Then click on collect ranges.

Then click on propose datatypes and then click on applied datatypes.

5. Model advisor - JMAAB compliance report
for the model advisor JMAAB compliance report click model advisor and then click on check for JMAAB and then run it.
And then click on generate the report.

6. SLDV Design error detection report
For the SLDV Design error detection report go to apps and select design verifier.
Then select the Design error detection error tool and click on Generate tests so first, it checks model compatibility, and then it generates a report for Design error detection which is shown below.


For Design error detection report is attached.
7. Functional test case, MIL, SIL harness, coverage Reports
The functional test case:
Test cases I write in an excel sheet which is attached.
MIL harness:
For the Test harness model right click on subsystem and click on Test harness and click on Create for "TFT_cluster_Speedometer_SWC"
Then select input as a signal builder and output as To Workspace then the harness model will open as shown below.

Then import your test case into the signal builder and run this harness model.
MIL result is shown below.

SIL harness:
For SIL harness right click on subsystem and then click on generate S-function
Then check the button which is SIL block and click on the build button and connect the SIL block as shown below image.

SIL result:
Run this SIL model.

So here MIL result graph and SIL result graph is equal
coverage Reports:

Coverage report is attached down.
8. SLDV test generation report
For the SLDV Test generation report go to apps and select design verifier.
Then select the Test generation tool and click on first Advisor and then Generate tests so first, it checks model compatibility, and then it generates a report for Test generation which is shown below.


For Test generation report is attached.
9. Auto-code generation report, .c & .h codes :
For code generation goto apps and then Embedded code and click on the build button.

For the code generation report click on open report, it will look below-shown image.

.c Code:
.h Code:
10. Poly space analysis report/outputs
the analysis report is shown below.

11. Test manager reports – baseline & back-to-back testing
baseline testing:

