MATLAB: How to enable External mode for Arduino, BeagleBoard, PandaBoard, LEGO MINDSTORMS NXT

arduinobeagleboardlego mindstorms nxtpandaboardrun on target hardwaresimulink

"Simulink freezes right before the model runs on the target hardware in External mode. As in: The model gets built and then downloaded to the target, but right before it runs, on the bottom left corner of the model, the status says "initializing".. It gets stuck in this mode forever and you're unable to close Simulink. Forcing the process to end is the only way to close MATLAB/Simulink"

Best Answer

To use External mode, use only the "Enable External mode" checkbox on the Run on Target Hardware pane in Configuration Parameters.
Leave the Simulation mode pull-down menu in the model toolbar set to Normal (menu: Simulation > Mode > Normal).
For more information, search the Help for "Tune and Monitor Models Running on..." and choose the topic for your hardware.
Related Question