Main Content

Detect Run-Time Errors

If the executable stops running prematurely, the cause can be a resource conflict, such as trying to use a device that is unavailable.

Executables that Simulink models generated save diagnostic information from run-time errors to a log file. The name of the log file is the model name followed by .log.

For example, if the beaglebone_audioequalizer executable tries to use a sound device that is not available, you can display the diagnostic messages. In the Command Window, enter:

h = beaglebone_black;
system(h, 'cat beaglebone_audioequalizer.log')
ans =

**starting the model**
Cannot open audio device 'plughw:1,0': No such file or directory