Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

MATLAB & Serial Communication

Status
Not open for further replies.

Zulo

Newbie level 4
Joined
Dec 27, 2010
Messages
7
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,351
Hi,

I've check the forum but can't see a problem like mine..

After Eltima Virtual Serial Port, I can create 2 virtual serial port: COM1 and COM2. And they works like COM1=>COM2. MATLAB sends data to COM1, proteus can see the data from COM2.. it works..

My problem is before i connect the "USB to Serial Device" i can see COM3 available for use. but after i connect the Device MATLAB can not use the COM3..

2 days searching but i can not find any idea to solve the problem. Maybe it is becouse of my device / adaptor.

s=serial('COM3');
set(s,'BaudRate',9600)
fopen(s);
tx='#A';
fprintf(s,'%s',tx);
fclose(s)
delete(s)
clear s

??? Error using ==> serial.fopen at 71
Port: COM3 is not available. Available ports: COM1, COM2.
Use INSTRFIND to determine if other instrument objects are connected to the requested device.

Thanks for help...
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top