Arduino.m file not working with Simulink
조회 수: 3 (최근 30일)
이전 댓글 표시
I tried using a Matlab function block in simulink. In the Matlab function I make other function calls that use the Arduino.m file, downloaded from the support page ( http://www.mathworks.com/matlabcentral/fileexchange/32374). I get a bunch of errors related to the arduino.m file such as the destructor not being used for code generation and try-catch statements can't be used for code generation and so on. My code works fine when it's a standalone m-script (not encapulated in a simulink block). Does anyone know if there's a compatible arduino m file that works with simulink? Thank you.
댓글 수: 0
답변 (1개)
Kaustubha Govind
2012년 9월 26일
편집: Kaustubha Govind
2012년 9월 26일
I think you should be using the corresponding Arduino blocks instead of MATLAB functions. Please see if these downloads are of help:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Arduino Hardware에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!