Documentation

Failure to Read Profiling Data

Calling SimulinkRealTime.target.getProfileData produces an error. The error can state that the file does not exist in the expected location, or that attempting to read the file causes an error.

To address this issue, try the following procedure:

  1. Check that you have set the profiling options in Code Generation > Verification.

  2. Build and download the real-time application.

  3. Enter these commands in the Command Window:

    tg = slrt;
    startProfiler(tg);
    start(tg);
    pause(1);
    stop(tg);
    profiler_data = getProfilerData(tg)

Related Topics

Was this topic helpful?