how to open portcom to use UART ?

1 view (last 30 days)
tomer polsky
tomer polsky on 28 Nov 2018
hello I want to use UART protocol how ever when I press this command
clc;
instrfind
clear all;
s= serial ('COM1')
fopen(s)
how ever I get this error :
Open failed: Port: COM13 is not available. No ports are available.
Use INSTRFIND to determine if other instrument objects are connected to the requested device.
as I undestand is that the portcom is closed :
Instrument Object Array
Index: Type: Status: Name:
1 serial closed Serial-COM11
2 serial closed Serial-COM13
3 serial closed Serial-COM13
4 serial closed Serial-COM3
5 serial closed Serial-COM3
6 serial open Serial-COM1
7 serial closed Serial-COM1
8 serial closed Serial-COM1
9 serial closed Serial-COM1
10 serial closed Serial-COM1
11 serial closed Serial-COM1
12 serial closed Serial-COM1
13 serial closed Serial-COM1
14 serial closed Serial-COM1
15 serial closed Serial-COM1
16 serial closed Serial-COM1
17 serial closed Serial-COM1
18 serial closed Serial-COM11
how do i opon the portcom ?

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!