Hi,
I am currently trying to interface with an external device using a TCPIP object although I seem to be unable to open the object in matlab 2010b as well as 2011a, where as it works fine in 2009a. The device's server is residing on the same pc as matlab and its port can unfotunately not be modified.
Bellow are the steps that I followed as well as the results:
R2010b
t= tcpip('127.0.0.1', 8001)
t =
tcpip
Properties:
remoteHost: '127.0.0.1'
remotePort: 8001
Type: 'tcpip'
Terminator: '\r\n'
Status: 'connected'
Methods, Superclasses
>> fopen(t)
ans =
''
>> t
t =
tcpip
Properties:
remoteHost: '127.0.0.1'
remotePort: 8001
Type: 'tcpip'
Terminator: '\r\n'
Status: 'connected'
Methods, Superclasses
****************************************** R2009a t=tcpip('127.0.0.1',8001)
TCPIP Object : TCPIP-127.0.0.1
Communication Settings
RemotePort: 8001
RemoteHost: 127.0.0.1
Terminator: 'LF'
Communication State
Status: closed
RecordStatus: off
Read/Write State
TransferStatus: idle
BytesAvailable: 0
ValuesReceived: 0
ValuesSent: 0
>> fopen(t)
>> t
TCPIP Object : TCPIP-127.0.0.1
Communication Settings
RemotePort: 8001
RemoteHost: 127.0.0.1
Terminator: 'LF'
Communication State
Status: open
RecordStatus: off
Read/Write State
TransferStatus: idle
BytesAvailable: 0
ValuesReceived: 0
ValuesSent: 0
Any suggestions would be helpful.
Thanks