필터 지우기
필터 지우기

Issue with Simulink and Arduino Nano 33 IoT

조회 수: 15 (최근 30일)
Radko
Radko 2023년 11월 18일
이동: Walter Roberson 2023년 11월 18일
I am writing to bring to your attention an issue I encountered while working with Simulink and Arduino Nano 33 IoT.
I have 8 AEK rev.2 boards, and as a teacher, I began working with one of them. While everything appears to be in order, I am facing difficulties running models on the board in Simulink IO mode. Specifically, the example provided at [ https://www.mathworks.com/help/sldrt/ug/sync-models-by-using-arduino-connected-io-board-example.html#d126e10613 works on my UNO but encounters an error on Nano 33 IoT. The error from Simulink is as follows:
Error: MATLAB System block 'sldrtex_arduino/Digital Output' error occurred when invoking 'setupImpl' method of 'codertarget.arduinobase.blocks.DigitalWrite'. The error was thrown from 'C:\ProgramData\MATLAB\SupportPackages\R2023b\toolbox\target\shared\devicedrivers\+matlabshared\+devicedrivers\+blocks\DigitalIO.p' at line 0 ... Caused by: Configuring Pin 13 as Digital Input/Output failed. Pin 13 is not a valid Digital Input/Output pin. Reconnect the hardware, provide a valid Digital Input/Output pin number for your hardware and try again. However, deploying and Start code for DC motors, servos, or Lion Battery monitoring has been successful. Additionally, the Monitor and Tune Simulink mode works well on Nano 33 IoT.
I would appreciate any recommendations on how to set up Matlab/Simulink to address this issue.
Thank you for your assistance.

답변 (2개)

Walter Roberson
Walter Roberson 2023년 11월 18일
You might possibly be having difficulty because of the difference between the physical pin numbers (such as 13) compared to Digital Pin numbers such as D13
According to https://static.rapidonline.com/pdf/73-4863_v1.pdf D13 is physical pin #1
  댓글 수: 1
Radko
Radko 2023년 11월 18일
But whent i deployed it and run , everything is ok .

댓글을 달려면 로그인하십시오.


Radko
Radko 2023년 11월 18일
이동: Walter Roberson 2023년 11월 18일
Here is the solution which works for me: https://forum.arduino.cc/t/simulink-communication-interface-missing-serial/1069853/10?u=radko_kozakovic There is necessary to correctly set up Different numbers for host com port and for Bootloader COM port.

카테고리

Help CenterFile Exchange에서 Run on Target Hardware에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by