Convert .dat to .txt or .mat
Show older comments
I used DAQ-Adlink USB-2405 to record vibration signals by Visual Signal program then I will receive two files which are 'filename.dat' and 'filename.adl'. When I opened .adl, it shown info as below
# ChannelNames: AI0 [g] (10.31 mV/g)
# DataUnit: [g]
# ChannelScales: 96.9932104752667
I think that ".adl" is created to extract data from ".dat" file. So, I would like to process the signal by MATLAB then can I convert it into .txt or .mat file?
Thank you so much for your help :)
Answers (5)
KSSV
on 23 Dec 2016
movefile('myfile.dat','myfile.txt');
3 Comments
Nuchaba Nureen
on 23 Dec 2016
Edited: Nuchaba Nureen
on 23 Dec 2016
KSSV
on 23 Dec 2016
Then your files are not ascii, attach any one file.
Nuchaba Nureen
on 23 Dec 2016
Edited: KSSV
on 23 Dec 2016
Nuchaba Nureen
on 23 Dec 2016
Edited: Nuchaba Nureen
on 23 Dec 2016
0 votes
2 Comments
KSSV
on 23 Dec 2016
movefile('baseline.adl','baseline.txt') is working because it is an ascii file...
Nuchaba Nureen
on 23 Dec 2016
Walter Roberson
on 23 Dec 2016
0 votes
The file format for ADLINK .dat files appears to be documented at http://www.adlinktech.com/publications/manual/Software/DAQCreator/DAQCreatorManual.pdf starting on PDF page 57.
I do not at the moment find any code to import the files, but the documentation should make it possible to write some.
Bhavanithya Thiraviaraja
on 30 Jul 2019
0 votes
You can open the .dat file in MATLAB by double clicking the .dat file from the 'Current Folder'.

Select the output type as 'Numeric Type' or 'String Array' according to your needs and click Import selection. You can see the imported .mat file in your workspace
Medha
on 13 Dec 2024
0 votes
none of the answers are helpful
Categories
Find more on Standard File Formats in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!