File Exchange

image thumbnail

DTS Binary Data Reader

version 1.0.0.0 (77.6 KB) by paul harder
Batch converts DTS data files to mat files for convenient post-processing

3 Downloads

Updated 20 Jul 2017

View License

This converts several data files from your DTS data acquisition unit (collected using DTS Sliceware) from their native binary format directly into mat format (also binary). This avoids the time and storage-consuming process of individually exporting csv files from Sliceware and importing them into Matlab.
If you have the parallel computing toolbox, it will simultaneously process one file on each of your processor cores.

Comments and Ratings (2)

paul harder

Sorry, that previous comment was overly complicated because I re-used the variable name "data". All you need to do to access the mat file is this:

load(['run1.mat']);
ch_1thru3=data(:,1:3);
ch_5=data(:,5);

You can also process multiple files in a loop, like this:

filenames={
'01'
'02'
'03'
};
for nfile=1:length(filenames)
filename=filenames{nfile};
disp(['Running file ' filename]);
load([filename '.mat']);
plot(t,data(:,1));
pause(1)
end

paul harder

After using this script, you can access the data in the mat files like this:

data=load(['run1.mat']);
ch_1thru3=data.data(:,1:3);
ch_5=data.data(:,5);

Updates

1.0.0.0

Added image

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux