Code covered by the BSD License  

Highlights from
serialDataStream

2.0

2.0 | 2 ratings Rate this file 45 Downloads (last 30 days) File Size: 4.26 KB File ID: #31958

serialDataStream

by M. A. Hopcroft

 

25 Jun 2011 (Updated 20 Mar 2012)

serialDataStream shows you how to capture continuous data streams from USB devices and serial ports.

| Watch this File

File Information
Description

SERIALDATASTREAM is a design pattern for a function to receive and process a continuous stream of data from a device connected to a USB or serial port. This function does not execute as written; it includes explanations and examples for all of the steps required to capture data which is transmitted continuously over a USB or serial interface which use a "virtual COM port". It uses some advanced features of the MATLAB serial port functions and has been successfully used for capturing data at rates up to 1.5 MB/sec. Examples for Windows, Mac OS X, and Linux are included. The MATLAB Instrument Control Toolbox is not required.

This code does not execute as it is written; it is a design pattern with explanations and examples in the comments. You can read it and modify it for your needs.

WARNING: This is code is intended for advanced users who need to capture a high-speed, continuous data stream from a USB/serial port. You must have detailed information about the configuration and operation of your serial device. If you do not need high-speed continuous data capture, then you should look at other code which is easier to understand and use.

Required Products MATLAB
MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
17 Oct 2011 Dhaneesh Chandran  
20 Mar 2012 Nabeel Abbood  
Please login to add a comment or rating.
Updates
20 Mar 2012

v1.1: update description

Tag Activity for this File
Tag Applied By Date/Time
communications M. A. Hopcroft 27 Jun 2011 09:08:44
usb M. A. Hopcroft 27 Jun 2011 09:08:44
serial port M. A. Hopcroft 27 Jun 2011 09:08:44
instrument interface M. A. Hopcroft 27 Jun 2011 09:08:44

Contact us at files@mathworks.com