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

6 ビュー (過去 30 日間)
Daniel
Daniel 2016 年 10 月 10 日
回答済み: manuel rodriguez 2019 年 5 月 19 日
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?
  1 件のコメント
Álvaro Bátrez
Álvaro Bátrez 2017 年 2 月 26 日
I have the same problem. Do yo found any solution?

サインインしてコメントする。

回答 (3 件)

Swarooph
Swarooph 2016 年 10 月 10 日
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 件のコメント
Daniel
Daniel 2016 年 10 月 10 日
編集済み: Daniel 2016 年 10 月 10 日
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 2016 年 10 月 11 日
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?

サインインしてコメントする。


Walter Roberson
Walter Roberson 2017 年 2 月 26 日
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 2019 年 5 月 19 日
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".

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by