Rank: 289001 based on 0 downloads (last 30 days) and 0 file submitted
photo

Sally

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Sally View all
Updated File Comments Rating
09 May 2013 TCP/IP Communications in Matlab Sends/receives TCP packets using Matlab's Java interface. Now handles matrices and cell arrays, etc. Author: Kevin Bartlett

Brilliant! Thanks Kevin!

09 May 2013 TCP/IP Communications in Matlab Sends/receives TCP packets using Matlab's Java interface. Now handles matrices and cell arrays, etc. Author: Kevin Bartlett

Thanks Kevin, so I tried that....but every time jtcp times out, it throws an error:
Error using jtcp>jtcp_accept_connection (line 327)
Java exception occurred:
java.net.SocketTimeoutException: Accept timed out

at java.net.PlainSocketImpl.socketAccept(Native Method)

at java.net.PlainSocketImpl.accept(Unknown Source)

at java.net.ServerSocket.implAccept(Unknown Source)

at java.net.ServerSocket.accept(Unknown Source)

Error in jtcp (line 232)
jTcpObj = jtcp_accept_connection(port,timeout,serialize);

So, if i could figure out a way to get it to timeout quietly and just get on with the rest of the code, that would work...

Suggestions?

08 May 2013 TCP/IP Communications in Matlab Sends/receives TCP packets using Matlab's Java interface. Now handles matrices and cell arrays, etc. Author: Kevin Bartlett

If you set the server to 'accept' a transmission with a long timeout, say 20 minutes, how do you abort the process? CTL+C doesn't seem to do anything. It just hangs until the process times out. I'd like to be able to abort sooner without having to shut down all of matlab and restarting.

Contact us