Why won't external mode in Simulink work? - Arduino

7 views (last 30 days)
Hello
I'm running Lubuntu Linux with Matlab 2016a and i've installed the support Arduino support package for both Simulink and Arduino.
The problem is when i'm running/simulate a model in external mode, the time stops at T=0.000 and will not go any further.
What is this kind of a issue? I set the simulation time at 20 seconds but the simulation is still on 0% and T = 0.000.
Why?
I got only one error:
"Not enough memory on the target to process the packet: EXT_SELECT_SIGNALS"
The TX and RX are blinking.
I still can program the Arduino with Simulink if i running that with normal mode. But external won't work for me.
Is this a bug?

Answers (3)

Swarooph
Swarooph on 10 Oct 2016
Tell us which Arduino hardware you are using exactly. As this page says, External mode for interactive parameter tuning and signal monitoring as your algorithm runs on the device (not available on some boards).
P.S: I seem to recall Uno did not have enough memory to perform External mode (although that might have changed in the recent releases (R2016b) because of better External mode capabilities). Mega has larger memory was able to do External mode. However at this point, I am unable to find the exact documentation that says this..
  2 Comments
Daniel
Daniel on 10 Oct 2016
Edited: Daniel on 10 Oct 2016
Hello.
I'm using UNO and Mega 2560 with Matlab 2016a. Not b.
The error have disapear now. But still RX and TX just blinking and the simulate time is T = 0.000 and 0% constant.
Why?
Swarooph
Swarooph on 11 Oct 2016
You might want to try and detect if there are any task overruns in your application. Take a look at this documentation.
Just to help the community understand the question better, are you using both the boards at the same time? Or are you trying to run the same model on the 2 different hardware to compare results and that the issue exists on BOTH the hardware?

Sign in to comment.


Walter Roberson
Walter Roberson on 26 Feb 2017
In R2016b, external mode is available for Due, Uno, Leonardo, Mega 2560, and Mega ADK.
The list was different for R2016a; Uno was not supported, and I am not sure that Leonardo was supported. Mega ADK was listed in one place in R2016a but not in the main list, so it was not clear it was supported then.

manuel rodriguez
manuel rodriguez on 19 May 2019
este mensaje me aparece que es La simulación de modo externo no es compatible con el hardware 'Arduino Uno'. Sin embargo, puede implementar el modelo en este hardware. Desde la ventana del modelo, haga clic en el botón "Implementar en hardware".

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!