Rank: 151 based on 523 downloads (last 30 days) and 18 files submitted
photo

Kevin Bartlett

E-mail
Company/University
University of Victoria
Lat/Long
48.4618, -123.3094

Personal Profile:
Professional Interests:
physical oceanography

 

Watch this Author's files

 

Files Posted by Kevin View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
19 Sep 2013 Screenshot Web-browser viewable GUI animations of .PNGs, .GIFs, etc. Creates javascript/html GUI-driven animation of still images (GIFs, JPEGs, etc.). Author: Kevin Bartlett gui, image processing, movie, animation, animated, javascript 25 3
  • 4.33333
4.3 | 3 ratings
26 Apr 2013 Screenshot Save and load Matlab "projects" in editor Saves and loads Matlab "projects" in editor (currently-open files, working directory, search path). Author: Kevin Bartlett editor, project, programming, tool, task management, ide 29 2
  • 4.0
4.0 | 1 rating
22 Apr 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 communications, network, tcpip, tcp, socket 117 55
  • 4.94118
4.9 | 17 ratings
02 Apr 2012 Error-tolerant parsing of newline-delimited data Adaptive parsing of newline-separated data. Handles bad lines WITHOUT reading line-by-line. Author: Kevin Bartlett parse, parsing, newline, ascii, nmea, gps 20 0
07 Feb 2012 Screenshot Graphic depiction of timelines Makes horizontal timeline plot. Timelines can start and stop either once or multiple times. Author: Kevin Bartlett time, graphics, plot, timeline, project management 32 0
Comments and Ratings by Kevin View all
Updated File Comments Rating
27 May 2014 htmlTableToCell Parses HTML file and retrieves specified table as cell. Author: Steinar Elgsæter

Great timesaver, and easy to use.

26 May 2014 A simple UDP communications application Sends/receives UDP packets using Matlab's Java interface. Author: Kevin Bartlett

@exosceleton--My guess would be that Matlab's java machine is not doing garbage collecting properly (I've seen similar problems with Matlab's implementation of database cursor objects). So when you go through 256 IP addresses, you're creating 256 Java Socket objects, and they're clogging up Matlab's allocated Java space and slowing down your computer. As a workaround, why not send a single packet out to your network's broadcast address (see http://en.wikipedia.org/wiki/Broadcast_address)? You should be able to use 255.255.255.255 in your call to jupd.m. All the machines on your network will receive the UDP packet, but only the machine you're looking for will know how to respond to the specific UDP packet you send. Once this "handshake" is complete, the two computers will know each other's IP addresses, and you will no longer need to use the broadcast address.

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

Well done, Carsten! I'm glad you were able to get it to work. Hopefully your solution will also be useful for other users. Cheers, Kevin.

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

@Carsten. Sorry, I don't think I'm going to be able to help you with this. It isn't a problem I can duplicate, so debugging isn't something I can do. If you do figure it out, please let me know.

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

@Carsten--The OptionalDataException appears to be associated exclusively with serializable objects. I don't know why this is happening, but you could presumably get around this problem by setting 'serialize' to false and converting the payload data to int8 (see last example in jtcp.m header). Would this be an option for you?

Comments and Ratings on Kevin's Files View all
Updated File Comment by Comments Rating
27 May 2014 A simple UDP communications application Sends/receives UDP packets using Matlab's Java interface. Author: Kevin Bartlett exosceleton

@Kevin Bartlett
That seems to be the smart way indeed. Thanks

26 May 2014 A simple UDP communications application Sends/receives UDP packets using Matlab's Java interface. Author: Kevin Bartlett Bartlett, Kevin

@exosceleton--My guess would be that Matlab's java machine is not doing garbage collecting properly (I've seen similar problems with Matlab's implementation of database cursor objects). So when you go through 256 IP addresses, you're creating 256 Java Socket objects, and they're clogging up Matlab's allocated Java space and slowing down your computer. As a workaround, why not send a single packet out to your network's broadcast address (see http://en.wikipedia.org/wiki/Broadcast_address)? You should be able to use 255.255.255.255 in your call to jupd.m. All the machines on your network will receive the UDP packet, but only the machine you're looking for will know how to respond to the specific UDP packet you send. Once this "handshake" is complete, the two computers will know each other's IP addresses, and you will no longer need to use the broadcast address.

26 May 2014 A simple UDP communications application Sends/receives UDP packets using Matlab's Java interface. Author: Kevin Bartlett exosceleton

If i enter a static ip of the destination i can send&recieve at a quick rate (multiple cycles per second).

However when i change the ip address in a loop in an attempt to find the the correct device ip in a DHCP environment the cycle time quickly increases to multiple seconds per send&recieve command.

looking for the device from ip xxx.xxx.xxx.1:255 takes minutes.

is there a reason for this change in processing time between a fixed ip or multiple ip destinations?

Thanks

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

Well done, Carsten! I'm glad you were able to get it to work. Hopefully your solution will also be useful for other users. Cheers, Kevin.

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

I did it :)
Still the jTCP serialization is off and i use my own one with the use of typecast.
The solution is to send a constant length of the data stream for example 40 bytes.
Then i used the NUMBYTES parameter in jTCP read and deserialized again with typecast.
Now i'm not flexible with the data i send but it's no problem because the sender and receiver know about that.

Contact us