how to open portcom to use UART ?

3 visualizzazioni (ultimi 30 giorni)
tomer polsky
tomer polsky il 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 ?

Risposte (0)

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by