Остановите длительную симуляцию
simulink.compiler.stopSimulation(' функция позволяет вам остановить длительную симуляцию от коллбэка или приложения MATLAB® для заданной модели.modelName')
applicationCompiler | deploytool | exportToFMU2CS | mcc | sim | simulink.compiler.configureForDeployment | Simulink.SimulationInput