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