Code covered by the BSD License  

Highlights from
daqreadCached

Be the first to rate this file! 5 Downloads (last 30 days) File Size: 15.72 KB File ID: #27289

daqreadCached

by Gary

 

19 Apr 2010

This version of daqread is modified to improve retrieval speed, particularly for large files.

| Watch this File

File Information
Description

This version of daqread (daqreadCached.m) is modified in two ways to improve retrieval speed, particularly for large files.

1) Instead of building a file index each time daqread is called, which can be very time-consuming for large files, this version caches the index (or 'chart') between calls in a persistent variable. Subsequent calls will use the cached chart if the .daq filename and the number of samples acquired is the same as for the previous call (if these change, a new chart will be built).

2) The cached chart now includes one additional table indicating the startsample for each data block in the file. This is then used for much faster random access (rather than sequential access) to retrieve data samples,which is particularly helpful for retrieving data late in the stored file. *** The robustness of this method has not been tested for multichannel or triggered acquisition ***

MATLAB release MATLAB 7.10 (2010a)
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
daqread Gary 21 Apr 2010 08:59:33
data acquisition Gary 24 Apr 2010 07:38:19

Contact us at files@mathworks.com