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.

vijayparmar

Newbie level 4
Joined
Aug 6, 2011
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,316
if i want to try to open port in matlab i cant open the port...
'the error is ----


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



my command is
s=serial('com2')
fopen(s)



output window



>> s=serial('com2')

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

>> fopen(s)
??? Error using ==> serial.fopen at 71
Port: COM2 is not available. No ports are available.
Use INSTRFIND to determine if other instrument objects are connected to the requested device.
 

h**p://www.mathworks.co.kr/matlabcentral/newsreader/view_thread/249818>>


INSTRHWINFO Return information on available hardware.
Code:
 instrhwinfo('serial')

ans = 

     AvailableSerialPorts: {'COM1'}
           JarFileVersion: 'Version 2.3'
    ObjectConstructorName: {'serial('COM1');'}
              SerialPorts: {'COM1'}
 
Last edited:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top