PSP External Mode can only work for couple of seconds

As I mentioned in the title, when I runned PSP simulink model under external mode and press the STOP button, the Matlab 2016b always shut down. Somebody has the same situation?

You’ll probably need to provide a lot more information to debug this. Can you post screenshots and specific error messages? Is this connecting to a pixhawk? Which firmware version?