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:
Check that you have set the profiling options in Code Generation > Verification.
Build and download the real-time application.
Enter these commands in the Command Window:
tg = slrt; startProfiler(tg); start(tg); pause(1); stop(tg); profiler_data = getProfilerData(tg)