The TurnSignalTests demo is intended to demonstrate a realistic use case for Real-Time Testing.
The TurnSignalTests demo is based on the same simulation application, which you have used already in the previous lessons. The simulation application contains:
A Simulink model with control algorithms for three ECUs. The ECUs are controlling the turn signals and the warning light of a vehicle.
Three ECUs are implemented in the Simulink model:
A central-light ECU.
A front-light ECU.
A rear-light ECU.
The inputs of the ECUs are operating elements for the driver:
A turn-signal lever with the positions: Right, off, and left.
A warning light switch with the positions: Off and on.
The outputs of the ECUs are:
Signals for the turn signals.
A warning light indicator.
The ECUs are implemented with malfunctions. The RTT sequences in this demo are designed to detect these malfunctions. At the end of the test, you can view a report with all executed tests.
Test to verify if the turn signals on the left side of the vehicle are working correctly.
In this test, the turn-signal lever is set for 3 s to the left position. The flashing of the turn signals is verified by concurrently started generator functions.
To pass the test, the following conditions must be met:
The turn signals on the left side of the vehicle must change their state at least one time per second.
The turn signals on the right side must remain switched off.
Test to verify if the turn signals on the right side of the vehicle are working correctly.
In this test, the turn-signal lever is set for 3 s to the right position. The flashing of the turn signals is verified by concurrently started generator functions.
To pass the test the following conditions must be met:
The turn signals on the right side of the vehicle must change its state at least one time per second.
The turn signals on the left side must remain switched off.
Test to verify if the warning light and the warning light indicator are working correctly.
In this test, the warning light switch is switched on for 3 s. The flashing of the turn signals and the flashing of the warning light indicator is verified by concurrently started generator functions.
To pass the test the following conditions must be met:
All turn signals of the vehicle must change their state at least one time per second.
The warning light indicator must change its state at least one time per second.
Test to verify if the warning light has a higher priority than the turn signal.
In this test, the warning light is switched on for 12 s and additionally the signal lever is stimulated with its possible states (left, right, off). The flashing of the turn signals and the flashing of the warning light indicator are verified by concurrently started generator functions.
To pass the test the following conditions must be met:
The priority of the warning light must be higher than the priority of the turn signals.
All turn signals of the vehicle must change their state at least one time per second.
The warning light indicator must change its state one time per second.
Test to verify the reaction time of the turn signals.
In this test, the turn-signal lever is set to the left position and the reaction time of the turn signals is measured. The test is repeated afterwards with the signal lever in the right position.
To pass the test the following conditions must be met:
The reaction time between the actuation of the turn-signal lever and the activation of the turn signals must be below 100 ms.
Test to verify the reaction time of the warning light.
In this test, the warning light switch is switched on and the reaction time of the turn signals is measured.
To pass the test, the following conditions must be met:
The reaction time between the actuation of the warning light switch and the activation of all turn signals and the warning light indicator must be below 50 ms.
Test to verify the functionality of the turn signals if the turn-signal lever changes its position repeatedly.
In this test, the turn-signal lever is stimulated with a wobble generator (left, off, right). The duration in each state is decreased stepwise from 2 s to 0,25 s. The flashing and the activation time of the turn signals are verified by concurrently started generator functions.
To pass the test the following conditions must be met:
The flashing turn signals must remain between 450 ms and 550 ms in the activated state.
The turn signals on the left side of the vehicle must be flashing synchronously.
The turn signals on the right side of the vehicle must be flashing synchronously.
Only the turn signals on the left or the right side of the vehicle are activated at the same time.
Test to verify the functionality of the turn signals if the turn-signal lever and the warning light switch are changing their state repeatedly.
In this test, the turn-signal lever and the warning light switch are stimulated by a signal generator (data stream of a MAT file). A generator function checks if the warning light has a higher priority than the turn signals.
To pass the test, the following conditions must be met:
If all four turn signals are activated at the same time, the warning light switch must be activated.
Test to verify the functionality of the turn signals at different battery voltages.
The tests T010 to T075 are started subsequently. Each test runs with different battery voltages (7.0 V, 7.5 V, 8.0 V, 11.0 V, 14.0 V, 14.5 V, and 15.0 V).
To pass the test, the following conditions must be met:
Each test in this test run must be passed.
Test to verify the functionality of the turn signals during the engine start.
The tests T010 to T060 are started subsequently. Each test runs in parallel with a generator function, which simulates the voltage characteristic during the engine start of a real car.
To pass the test the following conditions must be met:
Each test in this test run must be passed.
In the next topic, you will learn how the TurnSignalTests are structured.