Simulink Arduino Connection IO Issue

조회 수: 15 (최근 30일)
Judah S
Judah S 2022년 8월 4일
댓글: Ali mohsen 2023년 5월 7일
HI Guys,
For matlab example such as this one, I get the following error.
Any idea why?
Thanks
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\R2022a\toolbox\target\shared\devicedrivers\+matlabshared\+devicedrivers\+blocks\DigitalIO.p' at line 0
'C:\Program Files\MATLAB\R2022a\toolbox\target\codertarget\sltoolstrip\m\+codertarget\+internal\+sltoolstrip\ConnectedIOHandler.m' at line 106
'C:\Program Files\MATLAB\R2022a\toolbox\target\codertarget\sltoolstrip\m\+codertarget\+sltoolstrip\EmbeddedHardwareBoardContext.m' at line 440'.
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.

채택된 답변

Judah S
Judah S 2022년 8월 4일
Found my solution.
Just run the matlab with admin privilage.
  댓글 수: 3
Stefanie Schwarz
Stefanie Schwarz 2023년 4월 27일
@Leo If this solution doesn't work for you, please contact MathWorks Tech Support:
Ali mohsen
Ali mohsen 2023년 5월 7일
I have the same issue and it have not worked when running as privilage

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by