Borrar filtros
Borrar filtros

How do i open a com port in Matlab

7 visualizaciones (últimos 30 días)
Harneel Singh Sagoo
Harneel Singh Sagoo el 24 de Nov. de 2014
Respondida: Katheryn Restrepo el 31 de Mayo de 2020
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

Respuestas (1)

Katheryn Restrepo
Katheryn Restrepo el 31 de Mayo de 2020
fopen () entre parentesis pones como tienes la variable del serial
ejemplo
se = serial ('COM5')
fopen (se)

Categorías

Más información sobre Use COM Objects in MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by