Read .daq (Data Acquisition Toolbox for Matlab) file format in python

Does anyone know a way to read in .daq files generated using the Matlab Data Acquisition Toolbox in python? Alternatively, a simple way (using only open source software) to convert files to csv or .mat files that can be read with python would be ok.

+4
source share
1 answer

I'm not sure if you solved it now or not, but you can easily generate .mat files from .daq files in matlab using daqread. In the command window:

Data = daqread(mydata.daq); cd(saveDir) save('Data','Data') 

A data variable is a .mat file. This can easily be added to the file directory scan feature. Reading in python is also a simple use of the scipy module. For example, from the interpreter:

 from scipy.io import loadmat data = loadmat('Data.mat') 

There might also be a boot submodule .daq somewhere in scipy, but you have to look.

Hope this helps!

+2
source

All Articles