Rank: 309 based on 209 downloads (last 30 days) and 7 files submitted
Personal Profile:

http://iheartmatlab.blogspot.com

Professional Interests:

 

Watch this Author's files

 

Files Posted by Rodney View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
21 Jun 2010 Screenshot TCP Output Socket MATLAB TCP Output Socket using a Java helper class for threaded client connection management Author: Rodney Thomson tcp, socket, java 12 0
  • 3.0
3.0 | 1 rating
07 Sep 2009 TCP/IP Socket Communications in MATLAB using Java Classes A simple example TCP/IP server and client using a helper Java class Author: Rodney Thomson tcp, ip, socket 35 0
  • 5.0
5.0 | 2 ratings
19 Aug 2008 TCP/IP Socket Communications in MATLAB A simple example TCP/IP server and client Author: Rodney Thomson how does client send ..., application, test, tcpip, socket, measurement 112 11
  • 5.0
5.0 | 3 ratings
30 Jul 2008 Screenshot Display Cursor Location Display cursor coordinates within a plot axes window Author: Rodney Thomson annotation, customization, windowbuttonmotionfcn, plot, display, cursor 21 3
  • 5.0
5.0 | 2 ratings
22 Jul 2008 Recursive Directory Function Execution Recurse through all directories executing the supplied function Author: Rodney Thomson utilities, directories, files, recurse, function handle, recursion 1 1
Comments and Ratings by Rodney View all
Updated File Comments Rating
03 Feb 2012 TCP/IP Socket Communications in MATLAB A simple example TCP/IP server and client Author: Rodney Thomson

Sharath,

To receive data continuously, you will need to call read() many times after you have successfully connected to the server.

For high update scenarios, you may want to use the Java class approach (http://iheartmatlab.blogspot.com.au/2009/09/tcpip-socket-communications-in-matlab.html) to read the data in chunks as I doubt you would be able to keep up with 1000Hz data otherwise.

12 Apr 2011 Display Cursor Location Display cursor coordinates within a plot axes window Author: Rodney Thomson

Eduardo, for a simple hack you could replace 'WindowButtonMotionFcn' in the above example with 'WindowButtonDownFcn' and it will respond to button clicks (both left and right) but only when not in zoom/pan mode.

07 Sep 2009 The Matlab code for absorption coefficient in underwater wireless communication networks This code helps to find the absorption coefficient values for a particular frequency range. Author: SUSAN
24 Mar 2009 TCP/IP Socket Communications in MATLAB A simple example TCP/IP server and client Author: Rodney Thomson

Hi Maurizio,

Unfortunately the read(byte []) method will not work directly from within MATLAB. My thoughts as to why:

When you execute:
  data = zeros(1, 100, 'char');
  data_input_stream.read(data, 0, 100);
It supplies a COPY of the data array which would be populated. Unfortunately you don't have access to this. This requires pass-by-reference semantics which I don't think MATLAB currently support.

To get around this issue personally I've created helper Java classes to read blocks of data and RETURN the Byte array. This requires creating Java classes and compiling them.

Email me if you want some examples.

Rod
  

Comments and Ratings on Rodney's Files View all
Updated File Comment by Comments Rating
03 Feb 2012 TCP/IP Socket Communications in MATLAB A simple example TCP/IP server and client Author: Rodney Thomson Thomson, Rodney

Sharath,

To receive data continuously, you will need to call read() many times after you have successfully connected to the server.

For high update scenarios, you may want to use the Java class approach (http://iheartmatlab.blogspot.com.au/2009/09/tcpip-socket-communications-in-matlab.html) to read the data in chunks as I doubt you would be able to keep up with 1000Hz data otherwise.

02 Feb 2012 TCP/IP Socket Communications in MATLAB A simple example TCP/IP server and client Author: Rodney Thomson Sharath

if i am getting data continuosly say for every 1milli sec from server to client how do we handle this

19 Jan 2012 TCP/IP Socket Communications in MATLAB using Java Classes A simple example TCP/IP server and client using a helper Java class Author: Rodney Thomson Rutishauser, Ueli
19 Jul 2011 TCP/IP Socket Communications in MATLAB A simple example TCP/IP server and client Author: Rodney Thomson Bebbe

Hello Eric .. I read your problem and I need to communicate with clients and servers in bidirectional mode ... how did you solve your problem? I am not a java expert so I am a bit in trouble ...
sorry for my bad English ..
thanks a lot ..

12 Jul 2011 TCP Output Socket MATLAB TCP Output Socket using a Java helper class for threaded client connection management Author: Rodney Thomson zhang
Top Tags Applied by Rodney
application, example, socket, utilities, development environment
Files Tagged by Rodney View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
23 Aug 2010 Screenshot Multi progress bar A new "shiny" progress-bar with multiple bars in a single window, time-estimates and more. Author: Ben Tordoff gui, progress bar, waitbar 38 21
  • 4.91667
4.9 | 12 ratings
21 Jun 2010 Screenshot TCP Output Socket MATLAB TCP Output Socket using a Java helper class for threaded client connection management Author: Rodney Thomson tcp, socket, java 12 0
  • 3.0
3.0 | 1 rating
07 Sep 2009 TCP/IP Socket Communications in MATLAB using Java Classes A simple example TCP/IP server and client using a helper Java class Author: Rodney Thomson tcp, ip, socket 35 0
  • 5.0
5.0 | 2 ratings
19 Aug 2008 TCP/IP Socket Communications in MATLAB A simple example TCP/IP server and client Author: Rodney Thomson how does client send ..., application, test, tcpip, socket, measurement 112 11
  • 5.0
5.0 | 3 ratings
30 Jul 2008 Screenshot Display Cursor Location Display cursor coordinates within a plot axes window Author: Rodney Thomson annotation, customization, windowbuttonmotionfcn, plot, display, cursor 21 3
  • 5.0
5.0 | 2 ratings

Contact us at files@mathworks.com