Challenge

Project 1 (Mini Project on Vehicle Direction Detection

AIM :-

To develop Vehicle Direction Indicator

  • Develope logic
  • Create SLDD file
  • Generate Model Advisory report
  • MCDC Coverage Report
  • Create Test case
  • MIL Test
  • Output of MIL
  • SIL Test
  • Output of SIL
  • Conclusion

Objective:-

  1. Development of MATLAB Simulink model as per requirement.
  2. Tag the requirements to the simulink model; tagging requirement 1 & requirement 2 to their corresponding subsystems is fine.
  3. MBD compliant changes, Data Dictionary creation & code generation is added advantage, and that is not scope of this project.
  4. If choosing code generation, Storage class for Input signals: ImportedExtern; Storage class for Output signal: Export to File; Storage class for local signals: localizable; Storage class for calibration signals: Const.
  5. Choose sample time for all signals as 0.01s

Develope logic:-

Create a logic using Logical Operators and switch block as per requirement the input signal is qual to the Rght angular limit the switch will be active and pass the value to vehicle turn status, the vehicle turn status again confirm the signal is equal to RightTurn_RoadSign it gives the logical one and the output is connected to AND block one input another input is connected into CameraInput_RoadSign both are get equal the direction indicator will be active.

Create SLDD file:-

Create SLDD file shown in the Requirement signals are int16 data and boolean datatypes storage classes are input is imported extern and output is export to file (.h and .c files).mention signals sample time as 0.01

Generate Model Advisory report:-

check the model advisor for the model is under the MAAB guidelines and follows the ISO standards and all other safety, configuration features, if anything failed clear the issue and generate the report

MCDC Coverage Report:-

Check the Model with all bloks are satisfy the true and flase in inport and outport and generate report

Create Test case:-

Test case Created for MIL and SIL test

MIL Test:-

Right click the subsystem and select test harness give the name for the harness, click the inport as signal bulider keep outport as same and click ok it gives the MIL template select signal builder files option import the test case, and run the model

Output of MIL:-

RightTurn_RoadSign

LeftTurn_RoadSign

Straight_RoadSign

SIL Test:-

After MIL test right click the subsystem select c/c++ select S-function and select SIL block generation ans click build it gives SIL block and right click that block and select test harness and create the SIL template import the testcase in signal builder and run the simulation

Output of SIL:-

RightTurn_RoadSign

LeftTurn_RoadSign

Straight_RoadSign

All files are stored in seperate folder is shown below

Conclusion :-

Successfully created the logic, testings and report generation as per requirement

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.