How to run Simulink model at start-up?

What are your indications that the module does not work? Are you communicating with it through the shell or QGroundControl?

Also, I’m wondering about why you have the exit command at the end. Maybe it shuts down the pixhawk? (Edit: never mind, I see I have that as well.)