Step 1: How to Start the TurnSignalTests

Objective

In this step, you will learn how to start the TurnSignalTests.


Basics

Batch file

All ready-to-use demos are provided with a batch file. You can use these batch files to start the ready-to-use demos. You will be guided through all required steps to start the demo.

RTT sequences

The TurnSignalTests demo contains 10 RTT sequences (RTT_T010_TurnSignalLeft.py to RTT_T090_EngineStartPhaseTest.py) to execute different tests. You can choose single tests but you can also start test runs with several or all RTT sequences at once.

Methods

You can use the following methods to start the TurnSignalTests:

  • If you use the provided batch file, refer to Method 1.

  • If you use the loader script, refer to Method 2.


Method 1: How to Start the TurnSignalTests with the batch file

  1. Open ControlDesk.

  2. On the Home ribbon, click Status Control – Start Measuring.

    ControlDesk globally starts measurement for the platform in the current experiment.

  3. In the File Explorer, navigate to your Work folder and double-click the batch file: …\14_TurnSignalTests\StartDemo.bat.

    The Windows Command Prompt opens.

  4. Follow the instructions in the Windows Command Prompt and start the tests:

    • T020 Turn signal right

    • T070 Monkey test for turn signal lever

  5. You can compare your results with the following animated graphic:


Method 2: How to Start the TurnSignalTests with the loader script

  1. Open ControlDesk.

  2. On the Home ribbon, click Status Control – Start Measuring.

    ControlDesk globally starts measurement for all platforms/devices in the current experiment.

  3. In the File Explorer, navigate to your Work folder and double-click the loader script: …\14_TurnSignalTests\Python\RTTTurnSignalTests.py.

  4. Start the loader script without arguments.

    You will get a detailed description of the required inputs to start the TurnSignalTests.

  5. To start the tests T020 Turn signal right and T070 Monkey test for turn signal lever start the loader script again but now with arguments that fit to your simulation platform.

    The required arguments are:

    1. Single-core or multicore simulation platform: SP or MP.

    2. The variable BoardName as used in the previous lessons. For a detailed description, refer to Step 3: How to Write Your Own RTT Sequences and Loader Scripts.

    3. A comma-separated list of the tests to be executed: 0,1,…,9 or A to run all tests.

  6. You can compare your results with the following animated graphic:


Result

In this step, you have learned how to start the TurnSignalTests with the provided batch file and with the loader script.


What’s next

With this step, you finished the fourth lesson of this tutorial and you have learned how to use the TurnSignalTests demo. For a summary of your working results and for further information, refer to the result of this lesson.


Redaction