Cannot connect to Serial Port

6 次查看(过去 30 天)
rents85
rents85 2013-3-6
Hi, i'm trying to use serial port with matlab. This is the code that i've used:
s1 = serial('COM14');
set(s1,'BaudRate',9600);
fopen(s1)
This is the message of Matlab:
Cannot connect to the COM14 port. Possible reasons are another application is connected to the port or the port does not exist.
The port is connected because Matlab says:
Available ports: COM3, COM9, COM14, COM16.
With HyperTerminal i can open and use the PORT14. What's is wrong? Thank you for your attention.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by