Borrar filtros
Borrar filtros

How to return an error from a make_rtw_hook.m file in Simulink?

2 visualizaciones (últimos 30 días)
Sietse
Sietse el 26 de Nov. de 2014
I create a custom target_make_rtw_hook.m file for my Simulink external target. How can I end the build when an error occurs, like when a needed file is not present?
command = ([ 'ls needed_file' ]);
[status, result] = system(command)
if status ~= 0
disp 'Error, file not found!'
How to stop this make??
end
Is there a way to do this? And also, how do I get the popup of the diagnostic window like when an error happens?
Thanks in advance, Sietse

Respuestas (0)

Categorías

Más información sobre Multicore Processor Targets en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by