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 CenterFile Exchange에서 Setup and Configuration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by