Hi to all, Im trying to open serial port on matlab (on Linux Tumbleweed 64) and I check first:
1) Im in the dialout group
2)instrfind
3)chmod +777 /root/lock
and matlab keeps giving me "Error using serial/fopen (line 72)
Open failed: Port: /dev/ttyUSB0 is not available. No ports are available."
why?
Im writing code in app designer and don't know how to solve it in code.
Thanks

답변 (1개)

Govind KM
Govind KM 2024년 9월 27일

0 개 추천

Hi Gaston,
A possible reason for the "No ports are available" error is that MATLAB only automatically recognizes serial port names of the form "/dev/ttyS[0-255]". If the serial port has a different name, it can be identified in MATLAB by modifying the "java.opts" file or by creating a symbolic link to a conventionally named port. More details can be found in the following MATLAB Answers post:
The error could also be caused by permission issues in Linux, in which case please try the workarounds mentioned in this MATLAB Answer:
Hope this is helpful!

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

질문:

2023년 4월 13일

답변:

2024년 9월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by