How do i open a com port in Matlab
조회 수: 7 (최근 30일)
이전 댓글 표시
My program is always showing the ports as closed
Serial Port Object : Serial-COM1 Communication Settings Port: COM1 BaudRate: 9600 Terminator: 'LF' Communication State Status: closed RecordStatus: off Read/Write State TransferStatus: idle BytesAvailable: 0 ValuesReceived: 0 ValuesSent: 0 Serial Port Object : Serial-COM2 Communication Settings Port: COM2 BaudRate: 9600 Terminator: 'LF' Communication State Status: closed RecordStatus: off Read/Write State TransferStatus: idle BytesAvailable: 0 ValuesReceived: 0 ValuesSent: 0
댓글 수: 0
답변 (1개)
Katheryn Restrepo
2020년 5월 31일
fopen () entre parentesis pones como tienes la variable del serial
ejemplo
se = serial ('COM5')
fopen (se)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Use COM Objects in MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!