Documentation

Run Confidence Test on Configuration

This topic describes how to test the target boot process, the connection between the development and target computers, and the basic functionality of the Simulink® Real-Time™ software. Use this test under the following circumstances:

  • To validate your initial product installation.

  • As the first step in a troubleshooting procedure.

You must be using network boot mode for starting the target computer.

  1. Create a network boot image and restart the target computer. See Network Boot Method.

  2. In the current folder window, select a folder outside the MATLAB® root folder.

    You cannot save build files within the MATLAB root folder because Simulink Coder™ does not allow this action. If you select a current folder within the MATLAB tree, the Simulink Real-Time test procedure fails when trying to build a real-time application.

  3. In the Command Window, type slrttest.

    MATLAB executes the test script for the default target computer and displays messages indicating whether the test passed or failed.

    ### Simulink Real-Time Test Suite 
    ### Host-Target interface is: TcpIp
    ### Test 1, Ping target computer 'TargetPC1' using system ping: ... OK
    ### Test 2, Ping target computer 'TargetPC1' using SLRTPINGTARGET: ... OK
    ### Test 3, Software reboot the target computer 'TargetPC1': ........... OK
    ### Test 4, Build and download a Simulink Real-Time application using model ...
        slrttestmdl to target computer 'TargetPC1': ... OK
    ### Test 5, Check host-target command communications with 'TargetPC1': ... OK
    ### Test 6, Download a pre-built Simulink Real-Time application to target ...
        computer 'TargetPC1': ... OK
    ### Test 7, Execute the Simulink Real-Time application for 0.2s: ... OK
    ### Test 8, Upload logged data and compare with simulation results: ... OK
    ### Test Suite successfully finished
  4. Evaluate the results.

    • If the tests return OK, you are ready to build and download a real-time application to the target computer.

    • If one or more tests return FAILED, see Troubleshooting in Simulink Real-Time.

The next task is Application and Driver Scripts.

Was this topic helpful?