Be the first to rate this file! 37 downloads (last 30 days) File Size: 4.71 KB File ID: #24418

py_udp

by Kevin Bartlett

 

11 Jun 2009

Code covered by the BSD License  

Sends/receives UDP packets using Python.

Download Now | Watch this File

File Information
Description

UDP packets are used to send data from one computer to another over a network or from one application to another within a single computer. The py_udp programs enable Matlab to send and/or receive UDP packets. One Matlab session can communicate with another Matlab session (on the same machine or over the network) or it can communicate with a completely different program (again, on the same machine or over the network).

The py_udp programs use the UDP utilities from the Python programming language to send and receive UDP packets, so Python must be installed on the computer running Matlab.

The py_udp programs are very simple and can be considered as a lightweight alternative to the more feature-rich TCP/UDP/IP Toolbox written by Peter Rydesäter or to Mathworks' own Instrument Control Toolbox.

The py_udp programs are not suitable for large volumes of data because they create a new Python session for each packet sent or received; communicating at more than about 1 packet per second will almost certainly cause your computer to become very sluggish. For things like sending occasional notifications to another program, however, this
will not be an issue; users wanting to "stream" larger quantities of data should consider using the TCP/UDP/IP Toolbox or Instrument Control Toolbox instead.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
TCP/UDP/IP Toolbox 2.0.6

MATLAB release MATLAB 7.8 (R2009a)
Other requirements Python. Tested on RedHat Linux and Windows XP; not tested on Vista or Mac.
Zip File Content  
Other Files license.txt,
py_udp_receive.m,
py_udp_send.m,
udp_receive.py,
udp_send.py
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
tcp udp packets network datagrams tcpip Kevin Bartlett 12 Jun 2009 09:43:33
communications Kevin Bartlett 12 Jun 2009 09:43:34
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com