Arduino with 2019b connection issues

14 ビュー (過去 30 日間)
Lior Rubanenko
Lior Rubanenko 2019 年 11 月 27 日
回答済み: Tafazzal Hoque 2021 年 2 月 21 日
Hi,
I have recently updated to 2019b and cannot use my Arduino Uno anymore with Matlab (macOS Catalina). The error message I'm getting is pretty generic,
a = arduino('/dev/tty.usbmodem14101','Uno');
Updating server code on board Uno (/dev/tty.usbmodem14101). This may take a few minutes.
Cannot program board Uno (/dev/tty.usbmodem14101). Please make sure the board is supported and the port and board type are correct. For more
information, see Arduino Hardware Troubleshooting.
I have no idea how to even begin debugging this, any help would be appericiated.

回答 (2 件)

Chidvi Modala
Chidvi Modala 2019 年 12 月 30 日
Try setting the variable arduinoio.IDERoot to an address which the user has access to write and read
For Example:
arduinoio.IDERoot = 'C:\\Program Files\\Arduino'
or
Try running MATLAB as admin

Tafazzal Hoque
Tafazzal Hoque 2021 年 2 月 21 日
I am getting following after running following script; my USB port: 'COM3' and Arduino Hardware: 'Grove Beginner Kit for Arduino'.
Exception creating support package: C:\ProgramData\MATLAB\SupportPackages\R2020b\help\supportpkg\arduinoio\doccenter.properties does not contain the baseshortname entry.
>> a = arduino('/dev/cu.usbserial-0001','Uno');
Unable to find Arduino hardware at /dev/cu.usbserial-0001. First argument must be a valid serial port, Bluetooth address/name or IP address/hostname.
What wrong I am doing? Please help

カテゴリ

Help Center および File ExchangeMATLAB Support Package for Arduino Hardware についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by