필터 지우기
필터 지우기

Problem with Simulink 2015b (but not earlier) and Arduino Uno

조회 수: 1 (최근 30일)
xyfu
xyfu 2016년 2월 18일
답변: Gustavo Mattos 2017년 6월 6일
I'm running class with a hardware component on Arduino. For years, we've been using the same models and everything has worked. However, some students recently came to me after running into an error:
No free Timer is available on the target to generate the base rate interrupt which executes the model on the target. All timers are used by Servo and PWM blocks in the model.
The only consistency seems to be that they're running Matlab 2015b (earlier versions don't seem to give this error). As far as I can tell, they are properly setting the device, and some other simpler models continue to work. They did inform me that when installing the Hardware Support Package, they now only have 2 options (Matlab, Simulink) instead of 3 (Matlab for Uno and Due, Simulink for Uno, Simulink for Due).
Does anyone know if Arduino Support in 2015b has broken Uno support in some way? Maybe by merging the Uno/Due package?

답변 (2개)

Gustavo Mattos
Gustavo Mattos 2017년 6월 6일
On your Simulink model, open Configuration Parameters window, select Solver. Click on additional options and uncheck 'Treat each discrete rate as a separate task'. That worked for me.

Ulrich Mouaffo
Ulrich Mouaffo 2016년 6월 3일
I do have the same problem. Have you found any solution? Ulrich

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by